/* ============================================
   AquaForca – Estilos renovados
   ============================================ */

:root {
    /* Cores principais – nova paleta */
    --bg-start: #d4f0f5;      /* azul gelo claro */
    --bg-end:   #aad9e0;      /* água-marinha */
    --card-bg:  rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 255, 255, 0.7);

    --primary:   #0b8a8c;     /* azul-petróleo */
    --primary-light: #2bc9c0; /* água-viva */
    --primary-dark: #07696b;

    --accent:    #f3b84a;     /* areia dourada */
    --accent-light: #ffe6b0;

    --danger:    #d85858;
    --success:   #2a9d8f;

    --ink:       #1d3b45;
    --muted:     #5f7a82;
    --line:      #d2e7e6;
    --white:     #ffffff;

    /* Sombras */
    --shadow:    0 12px 40px rgba(0, 50, 60, 0.12);
    --soft-shadow: 0 6px 18px rgba(0, 50, 60, 0.08);
    --glow:      0 0 20px rgba(43, 201, 192, 0.15);

    /* Fontes */
    --font-heading: "Fredoka", sans-serif;
    --font-body:    "Nunito", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-end);
}

body {
    min-width: 280px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
}

body.modal-open {
    overflow: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* ===== Layout geral ===== */
.app-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.screen {
    width: min(100%, 1120px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 22px clamp(14px, 4vw, 38px) 34px;
}

/* ===== Barras superiores ===== */
.site-bar,
.game-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
}

.brand-link {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s;
}

.brand-link:hover {
    color: var(--primary-light);
}

.text-button,
.secondary-link {
    border: 0;
    color: var(--primary-dark);
    font-weight: 800;
    background: transparent;
    cursor: pointer;
}

.text-button {
    padding: 10px 4px;
    color: var(--primary-dark);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.text-button:hover {
    opacity: 1;
    color: var(--primary);
}

.secondary-link {
    display: block;
    margin: 13px auto -5px;
    padding: 8px 12px;
    color: var(--primary);
    transition: color 0.2s;
}

.secondary-link:hover {
    color: var(--primary-dark);
}

/* ===== Tela inicial ===== */
.intro-screen {
    display: flex;
    flex-direction: column;
}

.intro-layout {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 560px);
    gap: clamp(28px, 4vh, 38px);
    align-content: center;
    justify-content: center;
    padding: 38px 0 22px;
}

.title-block {
    width: 100%;
    color: var(--white);
    text-align: center;
}

.title-block h1 {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: clamp(3.7rem, 7vw, 5.8rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 0.92;
    color: #139ea0; /* azul-petróleo escuro, da nova paleta */
    text-shadow: 0 4px 12px rgba(11, 90, 92, 0.15);
}

.title-block h1::before {
    position: absolute;
    top: -8px;
    right: 2%;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow:
        -27px 15px 0 -3px rgba(155, 231, 217, 0.5),
        14px 25px 0 -4px rgba(109, 220, 224, 0.5);
    content: "";
    pointer-events: none;
}

.title-block h1::after {
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: clamp(72px, 16vw, 104px);
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #b0e8e3, #6ddde0, transparent);
    box-shadow: 0 0 16px rgba(155, 231, 217, 0.3);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

/* ===== Cards ===== */
.setup-card,
.game-card,
.modal-card {
    border: 1px solid var(--card-border);
    border-radius: 28px;
    background: var(--card-bg);
    backdrop-filter: blur(2px);
    box-shadow: var(--shadow);
}

.setup-card {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
}

.setup-card h2 {
    margin: 0 0 22px;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--primary-dark);
}

/* ===== Seletor de modo ===== */
.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    border-radius: 15px;
    background: #dfefec;
}

.mode-button {
    min-height: 46px;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
    color: var(--muted);
    font-weight: 900;
    background: transparent;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.mode-button.active {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(11, 138, 140, 0.25);
}

.mode-panel {
    min-height: 154px;
    padding-top: 22px;
}

#campaignOptions {
    min-height: 166px;
}

.campaign-summary,
.round-status,
.modal-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.campaign-summary strong,
.round-status h2 {
    display: block;
    margin-top: 2px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.32rem;
}

.summary-label,
.modal-kicker {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.progress-pill {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 0.86rem;
    font-weight: 900;
    background: #ddf0ed;
}

.progress-track {
    height: 7px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 99px;
    background: #dcebe8;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    transition: width 260ms ease;
}

.mode-description {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

/* ===== Campanhas (track) ===== */
.campaign-track {
    display: flex;
    gap: 6px;
    margin: 15px -2px 0;
    padding: 2px 2px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.campaign-track::-webkit-scrollbar {
    display: none;
}

.campaign-node {
    position: relative;
    display: grid;
    flex: 1 0 42px;
    max-width: 52px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #819695;
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    background: #edf3f2;
    cursor: pointer;
    transition: all 0.2s;
}

.campaign-node i {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.55rem;
}

.campaign-node.completed {
    border-color: #9ed9cd;
    color: #08746e;
    background: #e5f8f3;
}

.campaign-node.current {
    border-color: var(--primary-light);
    color: var(--primary-dark);
    background: #d7f5ef;
    box-shadow: 0 0 0 3px rgba(43, 201, 192, 0.15);
}

.campaign-node.selected {
    box-shadow: 0 0 0 3px rgba(11, 138, 140, 0.25);
}

.campaign-node.locked {
    color: #95a5a4;
    background: #f0f4f3;
    cursor: not-allowed;
}

/* ===== Arcade ===== */
.arcade-panel {
    display: flex;
    min-height: 166px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.arcade-panel strong {
    display: block;
    margin-top: 4px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.42rem;
}

.arcade-panel .mode-description {
    max-width: 330px;
}

/* ===== Botão primário ===== */
.primary-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 22px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 9px 20px rgba(11, 138, 140, 0.25);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.setup-card > .primary-button {
    margin-top: 6px;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11, 138, 140, 0.3);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button:disabled,
.buy-button:disabled,
.hint-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

/* ===== Jogo ===== */
.game-screen {
    max-width: 920px;
}

.game-topbar {
    margin-bottom: 18px;
}

.game-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-counter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.coin-mark {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #5f470c;
    font-size: 0.75rem;
    font-weight: 900;
    background: var(--accent);
}

.coin-mark i {
    font-size: 0.66rem;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 9px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.2s;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.icon-button i {
    font-size: 1rem;
}

.game-card {
    padding: clamp(18px, 4vw, 34px);
}

.round-status h2 {
    margin: 2px 0 0;
}

.attempts-text {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: right;
}

/* ===== Tema ===== */
.theme-details {
    margin-top: 19px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f5fbfa;
}

.theme-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 11px 15px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.theme-details summary::-webkit-details-marker {
    display: none;
}

.theme-details summary::after {
    margin-left: 3px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    content: "+";
}

.theme-details[open] summary::after {
    content: "−";
}

.details-action {
    margin-left: auto;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.theme-details p {
    margin: 0;
    padding: 0 15px 15px;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.48;
}

/* ===== Dica ===== */
.hint-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--white);
}

.hint-panel p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.35;
}

.hint-panel.hint-revealed {
    align-items: flex-start;
    border-color: #9fded2;
    background: #f1fcf8;
}

.hint-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 10px 8px 13px;
    border: 1px solid #a6dcd3;
    border-radius: 11px;
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 900;
    background: #e6f8f4;
    cursor: pointer;
    transition: background 0.2s;
}

.hint-button:hover:not(:disabled) {
    background: #cef2eb;
}

.price-tag {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    padding: 0 5px;
    place-items: center;
    border-radius: 8px;
    color: #62480a;
    font-size: 0.76rem;
    background: #ffe1a1;
}

/* ===== Palavra ===== */
.word-slots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 11px 17px;
    min-height: 116px;
    padding: 26px 0 18px;
}

.word-part {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.letter-slot {
    display: grid;
    width: clamp(24px, 5vw, 37px);
    height: clamp(39px, 7vw, 53px);
    place-items: center;
    border-bottom: 3px solid #93b8b4;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.28rem, 4vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
}

.word-slots.long-word .word-part {
    gap: 2px;
}

.word-slots.long-word .letter-slot {
    width: clamp(17px, 4.7vw, 30px);
    font-size: clamp(1rem, 3.8vw, 1.7rem);
}

.letter-slot.revealed {
    border-color: var(--primary-light);
    animation: letterIn 220ms ease;
}

.letter-slot.punctuation {
    width: 12px;
    border: 0;
}

@keyframes letterIn {
    from {
        transform: translateY(-5px) scale(0.95);
        opacity: 0.4;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ===== Vidas ===== */
.lives-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 32px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.lives-container {
    display: flex;
    align-items: center;
    gap: 7px;
}

.life-drop {
    width: 13px;
    height: 13px;
    border-radius: 70% 40% 70% 40%;
    background: var(--primary-light);
    transform: rotate(45deg);
    transition: opacity 180ms ease, transform 180ms ease;
}

.life-drop.lost {
    opacity: 0.2;
    transform: rotate(45deg) scale(0.78);
}

.life-drop.extra {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== Alfabeto ===== */
.alphabet {
    display: grid;
    grid-template-columns: repeat(9, minmax(42px, 48px));
    justify-content: center;
    gap: 7px;
    margin: 24px auto 2px;
}

.letter-button {
    aspect-ratio: 1;
    border: 1px solid #c8dfda;
    border-radius: 11px;
    color: var(--ink);
    font-weight: 900;
    background: var(--white);
    box-shadow: 0 3px 8px rgba(8, 79, 89, 0.06);
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.letter-button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.letter-button.correct {
    border-color: var(--success);
    color: #07564f;
    background: #dff7f1;
}

.letter-button.wrong {
    border-color: var(--danger);
    color: #9b3e3e;
    background: #fff0f0;
}

.letter-button.removed {
    opacity: 0.25;
}

.letter-button:disabled {
    cursor: default;
}

/* ===== Modais ===== */
.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    padding: 18px;
    place-items: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 35, 0.6);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: min(88vh, 760px);
    max-height: min(88dvh, 760px);
    padding: clamp(22px, 5vw, 34px);
    overflow: auto;
}

.modal-card h2 {
    margin: 3px 0 20px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 5vw, 2.2rem);
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: var(--muted);
    font-size: 1.6rem;
    line-height: 1;
    background: #edf5f3;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #dcebe8;
}

/* ===== Instruções ===== */
.instruction-list {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.instruction-list li {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.instruction-list li:last-child {
    border-bottom: 0;
}

.instruction-list strong {
    color: var(--primary);
}

.instruction-list span {
    color: var(--muted);
    line-height: 1.42;
}

/* ===== Loja ===== */
.shop-modal-card {
    width: min(100%, 650px);
}

.shop-modal-card .modal-heading-row {
    padding-right: 42px;
}

.shop-modal-card .coin-counter {
    border-color: var(--line);
    color: var(--ink);
    background: #f2f8f6;
}

.shop-list {
    display: grid;
    gap: 9px;
}

.shop-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfefd;
}

.item-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    background: #def5f0;
}

.item-copy {
    min-width: 0;
}

.item-copy strong,
.item-copy span {
    display: block;
}

.item-copy strong {
    color: var(--ink);
}

.item-copy span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.buy-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 9px 7px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
    background: var(--primary);
    cursor: pointer;
    transition: background 0.2s;
}

.buy-button:hover:not(:disabled) {
    background: var(--primary-dark);
}

.buy-button.cannot-afford {
    color: #657a7e;
    background: #dce7e5;
}

.buy-button b {
    display: inline-grid;
    min-width: 25px;
    height: 24px;
    padding: 0 5px;
    place-items: center;
    border-radius: 7px;
    color: #634b0c;
    background: #ffe0a0;
}

.modal-feedback {
    min-height: 22px;
    margin: 13px 2px 0;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

/* ===== Progresso ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 13px 8px;
    border-radius: 13px;
    text-align: center;
    background: #edf7f4;
}

.stat-card strong,
.stat-card span {
    display: block;
}

.stat-card strong {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.stat-card span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.progress-modal-card h3 {
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.achievement-list {
    display: grid;
    gap: 8px;
}

.achievement-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 11px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.achievement-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    color: #738b89;
    font-weight: 900;
    background: #edf3f2;
}

.achievement-item.unlocked .achievement-mark {
    color: #62480a;
    background: #ffe4a9;
}

.achievement-item strong,
.achievement-item span {
    display: block;
}

.achievement-item span {
    color: var(--muted);
    font-size: 0.78rem;
}

/* ===== Resultado ===== */
.result-card {
    text-align: center;
}

.result-word {
    margin: -8px 0 18px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 7vw, 3rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.definition-card {
    padding: 16px;
    border-radius: 15px;
    text-align: left;
    background: #edf8f5;
}

.definition-card p {
    margin: 5px 0 0;
    color: var(--ink);
    line-height: 1.5;
}

.reward-text {
    min-height: 23px;
    margin: 13px 0;
    color: #8a6508;
    font-weight: 900;
}

.share-area {
    padding: 13px 0 5px;
    border-top: 1px solid var(--line);
}

.share-area > p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.87rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.share-button,
.brand-share {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    font-weight: 900;
    cursor: pointer;
}

.share-button {
    padding: 9px 15px;
}

.primary-share {
    color: var(--white);
    background: var(--primary);
}

.brand-share {
    display: grid;
    width: 42px;
    padding: 0;
    place-items: center;
    color: var(--white);
}

.brand-share i {
    font-size: 1.08rem;
}

.whatsapp-share {
    background: #1d9f55;
}

.x-share {
    background: #151515;
}

.copy-share {
    color: var(--ink);
    background: #e5f1ee;
}

.result-actions {
    display: grid;
    gap: 5px;
    margin-top: 16px;
}

.result-actions .secondary-link {
    margin: 2px auto 0;
}

/* ===== Toasts ===== */
.toast {
    position: fixed;
    z-index: 160;
    left: 50%;
    bottom: 22px;
    max-width: min(90vw, 420px);
    padding: 11px 16px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 900;
    text-align: center;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.simple-toast {
    color: var(--white);
    background: var(--primary-dark);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Responsividade ===== */
@media (max-width: 760px) {
    .intro-layout {
        gap: 29px;
        padding: 24px 0 18px;
    }

    .title-block h1::after {
        bottom: -13px;
    }

    .title-block h1 {
        font-size: clamp(3.35rem, 15vw, 5rem);
    }
}

@media (max-width: 560px) {
    .screen {
        padding: 12px 12px 24px;
    }

    .site-bar,
    .game-topbar {
        min-height: 42px;
    }

    .intro-layout {
        gap: 27px;
        padding: 18px 0 14px;
    }

    .setup-card,
    .game-card,
    .modal-card {
        border-radius: 21px;
    }

    .setup-card {
        padding: 20px 16px;
    }

    .setup-card h2 {
        margin-bottom: 17px;
        font-size: 1.48rem;
    }

    .mode-panel {
        min-height: 145px;
        padding-top: 17px;
    }

    .game-topbar {
        margin-bottom: 10px;
    }

    .game-card {
        padding: 17px 14px 15px;
    }

    .theme-details {
        margin-top: 14px;
    }

    .hint-panel {
        gap: 10px;
        min-height: 66px;
        padding: 11px 12px;
    }

    .hint-panel p {
        font-size: 0.82rem;
    }

    .hint-button {
        padding-left: 10px;
        font-size: 0.78rem;
    }

    .word-slots {
        min-height: 105px;
        gap: 9px 13px;
        padding: 20px 0 14px;
    }

    .word-part {
        gap: 3px;
    }

    .alphabet {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
        margin-top: 18px;
    }

    .letter-button {
        min-height: 40px;
        aspect-ratio: auto;
        border-radius: 9px;
    }

    .modal {
        padding: 10px;
        align-items: end;
    }

    .modal-card {
        width: 100%;
        max-height: 91vh;
        max-height: 91dvh;
        padding: 24px 17px 20px;
        border-radius: 22px 22px 14px 14px;
    }

    .shop-item {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 9px;
    }

    .item-icon {
        width: 38px;
        height: 38px;
    }

    .buy-button {
        padding-left: 8px;
    }

    .buy-button [data-buy-label] {
        display: none;
    }

    .instruction-list li {
        grid-template-columns: 78px 1fr;
    }
}

@media (max-width: 370px) {
    .title-block h1 {
        font-size: 3.05rem;
    }

    .theme-grid {
        gap: 7px;
    }

    .theme-option {
        min-height: 44px;
        padding-inline: 5px;
        font-size: 0.81rem;
    }

    .hint-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .hint-button {
        justify-content: center;
        width: 100%;
    }

    .word-slots.long-word .letter-slot {
        width: clamp(15px, 4.55vw, 19px);
        font-size: 0.95rem;
    }

    .alphabet {
        gap: 5px;
    }

    .letter-button {
        min-height: 38px;
        font-size: 0.83rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 700px) and (min-width: 761px) {
    .intro-layout {
        gap: 25px;
        padding-block: 16px;
    }

    .setup-card {
        padding-block: 22px;
    }

    .title-block h1 {
        font-size: clamp(3.5rem, 7vw, 4.8rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}