*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #090a0f;
    --bg-soft: #101218;
    --panel: #14161d;
    --panel-2: #1a1d25;
    --text: #f6f7fb;
    --muted: #bcc1cf;
    --line: rgba(255, 255, 255, 0.09);
    --red: #ff2a2a;
    --red-2: #c50000;
    --red-soft: rgba(255, 42, 42, 0.14);
    --green: #25b26f;
    --amber: #ffb020;
    --blue: #50a7ff;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 26px;
    --radius-sm: 18px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(circle at top left, rgba(255,42,42,0.11), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255,42,42,0.10), transparent 30%),
        linear-gradient(180deg, #08090d, #0d1016 55%, #0b0d12);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
}

.topbar,
.admin-top {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(8, 9, 13, 0.86);
    border-bottom: 1px solid var(--line);
}

.nav-wrap,
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand img {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand span {
    color: var(--muted);
    font-size: 0.9rem;
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a,
.admin-nav a {
    color: var(--muted);
    font-weight: 700;
    transition: color 0.18s ease;
}

.site-nav a:hover,
.admin-nav a:hover,
.text-link:hover,
.link-button:hover {
    color: var(--white);
}

.nav-pill,
.mini-pill,
.day-chip,
.status,
.social-pill,
.award-pill {
    border-radius: 999px;
    padding: 0.48rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-pill,
.btn-primary,
.day-chip {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--red), var(--red-2));
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 16px;
    padding: 0.95rem 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-secondary,
.social-pill,
.combo-btn,
.reaction-pad {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.06);
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    font-weight: 700;
}

.announcement {
    background: linear-gradient(90deg, rgba(255,42,42,0.18), rgba(255,42,42,0.02));
    border-bottom: 1px solid rgba(255,42,42,0.18);
}

.announcement .container {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0;
}

.announcement span {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--red-soft);
    color: #ffdada;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.announcement p {
    margin: 0;
    color: #f5dede;
}

.hero,
.section {
    padding: 4rem 0;
}

.hero-home {
    padding-top: 4.5rem;
}

