.panal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 80px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.panal-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.panal-rank {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.rank-bar {
    flex: 1;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.rank-progress {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width 0.3s ease;
}

.input-display {
    min-height: 40px;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.input-display span.center-letter {
    color: #FFD700 !important;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    font-weight: 900;
    margin: 0 4px;
}

.hex-grid {
    position: relative;
    width: 300px;
    height: 320px;
    margin: 0 auto 30px auto;
}

.hex {
    width: 90px;
    height: 104px;
    background: var(--border-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    cursor: pointer;
    position: absolute;
    transition: transform 0.1s, background 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* C = 105 left, 108 top */
.hex.center { 
    top: 108px; 
    left: 105px; 
    background: #FFD700 !important; /* Amarillo Oro Brillante */
    color: #000000 !important;     /* Letra negra para máximo contraste */
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 2.6rem;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}
.hex.pos-0  { top: 18px; left: 105px; } /* top */
.hex.pos-1  { top: 63px; left: 185px; } /* top right */
.hex.pos-2  { top: 153px; left: 185px;} /* bot right */
.hex.pos-3  { top: 198px; left: 105px;} /* bot */
.hex.pos-4  { top: 153px; left: 25px; } /* bot left */
.hex.pos-5  { top: 63px; left: 25px; }  /* top left */

.hex:active {
    transform: scale(0.9);
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.panal-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.panal-btn:hover {
    background: var(--border-color);
}

.panal-btn:active {
    transform: scale(0.95);
}

.words-list-container {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    background: var(--bg-secondary);
    margin-top: 10px;
}

.words-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-primary);
}

.words-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.word-pill {
    padding: 5px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.word-pill.pangram {
    background: rgba(225, 179, 42, 0.2);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    font-weight: bold;
}

.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10000; /* Por encima de la navbar */
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; }

.input-display.shake {
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
