* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
}

body {
    height: 100vh;
    background: #050505;
    overflow: hidden;
    color: #fff;
}

/* Fondo matrix */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.9;        /* bien visible */
    pointer-events: none;
    display: block;
}

/* contenido encima */
.container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.title {
    font-size: 3em;
    color: #c400ff;
    text-shadow: 0 0 20px #8000ff;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #8000ff; }
    to { text-shadow: 0 0 30px #c400ff; }
}

.subtitle {
    margin-bottom: 30px;
    opacity: 0.75;
}

button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #8000ff, #c400ff);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px #c400ff;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Key box */
.key-box {
    margin-top: 22px;
    padding: 16px 18px;
    min-width: min(520px, 90vw);
    background: rgba(11, 11, 11, 0.92);
    border: 1px solid #8000ff;
    box-shadow: 0 0 15px #8000ff;
    animation: fadeIn 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

#keyText{
    font-size: 18px;
    letter-spacing: 1px;
    word-break: break-all;
}

.row{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-btn {
    padding: 10px 22px;
    font-size: 14px;
}

.tag{
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,255,102,0.5);
    box-shadow: 0 0 10px rgba(0,255,102,0.25);
    color: #00ff66;
    background: rgba(0,0,0,0.35);
}

.msg{
    font-size: 13px;
    opacity: 0.9;
}

.cooldown{
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.85;
}

.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}