:root {
    --bg-color: #F8F8F0;
    --card-bg: #FFFFFF;

    /* Refined Neo-Brutalist Palette */
    --neon-green: #3DFF8B;
    --neon-green-dim: #00D16B;
    --warm-yellow: #FFEE58;
    --distant-red: #FF4D4D;
    --accent: #FF6B00;

    --text-primary: #000000;
    --text-dark: #000000;
    --text-secondary: #000000;
    --border-color: #000000;

    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Syne', sans-serif;

    --radius-lg: 0px;
    --radius-md: 0px;
    --radius-pill: 0px;

    --shadow-soft: 4px 4px 0px #000;
    --shadow-neon: 6px 6px 0px #000;

    --border-thick: 4px solid #000;
    --shadow-brutal: 8px 8px 0px #000;
    --shadow-brutal-hover: 12px 12px 0px #000;
    --shadow-brutal-active: 2px 2px 0px #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    height: 100vh;
    height: 100dvh;
    /* Soporte moderno para celulares */
    display: flex;
    justify-content: center;
    overflow: hidden;
    /* Prevent body scroll due to fixed elements */
}

.app-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}

@media (min-width: 501px) {
    .app-container {
        height: 95vh;
        margin-top: 2.5vh;
        border: var(--border-thick);
        box-shadow: 12px 12px 0px #000;
        background: #fff;
    }
}

.game-header {
    background: #000;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 6px solid var(--neon-green);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 1;
    min-width: 0;
}

.logo-icon-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transform: rotate(-3deg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-icon-wrapper:hover {
    transform: rotate(0deg) scale(1.1);
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(4px 4px 0px #333);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    line-height: 0.9;
    margin: 0;
}

.brand-tagline {
    font-size: 0.55rem;
    color: var(--neon-green);
    letter-spacing: 1.5px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

.game-status-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.game-number {
    font-size: 0.65rem;
    color: #fff;
    font-weight: 700;
    opacity: 0.8;
}

.mode-tag {
    font-size: 0.55rem;
    background: var(--neon-green);
    color: #000;
    padding: 1px 4px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    border-radius: 2px;
}

.mode-tag.practice {
    background: #444;
    color: #fff;
}

.icon-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.share-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #000;
}

.header-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.icon-btn {
    background: #000;
    border: 3px solid var(--neon-green);
    box-shadow: 3px 3px 0px var(--neon-green);
    color: #fff;
    font-size: 1.1rem;
    padding: 4px;
    cursor: pointer;
    transition: 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0;
}

.icon-btn:hover {
    color: #000;
    background: var(--neon-green);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #fff;
}

/* --- SERVER STATUS DOT --- */
.server-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(55, 253, 104, 0.6);
    transition: all 0.3s ease;
}

.server-dot.offline {
    background: var(--distant-red);
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.5);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* --- STATS MODAL --- */
.stats-modal-content {
    text-align: center;
}

.stats-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stats-modal-header i {
    font-size: 3.5rem;
    color: var(--neon-green);
    text-shadow: 4px 4px 0px #000;
}

.stats-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.stats-progress-section {
    margin: 20px 0;
    text-align: left;
}

.stats-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.stats-progress-bar {
    height: 12px;
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    border: 2px solid #000;
}

.stats-progress-fill {
    height: 100%;
    border-radius: 0px;
    background: var(--neon-green);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: inset -2px 0 0 #000;
}

.stats-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--warm-yellow);
    border: var(--border-thick);
    box-shadow: 4px 4px 0px #000;
    border-radius: 0;
    margin: 20px 0;
    text-align: left;
}

.stats-hint i {
    font-size: 1.1rem;
    color: var(--warm-yellow);
    flex-shrink: 0;
}

.stats-hint span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.input-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-top: 5px;
}

/* --- GUESS FEED (Central Area) --- */
.game-board {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Custom Scrollbar hide */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game-board::-webkit-scrollbar {
    display: none;
}

.guesses-container {
    flex: 1;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guesses-header {
    display: none;
    /* Hide header in new design */
}

.guesses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* --- CARD STYLES (Brutalist) --- */
.guess-card,
.guess-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 0;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    background: var(--card-bg);
    animation: popIn 0.2s ease-out forwards;
    transform: scale(0.95);
    opacity: 0;
    width: 100%;
}

@keyframes popIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.new-guess {
    position: relative;
    overflow: hidden;
    animation: popIn 0.2s ease-out forwards, transient-pulse 2s infinite 0.2s ease-in-out;
    z-index: 5;
    border-style: dashed;
    /* Le da un aspecto más temporal/transitorio */
}

@keyframes transient-pulse {

    0%,
    100% {
        transform: scale(1) translateY(0);
        box-shadow: var(--shadow-brutal);
    }

    50% {
        transform: scale(1.02) translateY(-2px) rotate(-1deg);
        box-shadow: 10px 12px 0px #000;
    }
}

.new-guess::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    pointer-events: none;
    animation: brutal-flash 0.2s ease-out forwards;
}