.hero-grid,
.split-grid,
.form-layout,
.footer-grid,
.strip-grid,
.community-grid,
.class-grid,
.pricing-grid,
.stats-grid,
.games-grid,
.boxer-card-grid,
.schedule-preview-grid,
.schedule-grid,
.event-grid,
.profile-stat-grid {
    display: grid;
    gap: 1.3rem;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.hero-copy h1,
.section-head h1,
.section-head h2,
.form-intro h1,
.login-card h1,
.profile-copy h1 {
    margin: 0 0 0.7rem;
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    text-shadow: 0 12px 30px rgba(255, 42, 42, 0.18);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.section-head h1,
.section-head h2,
.form-intro h1,
.profile-copy h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-copy,
.lead {
    font-size: 1.15rem;
    color: #f1dede;
    max-width: 52rem;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffb6b6;
    font-weight: 800;
}

.hero-actions,
.form-actions,
.quick-actions,
.social-row,
.chip-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-stat,
.panel,
.class-card,
.community-card,
.price-card,
.stat-card,
.info-card,
.logo-card,
.punch-card,
.login-card,
.day-column,
.schedule-day,
.session-card,
.event-card,
.boxer-card,
.search-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hero-stat,
.stat-card {
    padding: 1rem;
}

.hero-stat strong,
.stat-card strong {
    display: block;
    font-size: 1.35rem;
}

.hero-stat span,
.muted,
.table-note,
.list-row span,
.list-row small,
.detail-grid span,
small {
    color: var(--muted);
}

.hero-art {
    display: grid;
    gap: 1rem;
}

.logo-card {
    padding: 1.2rem;
    background:
        linear-gradient(165deg, rgba(255,42,42,0.18), rgba(255,255,255,0.03)),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.logo-card img {
    width: min(100%, 520px);
    margin: 0 auto;
}

.art-badges {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.art-badges span,
.mini-pill,
.social-pill {
    background: rgba(255,255,255,0.07);
    color: var(--white);
}

.punch-card,
.panel,
.info-card,
.class-card,
.community-card,
.price-card,
.day-column,
.schedule-day,
.event-card,
.boxer-card,
.login-card {
    padding: 1.2rem 1.25rem;
}

.strip {
    padding: 1rem 0 0;
}

.strip-grid {
    grid-template-columns: repeat(3, 1fr);
}

.strip-grid article {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    padding: 1rem;
    border-radius: 20px;
}

.section-dark {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,42,42,0.03));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.check-list,
.steps,
.footer-links {
    padding-left: 1.1rem;
    margin: 0;
}

.check-list li,
.steps li,
.footer-links li {
    margin: 0.55rem 0;
}

.text-link {
    color: #ffc3c3;
    font-weight: 700;
}

.community-grid,
.pricing-grid,
.stats-grid,
.games-grid,
.boxer-card-grid,
.event-grid {
    grid-template-columns: repeat(3, 1fr);
}

.boxer-card-grid .boxer-card {
    overflow: hidden;
}

.community-card {
    min-height: 220px;
}

.mini-plan-grid,
.day-session-stack,
.list-stack,
.faq-list,
.award-wall,
.boxer-directory,
.checkbox-grid {
    display: grid;
    gap: 0.9rem;
}

.mini-plan {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
}

.class-card h3,
.community-card h3,
.price-card h2,
.panel h2,
.day-column h3,
.schedule-day h2,
.event-card h3,
.boxer-card h2,
.boxer-card h3,
.game-panel h2 {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.45rem;
}

.class-time,
.price {
    font-size: 1.28rem;
    font-weight: 800;
    margin: 0.25rem 0;
}

.panel-accent {
    background:
        radial-gradient(circle at top right, rgba(255,42,42,0.24), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.split-grid {
    grid-template-columns: repeat(2, 1fr);
}

.form-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.form-intro {
    position: sticky;
    top: 6rem;
}

.site-form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

label span {
    color: #f3eded;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    color: var(--white);
    background: rgba(255,255,255,0.04);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255, 42, 42, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 42, 42, 0.12);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.full {
    grid-column: 1 / -1;
}

.check-stack {
    display: grid;
    gap: 0.8rem;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font-weight: 600;
}

.checkbox input {
    width: auto;
    margin-top: 0.15rem;
}

.checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0.5rem;
}

.checkbox-compact {
    padding: 0.75rem 0.9rem;
}

.info-card strong,
.panel h2,
.login-card h1 {
    display: block;
}

.alert {
    margin-top: 1rem;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    font-weight: 700;
}

.alert-success {
    background: rgba(37,178,111,0.15);
    color: #d4ffe7;
    border-color: rgba(37,178,111,0.35);
}

.alert-error {
    background: rgba(255,42,42,0.16);
    color: #ffe2e2;
    border-color: rgba(255,42,42,0.34);
}

.search-panel {
    margin-bottom: 1.2rem;
}

.table-search {
    max-width: 280px;
}

.schedule-preview-grid {
    grid-template-columns: repeat(5, 1fr);
}

.day-column {
    padding: 1rem;
}

.day-column-head,
.schedule-day-head,
.class-top,
.panel-head,
.list-row,
.footer-bottom,
.session-meta,
.boxer-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mini-class-card,
.award-pill,
.game-display,
.game-score,
.empty-state,
.session-card,
.event-card.compact {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
}

.mini-class-card {
    padding: 0.85rem;
    margin-top: 0.75rem;
}

.mini-class-card strong,
.event-card.compact h3 {
    display: block;
}

.schedule-grid {
    grid-template-columns: repeat(2, 1fr);
}

.session-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
}

.session-card-featured {
    background:
        linear-gradient(160deg, rgba(255,42,42,0.12), rgba(255,255,255,0.03)),
        rgba(255,255,255,0.04);
}

.session-time strong {
    display: block;
    font-size: 1.2rem;
}

.session-time span {
    color: var(--muted);
    font-size: 0.95rem;
}

.event-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.event-card.compact {
    padding: 1rem;
}

.boxer-directory {
    grid-template-columns: repeat(2, 1fr);
}

.boxer-card {
    overflow: hidden;
}

.boxer-card-full {
    display: grid;
    grid-template-columns: 200px 1fr;
}

.boxer-card-body {
    display: grid;
    gap: 0.9rem;
}

.boxer-photo {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: rgba(255,255,255,0.04);
}

.boxer-photo-large {
    height: 100%;
    min-height: 360px;
    border-radius: var(--radius);
}

.boxer-avatar {
    width: 100%;
    min-height: 230px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(255,42,42,0.28), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
    font-size: 4rem;
    letter-spacing: 0.08em;
    color: var(--white);
}

.boxer-avatar-large {
    min-height: 360px;
    border-radius: var(--radius);
    font-size: clamp(4rem, 7vw, 7rem);
}

.boxer-stats,
.profile-stat-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, 1fr);
}

.boxer-stats div,
.profile-stat-grid .stat-card {
    text-align: center;
}

.boxer-stats strong {
    display: block;
    font-size: 1.35rem;
}

.award-wall {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.award-pill {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: none;
}

.award-pill span {
    font-size: 1.35rem;
}

.award-pill strong {
    font-size: 0.95rem;
}

.award-pill small {
    display: block;
}

.award-pill-large {
    padding: 0.9rem 1rem;
    justify-content: flex-start;
}

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

.profile-hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
    align-items: stretch;
}

.profile-copy {
    display: grid;
    align-content: center;
    gap: 0.9rem;
}

.profile-quote {
    margin: 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid rgba(255,42,42,0.5);
    background: rgba(255,255,255,0.03);
    border-radius: 0 18px 18px 0;
    color: #fff1f1;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1rem;
}

.detail-grid div {
    display: grid;
    gap: 0.25rem;
}

.game-panel .game-stage {
    display: grid;
    gap: 1rem;
}

.game-display {
    min-height: 96px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    background:
        radial-gradient(circle at top, rgba(255,42,42,0.24), transparent 55%),
        rgba(255,255,255,0.04);
}

.game-score {
    padding: 0.9rem 1rem;
    font-weight: 700;
    text-align: center;
}

.combo-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.combo-btn {
    min-height: 62px;
    font-size: 1.25rem;
    border-radius: 18px;
    font-weight: 800;
    cursor: pointer;
}

.reaction-pad {
    width: 100%;
    min-height: 180px;
    border-radius: 24px;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.reaction-pad.is-ready {
    background: rgba(255,255,255,0.05);
}

.reaction-pad.is-go {
    background: linear-gradient(135deg, rgba(37,178,111,0.95), rgba(20,140,82,0.95));
    border-color: rgba(37,178,111,0.8);
}

.game-stage button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state h3 {
    margin-top: 0;
}

.gap-top {
    margin-top: 1.5rem;
}

.gap-bottom {
    margin-bottom: 1.5rem;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.login-shell {
    width: min(480px, calc(100% - 2rem));
}

.login-card {
    padding: 2rem;
}

.login-logo,
.footer-logo {
    width: 110px;
    height: auto;
    margin-bottom: 1rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    margin-top: 2rem;
}

.footer-grid {
    grid-template-columns: 1.25fr 0.8fr 0.8fr;
    padding: 2rem 0;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin: 0.6rem 0;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1rem 0 1.6rem;
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(255,42,42,0.08), transparent 22%),
        linear-gradient(180deg, #090b10, #0b0e13);
}

.admin-main {
    padding: 1.5rem 0 4rem;
}

.admin-section {
    display: grid;
    gap: 1rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.admin-table th,
.admin-table td {
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #ffe1e1;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.table-actions-stacked {
    flex-direction: column;
    align-items: flex-end;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #ffd2d2;
    font-weight: 700;
    cursor: pointer;
}

.danger-link {
    color: #ff9a9a;
}

.status {
    background: rgba(255,255,255,0.07);
    color: var(--white);
}

.status-new,
.status-pending,
.status-follow_up,
.status-overdue,
.status-draft {
    background: rgba(255,176,32,0.16);
    color: #ffd995;
}

.status-paid,
.status-approved {
    background: rgba(37,178,111,0.16);
    color: #d4ffe7;
}

.status-reviewed {
    background: rgba(80,167,255,0.16);
    color: #d6edff;
}

.status-waived {
    background: rgba(255,255,255,0.08);
    color: #f0f0f0;
}

.list-row {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
}

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

.subhead {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    color: #ffe1e1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.photo-preview-wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.photo-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.chip-row {
    margin-top: 1rem;
}

.social-pill {
    padding: 0.7rem 0.95rem;
    letter-spacing: 0.03em;
    text-transform: none;
    border-radius: 16px;
}

@media (max-width: 1080px) {
    .hero-grid,
    .profile-hero,
    .form-layout,
    .split-grid,
    .boxer-card-full,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .community-grid,
    .pricing-grid,
    .games-grid,
    .stats-grid,
    .boxer-card-grid,
    .schedule-preview-grid,
    .event-strip,
    .schedule-grid,
    .boxer-directory,
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-intro {
        position: static;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav:not(.site-nav-inline) {
        display: none;
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + 0.7rem);
        padding: 1rem;
        border-radius: 20px;
        border: 1px solid var(--line);
        background: rgba(10, 11, 15, 0.98);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav:not(.site-nav-inline).is-open {
        display: flex;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-meta,
    .community-grid,
    .pricing-grid,
    .games-grid,
    .stats-grid,
    .boxer-card-grid,
    .schedule-preview-grid,
    .event-strip,
    .schedule-grid,
    .boxer-directory,
    .event-grid,
    .strip-grid,
    .detail-grid,
    .profile-stat-grid,
    .boxer-stats,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .session-card {
        grid-template-columns: 1fr;
    }

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

    .announcement .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

    .brand strong {
        font-size: 0.95rem;
    }

    .table-actions,
    .table-actions-stacked {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .admin-nav {
        gap: 0.75rem;
    }

    .combo-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        width: min(var(--container), calc(100% - 1rem));
    }

    .hero,
    .section {
        padding: 3rem 0;
    }
}


.feature-grid,
.template-grid,
.calendar-preview-grid {
    display: grid;
    gap: 1.3rem;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card h3,
.template-card h3,
.calendar-day-card h3 {
    margin: 0.5rem 0;
}

.logo-card-strong {
    background:
        radial-gradient(circle at top right, rgba(255,42,42,0.22), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.punch-card-launch {
    border: 1px solid rgba(255, 42, 42, 0.22);
}

.calendar-preview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.calendar-day-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.calendar-day-card-full {
    min-height: 100%;
}

.calendar-day-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.85rem;
}

.calendar-day-head h3 {
    font-size: 1.05rem;
}

.calendar-day-head span {
    color: var(--muted);
    font-size: 0.84rem;
}

.calendar-slot {
    display: grid;
    gap: 0.22rem;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.7rem;
}

.calendar-slot-featured {
    background: rgba(255,42,42,0.12);
    border-color: rgba(255,42,42,0.2);
}

.calendar-slot span,
.calendar-slot small {
    color: var(--muted);
}

.template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-card {
    border-radius: var(--radius);
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.template-tags span {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-size: 0.85rem;
}

.social-row-spaced {
    margin-top: 1rem;
}

.empty-state-rich {
    margin-bottom: 1rem;
}

.narrow-stack {
    max-width: 860px;
}

.prose-panel h2 {
    margin-top: 0;
}

.prose-panel h2 + p {
    margin-top: -0.2rem;
}

.prose-panel code {
    background: rgba(255,255,255,0.07);
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
}

@media (max-width: 1050px) {
    .feature-grid,
    .template-grid,
    .calendar-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .feature-grid,
    .template-grid,
    .calendar-preview-grid {
        grid-template-columns: 1fr;
    }
}

.game-hub-intro {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-hub-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.games-grid-advanced {
    align-items: start;
}

.game-panel-wide {
    grid-column: span 2;
}

.combo-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-height: 48px;
}

.combo-chip {
    min-width: 40px;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 800;
}

.combo-chip.is-active {
    background: rgba(255,42,42,0.16);
    border-color: rgba(255,42,42,0.45);
    box-shadow: 0 0 0 1px rgba(255,42,42,0.18), 0 0 20px rgba(255,42,42,0.14);
}

.combo-chip.is-done {
    opacity: 0.78;
}

.combo-chip-empty {
    width: 100%;
    justify-content: center;
    color: var(--muted);
}

.combo-btn {
    position: relative;
    overflow: hidden;
}

.combo-btn.is-hit {
    transform: translateY(-2px);
    border-color: rgba(37,178,111,0.8);
}

.combo-btn.is-miss {
    border-color: rgba(255,42,42,0.9);
    box-shadow: 0 0 0 1px rgba(255,42,42,0.28), 0 0 18px rgba(255,42,42,0.16);
}

.combo-btn.is-flash {
    animation: atlasComboFlash 0.54s ease-in-out;
}

@keyframes atlasComboFlash {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255,42,42,0);
    }
    25% {
        transform: scale(1.03);
        box-shadow: 0 0 0 2px rgba(255,42,42,0.18), 0 0 18px rgba(255,42,42,0.22);
        background: rgba(255,42,42,0.15);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.03);
        box-shadow: 0 0 0 2px rgba(255,42,42,0.14), 0 0 14px rgba(255,42,42,0.18);
        background: rgba(255,42,42,0.12);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255,42,42,0);
    }
}

.callout-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    font-weight: 700;
}

.toggle-pill input {
    accent-color: #ff2a2a;
}

.story-stage {
    gap: 1.1rem;
}

.story-header,
.duel-status-grid,
.story-stats,
.duel-scoreboard {
    display: grid;
    gap: 0.9rem;
}

.story-header {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.story-week,
.story-ending-hint {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-weight: 700;
}

.story-stats {
    grid-template-columns: repeat(4, 1fr);
}

.story-stats div,
.duel-stat,
.duel-fighter,
.duel-round {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.story-stats span,
.duel-stat span,
.duel-fighter span,
.duel-round span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.story-stats strong,
.duel-stat strong,
.duel-fighter strong,
.duel-round strong,
.duel-fighter em {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 900;
}

.story-display {
    min-height: 150px;
    align-items: start;
    text-align: left;
}

.story-choices {
    display: grid;
    gap: 0.8rem;
}

.story-choice {
    display: grid;
    gap: 0.4rem;
    text-align: left;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.story-choice:hover {
    transform: translateY(-2px);
    border-color: rgba(255,42,42,0.38);
    background: rgba(255,42,42,0.08);
}

.story-choice span {
    color: var(--muted);
    font-size: 0.95rem;
}

.story-log {
    display: grid;
    gap: 0.65rem;
}

.story-log-item {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid rgba(255,42,42,0.42);
    color: #fff0f0;
}

.duel-stage {
    gap: 1rem;
}

.duel-status-grid,
.duel-scoreboard {
    grid-template-columns: repeat(4, 1fr);
}

.hero-actions-tight {
    gap: 0.7rem;
    flex-wrap: wrap;
}

.duel-display {
    min-height: 120px;
}

.duel-pad {
    min-height: 140px;
}

.duel-fighter,
.duel-round {
    text-align: center;
}

.duel-fighter em {
    display: block;
    font-size: 2rem;
    margin-top: 0.25rem;
}

.microcopy {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .game-panel-wide {
        grid-column: span 1;
    }

    .story-stats,
    .duel-status-grid,
    .duel-scoreboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .story-stats,
    .duel-status-grid,
    .duel-scoreboard {
        grid-template-columns: 1fr;
    }
}

/* Final production polish */
.share-hero-card,
.sound-deck-panel,
.spotlight-carousel-panel {
    display: grid;
    gap: 1rem;
}

.sound-deck-controls,
.filter-chip-row,
.punch-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.punch-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    font-size: 0.9rem;
}

.punch-legend strong {
    display: inline-grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--white);
}

.block-meter {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.3rem;
    min-height: 0.8rem;
}

.meter-block {
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.05);
}

.meter-block.is-on {
    background: linear-gradient(90deg, var(--red), #ff6b4d);
    border-color: transparent;
    box-shadow: 0 0 18px rgba(255,42,42,0.28);
}

.story-stats.block-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.story-stats.block-stats div {
    display: grid;
    gap: 0.4rem;
}

.story-stats.block-stats span,
.duel-meters em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.9rem;
}

.story-stats.block-stats strong {
    font-size: 1.1rem;
}

.spotlight-carousel {
    position: relative;
}

.spotlight-track {
    position: relative;
    min-height: 300px;
}

.spotlight-slide {
    display: none;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.spotlight-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--red);
}

.boxer-avatar-large {
    width: 100%;
    min-height: 250px;
    font-size: 3rem;
}

.filter-chip-row .award-chip {
    cursor: pointer;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
}

.filter-chip-row .award-chip.is-active {
    background: var(--red-soft);
    border-color: rgba(255,42,42,0.38);
}

.combo-chip {
    display: inline-grid;
    gap: 0.15rem;
    justify-items: center;
}

.combo-chip strong {
    font-size: 1rem;
}

.combo-chip small {
    color: var(--muted);
    font-size: 0.72rem;
}

.combo-btn.is-flash {
    animation: atlasFlash 0.6s ease-in-out 1;
}

@keyframes atlasFlash {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,42,42,0); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255,42,42,0.16); background: rgba(255,42,42,0.18); }
}

