:root {
    --display-font: 'Sora', 'Avenir Next', 'Century Gothic', sans-serif;
    --body-font: 'Manrope', 'Trebuchet MS', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Sora:wght@400;600;700;800&display=swap');

:root {
    --bg: #f4f1ea;
    --ink: #1d2a30;
    --panel: #ffffff;
    --accent: #0f766e;
    --accent-soft: #dcf4f1;
    --warn: #b45309;
    --ok: #166534;
    --bad: #991b1b;
    --text-sm: 0.88rem;
    --text-md: 0.96rem;
    --text-lg: 1.08rem;
    --title-md: clamp(1.32rem, 2.6vw, 1.85rem);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: var(--text-md);
    line-height: 1.54;
    color: var(--ink);
    background: radial-gradient(circle at top left, #fef8e1, var(--bg) 55%);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.hero-bar {
    border-bottom: 1px solid #ddd;
    background: linear-gradient(100deg, #fef3c7, #d1fae5);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.brand {
    text-decoration: none;
    color: #064e3b;
    font-weight: 700;
    font-size: 1.02rem;
    font-family: var(--display-font);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-links a {
    text-decoration: none;
    color: #14532d;
    font-size: var(--text-sm);
    margin: 0 2px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #064e3b;
}

.lang-switch {
    display: flex;
    gap: 6px;
}

.chip {
    text-decoration: none;
    border: 1px solid #0f766e;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0f766e;
    font-size: 0.86rem;
    display: inline-block;
}

.chip.active {
    background: #0f766e;
    color: #fff;
}

.main-content {
    padding: 20px 0 42px;
}

.panel {
    background: var(--panel);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
    margin-bottom: 16px;
}

.intro-panel h1 {
    margin-top: 0;
    font-size: var(--title-md);
    font-family: var(--display-font);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stats-grid article {
    background: var(--accent-soft);
    border-radius: 12px;
    text-align: center;
    padding: 10px;
}

.stack-form {
    display: grid;
    gap: 10px;
    max-width: 420px;
}

input[type='text'] {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    font-size: var(--text-md);
}

textarea {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    font-size: var(--text-md);
    font-family: inherit;
    resize: vertical;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    border: none;
    border-radius: 12px;
    padding: 9px 14px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.lesson-card .btn-secondary,
.lesson-card .btn-primary {
    min-width: 110px;
    text-align: center;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.lesson-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.badge {
    font-size: 0.8rem;
    color: #075985;
    background: #e0f2fe;
    padding: 3px 7px;
    border-radius: 999px;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.meta,
.note,
.progress,
.mini {
    color: #475569;
    font-size: var(--text-sm);
}

.phrase-table-wrap {
    overflow-x: auto;
}

.phrase-table {
    width: 100%;
    border-collapse: collapse;
}

.phrase-table th,
.phrase-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 8px;
    text-align: left;
}

.quiz-form {
    display: grid;
    gap: 12px;
}

.question-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.question-card h3 {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.35;
}

.question-card label {
    font-size: var(--text-md);
    line-height: 1.45;
}

.result-panel {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.review-item {
    margin-top: 10px;
    border-left: 4px solid #94a3b8;
    padding: 8px 10px;
    background: #fff;
}

.review-item.ok {
    border-color: var(--ok);
}

.review-item.bad {
    border-color: var(--bad);
}

.feedback-list {
    margin: 12px 0 0;
    padding-left: 18px;
}

.attempt-list {
    display: grid;
    gap: 12px;
}

.speaking-form {
    max-width: 100%;
}

.chat-stream {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.chat-bubble {
    border-radius: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.chat-bubble.user {
    background: #ecfeff;
    border-color: #a5f3fc;
    margin-left: auto;
    width: min(92%, 760px);
}

.chat-bubble.agent {
    background: #fff7ed;
    border-color: #fed7aa;
    width: min(92%, 760px);
}

.chat-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 6px;
}

.chat-correction {
    white-space: pre-wrap;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    overflow-x: auto;
}

.chat-score {
    font-size: 0.9rem;
    color: #0f766e;
}

.chat-form textarea {
    min-height: 120px;
}

.talk-shell {
    display: grid;
    gap: 18px;
}

.talk-headline {
    background: linear-gradient(120deg, #ecfccb, #cffafe 60%, #fef9c3);
    border: 1px solid #d9f99d;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.talk-headline h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 3.2vw, 1.95rem);
    font-family: var(--display-font);
}

.talk-headline p {
    margin: 0;
    color: #334155;
}

.talk-stage {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.talk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.talk-meta span {
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    padding: 4px 10px;
    font-size: 0.82rem;
    color: #1e3a8a;
}

.talk-question-wrap {
    background: linear-gradient(130deg, #fff7ed, #ffedd5);
    border-radius: 14px;
    border: 1px solid #fed7aa;
    padding: 14px;
    margin-bottom: 12px;
}

.talk-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9a3412;
    margin-bottom: 6px;
}

.talk-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: #7c2d12;
}

.talk-helper {
    margin-top: 8px;
    color: #475569;
}

.talk-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.talk-result {
    margin: 12px 0;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 12px;
}

.hidden {
    display: none;
}

.active-mic {
    background: #dc2626 !important;
    color: #fff !important;
}

.game-hero-wrap {
    position: relative;
    margin-bottom: 20px;
}

.game-hero-glow {
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    background: linear-gradient(115deg, rgba(8, 145, 178, 0.22), rgba(22, 163, 74, 0.22), rgba(245, 158, 11, 0.24));
    filter: blur(20px);
}

.game-hero-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(130deg, #fffbeb, #ecfeff 45%, #ecfccb);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.game-overline {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: #0f766e;
    margin: 0 0 10px;
    font-weight: 800;
}

.game-hero-card h1,
.quiz-hero h1,
.game-play-header h1 {
    font-family: var(--display-font);
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    margin: 0 0 10px;
    line-height: 1.15;
    color: #052e2b;
}

.game-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.game-pill {
    border-radius: 999px;
    padding: 6px 11px;
    border: 1px solid rgba(14, 116, 144, 0.35);
    background: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    color: #155e75;
}

.game-hero-right {
    position: relative;
    min-height: 190px;
}

.orb {
    position: absolute;
    border-radius: 999px;
    animation: drift 8s ease-in-out infinite;
}

.orb-a {
    width: 112px;
    height: 112px;
    top: 10px;
    right: 14px;
    background: radial-gradient(circle at 30% 30%, #22d3ee, #0e7490);
}

.orb-b {
    width: 74px;
    height: 74px;
    bottom: 16px;
    right: 120px;
    background: radial-gradient(circle at 30% 30%, #facc15, #ca8a04);
    animation-delay: 0.6s;
}

.orb-c {
    width: 92px;
    height: 92px;
    bottom: 2px;
    right: 22px;
    background: radial-gradient(circle at 30% 30%, #4ade80, #15803d);
    animation-delay: 1.2s;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.premium-game-card {
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.premium-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
}

.premium-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.premium-icon {
    font-size: 1.25rem;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
}

.premium-vibe {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #334155;
}

.premium-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px 0 14px;
}

.premium-stats div {
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.premium-stats strong {
    display: block;
    font-size: 1.02rem;
}

.premium-stats span {
    font-size: 0.78rem;
    color: #475569;
}

.premium-play {
    width: 100%;
    text-align: center;
}

.tone-cyan {
    background: linear-gradient(120deg, #ecfeff, #cffafe);
}

.tone-amber {
    background: linear-gradient(120deg, #fffbeb, #fef3c7);
}

.tone-rose {
    background: linear-gradient(120deg, #fff1f2, #ffe4e6);
}

.tone-lime {
    background: linear-gradient(120deg, #f7fee7, #ecfccb);
}

.tone-sky {
    background: linear-gradient(120deg, #eff6ff, #dbeafe);
}

.tone-orange {
    background: linear-gradient(120deg, #fff7ed, #ffedd5);
}

.game-play-shell {
    display: grid;
    gap: 14px;
}

.game-play-header {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.play-chip-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.premium-stage {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(140deg, #ffffff, #f8fafc);
}

.challenge-highlight {
    border-radius: 12px;
    border: 1px dashed #7dd3fc;
    background: #ecfeff;
    padding: 10px 12px;
    color: #155e75;
    font-weight: 600;
}

.premium-options-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.premium-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    padding: 10px 12px;
    background: #ffffff;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
    cursor: pointer;
}

.premium-option:hover {
    transform: translateY(-1px);
    border-color: #38bdf8;
    background: #f0f9ff;
}

.premium-option input[type='radio'] {
    accent-color: #0891b2;
}

.premium-option:has(input:checked) {
    border-color: #0891b2;
    background: #cffafe;
}

.premium-submit {
    margin-top: 8px;
    padding: 12px 16px;
}

.swipe-topbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.swipe-meter {
    border-radius: 12px;
    border: 1px solid #fca5a5;
    background: #fff1f2;
    color: #9f1239;
    padding: 6px 12px;
    font-weight: 800;
}

.swipe-scoreboard {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.swipe-actions-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.swipe-board {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.swipe-zone {
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    min-height: 180px;
    padding: 8px;
}

.swipe-zone small {
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.swipe-left {
    background: linear-gradient(140deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
    color: #166534;
}

.swipe-right {
    background: linear-gradient(140deg, #fee2e2, #fecaca);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.swipe-center {
    border-radius: 16px;
    border: 2px solid #7dd3fc;
    background: radial-gradient(circle at 30% 20%, #ffffff, #ecfeff);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--display-font);
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 800;
    padding: 10px;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.12);
    transition: transform 0.16s ease, opacity 0.16s ease;
    user-select: none;
    text-transform: none;
}

.swipe-left-anim {
    transform: translateX(-24px) rotate(-8deg);
    opacity: 0.85;
}

.swipe-right-anim {
    transform: translateX(24px) rotate(8deg);
    opacity: 0.85;
}

.swipe-buttons {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.swipe-left-btn {
    background: #16a34a;
}

.swipe-right-btn {
    background: #fca5a5;
    color: #7f1d1d;
}

.swipe-actions-row .btn-secondary {
    background: #e0f2fe;
    color: #075985;
}

.swipe-actions-row .btn-secondary:hover,
.swipe-buttons .btn-secondary:hover,
.premium-play:hover,
.premium-submit:hover {
    filter: brightness(0.98);
}

.swipe-meter,
.game-pill,
.premium-game-card,
.premium-stage,
.game-play-header {
    backdrop-filter: blur(10px);
}

.game-pill strong {
    font-weight: 800;
}

.premium-result {
    border: 1px solid transparent;
}

.premium-ok {
    border-color: #86efac;
    background: linear-gradient(120deg, #f0fdf4, #dcfce7);
}

.premium-bad {
    border-color: #fca5a5;
    background: linear-gradient(120deg, #fef2f2, #fee2e2);
}

.quiz-hero {
    margin-bottom: 16px;
}

.quiz-hero-inner {
    border-radius: 22px;
    border: 1px solid rgba(14, 116, 144, 0.25);
    padding: 22px;
    background: linear-gradient(120deg, #ecfeff, #fffbeb 50%, #ecfccb);
    box-shadow: 0 12px 28px rgba(14, 116, 144, 0.12);
}

.premium-quiz-form {
    gap: 14px;
}

.premium-question-card {
    border-radius: 14px;
    border: 1px solid #dbeafe;
    background: #ffffff;
}

.premium-question-card h3 {
    margin: 0 0 4px;
    font-size: var(--text-lg);
}

.arcade-topbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.arcade-stage {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 16px;
    overflow: hidden;
}

.arcade-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 40%), radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.35), transparent 35%);
    pointer-events: none;
}

.arcade-left-zone,
.arcade-right-zone {
    display: none;
}

.arcade-stage.swipe .arcade-left-zone,
.arcade-stage.swipe .arcade-right-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 18%;
    min-width: 92px;
    height: 100%;
    font-family: var(--display-font);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 14px 8px;
    z-index: 1;
}

.arcade-stage.swipe .arcade-left-zone {
    left: 0;
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.95));
    color: #166534;
}

.arcade-stage.swipe .arcade-right-zone {
    right: 0;
    background: linear-gradient(180deg, rgba(254, 226, 226, 0.95), rgba(252, 165, 165, 0.95));
    color: #991b1b;
}

.arcade-stage.swipe.polarity-swipe-mode .arcade-left-zone {
    background: linear-gradient(180deg, rgba(254, 226, 226, 0.95), rgba(252, 165, 165, 0.95));
    color: #991b1b;
}

.arcade-stage.swipe.polarity-swipe-mode .arcade-right-zone {
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.95));
    color: #166534;
}

.arcade-stage.swipe .arcade-center-zone {
    margin: 0 22%;
}

.arcade-center-zone {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
}

.arcade-card {
    min-height: 160px;
    border-radius: 18px;
    border: 2px solid #7dd3fc;
    background: radial-gradient(circle at 30% 20%, #ffffff, #ecfeff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--display-font);
    font-size: clamp(1.16rem, 3.3vw, 1.6rem);
    font-weight: 800;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.12);
    user-select: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.question-prompt {
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(14, 116, 144, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: #0f172a;
    font-weight: 700;
    text-align: center;
}

.sentence-box {
    border-radius: 14px;
    border: 1px dashed #f59e0b;
    background: #fff7ed;
    padding: 14px;
    font-size: var(--text-md);
    text-align: center;
}

.tile-stack,
.option-grid {
    display: grid;
    gap: 10px;
}

.sentence-word-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.sentence-word-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.sentence-word-chip:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
    background: #f0f9ff;
}

.sentence-word-chip.wrong {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.sentence-word-chip.erased {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

.tile-stack {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}

.tile-chip,
.option-chip {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    padding: 12px 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.tile-chip:hover,
.option-chip:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
    background: #f0f9ff;
}

.tile-chip.selected {
    background: #cffafe;
    border-color: #06b6d4;
}

.option-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.arcade-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.arcade-actions .btn-primary,
.arcade-actions .btn-secondary {
    text-align: center;
}

.arcade-stage.tap-duel .arcade-left-zone,
.arcade-stage.tap-duel .arcade-right-zone,
.arcade-stage.fill-in .arcade-left-zone,
.arcade-stage.fill-in .arcade-right-zone,
.arcade-stage.speed-quiz .arcade-left-zone,
.arcade-stage.speed-quiz .arcade-right-zone,
.arcade-stage.tile-order .arcade-left-zone,
.arcade-stage.tile-order .arcade-right-zone,
.arcade-stage.flip-card .arcade-left-zone,
.arcade-stage.flip-card .arcade-right-zone {
    display: none;
}

.arcade-stage.tap-duel .arcade-center-zone,
.arcade-stage.fill-in .arcade-center-zone,
.arcade-stage.speed-quiz .arcade-center-zone,
.arcade-stage.tile-order .arcade-center-zone,
.arcade-stage.flip-card .arcade-center-zone {
    margin: 0;
}

.arcade-actions.is-hidden {
    display: none;
}

@keyframes drift {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-7px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 780px) {
    body {
        font-size: 0.93rem;
    }

    .panel {
        padding: 14px;
    }

    .main-content {
        padding-top: 14px;
    }

    .nav-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .game-hero-card {
        grid-template-columns: 1fr;
    }

    .game-play-header {
        flex-direction: column;
    }

    .swipe-board {
        grid-template-columns: 1fr;
    }

    .swipe-zone {
        min-height: 80px;
    }

    .swipe-buttons {
        grid-template-columns: 1fr;
    }

    .arcade-stage.swipe .arcade-center-zone {
        margin: 0;
    }

    .arcade-stage.swipe .arcade-left-zone,
    .arcade-stage.swipe .arcade-right-zone {
        position: static;
        width: auto;
        min-width: 0;
        height: auto;
        writing-mode: horizontal-tb;
        margin-bottom: 8px;
    }

    .arcade-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}