@keyframes brutal-flash {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

.guess-info {
    display: flex;
    flex-direction: column;
}

.guess-word {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.5px;
}

.guess-status {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.hint-tag {
    font-size: 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 800;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guess-rank {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Hide old components */
.bar-container {
    display: none;
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    min-width: auto;
    text-align: right;
    background: transparent !important;
}


/* Card Variants */
.rank-1,
.card-win {
    background: var(--neon-green);
    color: var(--text-dark);
    box-shadow: var(--shadow-brutal);
    border: var(--border-thick);
}

.rank-1 .rank-number {
    color: var(--text-dark);
}

.rank-high,
.card-close {
    background: var(--neon-green-dim);
    background: linear-gradient(135deg, #37fd68 0%, #2ebd50 100%);
    color: var(--text-dark);
}

.rank-high .rank-number {
    color: var(--text-dark);
}


.rank-med,
.card-med {
    background: var(--warm-yellow);
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: var(--text-dark);
}

.rank-med .rank-number {
    color: var(--text-dark);
}


.rank-low,
.card-far {
    background: var(--distant-red);
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    color: var(--text-primary);
}

.rank-low .rank-number {
    color: var(--text-primary);
}


/* --- INPUT BAR --- */
.input-section {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: var(--bg-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 5px;
    border-radius: 0;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    width: 100%;
}

#word-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    font-family: var(--font-primary);
    text-transform: uppercase;
}

#word-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

#word-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

#btn-submit {
    position: static;
    background: var(--neon-green);
    color: var(--text-dark);
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 0 24px;
    width: auto;
    height: auto;
    border-radius: 0;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.1s;
}

#btn-submit:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}

#btn-submit:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    opacity: 1;
}


.input-wrapper.pulse {
    animation: input-pulse 0.4s ease-out;
}

@keyframes input-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(55, 253, 104, 0.2), 0 0 20px rgba(55, 253, 104, 0.1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }
}

/* --- MODALS FIXED --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* High z-index to sit on top of everything */
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    /* Ensure it doesn't block clicks when hidden */
}

.modal-content {
    background: #FFFFFF;
    border: var(--border-thick);
    padding: 30px;
    border-radius: 0;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-brutal-hover);
    text-align: center;
    color: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--neon-green);
    transform: rotate(90deg);
}

.victory-header h2 {
    color: var(--neon-green);
    font-size: 2rem;
    margin: 10px 0;
    text-transform: uppercase;
    font-weight: 900;
}

/* Stats in Modal */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    padding: 15px;
    border-radius: 0;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 2px 2px 0px var(--neon-green);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 18px;
    border-radius: 0;
    width: 100%;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    cursor: pointer;
    transition: 0.1s;
    text-shadow: 2px 2px 0px #000;
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-brutal-active);
}

.btn-primary:hover {
    opacity: 1;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-hover);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px;
    border-radius: 0;
    width: 100%;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    cursor: pointer;
    transition: 0.1s;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: var(--warm-yellow);
    color: #000;
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-hover);
}

.btn-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-brutal-active);
}

/* --- LOGO STYLING --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
    color: var(--warm-yellow);
    text-shadow: 3px 3px 0px #000;
}

/* --- SHAKE ANIMATION --- */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* --- VICTORY MODAL STYLING --- */
.victory-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.victory-header.gave-up i {
    color: var(--distant-red);
    text-shadow: 4px 4px 0px #000;
    animation: none;
}

.victory-header.gave-up h2 {
    color: var(--text-primary);
}

.victory-header i {
    font-size: 3.5rem;
    color: var(--warm-yellow);
    text-shadow: 4px 4px 0px #000;
    animation: floatTrophy 2s ease-in-out infinite;
}

@keyframes floatTrophy {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.winning-word-display {
    margin: 25px 0;
    padding: 20px;
    background: #fff;
    border-radius: 0;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    position: relative;
}

.rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-green);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 0;
    border: 2px solid #000;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 2px 2px 0px #000;
}