.duel-style-row {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
}

.duel-style-row label {
    display: grid;
    gap: 0.5rem;
    color: var(--muted);
}

.duel-style-row select {
    width: 100%;
}

.duel-tip {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--muted);
}

.duel-scoreboard-tactical {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.duel-fighter-card {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.duel-fighter-card strong,
.duel-stat strong {
    display: block;
    font-size: 1.15rem;
}

.duel-fighter-card small,
.duel-stat span {
    display: block;
    color: var(--muted);
}

.duel-meters {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.tactical-round {
    display: grid;
    place-items: center;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.duel-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.duel-actions-grid .story-choice {
    text-align: left;
}

.duel-actions-grid .story-choice[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.duel-log .story-log-item {
    border-left-color: rgba(255,42,42,0.38);
}

.games-page .game-panel p {
    max-width: 70ch;
}

@media (max-width: 900px) {
    .story-stats.block-stats,
    .duel-actions-grid,
    .duel-scoreboard-tactical,
    .duel-style-row,
    .spotlight-slide.is-active {
        grid-template-columns: 1fr;
    }

    .spotlight-track {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .sound-deck-controls,
    .filter-chip-row,
    .punch-legend {
        gap: 0.5rem;
    }

    .spotlight-slide {
        padding: 0.8rem;
    }

    .duel-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Final game polish: stronger mobile spacing, visual feedback and more gamified layouts */
.story-choice strong,
.story-choice span,
.story-choice small,
.duel-move-card strong,
.duel-move-card span,
.duel-move-card small {
    display: block;
    width: 100%;
    white-space: normal;
}

.story-choice strong,
.duel-move-card strong {
    font-size: 1.15rem;
    line-height: 1.15;
}

.story-choice span,
.duel-move-card span {
    margin-top: 0.35rem;
    line-height: 1.45;
}

.story-choice small,
.duel-move-card small {
    margin-top: 0.45rem;
    color: #ffe1e1;
    font-size: 0.84rem;
    letter-spacing: 0.02em;
}

.story-choice,
.duel-move-card,
.story-choice-drill {
    gap: 0.15rem;
    align-content: start;
    min-height: 0;
}

.story-choice.is-selected,
.story-choice.is-pressed,
.story-choice:hover,
.duel-move-card.is-selected,
.story-choice-drill.is-pressed {
    border-color: rgba(255,42,42,0.48);
    background: linear-gradient(180deg, rgba(255,42,42,0.14), rgba(255,255,255,0.05));
    box-shadow: 0 0 0 1px rgba(255,42,42,0.18), 0 18px 30px rgba(0,0,0,0.22);
}

.story-choice.is-bad {
    border-color: rgba(255,120,120,0.55);
}

.story-choice-locked {
    cursor: default;
    opacity: 0.9;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
    gap: 1rem;
    align-items: start;
}

.story-scene-card,
.story-drill-card {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    display: grid;
    gap: 1rem;
}

.story-scene-top,
.story-drill-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.story-scene-mode,
.story-drill-bonus {
    color: #ffe1e1;
    font-weight: 800;
    font-size: 0.92rem;
}

.story-visual-stage {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 26px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(14,17,24,0.94), rgba(7,9,14,0.94));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: end;
}

.story-visual-stage[data-story-scene-style="camp"] {
    background: linear-gradient(180deg, rgba(18,22,31,0.94), rgba(10,13,18,0.95));
}

.story-visual-stage[data-story-scene-style="spar"] {
    background: linear-gradient(180deg, rgba(19,16,29,0.95), rgba(10,12,20,0.95));
}

.story-visual-stage[data-story-scene-style="road"] {
    background: linear-gradient(180deg, rgba(14,18,26,0.95), rgba(6,10,15,0.95));
}

.story-visual-stage[data-story-scene-style="show"] {
    background: linear-gradient(180deg, rgba(31,14,20,0.95), rgba(11,11,18,0.95));
}

.story-visual-stage[data-story-scene-style="mitts"] {
    background: linear-gradient(180deg, rgba(20,12,25,0.95), rgba(8,10,16,0.95));
}

.story-visual-stage[data-story-scene-style="club"] {
    background: linear-gradient(180deg, rgba(15,19,27,0.95), rgba(9,11,17,0.95));
}

.story-visual-stage[data-story-scene-style="final"] {
    background: linear-gradient(180deg, rgba(16,16,31,0.95), rgba(8,9,16,0.95));
}

.story-visual-stage[data-story-scene-style="fight"] {
    background: linear-gradient(180deg, rgba(31,10,12,0.95), rgba(12,9,15,0.95));
}

.story-visual-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,42,42,0.2), transparent 42%),
        linear-gradient(180deg, transparent 48%, rgba(255,255,255,0.03) 49%, transparent 50%);
    opacity: 0.9;
    pointer-events: none;
}

.story-fighter-card {
    position: relative;
    z-index: 1;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    display: grid;
    gap: 0.25rem;
}

.story-fighter-name {
    color: var(--muted);
    font-size: 0.84rem;
}

.story-fighter-card strong {
    font-size: 1rem;
}

.story-fighter-card small {
    color: #ffe1e1;
}

.story-art-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.8rem;
    justify-items: center;
}

.story-art {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 4rem;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), rgba(255,42,42,0.12));
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 18px 30px rgba(0,0,0,0.22);
}

.story-progress-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
}

.story-progress-dot {
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.06);
}

.story-progress-dot.is-complete {
    background: rgba(255,42,42,0.45);
}

.story-progress-dot.is-current {
    background: linear-gradient(90deg, var(--red), #ff7a58);
    box-shadow: 0 0 14px rgba(255,42,42,0.28);
}

.story-drill-copy {
    margin: 0;
    color: var(--muted);
}

.story-drill-arena {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    display: grid;
    gap: 1rem;
}

.story-drill-center,
.duel-last-move {
    min-height: 66px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    font-weight: 800;
}

.story-drill-center.is-live,
.game-display.is-live,
.story-drill-center.is-flashlive {
    background: linear-gradient(180deg, rgba(255,42,42,0.18), rgba(255,255,255,0.06));
    border-color: rgba(255,42,42,0.4);
}

.story-drill-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.story-choice-drill {
    min-height: 96px;
}

.duel-battle-lane {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 100px;
    gap: 1rem;
    align-items: stretch;
}

.duel-avatar {
    min-height: 160px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.duel-middle-stage {
    display: grid;
    gap: 0.8rem;
}

.duel-last-move {
    min-height: 58px;
    color: #fff4f4;
}

.duel-log .story-log-item.is-fresh {
    border-left-color: rgba(255,42,42,0.78);
    background: rgba(255,42,42,0.08);
}

.duel-move-card {
    min-height: 130px;
}

.meter-block.is-target {
    background: rgba(255,120,120,0.2);
    border-color: rgba(255,120,120,0.38);
}

@media (max-width: 980px) {
    .story-layout,
    .duel-battle-lane {
        grid-template-columns: 1fr;
    }

    .story-visual-stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .story-drill-controls,
    .duel-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .story-scene-card,
    .story-drill-card {
        padding: 0.85rem;
    }

    .story-art {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .story-choice,
    .duel-move-card,
    .story-choice-drill {
        padding: 0.95rem 0.9rem;
    }

    .duel-avatar {
        min-height: 92px;
    }
}


.button-stack{
    display:flex;
    flex-direction:column;
    gap:.75rem;
    margin-top:1rem;
}

.admin-guide-grid{
    display:grid;
    gap:1.25rem;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}

.tip-list{
    display:grid;
    gap:.65rem;
    padding-left:1.1rem;
    margin:0;
}

.kpi-strip{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
    margin-top:1rem;
}

.kpi-chip{
    padding:.55rem .85rem;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);
    color:var(--text-soft);
}

/* WebsiteCreated final boxing polish */
.arcade-launcher-panel,
.arcade-reward-panel {
    display:grid;
    gap:1rem;
}

.arcade-launcher {
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
}

.arcade-tab {
    border:1px solid var(--line);
    background:rgba(255,255,255,.04);
    color:var(--white);
    border-radius:999px;
    padding:.8rem 1rem;
    font-weight:800;
    cursor:pointer;
}

.arcade-tab.is-active,
.arcade-tab:hover {
    background:linear-gradient(180deg, rgba(255,42,42,.18), rgba(255,255,255,.05));
    border-color:rgba(255,42,42,.45);
}

.arcade-stage {
    display:block;
}

.arcade-stage .game-panel[hidden] {
    display:none !important;
}

.story-choice-title,
.story-choice-copy,
.story-choice-tag,
.duel-move-card strong,
.duel-move-card span,
.duel-move-card small {
    display:block;
    width:100%;
}

.story-choice-title,
.duel-move-card strong {
    font-size:1.1rem;
    font-weight:900;
    line-height:1.2;
    margin-bottom:.35rem;
}

.story-choice-copy,
.duel-move-card span {
    line-height:1.45;
    color:var(--text-soft);
}

.story-choice-tag,
.duel-move-card small {
    margin-top:.5rem;
    color:#ffe1e1;
    letter-spacing:.02em;
    font-size:.82rem;
}

.story-choices-wrap {
    display:grid;
    gap:.75rem;
}

.story-choices-head h3 {
    margin:.15rem 0 0;
}

.story-choice,
.story-choice-drill,
.duel-move-card {
    text-align:left;
    align-content:start;
}

.story-visual-stage {
    min-height:280px;
}

.story-scenery {
    position:absolute;
    inset:0;
    pointer-events:none;
}

.story-scenery-floor {
    position:absolute;
    left:0; right:0; bottom:0;
    height:24%;
    background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.06));
}