.winning-word-display h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 0px #000;
}

.next-word-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: center;
}

.next-word-section p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.countdown {
    font-size: 2rem;
}

/* --- NEW MODAL STYLES --- */
.message-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.message-header i {
    font-size: 3.5rem;
    color: var(--neon-green);
    text-shadow: 4px 4px 0px #000;
}

.message-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
}

.message-body {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.modal-actions button {
    flex: 1;
}



.modal-actions {
    margin-top: 20px;
}

/* --- HELP MODAL STYLING --- */
.help-illustration {
    margin: 20px 0;
    font-size: 4rem;
    color: var(--warm-yellow);
    text-shadow: 4px 4px 0px #000;
}

.help-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 15px 0;
    color: var(--text-primary);
    text-transform: uppercase;
}

.help-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9rem;
}

.help-content strong {
    color: var(--text-primary);
    font-weight: 800;
}

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.example-card {
    padding: 16px;
    border-radius: 0;
    text-align: left;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.example-card.high-sim {
    background: var(--neon-green);
    color: var(--text-dark);
}

.example-card.low-sim {
    background: var(--distant-red);
    color: var(--text-primary);
}

.ex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ex-header span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ex-header .badge {
    background: transparent;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 800;
}

.ex-bar {
    height: 12px;
    background: transparent;
    border-radius: 0;
    border: 2px solid #000;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.ex-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #000;
    border-radius: 0;
}

.high-sim .ex-bar::before {
    width: 95%;
}

.low-sim .ex-bar::before {
    width: 15%;
}

.example-card p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* --- SETTINGS MODAL STYLING --- */
.settings-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--neon-green);
}

.settings-group {
    margin-bottom: 20px;
    text-align: left;
}

.settings-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.settings-group input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(55, 253, 104, 0.1);
}

.settings-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
}

/* --- RESPONSIVE DESIGN --- */
@media (min-width: 600px) {
    .app-container {
        max-width: 600px;
    }

    .game-header {
        padding: 20px 30px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .game-board {
        padding: 0;
    }

    .input-section {
        padding: 30px;
    }

    .modal-content {
        max-width: 480px;
        padding: 40px;
    }

    .floating-btn {
        bottom: 30px;
        right: 30px;
    }
}

/* --- FLOATING BUTTON --- */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: var(--neon-green);
    color: var(--text-dark);
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 900;
    transition: 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-hover);
}

.floating-btn:active {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-brutal-active);
}

.floating-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}

/* --- FLOATING CONTROLS (back-to-top only) --- */
.floating-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 950;
}

/* Back to top */
#btn-back-to-top {
    background: var(--neon-green);
    color: #000;
    border: var(--border-thick);
    box-shadow: var(--shadow-brutal);
}

/* --- MOBILE TOOLBAR --- */
.mobile-toolbar {
    display: none;
    background: #000;
    padding: 8px 10px;
    border-bottom: 4px solid var(--neon-green);
    justify-content: space-around;
    gap: 5px;
    flex-shrink: 0;
    z-index: 95;
}

.mob-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mob-btn i {
    font-size: 1.1rem;
    color: var(--neon-green);
    transition: transform 0.2s ease;
}

.mob-btn span {
    font-family: var(--font-primary);
}

.mob-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mob-btn:hover i {
    transform: scale(1.2);
}

.mob-btn:active {
    background: var(--neon-green);
    color: #000;
}

.mob-btn:active i {
    color: #000;
}

/* Visibility utilities */
.hide-mobile {
    display: flex !important;
}

@media (max-width: 500px) {
    .hide-mobile {
        display: none !important;
    }

    .mobile-toolbar {
        display: flex !important;
    }

    .game-header {
        padding: 10px 12px;
    }
}


.guess-item {
    cursor: default;
    transition: transform 0.2s ease;
}

.guess-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* --- SOCIAL SHARE MODAL --- */
.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 10px;
    border-radius: 0;
    cursor: pointer;
    transition: 0.1s;
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-primary);
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.share-btn i {
    font-size: 1.8rem;
    transition: 0.1s;
}

.share-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hover Effects */
.share-btn:hover {
    transform: translate(-2px, -2px);
    background: var(--neon-green);
    box-shadow: 6px 6px 0px #000;
}

.share-btn.whatsapp:hover i {
    color: #000;
}

.share-btn.twitter:hover i {
    color: #000;
}

/* Or white for X */
.share-btn.facebook:hover i {
    color: #000;
}

.share-btn.copy:hover i {
    color: #000;
}

.share-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}