.story-scenery-post,
.story-scenery-bag {
    position:absolute;
    bottom:20%;
    width:18px;
    height:92px;
    border-radius:12px;
    background:rgba(255,255,255,.16);
}

.story-scenery-post { left:10%; }
.story-scenery-bag { right:14%; width:42px; height:86px; background:linear-gradient(180deg, rgba(255,42,42,.35), rgba(255,255,255,.12)); }

.story-scenery-rope {
    position:absolute;
    left:10%; right:45%;
    height:3px;
    background:rgba(255,255,255,.32);
}
.story-scenery-rope-top { bottom:54%; }
.story-scenery-rope-mid { bottom:42%; }

.story-scenery-sun {
    position:absolute;
    top:14%; left:50%; transform:translateX(-50%);
    width:72px; height:72px; border-radius:999px;
    background:radial-gradient(circle, rgba(255,120,90,.95), rgba(255,42,42,.18) 62%, transparent 64%);
}

.story-scenery-city {
    position:absolute;
    left:34%; right:34%; bottom:24%;
    height:64px;
    background:linear-gradient(90deg, rgba(255,255,255,.1) 0 8%, transparent 8% 14%, rgba(255,255,255,.08) 14% 24%, transparent 24% 30%, rgba(255,255,255,.14) 30% 42%, transparent 42% 48%, rgba(255,255,255,.08) 48% 60%, transparent 60% 66%, rgba(255,255,255,.1) 66% 80%, transparent 80% 100%);
    mask:linear-gradient(180deg, transparent 0 12%, #000 12%);
    opacity:.55;
}

.story-scenery-cone {
    position:absolute;
    right:6%; bottom:20%;
    width:28px; height:34px;
    clip-path:polygon(50% 0, 100% 100%, 0 100%);
    background:rgba(255,120,90,.9);
}

.story-visual-stage[data-story-scene-style="road"] .story-scenery-rope,
.story-visual-stage[data-story-scene-style="road"] .story-scenery-post,
.story-visual-stage[data-story-scene-style="road"] .story-scenery-bag,
.story-visual-stage[data-story-scene-style="road"] .story-scenery-cone { display:none; }

.story-visual-stage[data-story-scene-style="fight"] .story-scenery-city,
.story-visual-stage[data-story-scene-style="fight"] .story-scenery-bag { display:none; }

.story-visual-stage[data-story-scene-style="club"] .story-scenery-sun { width:54px; height:54px; top:12%; }

.story-fighter-card,
.story-art-wrap {
    z-index:2;
}

.story-drill-card .hero-actions { justify-content:flex-start; }

.home-gateway {
    display:grid;
    gap:1rem;
    grid-template-columns:repeat(3, minmax(0,1fr));
}

.gateway-card {
    display:grid;
    gap:.6rem;
}

.gateway-card h3 { margin:0; }

.hero-note {
    padding:.95rem 1rem;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
    color:#fff1f1;
}

.section-soft {
    background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

@media (max-width:900px) {
    .home-gateway { grid-template-columns:1fr; }
}

.checkbox-line{display:flex;align-items:center;gap:.7rem;}

/* === WebsiteCreated final public pass === */
:root {
    --bg: #f7f7fb;
    --bg-soft: #f1f4f8;
    --panel: #ffffff;
    --panel-2: #fff7f6;
    --text: #171923;
    --text-soft: #4a5568;
    --muted: #657084;
    --line: rgba(15, 23, 42, 0.10);
    --red: #e6332a;
    --red-2: #b91814;
    --red-soft: rgba(230, 51, 42, 0.12);
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(230,51,42,0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(230,51,42,0.08), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f6f7fb 60%, #f2f4f9 100%);
}

.topbar,
.admin-top {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-wrap-stacked {
    display: grid;
    gap: 0.85rem;
    padding-block: 0.85rem;
}

.nav-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-actions-public {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-nav-inline {
    display: flex !important;
    gap: 0.7rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.site-nav-inline::-webkit-scrollbar {
    display: none;
}

.site-nav-inline a {
    flex: 0 0 auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    background: #fff;
    color: var(--text);
}

.site-nav-inline a:hover {
    background: #fff5f4;
    border-color: rgba(230, 51, 42, 0.25);
}

.menu-toggle { display: none !important; }

.announcement {
    background: linear-gradient(90deg, rgba(230,51,42,0.10), rgba(230,51,42,0.03));
    border-bottom: 1px solid rgba(230,51,42,0.14);
}

.announcement p, .announcement span {
    color: #7c1c18;
}

.btn-secondary,
.social-pill,
.combo-btn,
.reaction-pad,
.arcade-tab,
.toggle-pill {
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

.btn-small {
    padding: 0.78rem 1rem;
    border-radius: 14px;
}

.hero-home-lite {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.hero-grid-compact {
    align-items: center;
}

.hero-copy .lead {
    color: var(--text);
}

.hero-note,
.section-copy,
.muted,
.hero-copy p:not(.lead) {
    color: var(--text-soft);
}

.hero-art-light {
    display: flex;
    justify-content: center;
}

.hero-emblem-card {
    width: min(100%, 360px);
    background: linear-gradient(180deg, #fff, #fff5f4);
    border-radius: 30px;
    border: 1px solid rgba(230, 51, 42, 0.14);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.hero-emblem-card img {
    width: min(180px, 60%);
    margin: 0 auto 1rem;
}

.hero-emblem-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.hero-emblem-copy span,
.hero-facts span,
.route-kicker,
.mini-pill,
.award-chip,
.toggle-pill span,
.combo-chip small {
    color: var(--text-soft);
}

.hero-facts {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-facts span {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: #fff;
}

.section-tight {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.quick-route-grid,
.schedule-teaser-grid,
.spotlight-mini-grid {
    display: grid;
    gap: 1rem;
}

.quick-route-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-card {
    display: grid;
    gap: 0.4rem;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: var(--shadow);
}

.route-card strong {
    font-size: 1.05rem;
}

.route-card small {
    color: var(--text-soft);
    line-height: 1.45;
}

.route-card-primary {
    background: linear-gradient(135deg, #fff3f2, #ffffff);
    border-color: rgba(230, 51, 42, 0.18);
}

.section-soft,
.section-dark,
.section-cta {
    background: transparent;
}

.panel,
.price-card,
.calendar-day-card,
.event-card,
.session-card,
.login-card,
.site-form,
.template-card,
.boxer-card,
.admin-card {
    background: #fff;
    color: var(--text);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow);
}

.panel-accent,
.panel-accent-light {
    background: linear-gradient(180deg, #fff7f6, #ffffff);
}

.schedule-teaser-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 1rem 0 1.2rem;
}

.schedule-teaser-card,
.event-list-item,
.spotlight-mini-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: #fbfcff;
}

.schedule-teaser-card span,
.schedule-teaser-card small,
.event-list-item small,
.spotlight-mini-card small {
    display: block;
    color: var(--text-soft);
    margin-top: 0.25rem;
}

.event-list-compact {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 1.2rem;
}

.spotlight-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0 1.2rem;
}

.spotlight-mini-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.85rem;
    align-items: center;
}

.spotlight-mini-card img,
.spotlight-mini-card .boxer-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 18px;
}

.compact-check-list li {
    color: var(--text-soft);
}

.cta-band {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff4f3, #ffffff);
    border: 1px solid rgba(230, 51, 42, 0.14);
    border-radius: 28px;
    padding: 1.35rem;
    box-shadow: var(--shadow);
}

.footer-logo { filter: none; }

.site-footer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.games-page .section-head h1,
.games-page .section-head p,
.games-page h2,
.games-page p,
.story-display,
.game-display,
.game-score,
.story-log-item,
.duel-log .story-log-item,
.combo-chip,
.punch-legend span {
    color: var(--text);
}

.games-page .game-panel,
.arcade-launcher-panel,
.sound-deck-panel,
.game-hub-intro,
.arcade-reward-panel,
.story-scene-card,
.story-drill-card,
.tactical-card,
.duel-side-card,
.duel-summary-card {
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.arcade-launcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.arcade-tab {
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    font-weight: 800;
}

.arcade-tab.is-active,
.arcade-tab:hover {
    background: linear-gradient(135deg, #fff2f1, #ffffff);
    border-color: rgba(230, 51, 42, 0.28);
    color: var(--text);
}

.combo-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.combo-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 76px;
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
    background: #fff7f6;
    border: 1px solid rgba(230, 51, 42, 0.12);
}

.combo-chip strong,
.combo-chip small {
    display: block;
}

.punch-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.punch-legend span {
    display: block;
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.story-choice,
.story-choice-drill,
.duel-move-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.35rem;
    padding: 1rem 1rem 0.95rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: none;
}

.story-choice-title,
.duel-move-card strong {
    display: block;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 900;
    margin: 0;
}

.story-choice-copy,
.duel-move-card span {
    display: block;
    width: 100%;
    line-height: 1.45;
    color: var(--text-soft);
    margin: 0;
}

.story-choice-tag,
.duel-move-card small {
    display: block;
    width: 100%;
    color: #8a1f1c;
    margin-top: 0.15rem;
    font-size: 0.82rem;
}

.story-choice.is-selected,
.story-choice:hover,
.story-choice-drill:hover,
.duel-move-card:hover {
    transform: translateY(-1px);
    border-color: rgba(230, 51, 42, 0.28);
    background: linear-gradient(180deg, #fff3f2, #ffffff);
}

.story-display,
.game-display,
.duel-display {
    background: linear-gradient(180deg, #fff7f6, #ffffff);
    border: 1px solid rgba(230, 51, 42, 0.10);
}

.story-visual-stage {
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #fff4ef 0%, #fffdfb 42%, #edf4fb 100%);
}

.story-visual-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,176,32,0.28), transparent 15%),
        radial-gradient(circle at 78% 18%, rgba(80,167,255,0.18), transparent 18%),
        linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0));
}

.story-art {
    width: 94px;
    height: 94px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow);
}

.story-fighter-card {
    background: rgba(255,255,255,0.92);
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.story-progress-dot {
    background: rgba(15, 23, 42, 0.12);
}

.story-progress-dot.is-on,
.meter-block.is-on,
.meter-block.is-hit,
.combo-btn.is-flash,
.combo-chip.is-active {
    background: linear-gradient(135deg, var(--red), var(--red-2));
    color: #fff;
}

.duel-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.duel-move-card[disabled],
.story-choice[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.duel-scoreboard-tactical,
.duel-style-row,
.duel-status-grid,
.block-stats {
    gap: 0.75rem;
}

.login-body {
    background: linear-gradient(180deg, #fff 0%, #f4f6fb 100%);
}

.login-card {
    background: #fff;
}

.alert {
    color: var(--text);
}

@media (max-width: 980px) {
    .quick-route-grid,
    .schedule-teaser-grid,
    .split-grid,
    .spotlight-mini-grid,
    .duel-actions-grid,
    .punch-legend {
        grid-template-columns: 1fr;
    }

    .cta-band,
    .nav-main-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-actions-public {
        width: 100%;
    }
}


@media (max-width: 760px) {
    .site-nav-inline {
        display: flex !important;
        position: static;
        left: auto;
        right: auto;
        top: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
    }

    .site-nav-inline a {
        padding: 0.7rem 0.95rem;
        white-space: nowrap;
    }

    .nav-actions-public .btn {
        flex: 0 0 auto;
    }

    .menu-toggle {
        display: none !important;
    }
}


/* ===== Atlas public UI hardening: visitor-first, no hidden nav, clear contrast ===== */
:root {
    --text-soft: #596579;
    --public-bg: #f7f8fc;
    --public-bg-soft: #fff2f1;
    --public-surface: #ffffff;
    --public-surface-2: #f5f7fb;
    --public-text: #101827;
    --public-muted: #5b667a;
    --public-line: rgba(15, 23, 42, 0.10);
}

body.public-body {
    color: var(--public-text);
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 28%, #f6f7fb 100%);
}

body.public-body .topbar-public {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--public-line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.public-body .brand strong,
body.public-body h1,
body.public-body h2,
body.public-body h3,
body.public-body strong,
body.public-body label,
body.public-body .game-score strong,
body.public-body .duel-fighter-card strong,
body.public-body .event-list-item strong {
    color: var(--public-text);
}

body.public-body .brand span,
body.public-body p,
body.public-body li,
body.public-body small,
body.public-body .muted,
body.public-body .section-copy,
body.public-body .lead,
body.public-body .game-score,
body.public-body .microcopy,
body.public-body .check-list,
body.public-body .event-list-item small,
body.public-body .spotlight-mini-card small,
body.public-body .duel-fighter-card small,
body.public-body .story-log-item,
body.public-body .story-drill-copy,
body.public-body .story-ending-hint,
body.public-body .story-scene-mode,
body.public-body .duel-tip,
body.public-body .duel-last-move,
body.public-body .punch-legend span,
body.public-body .combo-chip small {
    color: var(--public-muted);
}

body.public-body .panel,
body.public-body .game-panel,
body.public-body .schedule-teaser-card,
body.public-body .event-list-item,
body.public-body .spotlight-mini-card,
body.public-body .story-log-item,
body.public-body .duel-avatar,
body.public-body .duel-fighter-card,
body.public-body .duel-round,
body.public-body .arcade-launcher-panel,
body.public-body .arcade-reward-panel,
body.public-body .sound-deck-panel,
body.public-body .story-scene-card,
body.public-body .story-drill-card,
body.public-body .schedule-card,
body.public-body .class-card,
body.public-body .payment-plan,
body.public-body .form-card,
body.public-body .boxer-card,
body.public-body .list-row,
body.public-body .stat-card {
    background: var(--public-surface);
    border-color: var(--public-line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

body.public-body .panel-accent,
body.public-body .panel-accent-light,
body.public-body .section-soft,
body.public-body .announcement,
body.public-body .cta-band,
body.public-body .route-card-primary,
body.public-body .hero-home-lite {
    background: linear-gradient(180deg, #fff8f7, #fffdfd);
    border-color: rgba(230, 51, 42, 0.10);
}

body.public-body .announcement p,
body.public-body .announcement span {
    color: #7d3a36;
}

body.public-body .hero-facts span,
body.public-body .award-chip,
body.public-body .mini-pill,
body.public-body .status,
body.public-body .toggle-pill,
body.public-body .combo-chip,
body.public-body .punch-legend span,
body.public-body .story-progress-strip,
body.public-body .route-card,
body.public-body .schedule-teaser-card,
body.public-body .duel-stat,
body.public-body .story-drill-bonus,
body.public-body .game-display,
body.public-body .story-display,
body.public-body .duel-display,
body.public-body .reaction-pad,
body.public-body .callout-controls,
body.public-body .story-drill-arena,
body.public-body .story-fighter-card {
    background: linear-gradient(180deg, #fff7f6, #ffffff);
    border: 1px solid rgba(230, 51, 42, 0.10);
}

body.public-body .btn,
body.public-body .public-nav a,
body.public-body .site-nav-inline a {
    color: var(--public-text);
}

body.public-body .btn-primary,
body.public-body .public-nav a.is-active,
body.public-body .public-nav a[aria-current="page"] {
    background: linear-gradient(135deg, #ea332b, #b91414);
    color: #fff;
    border-color: #bf1a17;
    box-shadow: 0 10px 24px rgba(230, 51, 42, 0.20);
}

body.public-body .btn-secondary {
    background: #fff;
    color: var(--public-text);
    border-color: rgba(15, 23, 42, 0.12);
}

body.public-body .btn-secondary:hover,
body.public-body .public-nav a:hover {
    background: #fff3f2;
    border-color: rgba(230, 51, 42, 0.22);
}

.public-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.public-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.8rem 0.9rem;
    text-align: center;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #ffffff;
    font-weight: 800;
    line-height: 1.2;
}

.nav-main-row-public {
    align-items: center;
}

body.public-body .menu-toggle,
body.public-body .site-nav,
body.public-body #siteNav {
    display: none !important;
}

body.public-body .public-nav {
    display: grid !important;
}

body.public-body .hero-actions,
body.public-body .social-row,
body.public-body .button-stack-inline {
    gap: 0.75rem;
}

body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    text-align: left;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.10);
}

body.public-body .story-choice strong,
body.public-body .duel-move-card strong {
    display: block;
    width: 100%;
    margin: 0 0 0.2rem;
    font-size: 1.06rem;
    line-height: 1.2;
}

body.public-body .story-choice span,
body.public-body .duel-move-card span {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--public-text);
    line-height: 1.45;
}

body.public-body .story-choice small,
body.public-body .duel-move-card small {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    color: #8a1f1c;
    font-size: 0.82rem;
    line-height: 1.35;
}

body.public-body .story-choice:hover,
body.public-body .story-choice.is-selected,
body.public-body .story-choice-drill:hover,
body.public-body .duel-move-card:hover,
body.public-body .duel-move-card.is-selected {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #fff3f2, #ffffff);
    border-color: rgba(230, 51, 42, 0.25);
}

body.public-body .arcade-tab {
    background: #fff;
    color: var(--public-text);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

body.public-body .arcade-tab.is-active,
body.public-body .arcade-tab:hover {
    background: linear-gradient(180deg, #fff3f2, #ffffff);
    color: var(--public-text);
    border-color: rgba(230, 51, 42, 0.24);
}

body.public-body .combo-rail,
body.public-body .punch-legend {
    gap: 0.6rem;
}

body.public-body .combo-chip strong,
body.public-body .punch-legend strong {
    color: var(--public-text);
}

body.public-body .combo-btn {
    background: #fff;
    color: var(--public-text);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.public-body .combo-btn.is-flash,
body.public-body .combo-chip.is-active,
body.public-body .combo-btn:hover {
    background: linear-gradient(135deg, #ea332b, #b91414);
    color: #fff;
    border-color: #bf1a17;
}

body.public-body .reaction-pad {
    color: var(--public-text);
}

body.public-body .story-log-item {
    background: #fff;
    color: var(--public-text);
    border-left-color: rgba(230, 51, 42, 0.35);
}

body.public-body .duel-display,
body.public-body .game-display,
body.public-body .story-display {
    color: var(--public-text);
}

body.public-body .block-meter {
    background: #eef2f7;
    border-color: rgba(15, 23, 42, 0.08);
}

body.public-body .meter-block {
    background: #d8dee8;
    border-color: rgba(15, 23, 42, 0.06);
}

body.public-body .meter-block.is-on,
body.public-body .meter-block.is-hit,
body.public-body .meter-block.is-success {
    background: linear-gradient(135deg, #ea332b, #b91414);
    border-color: #bf1a17;
}

body.public-body .story-visual-stage {
    background: linear-gradient(180deg, #fff7f6, #fffdfd);
    border: 1px solid rgba(230, 51, 42, 0.12);
}

body.public-body .story-scenery-floor,
body.public-body .story-scenery-post,
body.public-body .story-scenery-rope,
body.public-body .story-scenery-city,
body.public-body .story-scenery-bag,
body.public-body .story-scenery-cone {
    opacity: 0.95;
}

body.public-body .story-art {
    background: radial-gradient(circle at 30% 25%, #fff4f3, #ffe0dc 58%, #ffc4bc 100%);
    color: #7e1714;
    border: 1px solid rgba(230, 51, 42, 0.14);
}

body.public-body .story-progress-strip .meter-block {
    min-height: 12px;
}

body.public-body .route-card strong,
body.public-body .hero-facts strong,
body.public-body .award-chip,
body.public-body .mini-pill,
body.public-body .toggle-pill span,
body.public-body .duel-stat strong {
    color: var(--public-text);
}

body.public-body .eyebrow {
    color: #b12a24;
}

body.public-body .quick-route-grid,
body.public-body .split-grid,
body.public-body .stats-grid,
body.public-body .pricing-grid,
body.public-body .schedule-grid,
body.public-body .games-grid,
body.public-body .boxer-directory,
body.public-body .community-grid,
body.public-body .event-grid,
body.public-body .schedule-preview-grid {
    gap: 1.1rem;
}

body.public-body .status,
body.public-body .award-chip,
body.public-body .mini-pill,
body.public-body .toggle-pill,
body.public-body .duel-stat,
body.public-body .route-card,
body.public-body .schedule-teaser-card,
body.public-body .event-list-item,
body.public-body .spotlight-mini-card,
body.public-body .list-row,
body.public-body .story-drill-bonus {
    box-shadow: none;
}

body.public-body .topbar-public .btn-small {
    min-height: 44px;
    padding-inline: 1rem;
}

body.public-body .public-nav a:focus-visible,
body.public-body .btn:focus-visible,
body.public-body button:focus-visible,
body.public-body input:focus-visible,
body.public-body select:focus-visible,
body.public-body textarea:focus-visible {
    outline: 3px solid rgba(230, 51, 42, 0.25);
    outline-offset: 2px;
}

body.public-body .section {
    padding-block: clamp(2.2rem, 4vw, 4rem);
}

@media (min-width: 900px) {
    .public-nav {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-main-row-public {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-actions-public {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-actions-public .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===== Mobile-first lock-down fixes ===== */
body.public-body .public-nav {
    display:flex !important;
    flex-wrap:wrap !important;
    gap:.6rem !important;
}
body.public-body .public-nav a {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:.72rem 1rem !important;
    min-height:42px !important;
    border-radius:999px !important;
    background:#ffffff !important;
    border:1px solid rgba(15,23,42,.10) !important;
    color:#101827 !important;
    font-weight:800 !important;
    line-height:1.1 !important;
}
body.public-body .public-nav a.is-active,
body.public-body .public-nav a[aria-current="page"] {
    background:linear-gradient(135deg,#ea332b,#b91414) !important;
    color:#fff !important;
    border-color:#bf1a17 !important;
}
body.public-body .public-nav a:hover {
    background:#fff4f3 !important;
}
body.public-body .public-nav a.is-active:hover,
body.public-body .public-nav a[aria-current="page"]:hover { color:#fff !important; }
body.public-body .combo-rail {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(42px,1fr));
    gap:.5rem;
}
body.public-body .combo-chip-dot {
    justify-items:center;
    text-align:center;
    min-height:58px;
}
body.public-body .combo-chip-dot strong {
    font-size:1rem;
}
body.public-body .combo-chip-dot small {
    color:#6b7280 !important;
    font-size:.72rem;
}
body.public-body .combo-chip-dot.is-active small,
body.public-body .combo-chip-dot.is-active strong,
body.public-body .combo-chip-dot.is-done small,
body.public-body .combo-chip-dot.is-done strong {
    color:#fff !important;
}
body.public-body .game-display,
body.public-body .story-display,
body.public-body .duel-display,
body.public-body .duel-last-move,
body.public-body .story-drill-center {
    color:#101827 !important;
    background:linear-gradient(180deg,#fff7f6,#fff) !important;
    border:1px solid rgba(230,51,42,.12) !important;
}
body.public-body .story-scene-card,
body.public-body .story-drill-card,
body.public-body .duel-fighter-card,
body.public-body .duel-round,
body.public-body .duel-stat,
body.public-body .story-log-item,
body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card {
    background:#fff !important;
    color:#101827 !important;
    border-color:rgba(15,23,42,.10) !important;
}
body.public-body .story-log-item,
body.public-body .story-drill-copy,
body.public-body .story-ending-hint,
body.public-body .story-scene-mode,
body.public-body .duel-tip,
body.public-body .duel-last-move,
body.public-body .duel-fighter-card small,
body.public-body .story-choice span,
body.public-body .story-choice small,
body.public-body .duel-move-card span,
body.public-body .duel-move-card small,
body.public-body .story-fighter-name,
body.public-body .story-fighter-card small {
    color:#5b667a !important;
}
body.public-body .story-fighter-card strong,
body.public-body .story-choice strong,
body.public-body .duel-move-card strong,
body.public-body .story-scene-card h3,
body.public-body .story-drill-card h3,
body.public-body .duel-fighter-card strong,
body.public-body .story-week,
body.public-body .story-ending-hint {
    color:#101827 !important;
}
body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card {
    gap:.4rem !important;
    padding:1rem !important;
}
body.public-body .story-choice strong,
body.public-body .duel-move-card strong { display:block !important; margin:0 0 .2rem !important; }
body.public-body .story-choice span,
body.public-body .duel-move-card span,
body.public-body .story-choice small,
body.public-body .duel-move-card small { display:block !important; width:100% !important; }
body.public-body .story-visual-stage {
    min-height:320px !important;
    background:linear-gradient(180deg,#fff7f6,#ffeceb) !important;
    border:1px solid rgba(230,51,42,.12) !important;
}
body.public-body .story-visual-backdrop {
    background:radial-gradient(circle at 50% 0%, rgba(230,51,42,.18), transparent 42%), linear-gradient(180deg, transparent 48%, rgba(230,51,42,.06) 49%, transparent 50%);
}
body.public-body .story-fighter-card,
body.public-body .story-art-wrap {
    position:relative;
    z-index:1;
}
body.public-body .story-fighter-card {
    background:rgba(255,255,255,.9) !important;
    border:1px solid rgba(15,23,42,.08) !important;
}
body.public-body .story-art {
    background:radial-gradient(circle at 30% 25%, #fff3f2, #ffd7d2 58%, #ffc6c0 100%) !important;
    color:#8a1f1c !important;
}
body.public-body .story-drill-arena {
    background:#fff7f6 !important;
    border:1px solid rgba(230,51,42,.12) !important;
}
body.public-body .duel-actions-grid {
    display:grid;
    grid-template-columns:1fr;
    gap:.8rem;
}
body.public-body .duel-battle-lane,
body.public-body .story-layout,
body.public-body .story-header,
body.public-body .story-stats,
body.public-body .duel-status-grid,
body.public-body .duel-scoreboard {
    gap:.75rem !important;
}
body.public-body .story-stats,
body.public-body .duel-status-grid,
body.public-body .duel-scoreboard {
    grid-template-columns:repeat(2,minmax(0,1fr));
}
body.public-body .story-stats div,
body.public-body .duel-stat,
body.public-body .duel-fighter-card,
body.public-body .duel-round {
    padding:.85rem !important;
}
body.public-body .story-log-item {
    padding:.85rem .95rem !important;
}
body.public-body .story-progress-strip {
    grid-template-columns:repeat(6,minmax(0,1fr));
}
body.public-body .route-card,
body.public-body .schedule-teaser-card,
body.public-body .event-list-item,
body.public-body .spotlight-mini-card {
    min-width:0;
}
@media (max-width:760px){
    body.public-body .nav-main-row-public{display:flex !important;flex-direction:column !important;align-items:flex-start !important;gap:1rem !important;}
    body.public-body .nav-actions-public{width:100% !important;display:flex !important;justify-content:flex-start !important;}
    body.public-body .story-layout,
    body.public-body .duel-battle-lane,
    body.public-body .story-header,
    body.public-body .story-stats,
    body.public-body .duel-status-grid,
    body.public-body .duel-scoreboard {grid-template-columns:1fr !important;}
    body.public-body .story-visual-stage {grid-template-columns:1fr !important;min-height:0 !important;padding:1rem !important;}
    body.public-body .story-art {width:110px !important;height:110px !important;font-size:2.8rem !important;}
    body.public-body .story-fighter-card {padding:.8rem !important;}
    body.public-body .hero-actions {display:flex;flex-wrap:wrap;}
    body.public-body .hero-actions .btn {flex:1 1 calc(50% - .5rem);justify-content:center;min-width:140px;}
}

/* ===== Final mobile-first hardening pass ===== */
body.public-body {
    --ui-text: #101827;
    --ui-muted: #526072;
    --ui-line: rgba(15, 23, 42, 0.12);
    --ui-soft: #fff7f6;
    --ui-panel: #ffffff;
}

body.public-body .public-nav,
body.admin-body .admin-nav {
    align-items: center;
}

body.public-body .public-nav-link,
body.admin-body .owner-nav-link {
    text-decoration: none;
    white-space: nowrap;
}

body.public-body .public-nav {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
}
body.public-body .public-nav::-webkit-scrollbar { display: none; }

body.public-body .section-copy,
body.public-body .lead,
body.public-body .game-panel p,
body.public-body .panel p,
body.public-body .duel-tip,
body.public-body .microcopy,
body.public-body .punch-legend span,
body.public-body .story-drill-copy,
body.public-body .story-log-item,
body.public-body .duel-last-move,
body.public-body .game-score,
body.public-body .story-scene-card small,
body.public-body .story-fighter-card small,
body.public-body .duel-fighter-card small,
body.public-body .duel-move-card span,
body.public-body .duel-move-card small,
body.public-body .story-choice span,
body.public-body .story-choice small,
body.public-body .story-choice-drill span,
body.public-body .story-choice-drill small {
    color: var(--ui-muted) !important;
}

body.public-body h1,
body.public-body h2,
body.public-body h3,
body.public-body strong,
body.public-body .game-display,
body.public-body .story-display,
body.public-body .story-week,
body.public-body .story-ending-hint,
body.public-body .story-choice strong,
body.public-body .story-choice-drill strong,
body.public-body .duel-move-card strong,
body.public-body .duel-fighter-card strong,
body.public-body .duel-round strong,
body.public-body .duel-stat strong,
body.public-body .punch-legend strong,
body.public-body .combo-chip strong {
    color: var(--ui-text) !important;
}

body.public-body .panel,
body.public-body .game-panel,
body.public-body .story-scene-card,
body.public-body .story-drill-card,
body.public-body .duel-fighter-card,
body.public-body .duel-round,
body.public-body .duel-stat,
body.public-body .story-log-item,
body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card,
body.public-body .game-display,
body.public-body .story-display,
body.public-body .duel-display,
body.public-body .duel-last-move,
body.public-body .story-drill-center,
body.public-body .story-drill-arena,
body.public-body .story-fighter-card,
body.public-body .duel-avatar,
body.public-body .arcade-launcher-panel,
body.public-body .sound-deck-panel,
body.public-body .arcade-reward-panel {
    background: var(--ui-panel) !important;
    border: 1px solid var(--ui-line) !important;
    color: var(--ui-text) !important;
}

body.public-body .game-display,
body.public-body .story-display,
body.public-body .duel-display,
body.public-body .duel-last-move,
body.public-body .story-drill-center {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

body.public-body .arcade-launcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

body.public-body .arcade-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ui-text);
    border: 1px solid var(--ui-line);
    font-weight: 700;
}

body.public-body .arcade-tab.is-active {
    background: linear-gradient(135deg, #ea332b, #b91414);
    color: #fff !important;
    border-color: #bf1a17;
}

body.public-body .combo-rail {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

body.public-body .combo-chip-dot,
body.public-body .combo-chip-empty {
    min-width: 52px;
    min-height: 56px;
    padding: 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    background: var(--ui-soft);
    border: 1px solid rgba(230, 51, 42, 0.12);
}

body.public-body .combo-chip-dot strong { font-size: 1rem; }
body.public-body .combo-chip-dot small,
body.public-body .combo-chip-empty { font-size: 0.74rem; }
body.public-body .combo-chip-dot.is-active,
body.public-body .combo-chip-dot.is-done {
    background: linear-gradient(135deg, #ea332b, #b91414) !important;
    border-color: #bf1a17 !important;
}
body.public-body .combo-chip-dot.is-active strong,
body.public-body .combo-chip-dot.is-active small,
body.public-body .combo-chip-dot.is-done strong,
body.public-body .combo-chip-dot.is-done small { color: #fff !important; }

body.public-body .story-stage,
body.public-body .duel-stage {
    display: grid;
    gap: 1rem;
}

body.public-body .story-header,
body.public-body .story-stats,
body.public-body .story-layout,
body.public-body .duel-status-grid,
body.public-body .duel-scoreboard,
body.public-body .duel-battle-lane,
body.public-body .duel-actions-grid {
    display: grid;
    gap: 1rem;
}

body.public-body .story-header,
body.public-body .duel-status-grid,
body.public-body .duel-scoreboard,
body.public-body .duel-battle-lane,
body.public-body .story-layout,
body.public-body .duel-actions-grid {
    grid-template-columns: 1fr;
}

body.public-body .story-stats.block-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.public-body .story-stats.block-stats > div {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

body.public-body .story-visual-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
    min-height: 0 !important;
}

body.public-body .story-fighter-card,
body.public-body .story-art-wrap,
body.public-body .story-scene-card,
body.public-body .story-drill-card,
body.public-body .duel-fighter-card,
body.public-body .duel-round,
body.public-body .duel-stat,
body.public-body .story-log-item,
body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card {
    border-radius: 20px;
}

body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 1rem !important;
    min-height: 112px;
}

body.public-body .story-choice strong,
body.public-body .story-choice-drill strong,
body.public-body .duel-move-card strong {
    display: block;
    width: 100%;
    margin: 0 0 0.15rem;
    line-height: 1.2;
}
body.public-body .story-choice span,
body.public-body .story-choice-drill span,
body.public-body .duel-move-card span,
body.public-body .story-choice small,
body.public-body .story-choice-drill small,
body.public-body .duel-move-card small {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 1.42;
}

body.public-body .story-choice-locked {
    opacity: 0.7;
}

body.public-body .duel-style-row {
    display: grid;
    gap: 0.85rem;
}
body.public-body .duel-style-row label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--ui-text);
}
body.public-body .duel-style-row select {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--ui-line);
    padding: 0.75rem 0.9rem;
    color: var(--ui-text);
    background: #fff;
}

body.public-body .duel-log,
body.public-body .story-log {
    display: grid;
    gap: 0.75rem;
}

body.public-body .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
body.public-body .hero-actions .btn {
    flex: 1 1 160px;
    justify-content: center;
}

body.public-body .games-grid,
body.public-body .games-grid-advanced,
body.public-body .arcade-stage {
    display: grid;
    gap: 1rem;
}
body.public-body .game-panel[hidden] { display: none !important; }

@media (min-width: 820px) {
    body.public-body .story-layout { grid-template-columns: 1.2fr .8fr; }
    body.public-body .story-header { grid-template-columns: 1fr auto; align-items: center; }
    body.public-body .story-stats.block-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.public-body .duel-status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.public-body .duel-scoreboard { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
    body.public-body .duel-battle-lane { grid-template-columns: auto 1fr auto; align-items: center; }
    body.public-body .duel-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.public-body .story-visual-stage { grid-template-columns: 1fr auto 1fr; align-items: center; }
}

/* ===== Final public/mobile lockdown overrides ===== */
body.public-body label span,
body.public-body .site-form label,
body.public-body .field-label,
body.public-body .site-form .muted-label,
.login-body label,
.login-body label span {
    color: #1f2937 !important;
}

body.public-body input,
body.public-body textarea,
body.public-body select,
.login-body input,
.login-body textarea,
.login-body select {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

body.public-body input::placeholder,
body.public-body textarea::placeholder,
.login-body input::placeholder,
.login-body textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

body.public-body .form-card,
body.public-body .site-form,
.login-card {
    color: #111827;
}

body.public-body .arcade-launcher-panel,
body.public-body .arcade-reward-panel,
body.public-body .sound-deck-panel {
    padding: 1rem 1rem 1.1rem;
}

body.public-body .arcade-head .section-copy,
body.public-body .game-hub-copy p,
body.public-body .sound-deck-panel p,
body.public-body .arcade-reward-panel p {
    max-width: 52ch;
}

body.public-body .story-stage {
    display: grid;
    gap: 1rem;
}

body.public-body .story-dashboard {
    position: sticky;
    top: 0.5rem;
    z-index: 8;
    padding: 0.8rem;
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15,23,42,.08);
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: .65rem;
}

body.public-body .story-dashboard > div {
    display: grid;
    gap: .3rem;
    align-content: start;
    min-width: 0;
}

body.public-body .story-dashboard span {
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
}

body.public-body .story-dashboard strong {
    font-size: .95rem;
    color: #111827;
}

body.public-body .story-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

body.public-body .story-scene-card,
body.public-body .story-drill-card,
body.public-body .story-choices-wrap,
body.public-body .story-log {
    padding: 1rem;
}

body.public-body .story-visual-stage {
    min-height: 0 !important;
    padding: 1rem !important;
}

body.public-body .story-display {
    padding: 1rem 1.1rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #111827 !important;
}

body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card {
    display: grid !important;
    gap: .35rem !important;
    justify-items: start;
    text-align: left !important;
    align-content: start;
    min-height: 0 !important;
    padding: 1rem !important;
}

body.public-body .story-choice strong,
body.public-body .story-choice-drill strong,
body.public-body .duel-move-card strong {
    color: #111827 !important;
    font-size: 1.02rem;
    line-height: 1.25;
}

body.public-body .story-choice span,
body.public-body .story-choice-drill span,
body.public-body .duel-move-card span {
    color: #4b5563 !important;
    font-size: .98rem;
    line-height: 1.45;
}

body.public-body .story-choice small,
body.public-body .story-choice-drill small,
body.public-body .duel-move-card small,
body.public-body .story-drill-bonus,
body.public-body .story-scene-subtitle {
    color: #a03b36 !important;
    font-weight: 700;
    line-height: 1.35;
}

body.public-body .story-log {
    display: grid;
    gap: .75rem;
}

body.public-body .story-log-item {
    color: #111827 !important;
    background: #fff !important;
    border: 1px solid rgba(230,51,42,.18) !important;
    padding: .95rem 1rem;
    border-radius: 18px;
}

body.public-body .story-log-item.is-fresh {
    border-left: 5px solid #ea332b;
}

body.public-body .duel-status-grid,
body.public-body .duel-scoreboard,
body.public-body .duel-battle-lane,
body.public-body .duel-actions-grid {
    display: grid;
    gap: .85rem;
}

body.public-body .duel-fighter-card,
body.public-body .duel-round,
body.public-body .duel-stat,
body.public-body .duel-style-row,
body.public-body .duel-battle-lane,
body.public-body .duel-tip,
body.public-body .duel-last-move {
    padding: 1rem;
}

body.public-body .duel-meters {
    display: grid;
    gap: .6rem;
}

body.public-body .duel-meters em {
    display: block;
    margin-bottom: .35rem;
    color: #6b7280;
}

body.public-body .block-meter {
    display: grid;
    grid-template-columns: repeat(10, minmax(0,1fr));
    gap: .22rem;
    min-height: .7rem;
}

body.public-body .meter-block {
    height: .72rem;
    background: #fde3df;
    border: 1px solid rgba(230,51,42,.08);
}

body.public-body .meter-block.is-on,
body.public-body .meter-block.is-target {
    background: linear-gradient(135deg,#ef4444,#dc2626);
}

body.public-body .hero-actions .btn,
body.public-body .hero-actions-tight .btn {
    min-height: 48px;
}

body.public-body .games-page .section-head,
body.public-body .game-hub-intro,
body.public-body .sound-deck-panel,
body.public-body .arcade-reward-panel,
body.public-body .arcade-launcher-panel {
    margin-bottom: .25rem;
}

body.public-body .games-page .section-head h1,
body.public-body .game-panel h2 {
    margin-bottom: .45rem;
}

body.public-body .sound-deck-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

body.public-body .toggle-pill {
    color: #111827 !important;
}

@media (max-width: 760px) {
    body.public-body .story-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    body.public-body .story-dashboard > div:last-child {
        grid-column: 1 / -1;
    }
    body.public-body .public-nav {
        position: static !important;
        top: auto;
        z-index: auto;
        padding-bottom: 0;
        background: transparent !important;
    }
    body.public-body .public-nav a {
        min-width: 0;
        flex: 1 1 calc(33.333% - .4rem);
        text-align: center;
    }
    body.public-body .arcade-launcher {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .55rem;
    }
    body.public-body .arcade-tab {
        min-height: 44px;
        font-size: .95rem;
    }
    body.public-body .story-log,
    body.public-body .duel-log {
        margin-bottom: .25rem;
    }
}

/* ===== Release-candidate cleanup overrides ===== */
body.public-body {
    --ui-bg: #f6f2f1;
    --ui-surface: #ffffff;
    --ui-surface-soft: #fff7f6;
    --ui-border: rgba(15, 23, 42, 0.10);
    --ui-text: #111827;
    --ui-text-soft: #4b5563;
    --ui-muted: #6b7280;
    --ui-accent: #e6332a;
    --ui-accent-dark: #b91414;
}

body.public-body .panel,
body.public-body .info-card,
body.public-body .form-intro,
body.public-body .site-form,
body.public-body .login-card,
body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card,
body.public-body .story-log-item,
body.public-body .duel-fighter-card,
body.public-body .duel-round,
body.public-body .duel-tip,
body.public-body .duel-last-move,
body.public-body .duel-style-row,
body.public-body .story-scene-card,
body.public-body .story-drill-card {
    background: var(--ui-surface) !important;
    color: var(--ui-text) !important;
    border-color: var(--ui-border) !important;
}

body.public-body p,
body.public-body li,
body.public-body .section-copy,
body.public-body .info-card p,
body.public-body .microcopy,
body.public-body .story-choice-copy,
body.public-body .duel-move-card span,
body.public-body .story-drill-copy,
body.public-body .story-display,
body.public-body .duel-display,
body.public-body .duel-last-move,
body.public-body .game-score,
.login-body p {
    color: var(--ui-text-soft) !important;
}

body.public-body h1,
body.public-body h2,
body.public-body h3,
body.public-body strong,
body.public-body .story-choice-title,
body.public-body .duel-move-card strong,
.login-body h1,
.login-body strong {
    color: var(--ui-text) !important;
}

body.public-body .text-link,
.login-body .text-link {
    color: #b42318 !important;
}

.login-body .site-form label > span,
body.public-body .site-form label > span,
body.public-body .duel-style-row label,
body.public-body .story-week,
body.public-body .story-ending-hint {
    color: var(--ui-text) !important;
    font-weight: 700;
}

body.public-body input,
body.public-body textarea,
body.public-body select,
.login-body input,
.login-body textarea,
.login-body select {
    color: var(--ui-text) !important;
    background: #ffffff !important;
    border: 1px solid var(--ui-border) !important;
}

body.public-body input::placeholder,
body.public-body textarea::placeholder,
.login-body input::placeholder,
.login-body textarea::placeholder {
    color: var(--ui-muted) !important;
}

body.public-body .story-dashboard {
    position: sticky;
    top: .5rem;
    z-index: 8;
    padding: .8rem;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(15,23,42,.08);
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem !important;
}

body.public-body .story-dashboard > div {
    padding: .65rem .75rem;
    background: var(--ui-surface-soft);
    border: 1px solid rgba(230,51,42,.10);
    border-radius: 16px;
    display: grid !important;
    gap: .3rem !important;
    align-content: start;
    min-height: 0 !important;
}

body.public-body .story-dashboard > div:last-child {
    grid-column: 1 / -1;
}

body.public-body .story-dashboard .block-meter,
body.public-body .duel-meters .block-meter {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: .22rem;
}

body.public-body .story-dashboard .meter-block,
body.public-body .duel-meters .meter-block {
    height: .7rem;
    background: rgba(15,23,42,.07);
    border: none;
}

body.public-body .story-dashboard .meter-block.is-on,
body.public-body .duel-meters .meter-block.is-on,
body.public-body .meter-block.is-hit,
body.public-body .story-progress-dot.is-on,
body.public-body .story-progress-dot.is-complete {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-dark));
    box-shadow: 0 0 14px rgba(230,51,42,.20);
}

body.public-body .story-layout,
body.public-body .duel-status-grid,
body.public-body .duel-scoreboard,
body.public-body .duel-actions-grid,
body.public-body .duel-battle-lane {
    display: grid !important;
    gap: 1rem !important;
}

body.public-body .duel-status-grid,
body.public-body .duel-scoreboard,
body.public-body .duel-actions-grid,
body.public-body .duel-battle-lane {
    grid-template-columns: 1fr !important;
}

body.public-body .duel-status-grid .duel-stat,
body.public-body .duel-scoreboard .duel-fighter-card,
body.public-body .duel-scoreboard .duel-round {
    padding: 1rem;
}

body.public-body .story-visual-stage {
    min-height: 260px !important;
    padding: 1rem !important;
}

body.public-body .story-display,
body.public-body .duel-display {
    padding: 1rem 1.1rem !important;
    line-height: 1.55;
    color: var(--ui-text) !important;
}

body.public-body .story-choice,
body.public-body .story-choice-drill,
body.public-body .duel-move-card {
    min-height: 0 !important;
    display: grid !important;
    gap: .45rem !important;
    padding: 1rem !important;
    text-align: left !important;
}

body.public-body .story-choice-title,
body.public-body .duel-move-card strong {
    font-size: 1.03rem !important;
    line-height: 1.22 !important;
}

body.public-body .story-choice-copy,
body.public-body .duel-move-card span {
    font-size: .98rem !important;
    line-height: 1.45 !important;
    color: var(--ui-text-soft) !important;
}

body.public-body .story-choice-tag,
body.public-body .duel-move-card small,
body.public-body .story-drill-bonus,
body.public-body .story-scene-subtitle {
    color: #9b2c25 !important;
    font-weight: 700;
}

body.public-body .story-log-item {
    border-left: 4px solid rgba(230,51,42,.50) !important;
}

body.public-body .public-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .6rem !important;
    margin-top: .85rem !important;
}

body.public-body .public-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: .72rem 1rem !important;
    background: #ffffff !important;
    color: #101827 !important;
    border-radius: 999px !important;
    border: 1px solid var(--ui-border) !important;
    font-weight: 800 !important;
}

body.public-body .public-nav a.is-active,
body.public-body .public-nav a[aria-current="page"] {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-dark)) !important;
    color: #ffffff !important;
    border-color: #bf1a17 !important;
}

@media (min-width: 820px) {
    body.public-body .story-dashboard {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
    body.public-body .story-dashboard > div:last-child {
        grid-column: auto;
    }
    body.public-body .duel-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    body.public-body .duel-scoreboard {
        grid-template-columns: 1fr 220px 1fr !important;
    }
    body.public-body .duel-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* ===== Base freeze mobile-first overrides ===== */
body.public-body .topbar-public {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15,23,42,.08);
}
body.public-body .topbar-public .brand strong,
body.public-body .topbar-public .brand span,
body.public-body .topbar-public .brand {
    color: #111827;
}
body.public-body .nav-wrap-stacked { display:grid; gap:.85rem; }
body.public-body .nav-main-row-public { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
body.public-body .public-nav { position:static !important; background:transparent !important; }
body.public-body .public-nav a { white-space:nowrap; }
body.public-body .promo-band { display:grid; gap:1rem; align-items:center; }
body.public-body .promo-band p { max-width:58ch; }
body.public-body .route-card,
body.public-body .schedule-teaser-card,
body.public-body .spotlight-mini-card,
body.public-body .event-list-item { min-width:0; }
body.public-body .sound-deck-panel,
body.public-body .game-hub-intro,
body.public-body .arcade-reward-panel,
body.public-body .arcade-launcher-panel,
body.public-body .game-panel,
body.public-body .panel { overflow:hidden; }
body.public-body .story-choice-title,
body.public-body .story-choice-copy,
body.public-body .story-choice-tag,
body.public-body .duel-move-card strong,
body.public-body .duel-move-card span,
body.public-body .duel-move-card small { display:block; }
body.public-body .duel-log,
body.public-body .story-log { max-height:none; }
@media (max-width:820px) {
    body.public-body .topbar-public { position:static !important; }
    body.public-body .announcement { position:static !important; }
    body.public-body .nav-wrap-stacked { gap:.7rem; padding:.85rem 0; }
    body.public-body .nav-main-row-public { flex-direction:column; align-items:stretch; }
    body.public-body .brand img { width:58px; height:58px; }
    body.public-body .nav-actions-public { width:100%; justify-content:stretch !important; }
    body.public-body .nav-actions-public .btn { flex:1 1 0; min-width:0; }
    body.public-body .public-nav { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem !important; width:100%; margin-top:0 !important; padding-bottom:0 !important; }
    body.public-body .public-nav a { min-height:42px; white-space:normal; text-align:center; padding:.72rem .55rem !important; }
    body.public-body .hero-actions,
    body.public-body .button-stack-inline,
    body.public-body .social-row { display:grid; grid-template-columns:1fr; }
    body.public-body .hero-actions .btn,
    body.public-body .button-stack-inline .btn,
    body.public-body .social-row .btn { width:100%; }
    body.public-body .quick-route-grid,
    body.public-body .split-grid,
    body.public-body .pricing-grid,
    body.public-body .games-grid,
    body.public-body .games-grid-advanced,
    body.public-body .schedule-teaser-grid,
    body.public-body .spotlight-mini-grid { grid-template-columns:1fr !important; }
    body.public-body .story-dashboard { position:static !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    body.public-body .story-dashboard > div:last-child { grid-column:1 / -1; }
    body.public-body .arcade-launcher { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    body.public-body .duel-status-grid,
    body.public-body .duel-scoreboard,
    body.public-body .duel-battle-lane,
    body.public-body .duel-actions-grid { grid-template-columns:1fr !important; }
    body.public-body .form-layout,
    body.public-body .admin-grid,
    body.public-body .split-grid-equal { grid-template-columns:1fr !important; }
}
@media (max-width:460px) {
    body.public-body .public-nav { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    body.public-body .arcade-launcher { grid-template-columns:1fr !important; }
}
