@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/static/fonts/BeVietnamPro-400.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/static/fonts/BeVietnamPro-600.ttf") format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/static/fonts/BeVietnamPro-700.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/static/fonts/BeVietnamPro-800.ttf") format("truetype");
    font-weight: 800;
}

@font-face {
    font-family: "Baloo 2";
    src: url("/static/fonts/Baloo2[wght].ttf") format("truetype");
    font-weight: 500 800;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/static/fonts/JetBrainsMono[wght].ttf") format("truetype");
    font-weight: 300 800;
}

:root {
    --color-ink: #111827;
    --color-paper: #fffdf5;
    --color-grid: #e8e1d2;
    --color-blue: #a7d8ff;
    --color-green: #8ef0b1;
    --color-yellow: #ffe66d;
    --color-red: #ff6b6b;
    --color-pink: #ff9ecf;
    --color-orange: #ffb86b;
    --color-navy: #062e55;
    --color-muted: #4b5563;
    --border-thick: 3px solid var(--color-ink);
    --border-soft: 2px solid var(--color-ink);
    --radius-card: 28px;
    --radius-pill: 999px;
    --shadow-brutal: 8px 8px 0 var(--color-ink);
    --shadow-small: 4px 4px 0 var(--color-ink);
}

* {
    box-sizing: border-box;
}

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

[x-cloak] {
    display: none !important;
}

html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    font-size: 95%;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: clip;
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--color-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 230, 109, 0.42), transparent 28rem),
        radial-gradient(circle at 88% 16%, rgba(167, 216, 255, 0.44), transparent 26rem),
        var(--color-paper);
}

.site-loader {
    display: none;
}

.js-enabled body.is-loading .site-loader,
.js-enabled body.is-page-transitioning .site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 253, 245, 0.94), rgba(230, 245, 255, 0.9)),
        var(--color-paper);
    backdrop-filter: blur(12px);
}

.site-loader__panel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    width: min(340px, calc(100vw - 42px));
    padding: 0.95rem 1rem 1.05rem;
    border: var(--border-soft);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-small);
    color: var(--color-ink);
    overflow: hidden;
}

.site-loader__panel img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: loaderPulse 1.25s ease-in-out infinite alternate;
}

.site-loader__panel span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.site-loader__panel strong {
    color: var(--color-ink);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.15;
}

.site-loader__panel small {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.site-loader__panel::after {
    content: "";
    grid-column: 1 / -1;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--color-blue) 0%, var(--color-green) 45%, var(--color-yellow) 72%, var(--color-blue) 100%);
    background-size: 220% 100%;
    animation: loaderBar 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    from {
        transform: translateY(2px) scale(0.96);
    }
    to {
        transform: translateY(-1px) scale(1.04);
    }
}

@keyframes loaderBar {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 220% 50%;
    }
}

.paper-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--color-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.58;
}

a {
    color: var(--color-navy);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-pink);
    outline-offset: 2px;
}

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

h1,
h2,
h3 {
    margin: 0 0 0.55rem;
    font-family: "Baloo 2", cursive;
    line-height: 1.05;
    overflow-wrap: break-word;
}

h1 {
    font-size: 4.1rem;
}

h2 {
    font-size: 2.35rem;
}

h3 {
    font-size: 1.45rem;
}

p,
li,
label,
input,
textarea,
select,
button,
table {
    font-size: 1rem;
}

p {
    line-height: 1.65;
    overflow-wrap: break-word;
}

blockquote {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 2px dashed var(--color-ink);
    border-radius: 18px;
    background: rgba(255, 230, 109, 0.35);
}

.container,
.page-shell > .section-block,
.page-shell > .dashboard-grid,
.page-shell > .split-panel,
.page-shell > .question-layout,
.page-shell > .hero-panel {
    width: min(1180px, calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
}

.page-shell {
    padding: 1.6rem 0 4rem;
}

.page-shell > * + * {
    margin-top: 2rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
    border-bottom: var(--border-thick);
    background: rgba(255, 253, 245, 0.96);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    width: 100%;
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem 0;
}

.brand-pill {
    flex: 0 0 auto;
    display: inline-flex;
    max-width: 300px;
    min-width: 0;
    gap: 0.75rem;
    align-items: center;
    padding: 0.48rem 0.78rem 0.48rem 0.52rem;
    border: var(--border-thick);
    border-radius: var(--radius-pill);
    background: white;
    box-shadow: var(--shadow-small);
}

.brand-pill img {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-pill span {
    min-width: 0;
}

.brand-pill strong {
    display: block;
    overflow: hidden;
    font-family: "Baloo 2", cursive;
    font-size: 1.18rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-pill small,
.muted {
    color: var(--color-muted);
}

.brand-pill small {
    display: block;
    overflow: hidden;
    margin-top: 0.16rem;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav,
.header-actions,
.button-row,
.button-cluster,
.section-heading,
.score-row,
.info-pair,
.member-row,
.hero-actions,
.card-badges,
.mini-stat-row,
.hero-badges,
.sponsor-strip {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.main-nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.24rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
}

.main-nav a,
.mobile-drawer a,
.pill-soft,
.stamp,
.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0.42rem 0.66rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: white;
    color: var(--color-ink);
    font-weight: 700;
}

.main-nav a:hover,
.mobile-drawer a:hover {
    background: var(--color-yellow);
    text-decoration: none;
    transform: translateY(-1px);
}

.main-nav a.is-active,
.mobile-drawer a.is-active {
    background: var(--color-green);
    box-shadow: inset 0 -4px 0 rgba(17, 24, 39, 0.18);
}

.header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.mobile-menu-toggle {
    display: none;
    flex: 0 0 auto;
    width: 46px;
    min-width: 46px;
    padding-inline: 0;
}

.hamburger-icon {
    display: inline-grid;
    place-items: center;
    font-size: 1.35rem;
    line-height: 1;
}

.mobile-drawer {
    display: none;
    padding: 0 0 1rem;
}

.user-menu {
    position: relative;
}

.user-menu summary {
    list-style: none;
}

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

.user-menu__button {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    cursor: pointer;
    white-space: nowrap;
}

.user-menu__avatar {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    overflow: hidden;
    border: 2px solid white;
    border-radius: 999px;
    background: var(--color-blue);
    color: var(--color-ink);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.18);
}

.user-menu__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu__button .fa-chevron-down {
    font-size: 0.72rem;
}

.user-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    z-index: 80;
    display: none;
    width: min(320px, calc(100vw - 1.5rem));
    gap: 0.65rem;
    padding: 0.85rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-brutal);
}

.user-menu[open] > .user-menu__panel {
    display: grid;
}

.user-menu__meta {
    display: grid;
    gap: 0.12rem;
    padding: 0.35rem 0.45rem 0.55rem;
    border-bottom: 2px dashed rgba(17, 24, 39, 0.22);
}

.user-menu__meta strong {
    overflow: hidden;
    font-family: "Baloo 2", cursive;
    font-size: 1.2rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__meta span {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.user-menu__section {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0.6rem 0 0;
    border-top: 2px dashed rgba(17, 24, 39, 0.2);
}

.user-menu__meta + .user-menu__section {
    padding-top: 0;
    border-top: 0;
}

.user-menu__panel a,
.user-menu__panel button,
.user-menu__item {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    padding: 0.52rem 0.75rem;
    border: var(--border-soft);
    border-radius: 16px;
    background: rgba(255, 253, 245, 0.94);
    color: var(--color-ink);
    font-weight: 800;
    text-align: left;
    box-shadow: none;
}

.user-menu__panel a:hover,
.user-menu__panel button:hover,
.user-menu__item:hover {
    background: var(--color-yellow);
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.user-menu__item--danger {
    background: rgba(255, 158, 207, 0.24);
}

.button--google {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    background: white;
}

.button--google .fa-google {
    color: #4285f4;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.85rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 2px;
    flex: 1;
    background: rgba(17, 24, 39, 0.14);
}

.mobile-drawer__panel {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-small);
}

.subnav-bar {
    border-top: var(--border-thick);
    background: rgba(167, 216, 255, 0.7);
    padding: 0.7rem 0;
}

.button-cluster {
    flex-wrap: wrap;
}

.hero-panel,
.card,
.flash,
.empty-state {
    border: var(--border-thick);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-brutal);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.82fr);
    gap: 1.4rem;
    align-items: stretch;
    padding: 1.35rem;
    background: linear-gradient(135deg, rgba(167, 216, 255, 0.93), rgba(255, 230, 109, 0.72));
}

.hero-panel--warning {
    background: linear-gradient(135deg, rgba(255, 158, 207, 0.84), rgba(255, 184, 107, 0.82));
}

.hero-panel--studio {
    background: linear-gradient(135deg, rgba(142, 240, 177, 0.9), rgba(167, 216, 255, 0.68));
}

.hero-panel--profile {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    padding: clamp(1.45rem, 2.2vw, 2rem);
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.78), rgba(255, 158, 207, 0.58));
}

.compact-hero {
    padding: 1rem;
}

.compact-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-copy {
    display: grid;
    align-content: center;
}

.hero-badges {
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.status-badge {
    background: var(--color-green);
}

.lead {
    max-width: 65ch;
    font-size: 1.08rem;
}

.hero-actions,
.button-row,
.section-heading,
.score-row,
.info-pair,
.member-row {
    justify-content: space-between;
}

.hero-actions,
.button-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.8rem;
    padding: 0.38rem 0.72rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.card,
.empty-state {
    background: rgba(255, 255, 255, 0.96);
    padding: 1.15rem;
}

.empty-state {
    display: grid;
    place-items: start;
    gap: 0.35rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
}

.result-waiting,
.leaderboard-strip > .empty-state,
.feature-grid > .empty-state,
.event-grid > .empty-state,
.gallery-grid > .empty-state,
.stat-card-grid > .empty-state {
    grid-column: 1 / -1;
    max-width: 860px;
}

.accent-card--blue {
    background: rgba(167, 216, 255, 0.75);
}

.accent-card--yellow {
    background: rgba(255, 230, 109, 0.78);
}

.accent-card--pink {
    background: rgba(255, 158, 207, 0.7);
}

.accent-card--green {
    background: rgba(142, 240, 177, 0.75);
}

.accent-card--orange {
    background: rgba(255, 184, 107, 0.76);
}

.hero-board,
.hero-info {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.hero-board {
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.92);
    padding: 1rem;
    box-shadow: var(--shadow-small);
}

.hero-board__top {
    display: grid;
    gap: 0.2rem;
}

.countdown-tile {
    padding: 1rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: var(--color-pink);
}

.countdown-value {
    display: block;
    font-family: "Baloo 2", cursive;
    font-size: 2.05rem;
    line-height: 1.05;
}

.countdown-value.is-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 1rem;
    line-height: 1;
}

.countdown-unit {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
    padding: 0.58rem 0.42rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.countdown-unit strong {
    overflow: hidden;
    font-family: "Baloo 2", cursive;
    font-size: clamp(1.45rem, 2.8vw, 2.18rem);
    line-height: 0.9;
    text-overflow: ellipsis;
}

.countdown-unit span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-grid,
.contestant-grid,
.event-grid,
.gallery-grid,
.dashboard-grid,
.split-panel,
.question-layout,
.leaderboard-strip,
.stat-card-grid,
.compact-card-grid,
.round-card-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.15rem;
}

.feature-grid > *,
.event-grid > *,
.gallery-grid > *,
.dashboard-grid > *,
.stat-card-grid > *,
.compact-card-grid > * {
    grid-column: span 4;
}

.round-card-grid > * {
    grid-column: span 3;
}

.contestant-grid > * {
    grid-column: span 3;
}

.contestant-grid--compact > * {
    grid-column: span 6;
}

.split-panel > * {
    grid-column: span 6;
}

.question-layout > :first-child {
    grid-column: span 7;
}

.question-layout > :last-child {
    grid-column: span 5;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 170px;
    padding: 1.15rem;
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-small);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 86px;
    height: 86px;
    border: var(--border-thick);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    pointer-events: none;
}

.event-list-page {
    padding-top: clamp(1.15rem, 2.5vw, 1.8rem);
}

.event-list-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.event-list-hero h1 {
    max-width: 15ch;
    margin-bottom: 0.45rem;
    font-size: clamp(3rem, 6.4vw, 5rem);
    letter-spacing: -0.045em;
    line-height: 0.9;
}

.event-list-hero .lead {
    max-width: 58ch;
    margin: 0;
    font-weight: 650;
}

.event-list-summary {
    display: grid;
    min-width: 170px;
    justify-items: center;
    padding: 0.9rem 1rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--color-green), rgba(255, 255, 255, 0.92));
    box-shadow: var(--shadow-small);
    text-align: center;
}

.event-list-summary strong {
    font-family: "Baloo 2", cursive;
    font-size: 3rem;
    line-height: 0.82;
}

.event-list-summary span {
    font-weight: 900;
}

.event-list-stack {
    display: grid;
    gap: 1rem;
}

.event-list-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
    gap: 1.1rem;
    min-height: 230px;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background:
        radial-gradient(circle at 100% 100%, rgba(167, 216, 255, 0.28), transparent 12rem),
        rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-brutal);
}

.event-list-card::before {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 102px;
    height: 102px;
    border: var(--border-thick);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.event-list-card--featured {
    background:
        radial-gradient(circle at 5% 0%, rgba(255, 230, 109, 0.42), transparent 15rem),
        radial-gradient(circle at 100% 100%, rgba(167, 216, 255, 0.36), transparent 14rem),
        rgba(255, 255, 255, 0.96);
}

.event-list-card > * {
    position: relative;
    z-index: 1;
}

.event-list-card__main {
    display: grid;
    align-content: center;
    gap: 0.7rem;
}

.event-list-card h2 {
    max-width: 20ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    letter-spacing: -0.035em;
    line-height: 0.95;
}

.event-list-card p {
    max-width: 68ch;
    margin: 0;
}

.event-list-actions {
    margin-top: 0.25rem;
}

.event-list-card__side {
    display: grid;
    gap: 0.75rem;
    align-content: stretch;
}

.event-list-meta {
    display: grid;
    gap: 0.55rem;
}

.event-list-meta span,
.event-list-countdown-panel {
    display: grid;
    gap: 0.16rem;
    padding: 0.72rem 0.82rem;
    border: 2px dashed rgba(17, 24, 39, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.event-list-meta small,
.event-list-countdown-panel > small {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-list-meta strong {
    font-size: 1.03rem;
}

.event-list-countdown-panel {
    margin-top: auto;
    border-style: solid;
    border-color: var(--color-ink);
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.62), rgba(142, 240, 177, 0.38));
    box-shadow: var(--shadow-small);
}

.event-list-countdown {
    margin: 0.18rem 0 0;
}

.event-list-countdown.is-countdown-grid .countdown-unit {
    border-color: rgba(17, 24, 39, 0.28);
    background: rgba(255, 255, 255, 0.58);
}

.event-list-countdown.is-countdown-grid .countdown-unit span {
    color: var(--color-muted);
}

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: clamp(1rem, 2.6vw, 2.1rem);
    min-height: 320px;
    padding: clamp(1.35rem, 3vw, 2.15rem);
    background:
        radial-gradient(circle at 13% 18%, rgba(255, 255, 255, 0.75) 0 5rem, transparent 5.2rem),
        radial-gradient(circle at 72% 12%, rgba(142, 240, 177, 0.42), transparent 18rem),
        linear-gradient(128deg, rgba(255, 230, 109, 0.94) 0%, rgba(255, 242, 164, 0.88) 42%, rgba(167, 216, 255, 0.86) 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 1rem;
    z-index: -1;
    border: 2px dashed rgba(17, 24, 39, 0.18);
    border-radius: calc(var(--radius-card) - 8px);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    right: clamp(18rem, 32vw, 30rem);
    bottom: -3.4rem;
    z-index: -1;
    width: 12rem;
    height: 12rem;
    border: var(--border-thick);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.48) 0 38%, transparent 39%),
        rgba(255, 158, 207, 0.42);
    opacity: 0.86;
    transform: rotate(-12deg);
}

.home-hero__copy {
    position: relative;
    max-width: 780px;
}

.home-hero h1 {
    max-width: 11ch;
    margin-bottom: 0.85rem;
    font-size: clamp(3.4rem, 7.2vw, 5.9rem);
    letter-spacing: -0.055em;
    line-height: 0.88;
}

.home-hero .lead {
    max-width: 58ch;
    margin: 0;
    font-size: clamp(1rem, 1.25vw, 1.22rem);
    font-weight: 600;
}

.home-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    padding: 0.32rem 0.72rem 0.32rem 0.36rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: white;
    font-weight: 800;
}

.home-kicker span {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--color-green);
    font-weight: 900;
}

.home-event-card {
    position: relative;
    overflow: hidden;
    align-content: stretch;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
}

.home-event-card::before {
    content: "";
    position: absolute;
    top: -42px;
    right: -42px;
    width: 108px;
    height: 108px;
    border: var(--border-thick);
    border-radius: 999px;
    background: rgba(167, 216, 255, 0.62);
}

.home-event-card > * {
    position: relative;
    z-index: 1;
}

.home-event-card__eyebrow {
    width: fit-content;
    padding: 0.32rem 0.58rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    font-weight: 900;
    line-height: 1;
}

.home-event-card > strong {
    font-family: "Baloo 2", cursive;
    font-size: clamp(1.65rem, 2.7vw, 2.18rem);
    letter-spacing: -0.02em;
    line-height: 0.98;
}

.home-event-card__meta {
    display: grid;
    gap: 0.55rem;
}

.home-event-card__meta span {
    display: grid;
    gap: 0.12rem;
    padding: 0.7rem 0.8rem;
    border: 2px dashed rgba(17, 24, 39, 0.26);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.home-event-card__meta small,
.home-countdown > span {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-countdown {
    position: relative;
    overflow: hidden;
    margin-top: auto;
    padding: 0.9rem 1rem;
    border: var(--border-thick);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 230, 109, 0.72), rgba(255, 253, 245, 0.9) 52%, rgba(142, 240, 177, 0.42));
    color: var(--color-ink);
    box-shadow: var(--shadow-small);
}

.home-countdown > span {
    color: var(--color-muted);
}

.home-countdown .countdown-value {
    margin: 0.28rem 0 0;
    color: var(--color-ink);
    font-size: clamp(1.9rem, 3.7vw, 2.85rem);
    letter-spacing: -0.02em;
}

.home-countdown .countdown-value.is-countdown-grid {
    gap: 0.55rem;
}

.home-countdown .countdown-value.is-countdown-grid .countdown-unit {
    border-color: rgba(17, 24, 39, 0.28);
    background: rgba(255, 255, 255, 0.62);
    color: var(--color-ink);
}

.home-countdown .countdown-value.is-countdown-grid .countdown-unit strong {
    color: var(--color-ink);
}

.home-countdown .countdown-value.is-countdown-grid .countdown-unit span {
    color: var(--color-muted);
}

.home-intro {
    margin-top: 1.35rem;
}

.home-intro .quiet-card {
    position: relative;
    overflow: hidden;
    max-width: min(980px, 100%);
    padding: clamp(1.15rem, 2.4vw, 1.65rem);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        radial-gradient(circle at 94% 12%, rgba(255, 230, 109, 0.72), transparent 9rem);
}

.home-intro .quiet-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.55rem;
    background: linear-gradient(180deg, var(--color-yellow), var(--color-green), var(--color-blue));
}

.home-intro h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.home-intro {
    margin-top: 1.35rem;
}

.js-enabled .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 900ms ease, transform 900ms cubic-bezier(0.18, 0.78, 0.24, 1);
    will-change: opacity, transform;
}

.js-enabled .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js-enabled .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }

    .lazy-section__pulse {
        animation: none;
    }
}

.lazy-section {
    position: relative;
    min-height: 196px;
    transition: min-height 700ms ease;
}

.lazy-section--silent:not([data-lazy-loaded="true"]):not([data-lazy-error="true"]) {
    min-height: 1px;
}

.public-surface .page-shell > .lazy-section--silent:not([data-lazy-loaded="true"]):not([data-lazy-error="true"]) {
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}

.lazy-section__placeholder,
.lazy-section__error {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem 1rem;
    min-height: 166px;
    align-items: center;
    padding: clamp(0.95rem, 2vw, 1.25rem);
    border: 2px dashed rgba(17, 24, 39, 0.55);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 230, 109, 0.22), rgba(255, 255, 255, 0.78) 48%, rgba(167, 216, 255, 0.24)),
        rgba(255, 255, 255, 0.72);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease, border-color 520ms ease;
}

.lazy-section__placeholder::before {
    content: "";
    position: absolute;
    inset: -45% -20%;
    z-index: 0;
    background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.72) 48%, transparent 62%);
    transform: translateX(-70%) rotate(4deg);
    animation: lazySweep 2.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.lazy-section__placeholder > *,
.lazy-section__error > * {
    position: relative;
    z-index: 1;
}

.lazy-section__stage {
    position: relative;
    display: grid;
    width: 78px;
    height: 66px;
    place-items: center;
    border: var(--border-soft);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(142, 240, 177, 0.78), rgba(167, 216, 255, 0.72)),
        #ffffff;
    box-shadow: var(--shadow-small);
    animation: lazyStageFloat 2.6s ease-in-out infinite;
}

.lazy-section__pulse {
    position: relative;
    display: block;
    overflow: hidden;
    width: 52px;
    height: 16px;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--color-yellow), var(--color-blue), var(--color-green), var(--color-yellow));
    background-size: 260% 100%;
    animation: lazyPulse 2.4s ease-in-out infinite;
}

.lazy-section__pulse::after {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -20px;
    width: 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.86);
    animation: lazyPulseMarker 1.45s ease-in-out infinite;
}

.lazy-section__tick {
    position: absolute;
    bottom: 9px;
    width: 8px;
    height: 16px;
    border: 2px solid var(--color-ink);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    animation: lazyTick 1.45s ease-in-out infinite;
}

.lazy-section__tick--one {
    left: 15px;
}

.lazy-section__tick--two {
    left: 34px;
    background: var(--color-blue);
    animation-delay: 140ms;
}

.lazy-section__tick--three {
    left: 53px;
    background: var(--color-green);
    animation-delay: 280ms;
}

.lazy-section__copy {
    display: grid;
    min-width: 0;
    gap: 0.3rem;
}

.lazy-section__placeholder strong,
.lazy-section__error strong {
    font-family: "Baloo 2", cursive;
    font-size: 1.35rem;
    line-height: 1;
}

.lazy-section__placeholder p,
.lazy-section__error p {
    margin: 0;
    color: var(--color-muted);
}

.lazy-section__skeleton {
    display: grid;
    grid-column: 1 / -1;
    width: min(100%, 680px);
    gap: 0.42rem;
}

.lazy-section__skeleton span {
    display: block;
    height: 10px;
    border-radius: var(--radius-pill);
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.1), rgba(255, 255, 255, 0.85), rgba(17, 24, 39, 0.1)),
        rgba(17, 24, 39, 0.08);
    background-size: 240% 100%;
    animation: lazySkeleton 1.6s linear infinite;
}

.lazy-section__skeleton span:nth-child(2) {
    width: 82%;
    animation-delay: 120ms;
}

.lazy-section__skeleton span:nth-child(3) {
    width: 58%;
    animation-delay: 240ms;
}

.lazy-section[data-lazy-loaded="true"] {
    min-height: 0;
}

.lazy-section[data-lazy-loading="true"] .lazy-section__placeholder {
    border-color: rgba(17, 24, 39, 0.78);
    opacity: 0.88;
    transform: translateY(3px) scale(0.997);
}

.lazy-section[data-lazy-ready="true"] .lazy-section__content {
    animation: lazyContentSettle 900ms ease both;
}

.lazy-section[data-lazy-ready="true"] .lazy-section__content > * {
    animation: lazyChildCascade 640ms cubic-bezier(0.18, 0.78, 0.24, 1) both;
}

.lazy-section[data-lazy-ready="true"] .lazy-section__content > *:nth-child(2) {
    animation-delay: 80ms;
}

.lazy-section[data-lazy-ready="true"] .lazy-section__content > *:nth-child(3) {
    animation-delay: 160ms;
}

.lazy-section[data-lazy-ready="true"] .lazy-section__content > *:nth-child(4) {
    animation-delay: 240ms;
}

.lazy-section__error {
    grid-template-columns: minmax(0, 1fr) auto;
    animation: lazyErrorBump 420ms ease both;
}

@keyframes lazySweep {
    0% {
        transform: translateX(-70%) rotate(4deg);
    }
    58%,
    100% {
        transform: translateX(70%) rotate(4deg);
    }
}

@keyframes lazyStageFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes lazyPulse {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 260% 50%;
    }
}

@keyframes lazyPulseMarker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(84px);
    }
}

@keyframes lazyTick {
    0%,
    100% {
        transform: scaleY(0.68);
        opacity: 0.66;
    }
    45% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes lazySkeleton {
    0% {
        background-position: 220% 50%;
    }
    100% {
        background-position: -20% 50%;
    }
}

@keyframes lazyContentSettle {
    0% {
        clip-path: inset(0 0 8% 0);
        filter: saturate(0.94);
    }
    100% {
        clip-path: inset(0);
        filter: saturate(1);
    }
}

@keyframes lazyChildCascade {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lazyErrorBump {
    0% {
        transform: translateY(8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .lazy-section__placeholder,
    .lazy-section__error {
        grid-template-columns: 1fr;
    }

    .lazy-section__stage {
        width: 70px;
        height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lazy-section,
    .lazy-section__placeholder,
    .lazy-section__error {
        transition: none;
    }

    .lazy-section__placeholder::before,
    .lazy-section__stage,
    .lazy-section__pulse,
    .lazy-section__pulse::after,
    .lazy-section__tick,
    .lazy-section__skeleton span,
    .lazy-section[data-lazy-ready="true"] .lazy-section__content,
    .lazy-section[data-lazy-ready="true"] .lazy-section__content > *,
    .lazy-section__error {
        animation: none;
    }

    .lazy-section[data-lazy-ready="true"] .lazy-section__content > * {
        opacity: 1;
        transform: none;
    }
}

.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 0.85rem;
}

.home-stat-card {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
    padding: 1rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: rgba(142, 240, 177, 0.72);
    box-shadow: var(--shadow-small);
}

.home-stat-card strong {
    font-family: "Baloo 2", cursive;
    font-size: clamp(2rem, 7vw, 3.1rem);
    line-height: 0.95;
}

.home-stat-card span {
    color: var(--color-muted);
    font-weight: 900;
}

.quiet-card {
    min-width: 0;
    padding: 1.1rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-small);
}

.quiet-card--wide {
    max-width: 920px;
}

.quiet-card p:last-child {
    margin-bottom: 0;
}

.section-heading--simple {
    margin-bottom: 0.8rem;
}

.section-heading--simple h2 {
    margin-bottom: 0;
}

.round-card {
    min-width: 0;
    padding: 0.95rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-small);
}

.round-card span {
    display: inline-flex;
    margin-bottom: 0.55rem;
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
}

.round-card h3,
.round-card p {
    margin-bottom: 0.25rem;
}

.season-path {
    display: grid;
    gap: clamp(1rem, 2.4vw, 1.5rem);
    overflow: hidden;
    padding: clamp(1.15rem, 2.5vw, 1.55rem);
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-left: 7px solid var(--color-ink);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(167, 216, 255, 0.55), transparent 25%),
        radial-gradient(circle at 6% 100%, rgba(255, 230, 109, 0.42), transparent 28%),
        linear-gradient(135deg, rgba(255, 253, 245, 0.74), rgba(142, 240, 177, 0.18) 52%, rgba(255, 158, 207, 0.2));
}

.season-path__head {
    display: grid;
    max-width: 780px;
    gap: 0.45rem;
}

.season-path__head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.95;
}

.season-path__head p {
    max-width: 72ch;
    margin: 0;
    color: var(--color-muted);
    font-weight: 600;
}

.season-orbit {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.season-orbit__step {
    --step-color: var(--color-blue);
    --icon-size: 3rem;
    position: relative;
    display: grid;
    min-width: 0;
    gap: 0.4rem;
    align-content: start;
    padding: 0.82rem;
    border-top: 3px solid var(--step-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.season-orbit__step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: calc(var(--icon-size) / 2 + 0.65rem);
    right: -0.58rem;
    z-index: 1;
    color: rgba(17, 24, 39, 0.4);
    font-size: 1.25rem;
    font-weight: 900;
}

.season-orbit__icon {
    display: inline-grid;
    width: var(--icon-size);
    height: var(--icon-size);
    place-items: center;
    border: 2px solid var(--color-ink);
    border-radius: 50%;
    background: var(--step-color);
    color: var(--color-ink);
    font-size: calc(var(--icon-size) * 0.42);
    box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.12);
}

.season-orbit__index {
    color: var(--step-color);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.74rem;
    font-weight: 900;
}

.season-orbit__step strong {
    font-size: 1.02rem;
    line-height: 1.1;
}

.season-orbit__step small {
    color: var(--color-muted);
    font-weight: 600;
    line-height: 1.35;
}

.season-orbit__step--seed {
    --step-color: var(--color-green);
    --icon-size: 2.65rem;
}

.season-orbit__step--book {
    --step-color: var(--color-blue);
    --icon-size: 2.95rem;
}

.season-orbit__step--bolt {
    --step-color: var(--color-yellow);
    --icon-size: 3.25rem;
}

.season-orbit__step--crown {
    --step-color: var(--color-pink);
    --icon-size: 3.55rem;
}

.season-orbit__step--space {
    --step-color: #1f2f64;
    --icon-size: 3.9rem;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 230, 109, 0.68) 0 5px, transparent 6px),
        radial-gradient(circle at 20% 82%, rgba(167, 216, 255, 0.8) 0 4px, transparent 5px),
        rgba(255, 255, 255, 0.6);
}

.season-orbit__step--space .season-orbit__icon {
    color: #fff;
    box-shadow: 0 0 0 4px rgba(167, 216, 255, 0.28), 5px 5px 0 rgba(17, 24, 39, 0.16);
}

.home-action-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 230, 109, 0.72);
}

.gallery-grid--preview {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.media-thumb,
.gallery-card img,
.partner-preview-card img {
    max-width: 100%;
    height: auto;
}

.media-thumb,
.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.partner-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 0.85rem;
}

.partner-preview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    padding: 0.9rem;
    border: var(--border-soft);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-small);
}

.partner-preview-card img,
.partner-preview-card .logo-placeholder {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: cover;
    border: var(--border-soft);
    border-radius: 18px;
    background: var(--color-blue);
}

.partner-preview-card div:last-child {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.partner-preview-card strong,
.partner-preview-card span {
    min-width: 0;
    overflow-wrap: break-word;
}

.partner-preview-card span {
    color: var(--color-muted);
    font-weight: 800;
}

.auth-intro-card {
    display: grid;
    align-content: center;
    background: rgba(142, 240, 177, 0.75);
}

.auth-intro-card--password {
    gap: 0.75rem;
    align-content: center;
    background:
        linear-gradient(135deg, rgba(142, 240, 177, 0.82), rgba(167, 216, 255, 0.48)),
        white;
}

.auth-intro-card--password h1 {
    margin-bottom: 0;
}

.auth-intro-card__copy {
    max-width: 46ch;
    margin: 0;
    color: var(--color-muted);
    font-weight: 700;
}

.auth-security-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-security-list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
    font-weight: 700;
    line-height: 1.35;
}

.auth-security-list i {
    margin-top: 0.15rem;
    color: #047857;
}

.profile-page {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
    gap: 1.1rem;
    align-items: start;
}

.profile-edit-card label {
    display: grid;
    gap: 0.35rem;
    font-weight: 800;
}

.profile-avatar-preview {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem;
    border: var(--border-soft);
    border-radius: 20px;
    background: rgba(167, 216, 255, 0.18);
}

.profile-avatar-preview img,
.avatar-fallback--profile {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    object-fit: cover;
    border: var(--border-thick);
    border-radius: 22px;
    background: var(--color-blue);
}

.permission-card {
    position: sticky;
    top: 92px;
}

.permission-list {
    display: grid;
    gap: 0.65rem;
}

.permission-row {
    display: grid;
    gap: 0.18rem;
    padding: 0.72rem;
    border: var(--border-soft);
    border-radius: 18px;
    background: rgba(255, 253, 245, 0.94);
}

.permission-row span,
.permission-row em {
    color: var(--color-muted);
    font-style: normal;
}

.readonly-note {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 2px dashed rgba(17, 24, 39, 0.22);
}

.profile-page--polished {
    display: grid;
    gap: 1rem;
    padding-block: 1rem 2rem;
}

.profile-hero-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2.2vw, 1.45rem);
    border: var(--border-thick);
    border-radius: 28px;
    background:
        radial-gradient(circle at 95% 20%, rgba(255, 230, 109, 0.78), transparent 24rem),
        linear-gradient(135deg, rgba(167, 216, 255, 0.92), rgba(255, 253, 245, 0.96));
    box-shadow: 6px 6px 0 var(--color-ink);
}

.profile-hero-card__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
}

.profile-hero-card__identity > img,
.profile-hero-card__identity > .avatar-fallback--profile {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    object-fit: cover;
    border: var(--border-thick);
    border-radius: 24px;
    background: var(--color-blue);
}

.profile-hero-card__identity h1 {
    margin: 0.1rem 0 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
}

.profile-hero-card__identity p {
    max-width: 62ch;
    margin: 0.18rem 0 0;
}

.profile-hero-card__actions {
    display: flex;
    flex: 0 1 360px;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.profile-layout--polished {
    grid-template-columns: minmax(0, 1fr) minmax(min(390px, 100%), 0.78fr);
}

.profile-edit-card,
.permission-card {
    padding: clamp(1rem, 2vw, 1.25rem);
}

.card-heading {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 1rem;
}

.card-heading h2 {
    margin: 0;
}

.profile-edit-card .stack-form {
    gap: 0.9rem;
}

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

.hub-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 0.85rem;
}

.hub-card {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 0.4rem;
    padding: 0.95rem;
    border: var(--border-soft);
    border-radius: 20px;
    background: rgba(255, 253, 245, 0.94);
    color: var(--color-ink);
    text-decoration: none;
    box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.12);
}

.hub-card:hover,
.hub-card:focus-visible {
    background: var(--color-yellow);
    color: var(--color-ink);
    text-decoration: none;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--color-ink);
}

.hub-card.is-active {
    border: var(--border-thick);
    background: var(--color-yellow);
}

.hub-card--disabled {
    background: rgba(232, 225, 210, 0.44);
}

.hub-card__badge {
    width: fit-content;
    max-width: 100%;
    padding: 0.24rem 0.55rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: rgba(167, 216, 255, 0.62);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    font-weight: 900;
}

.hub-card strong {
    font-family: "Baloo 2", cursive;
    font-size: 1.35rem;
    line-height: 1;
}

.hub-card p {
    margin: 0;
    color: var(--color-muted);
}

.ops-card-metrics {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem 0.55rem;
    border-radius: var(--radius-pill);
    background: rgba(142, 240, 177, 0.38);
    color: var(--color-ink);
    font-size: 0.86rem;
    font-weight: 800;
}

.ops-console {
    display: grid;
    gap: 1.25rem;
}

.page-shell > .ops-dashboard-shell {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
}

.ops-dashboard-shell {
    --ops-public: #facc15;
    --ops-public-soft: #fef9c3;
    --ops-exam: #10b981;
    --ops-exam-soft: #d1fae5;
    --ops-media: #38bdf8;
    --ops-media-soft: #e0f2fe;
    --ops-warning: #f97316;
    --ops-warning-soft: #ffedd5;
    --ops-danger: #ef4444;
    --ops-danger-soft: #fee2e2;
    --ops-success: #22c55e;
    --ops-success-soft: #dcfce7;
    --ops-slate: #334155;
    --ops-border: #d8dee8;
    display: grid;
    gap: 1rem;
    padding: 1.35rem 0 2.5rem;
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ops-dashboard-head,
.ops-summary-strip,
.ops-card {
    min-width: 0;
}

.ops-dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ops-dashboard-head .eyebrow {
    color: #64748b;
    font-family: inherit;
    font-weight: 750;
}

.ops-dashboard-head h1 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.ops-dashboard-head p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.96rem;
}

.ops-summary-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--ops-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ops-summary-strip > div:first-child {
    display: grid;
    gap: 0.18rem;
}

.ops-summary-strip strong {
    font-size: 1rem;
}

.ops-summary-strip span {
    color: #475569;
    font-size: 0.92rem;
}

.ops-status-chips {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ops-status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.22rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 750;
}

.ops-status-chip--success {
    border-color: #bbf7d0;
    background: var(--ops-success-soft);
    color: #047857;
}

.ops-status-chip--warning {
    border-color: #fed7aa;
    background: var(--ops-warning-soft);
    color: #9a3412;
}

.ops-command-grid {
    display: grid;
    gap: 1rem;
}

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

.ops-command-grid--bottom {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.ops-card {
    --card-accent: var(--ops-slate);
    background: #fff;
    border: 1px solid var(--ops-border);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.ops-card::before {
    content: "";
    display: block;
    height: 5px;
    background: var(--card-accent);
}

.ops-card > * {
    margin-inline: 1rem;
}

.ops-card > :first-child:not(.ops-card__head) {
    margin-top: 1rem;
}

.ops-card > :last-child {
    margin-bottom: 1rem;
}

.ops-card h2 {
    margin-top: 1rem;
    font-family: inherit;
    font-size: 1.12rem;
    line-height: 1.2;
}

.ops-card--public {
    --card-accent: var(--ops-public);
}

.ops-card--exam {
    --card-accent: var(--ops-exam);
}

.ops-card--media {
    --card-accent: var(--ops-media);
}

.ops-card--attention {
    --card-accent: var(--ops-warning);
}

.ops-card__head {
    display: grid;
    gap: 0.12rem;
    margin: 0;
    padding: 0.95rem 1rem 0.55rem;
}

.ops-card__head span,
.ops-card__head small {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
}

.ops-card__head strong {
    font-size: clamp(2rem, 5vw, 3.15rem);
    line-height: 0.9;
    letter-spacing: 0;
}

.ops-metric-list {
    display: grid;
    gap: 0;
    padding-bottom: 0.2rem;
}

.ops-metric-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 0.75rem;
    align-items: center;
    min-height: 2rem;
    padding: 0.34rem 0;
    border-top: 1px solid #edf1f6;
    color: #334155;
    font-size: 0.9rem;
}

.ops-metric-row:first-child {
    border-top: 0;
}

.ops-metric-row strong {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.ops-metric-row.is-danger strong {
    color: #b91c1c;
}

.ops-metric-row.is-warning strong {
    color: #c2410c;
}

.ops-mini-bar {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.ops-mini-bar i,
.ops-rank-bar i,
.ops-stacked-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--card-accent);
}

.is-danger .ops-mini-bar i {
    background: var(--ops-danger);
}

.is-warning .ops-mini-bar i {
    background: var(--ops-warning);
}

.ops-alert-line {
    margin-bottom: 0.7rem;
    padding: 0.52rem 0.65rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 750;
}

.ops-alert-line.is-warning {
    background: var(--ops-warning-soft);
    color: #9a3412;
}

.ops-alert-line.is-success {
    background: var(--ops-success-soft);
    color: #047857;
}

.ops-stacked-bar {
    display: flex;
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.ops-stacked-bar i {
    border-radius: 0;
}

.ops-stacked-bar .is-image {
    background: #38bdf8;
}

.ops-stacked-bar .is-video {
    background: #6366f1;
}

.ops-stacked-bar .is-audio {
    background: #f97316;
}

.ops-media-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
    margin-bottom: 0.75rem;
}

.ops-media-breakdown span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 750;
}

.ops-media-breakdown i {
    color: #0284c7;
}

.ops-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e7ebf0;
}

.ops-card__actions a,
.ops-quick-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 30px;
    padding: 0.35rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.ops-card__actions a:hover,
.ops-quick-actions a:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.ops-quick-actions a i {
    width: 1rem;
    color: #2563eb;
    text-align: center;
}

.ops-rank-list {
    display: grid;
    gap: 0;
    margin: 0 1rem 1rem;
    padding: 0;
    list-style: none;
}

.ops-rank-list li {
    border-top: 1px solid #edf1f6;
}

.ops-rank-list li:first-child {
    border-top: 0;
}

.ops-rank-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.46rem 0;
    font-size: 0.9rem;
}

.ops-rank-row span {
    overflow: hidden;
    min-width: 0;
    color: #334155;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-rank-list--profiles .ops-rank-row span {
    display: grid;
    gap: 0.15rem;
    white-space: normal;
}

.ops-rank-row small {
    overflow: hidden;
    color: #64748b;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-rank-row strong {
    font-variant-numeric: tabular-nums;
}

.ops-rank-bar {
    height: 8px;
    overflow: hidden;
    margin-top: 0.28rem;
    border-radius: 999px;
    background: #eef2f7;
}

.ops-rank-bar i {
    background: linear-gradient(90deg, #facc15, #10b981);
}

.ops-attention-list {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.ops-attention-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.72rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.ops-attention-item strong {
    font-size: 1.25rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ops-attention-item.is-warning {
    border-color: #fed7aa;
    background: var(--ops-warning-soft);
}

.ops-attention-item.is-danger {
    border-color: #fecaca;
    background: var(--ops-danger-soft);
}

.ops-attention-item.is-success {
    border-color: #bbf7d0;
    background: var(--ops-success-soft);
}

.ops-healthy,
.ops-empty {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.ops-timeline {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.ops-timeline-item {
    position: relative;
    display: grid;
    gap: 0.12rem;
    padding-left: 1.15rem;
}

.ops-timeline-item::before {
    content: "";
    position: absolute;
    left: 0.12rem;
    top: 0.35rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ops-exam);
    box-shadow: 0 0 0 4px var(--ops-exam-soft);
}

.ops-timeline-item strong {
    font-size: 0.92rem;
}

.ops-timeline-item span,
.ops-timeline-item small {
    color: #64748b;
    font-size: 0.84rem;
}

.ops-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ops-system-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e7ebf0;
}

.ops-system-mini div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    padding: 0.6rem;
    border-radius: 10px;
    background: #f8fafc;
}

.ops-system-mini span {
    color: #64748b;
    font-size: 0.76rem;
}

.ops-system-mini strong {
    overflow-wrap: break-word;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .ops-command-grid--top,
    .ops-command-grid--middle,
    .ops-command-grid--bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-command-grid--bottom > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .page-shell > .ops-dashboard-shell {
        width: min(100% - 1rem, 100%);
    }

    .ops-dashboard-head,
    .ops-summary-strip {
        display: grid;
    }

    .ops-command-grid--top,
    .ops-command-grid--middle,
    .ops-command-grid--bottom {
        grid-template-columns: 1fr;
    }

    .ops-command-grid--bottom > :first-child {
        grid-column: auto;
    }

    .ops-status-chips {
        justify-content: flex-start;
    }

    .ops-system-mini {
        grid-template-columns: 1fr;
    }
}

.ops-form-card {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.ops-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 0.95rem;
}

.ops-form-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.ops-field {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
    font-weight: 800;
}

.ops-field small,
.form-error {
    font-size: 0.86rem;
    font-weight: 700;
}

.form-error {
    color: #b42318;
}

.ops-field--checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ops-field--checkbox input[type="checkbox"] {
    width: auto;
    min-width: 1.1rem;
    box-shadow: none;
}

.ops-form-actions {
    grid-column: 1 / -1;
}

.ops-event-setup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-left: 6px solid var(--color-green);
    border-radius: 18px;
    background: linear-gradient(115deg, rgba(142, 240, 177, 0.42), rgba(167, 216, 255, 0.28));
}

.ops-event-setup h2,
.ops-panel-head h2 {
    margin-bottom: 0;
}

.ops-shape-form {
    display: grid;
    gap: 0.75rem;
}

.ops-choice-row > div,
.ops-choice-row ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ops-choice-row label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(17, 24, 39, 0.24);
    border-radius: 14px;
    background: rgba(255, 253, 245, 0.62);
    font-weight: 750;
}

.ops-choice-row input[type="radio"] {
    width: auto;
    min-width: 1rem;
    padding: 0;
    box-shadow: none;
}

.status-badge--warning {
    background: rgba(255, 230, 109, 0.62);
}

.status-badge--new {
    background: #ffe66d;
}

.status-badge--read {
    background: #a7d8ff;
}

.status-badge--resolved {
    background: #8ef0b1;
}

.ops-page-shell {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 0 2.4rem;
}

.ops-page-head,
.ops-feedback-card__head,
.ops-feedback-filter,
.ops-feedback-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.ops-page-head h1 {
    margin: 0;
}

.ops-feedback-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 0.85rem;
}

.ops-feedback-summary article,
.ops-feedback-card {
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background: white;
    box-shadow: var(--shadow-small);
}

.ops-feedback-summary article {
    padding: 0.85rem 1rem;
}

.ops-feedback-summary span {
    display: block;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.ops-feedback-summary strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.7rem;
    line-height: 1;
}

.ops-feedback-filter {
    padding: 1rem;
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.88);
}

.ops-feedback-filter label {
    display: grid;
    gap: 0.35rem;
    min-width: min(210px, 100%);
    font-weight: 800;
}

.ops-feedback-filter input,
.ops-feedback-filter select {
    width: 100%;
}

.ops-feedback-list {
    display: grid;
    gap: 0.95rem;
}

.ops-feedback-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.ops-feedback-card--new {
    background: linear-gradient(135deg, #fff 0%, #fff8cc 100%);
}

.ops-feedback-card--read {
    background: linear-gradient(135deg, #fff 0%, #eef7ff 100%);
}

.ops-feedback-card--resolved {
    background: linear-gradient(135deg, #fff 0%, #effdf4 100%);
}

.ops-feedback-card p {
    margin: 0;
}

.ops-feedback-card dl {
    display: grid;
    grid-template-columns: minmax(90px, 0.2fr) minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    margin: 0;
}

.ops-feedback-card dt {
    color: var(--color-muted);
    font-weight: 800;
}

.ops-feedback-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.ops-feedback-card code {
    overflow-wrap: anywhere;
}

.ops-feedback-card__actions {
    margin-top: 0.25rem;
}

.ops-contestant-editor {
    display: grid;
    gap: 1rem;
}

.ops-contestant-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.ops-edit-panel {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 18px;
    background: var(--ops-panel-bg, rgba(255, 253, 245, 0.58));
}

.ops-edit-panel--identity {
    --ops-panel-bg: linear-gradient(120deg, rgba(255, 230, 109, 0.28), rgba(255, 253, 245, 0.56));
}

.ops-edit-panel--media {
    --ops-panel-bg: linear-gradient(135deg, rgba(167, 216, 255, 0.34), rgba(255, 253, 245, 0.6));
    grid-row: span 2;
}

.ops-edit-panel--story {
    --ops-panel-bg: linear-gradient(120deg, rgba(142, 240, 177, 0.24), rgba(255, 253, 245, 0.58));
}

.ops-edit-panel--stats {
    --ops-panel-bg: linear-gradient(120deg, rgba(255, 158, 207, 0.22), rgba(255, 253, 245, 0.62));
}

.ops-edit-panel--publish {
    --ops-panel-bg: linear-gradient(120deg, rgba(255, 184, 107, 0.24), rgba(255, 253, 245, 0.58));
}

.ops-panel-head {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.ops-panel-head > span {
    display: inline-grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid rgba(17, 24, 39, 0.24);
    border-radius: 999px;
    background: rgba(255, 253, 245, 0.78);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    font-weight: 800;
}

.ops-cropper {
    display: grid;
    gap: 0.9rem;
}

.ops-crop-frame {
    position: relative;
    width: min(100%, 280px);
    margin-inline: auto;
    overflow: hidden;
    border: 2px solid rgba(17, 24, 39, 0.82);
    border-radius: 22px;
    background: rgba(255, 253, 245, 0.72);
}

.ops-crop-frame--square {
    aspect-ratio: 1;
}

.ops-crop-frame--portrait {
    aspect-ratio: 4 / 5;
}

.ops-crop-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--crop-x, 50%) var(--crop-y, 50%);
    transform: scale(var(--crop-zoom, 1));
    transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
}

.ops-crop-empty {
    display: grid;
    min-height: 240px;
    place-items: center;
    color: var(--color-muted);
    font-weight: 750;
}

.ops-file-field input[type="file"] {
    min-height: auto;
    padding: 0.75rem;
}

.ops-crop-controls {
    display: grid;
    gap: 0.65rem;
}

.ops-crop-controls label {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    font-weight: 750;
}

.ops-crop-controls input[type="range"] {
    width: 100%;
    min-height: auto;
    padding: 0;
    box-shadow: none;
}

.ops-stat-list {
    display: grid;
    gap: 0.65rem;
}

.ops-stat-row {
    display: grid;
    grid-template-columns: minmax(80px, 0.8fr) minmax(160px, 1.4fr) minmax(80px, 0.75fr) minmax(80px, 0.75fr) minmax(120px, 0.9fr) auto;
    gap: 0.55rem;
    align-items: end;
    padding: 0.65rem;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 14px;
    background: rgba(255, 253, 245, 0.55);
}

.ops-stat-cell {
    display: grid;
    gap: 0.25rem;
    font-weight: 750;
}

.ops-stat-cell span {
    font-size: 0.76rem;
    color: var(--color-muted);
}

.ops-stat-row input,
.ops-stat-row select {
    min-height: 42px;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

.ops-stat-remove {
    min-height: 42px;
}

.ops-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
}

@media (max-width: 1080px) {
    .ops-contestant-layout,
    .ops-event-setup {
        grid-template-columns: 1fr;
    }

    .ops-edit-panel--media {
        grid-row: auto;
    }

    .ops-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ops-choice-row > div,
    .ops-choice-row ul,
    .ops-stat-row {
        grid-template-columns: 1fr;
    }

    .ops-crop-controls label {
        grid-template-columns: 1fr;
    }
}

.ops-filter-form label {
    display: grid;
    gap: 0.3rem;
    min-width: min(240px, 100%);
}

.ops-gallery-list {
    display: grid;
    gap: 0.85rem;
}

.ops-gallery-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) minmax(100px, 140px) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border: var(--border-soft);
    border-radius: 20px;
    background: rgba(255, 253, 245, 0.82);
}

.ops-gallery-row__thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: var(--border-soft);
}

@media (max-width: 760px) {
    .ops-gallery-row {
        grid-template-columns: 1fr;
    }

    .ops-gallery-row__thumb {
        max-width: 240px;
    }
}

.text-link {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.contestant-list-page {
    padding-top: clamp(1.1rem, 2.4vw, 1.7rem);
}

.contestant-list-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.contestant-list-hero h1 {
    max-width: 10ch;
    margin-bottom: 0.45rem;
    font-size: clamp(3.15rem, 6.8vw, 5.2rem);
    letter-spacing: -0.05em;
    line-height: 0.88;
}

.contestant-list-hero .lead {
    max-width: 56ch;
    margin: 0;
    font-weight: 650;
}

.contestant-list-hero__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.contestant-list-count {
    display: grid;
    min-width: 128px;
    justify-items: center;
    padding: 0.68rem 0.9rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--color-yellow), rgba(255, 255, 255, 0.9));
    box-shadow: var(--shadow-small);
    text-align: center;
}

.contestant-list-count strong {
    font-family: "Baloo 2", cursive;
    font-size: 2.45rem;
    line-height: 0.82;
}

.contestant-list-count span {
    font-weight: 900;
}

.contestant-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.82rem;
    min-height: 360px;
    padding: 0.95rem;
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background: rgba(255, 253, 245, 0.98);
    box-shadow: 6px 6px 0 var(--color-ink);
}

.contestant-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    z-index: -1;
    height: 5.8rem;
    border-bottom: 2px solid rgba(17, 24, 39, 0.12);
    background-color: rgba(255, 230, 109, 0.34);
}

.contestant-card__top {
    display: grid;
    grid-template-columns: clamp(76px, 30%, 86px) minmax(0, 1fr);
    gap: 0.72rem;
    align-items: start;
    min-height: 112px;
}

.contestant-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: var(--border-thick);
    border-radius: 20px;
    background: var(--color-blue);
}

.contestant-card__media--square {
    aspect-ratio: 1;
}

.contestant-card__media--portrait {
    aspect-ratio: 4 / 5;
}

.contestant-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--avatar-crop-x, 50%) var(--avatar-crop-y, 50%);
    transform: scale(var(--avatar-crop-zoom, 1));
    transform-origin: var(--avatar-crop-x, 50%) var(--avatar-crop-y, 50%);
}

.contestant-media-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    cursor: zoom-in;
}

.contestant-media-button:hover img,
.contestant-media-button:focus-visible img {
    filter: saturate(1.08);
}

.contestant-media-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.72);
    outline-offset: 3px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(17, 24, 39, 0.72);
    opacity: 0;
    transition: opacity 160ms ease;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox.is-open {
    opacity: 1;
}

.image-lightbox__panel {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    width: min-content;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    padding: clamp(0.75rem, 2vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background: rgba(255, 253, 245, 0.95);
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.28);
}

.image-lightbox__head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.image-lightbox__title {
    display: grid;
    gap: 0.1rem;
}

.image-lightbox__title strong {
    font-family: "Baloo 2", cursive;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1;
}

.image-lightbox__title span {
    color: var(--color-muted);
    font-weight: 700;
}

.image-lightbox__close {
    width: 2.65rem;
    height: 2.65rem;
    min-height: 0;
    padding: 0;
    border-radius: 999px;
}

.image-lightbox__frame {
    display: grid;
    justify-self: center;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.08);
}

.image-lightbox__frame--square {
    width: min(78vw, calc(86vh - 6rem), 640px);
    aspect-ratio: 1;
}

.image-lightbox__frame--portrait {
    width: min(70vw, calc(68.8vh - 4.8rem), 560px);
    aspect-ratio: 4 / 5;
}

.image-lightbox__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--lightbox-crop-x, 50%) var(--lightbox-crop-y, 50%);
    transform: scale(var(--lightbox-crop-zoom, 1));
    transform-origin: var(--lightbox-crop-x, 50%) var(--lightbox-crop-y, 50%);
}

body.is-lightbox-open {
    overflow: hidden;
}

.profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--avatar-crop-x, 50%) var(--avatar-crop-y, 50%);
    transform: scale(var(--avatar-crop-zoom, 1));
    transform-origin: var(--avatar-crop-x, 50%) var(--avatar-crop-y, 50%);
}

.avatar-fallback {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 5;
    place-items: center;
    border: var(--border-thick);
    border-radius: 20px;
    background: var(--color-blue);
    font-family: "Baloo 2", cursive;
    font-size: 2rem;
}

.contestant-card__media .avatar-fallback {
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}

.avatar-fallback--large {
    max-width: none;
}

.avatar-badge {
    position: absolute;
    right: -0.35rem;
    bottom: -0.35rem;
    min-width: 40px;
    padding: 0.28rem 0.48rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    font-weight: 800;
    text-align: center;
}

.contestant-card__identity {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    min-width: 0;
}

.contestant-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    align-items: flex-start;
    min-width: 0;
}

.contestant-card__class,
.contestant-card__score {
    width: fit-content;
    max-width: 100%;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: white;
    font-weight: 900;
    line-height: 1.16;
}

.contestant-card__class {
    padding: 0.38rem 0.72rem;
    overflow-wrap: anywhere;
}

.contestant-card__score {
    display: inline-flex;
    gap: 0.32rem;
    align-items: baseline;
    margin-left: auto;
    padding: 0.34rem 0.62rem;
    background: var(--color-blue);
    white-space: nowrap;
}

.contestant-card__score strong {
    font-family: "Baloo 2", cursive;
    font-size: 1.1rem;
    line-height: 1;
}

.contestant-card h3 {
    margin-bottom: 0;
    min-height: 2.08em;
    font-size: 1.44rem;
    letter-spacing: 0;
    line-height: 1.04;
    overflow-wrap: break-word;
    text-wrap: balance;
    word-break: normal;
}

.contestant-card__body {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.contestant-card__slogan {
    min-height: 76px;
    padding: 0.72rem 0.82rem;
    background: rgba(255, 230, 109, 0.34);
    font-weight: 650;
}

.card-badges,
.mini-stat-row,
.sponsor-strip {
    flex-wrap: wrap;
}

.mini-stat-row {
    margin-top: 0.7rem;
}

.contestant-card__stats {
    display: grid;
    gap: 0.45rem;
    margin-top: 0;
}

.contestant-card__stats:empty {
    display: none;
}

.stat-pill {
    gap: 0.35rem;
}

.contestant-card .stat-pill {
    display: flex;
    width: 100%;
    justify-content: space-between;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    font-weight: 900;
}

.contestant-card .stat-pill strong {
    font-family: "Baloo 2", cursive;
    font-size: 1.18rem;
    line-height: 1;
}

.contestant-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-self: end;
    margin-top: auto;
}

.contestant-card__actions .button {
    width: 100%;
}

.contestant-card__actions .button:only-child {
    grid-column: 1 / -1;
}

.home-contestant-section,
.contestant-match-list {
    display: grid;
    gap: 1rem;
}

.contestant-match-panel {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.95rem;
    border-top: var(--border-thick);
}

.contestant-match-panel__head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
}

.contestant-match-panel__head h3 {
    margin-bottom: 0.15rem;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}

.contestant-match-panel__head p {
    margin: 0;
}

.contestant-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 300px));
    gap: 0.85rem;
    justify-content: start;
    align-items: stretch;
}

.contestant-card--compact {
    min-height: 0;
    border-radius: 22px;
    box-shadow: var(--shadow-small);
}

.contestant-card--compact::before {
    height: 4.85rem;
}

.contestant-card--compact .contestant-card__top {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 100px;
}

.contestant-card--compact .contestant-card__media {
    width: 74px;
}

.contestant-card--compact h3 {
    min-height: 0;
    font-size: 1.34rem;
}

.contestant-card--compact .contestant-card__body {
    gap: 0.55rem;
}

.contestant-card--compact .contestant-card__slogan {
    min-height: 0;
}

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

@media (max-width: 640px) {
    .contestant-match-panel__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .contestant-match-grid {
        grid-template-columns: 1fr;
    }
}

.mini-stat-row .pill-soft:nth-child(2n) {
    background: var(--color-blue);
}

.mini-stat-row .pill-soft:nth-child(3n) {
    background: var(--color-pink);
}

.profile-hero {
    display: flex;
    gap: clamp(1.15rem, 2.2vw, 1.8rem);
    align-items: center;
}

.profile-avatar {
    position: relative;
    flex: 0 0 clamp(148px, 15vw, 224px);
    width: clamp(148px, 15vw, 224px);
    overflow: hidden;
    border: var(--border-thick);
    border-radius: 28px;
    background: var(--color-blue);
    box-shadow: var(--shadow-small);
}

.profile-avatar--square {
    aspect-ratio: 1;
}

.profile-avatar--portrait {
    aspect-ratio: 4 / 5;
}

.profile-avatar .avatar-fallback--large {
    height: 100%;
    aspect-ratio: auto;
    min-height: clamp(148px, 15vw, 224px);
    border: 0;
    border-radius: 0;
    font-size: clamp(4rem, 7vw, 6.7rem);
    line-height: 1;
    box-shadow: none;
}

.profile-avatar .contestant-media-button {
    height: 100%;
}

.profile-hero__copy {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

.profile-hero__badges {
    margin-bottom: 0.35rem;
}

.profile-hero__badges .pill-soft {
    padding: 0.48rem 0.9rem;
    font-size: 1rem;
    font-weight: 900;
}

.leaderboard-card {
    grid-column: span 3;
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-small);
}

.leaderboard-card--winner {
    background: var(--color-yellow);
}

.leaderboard-card span {
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
}

.leaderboard-card em {
    font-style: normal;
    font-weight: 800;
}

.result-page {
    display: grid;
    gap: clamp(1rem, 2vw, 1.35rem);
    padding-top: clamp(1rem, 2vw, 1.4rem);
}

.result-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 1rem;
    align-items: stretch;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background:
        linear-gradient(135deg, rgba(255, 230, 109, 0.88), rgba(255, 255, 255, 0.92) 46%, rgba(142, 240, 177, 0.56)),
        rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-brutal);
}

.result-hero::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 124px;
    height: 124px;
    border: var(--border-thick);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.result-hero > * {
    position: relative;
    z-index: 1;
}

.result-hero h1 {
    max-width: 12ch;
    margin-bottom: 0;
    font-size: clamp(3rem, 6.2vw, 5rem);
    line-height: 0.9;
}

.result-hero__meta {
    display: grid;
    gap: 0.45rem;
    align-content: center;
    padding: 1rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-small);
}

.result-hero__meta strong {
    font-family: "Baloo 2", cursive;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1;
}

.result-hero__meta span {
    color: var(--color-muted);
    font-weight: 850;
}

.result-pending-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    width: min(100%, 780px);
    padding: clamp(1rem, 2vw, 1.25rem);
    border: var(--border-thick);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(167, 216, 255, 0.24)),
        rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-small);
}

.result-pending-card__mark {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: var(--border-thick);
    border-radius: 18px;
    background: var(--color-blue);
    font-family: "Baloo 2", cursive;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 0.5;
    box-shadow: var(--shadow-small);
}

.result-pending-card h2 {
    margin-bottom: 0.15rem;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.result-pending-card p {
    margin: 0;
}

.result-round-card {
    display: grid;
    gap: 0.75rem;
}

.timeline-list {
    display: grid;
    gap: 0.75rem;
}

.timeline-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.timeline-list > div::before {
    content: "";
    width: 16px;
    height: 16px;
    border: var(--border-soft);
    border-radius: 50%;
    background: var(--color-green);
}

.rules-page {
    display: grid;
    gap: clamp(1.1rem, 2.4vw, 1.8rem);
}

.rules-hero,
.rules-flow {
    width: min(100%, 1080px);
    margin-right: auto;
    margin-left: auto;
}

.rules-hero {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
}

.rules-hero h1 {
    max-width: 12ch;
    margin-bottom: 0;
    font-size: clamp(3.25rem, 7vw, 5.4rem);
    line-height: 0.9;
}

.rules-season {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(17, 24, 39, 0.24);
    border-radius: var(--radius-pill);
    background: rgba(255, 230, 109, 0.46);
    font-weight: 900;
}

.rules-flow {
    display: grid;
    gap: 0.85rem;
}

.rule-card {
    --rule-accent: var(--color-yellow);
    --rule-tint: rgba(255, 230, 109, 0.2);
    display: grid;
    grid-template-columns: minmax(54px, 0.12fr) minmax(0, 1fr);
    gap: clamp(0.9rem, 2vw, 1.35rem);
    align-items: start;
    padding: clamp(1rem, 2.2vw, 1.35rem);
    border-top: 1px solid rgba(17, 24, 39, 0.16);
    border-left: 6px solid var(--rule-accent);
    background: linear-gradient(90deg, var(--rule-tint), rgba(255, 253, 245, 0.36) 72%, transparent);
}

.rule-card--general {
    --rule-accent: var(--color-red);
    --rule-tint: rgba(255, 107, 107, 0.2);
}

.rule-card--obstacle {
    --rule-accent: var(--color-blue);
    --rule-tint: rgba(167, 216, 255, 0.22);
}

.rule-card--acceleration {
    --rule-accent: var(--color-green);
    --rule-tint: rgba(142, 240, 177, 0.22);
}

.rule-card--finish {
    --rule-accent: var(--color-pink);
    --rule-tint: rgba(255, 158, 207, 0.18);
}

.rule-card--tiebreak {
    --rule-accent: var(--color-orange);
    --rule-tint: rgba(255, 184, 107, 0.2);
}

.rule-card__index {
    color: rgba(17, 24, 39, 0.34);
    font-family: "Baloo 2", cursive;
    font-size: clamp(2.1rem, 4.8vw, 4.2rem);
    font-weight: 900;
    line-height: 0.85;
}

.rule-card__body {
    display: grid;
    min-width: 0;
    gap: 0.72rem;
}

.rule-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    align-items: center;
}

.rule-card__top h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 0.92;
}

.rule-card p {
    max-width: 76ch;
    margin: 0;
    font-weight: 650;
}

.rule-card .pill-soft {
    min-height: 30px;
    background: rgba(255, 253, 245, 0.72);
}

.rule-list {
    counter-reset: rule-item;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin: 0.1rem 0 0;
    padding: 0;
    list-style: none;
}

.rule-list li {
    counter-increment: rule-item;
    position: relative;
    min-width: 0;
    padding-left: 2.2rem;
    line-height: 1.55;
}

.rule-list li::before {
    content: counter(rule-item, decimal-leading-zero);
    position: absolute;
    top: 0.15em;
    left: 0;
    display: inline-grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--rule-accent, var(--color-ink));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.raw-config,
.mini-details {
    margin-top: 0.9rem;
}

.raw-config summary,
.mini-details summary {
    cursor: pointer;
    font-weight: 800;
}

.stat-profile-card {
    display: grid;
    gap: 1rem;
}

.mini-profile {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.mini-profile img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border: var(--border-thick);
    border-radius: 18px;
}

.stat-bars {
    display: grid;
    gap: 0.85rem;
}

.stat-bar {
    display: grid;
    gap: 0.35rem;
}

.stat-bar__track {
    display: block;
    height: 16px;
    overflow: hidden;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: white;
}

.stat-bar__track span {
    display: block;
    height: 100%;
    border-right: var(--border-soft);
    background: var(--color-green);
}

.preview-column,
.stack-list,
.stack-form {
    display: grid;
    gap: 0.9rem;
}

.stack-form > div,
.stack-form > label,
.stack-form .form-field {
    display: grid;
    gap: 0.58rem;
    min-width: 0;
}

.stack-form label {
    display: block;
    line-height: 1.35;
}

.form-help ul {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

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

.metric-grid span {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.58rem 0.72rem;
    border: var(--border-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.metric-grid strong {
    font-family: "JetBrains Mono", monospace;
}

.matrix-board {
    display: grid;
    gap: 1rem;
}

.matrix-section {
    box-shadow: var(--shadow-small);
}

.matrix-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2fr);
    gap: 0.9rem;
    align-items: center;
    padding: 0.85rem 0;
    border-top: 2px dashed rgba(17, 24, 39, 0.18);
}

.matrix-row:first-child {
    border-top: 0;
}

.matrix-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.matrix-metrics span {
    padding: 0.38rem 0.62rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: white;
    font-weight: 800;
}

.bulk-sheet {
    display: grid;
    gap: 1rem;
}

.bulk-sheet__toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: rgba(255, 230, 109, 0.86);
    box-shadow: var(--shadow-small);
}

.bulk-sheet__rows {
    display: grid;
    gap: 1rem;
}

.bulk-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(420px, 2fr) minmax(180px, 0.8fr);
    gap: 0.8rem;
    padding: 1rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-small);
}

.bulk-row--error {
    background: rgba(255, 158, 207, 0.22);
}

.bulk-row__meta,
.bulk-row__controls {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.bulk-row__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.bulk-row label {
    display: grid;
    gap: 0.35rem;
    font-weight: 800;
}

.bulk-row textarea {
    min-height: 92px;
}

.bulk-row__errors {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bulk-row__errors span {
    padding: 0.35rem 0.55rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-pink);
    font-weight: 800;
}

.exam-sheet-page {
    width: min(100% - 1.5rem, 1600px);
    margin-inline: auto;
}

.sheet-topbar,
.sheet-actionbar,
.sheet-filterbar {
    display: flex;
    gap: 0.8rem;
    align-items: end;
    justify-content: space-between;
    padding: 0.85rem;
    border: 2px solid rgba(17, 24, 39, 0.24);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
}

.sheet-topbar {
    align-items: center;
    border: var(--border-thick);
    box-shadow: var(--shadow-small);
}

.sheet-topbar h1 {
    margin-bottom: 0.15rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.sheet-topbar__actions,
.sheet-actionbar__buttons,
.sheet-summary,
.sheet-presence {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.sheet-presence {
    padding: 0.55rem 0.75rem;
    border: 2px dashed rgba(17, 24, 39, 0.35);
    border-radius: 18px;
    background: rgba(255, 230, 109, 0.36);
}

.sheet-presence span,
.sheet-summary span {
    padding: 0.28rem 0.48rem;
    border: 1px solid rgba(17, 24, 39, 0.28);
    border-radius: var(--radius-pill);
    background: white;
    font-size: 0.88rem;
    font-weight: 800;
}

.sheet-summary__error {
    background: var(--color-pink) !important;
}

.sheet-matrix {
    border: 2px solid rgba(17, 24, 39, 0.25);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
}

.sheet-matrix summary {
    cursor: pointer;
    padding: 0.72rem 0.9rem;
    font-weight: 900;
}

.sheet-matrix__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 0 0.85rem 0.85rem;
}

.sheet-matrix__section {
    min-width: 0;
    padding: 0.7rem;
    border: 1px solid rgba(17, 24, 39, 0.24);
    border-radius: 16px;
    background: white;
}

.sheet-matrix__section h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.sheet-matrix__row {
    display: grid;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-top: 1px dashed rgba(17, 24, 39, 0.18);
    font-size: 0.86rem;
}

.sheet-matrix__row:first-of-type {
    border-top: 0;
}

.sheet-filterbar {
    flex-wrap: wrap;
    align-items: end;
}

.sheet-filterbar label {
    display: grid;
    min-width: 170px;
    gap: 0.28rem;
    font-weight: 800;
}

.sheet-form,
.sheet-workbench {
    display: grid;
    gap: 0.9rem;
}

.sheet-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
}

.sheet-table-wrap {
    overflow: auto;
    max-height: calc(100vh - 220px);
    border: 2px solid rgba(17, 24, 39, 0.24);
    border-radius: 18px;
    background: white;
}

.sheet-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.sheet-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.55rem 0.45rem;
    border-bottom: 2px solid var(--color-ink);
    background: #f6f3ea;
    text-align: left;
    white-space: nowrap;
}

.sheet-table td {
    padding: 0.38rem 0.45rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.14);
    vertical-align: middle;
}

.sheet-row {
    background: white;
}

.sheet-row:nth-child(4n + 1) {
    background: rgba(167, 216, 255, 0.1);
}

.sheet-row.is-active {
    outline: 3px solid var(--color-yellow);
    outline-offset: -3px;
    background: rgba(255, 230, 109, 0.22);
}

.sheet-row--error {
    background: rgba(255, 158, 207, 0.18);
}

.sheet-cell-package {
    width: 220px;
}

.sheet-cell-package strong {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-cell-package code {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.sheet-cell-index {
    width: 56px;
    font-family: "JetBrains Mono", monospace;
    font-weight: 800;
}

.sheet-inline-text {
    width: 100%;
    min-width: 230px;
    min-height: 38px;
    max-height: 42px;
    padding: 0.42rem 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.28);
    border-radius: 10px;
    box-shadow: none;
    resize: none;
    line-height: 1.25;
}

.sheet-number {
    width: 74px;
    min-height: 38px;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(17, 24, 39, 0.28);
    border-radius: 10px;
    box-shadow: none;
}

.sheet-select {
    min-width: 118px;
    min-height: 38px;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(17, 24, 39, 0.28);
    border-radius: 10px;
    box-shadow: none;
}

.sheet-hidden-field {
    display: none;
}

.sheet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 32px;
    min-height: 28px;
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(17, 24, 39, 0.32);
    border-radius: var(--radius-pill);
    background: rgba(142, 240, 177, 0.48);
    font-size: 0.82rem;
    font-weight: 900;
}

.sheet-badge--missing {
    background: rgba(255, 158, 207, 0.5);
}

.sheet-badge--locked {
    background: rgba(17, 24, 39, 0.12);
}

.sheet-note-flag {
    font-weight: 800;
}

.sheet-open-button,
.sheet-table .button--small {
    width: auto;
    min-height: 34px;
    padding: 0.42rem 0.58rem;
    box-shadow: none;
}

.sheet-error-row td {
    padding: 0.4rem 0.6rem;
    background: rgba(255, 158, 207, 0.22);
}

.sheet-error-row span {
    display: inline-flex;
    margin-right: 0.45rem;
    padding: 0.24rem 0.45rem;
    border: 1px solid rgba(17, 24, 39, 0.28);
    border-radius: var(--radius-pill);
    background: white;
    font-weight: 800;
}

.sheet-inspector {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 0.85rem;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 0.9rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-small);
}

.sheet-inspector__body,
.sheet-inspector__empty {
    display: grid;
    gap: 0.75rem;
}

.sheet-inspector__head,
.sheet-inspector__actions,
.sheet-inspector__media {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
}

.sheet-inspector label {
    display: grid;
    gap: 0.3rem;
    font-weight: 800;
}

.sheet-inspector textarea {
    min-height: auto;
    box-shadow: none;
}

.sheet-inspector__mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.preview-panel,
.markdown-body {
    min-height: 120px;
}

.markdown-body code,
pre {
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.06);
    font-family: "JetBrains Mono", monospace;
}

.button,
button,
input[type="submit"] {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: var(--border-thick);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    color: var(--color-ink);
    padding: 0.78rem 1.08rem;
    font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-small);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    text-decoration: none;
    transform: translate(-1px, -1px);
    box-shadow: 6px 6px 0 var(--color-ink);
}

.button--ghost {
    background: white;
}

.button--blue {
    background: var(--color-blue);
}

.password-field {
    gap: 0.55rem;
}

.password-input-wrap {
    position: relative;
    display: grid;
    min-width: 0;
}

.password-input-wrap input {
    padding-right: 3.4rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(17, 24, 39, 0.06);
    box-shadow: none;
    color: var(--color-muted);
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(167, 216, 255, 0.55);
    box-shadow: none;
    transform: translateY(-50%);
}

.password-toggle i {
    pointer-events: none;
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 0.42rem;
    padding: 0.68rem;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 18px;
    background: rgba(167, 216, 255, 0.18);
}

.password-rules span {
    display: flex;
    gap: 0.38rem;
    align-items: center;
    min-width: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.25;
}

.password-rules span::before {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 24, 39, 0.28);
    border-radius: var(--radius-pill);
    background: white;
}

.password-rules span.is-met {
    color: #047857;
}

.password-rules span.is-met::before {
    border-color: #047857;
    background: #10b981;
}

.password-rules span.is-missing {
    color: #b91c1c;
}

.password-rules span.is-missing::before {
    border-color: #b91c1c;
    background: #fecaca;
}

.button--danger {
    background: var(--color-pink);
}

.button--small {
    min-height: 38px;
    padding: 0.54rem 0.86rem;
    font-size: 0.92rem;
}

.button[disabled],
button[disabled] {
    cursor: not-allowed;
    filter: grayscale(0.85);
    opacity: 0.62;
    transform: none;
}

.list-row {
    padding: 0.8rem 0;
    border-top: 2px dashed rgba(17, 24, 39, 0.25);
}

.list-row:first-child {
    border-top: 0;
}

.table-shell {
    overflow: hidden;
}

.scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.82rem 0.72rem;
    border-bottom: 2px solid rgba(17, 24, 39, 0.15);
    text-align: left;
    vertical-align: top;
}

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

.filter-actions {
    display: flex;
    align-items: end;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border: var(--border-soft);
    border-radius: 18px;
    background: white;
    box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.15);
    font-family: inherit;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    position: relative;
    z-index: 1;
}

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

.flash {
    padding: 0.85rem 1rem;
    background: white;
}

.flash--success {
    background: rgba(142, 240, 177, 0.86);
}

.flash--error {
    background: rgba(255, 158, 207, 0.84);
}

.message-stack {
    display: grid;
    gap: 0.8rem;
    padding-top: 1rem;
}

.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0;
    list-style: none;
}

.inline-list li {
    padding: 0.38rem 0.68rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: white;
}

.stamp {
    min-height: auto;
}

.stamp--pink {
    background: var(--color-pink);
}

.stamp--yellow {
    background: var(--color-yellow);
}

.badge-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: start;
}

.gallery-section {
    margin-bottom: 1.2rem;
}

.gallery-card {
    margin: 0;
    padding: 0.75rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: white;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: var(--border-thick);
    border-radius: 18px;
}

.sponsor-card img {
    max-height: 82px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.sponsor-card {
    min-width: 0;
}

.partner-heading {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.partner-heading h2 {
    min-width: 0;
    margin-bottom: 0;
}

.partner-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    padding: 0.38rem 0.7rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    font-weight: 800;
    white-space: nowrap;
}

.logo-placeholder {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    margin-bottom: 1rem;
    border: var(--border-thick);
    border-radius: 22px;
    background: var(--color-blue);
    font-family: "Baloo 2", cursive;
    font-size: 2rem;
}

.sponsor-chip {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: white;
    font-weight: 800;
}

.sponsor-chip strong {
    min-width: 0;
}

.page--studio .site-header {
    background: rgba(238, 255, 244, 0.96);
}

.page--studio .site-footer {
    padding: 1rem 0;
}

.site-footer {
    padding: 1.05rem 0;
    border-top: var(--border-thick);
    background:
        radial-gradient(circle at 12% 20%, rgba(142, 240, 177, 0.18), transparent 18rem),
        linear-gradient(135deg, #062e55 0%, #0f416d 100%);
    color: white;
}

.feedback-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    width: min(360px, calc(100vw - 28px));
    color: var(--color-ink);
}

.feedback-widget__toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.5rem;
    float: right;
    padding: 0.68rem 0.95rem;
    border: var(--border-thick);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    box-shadow: var(--shadow-small);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.feedback-widget__toggle::-webkit-details-marker {
    display: none;
}

.feedback-widget[open] .feedback-widget__toggle {
    margin-bottom: 0.65rem;
}

.feedback-widget__panel {
    clear: both;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background: white;
    box-shadow: var(--shadow-brutal);
}

.feedback-widget__panel strong,
.feedback-widget__panel small,
.feedback-widget__panel label,
.feedback-widget__panel span {
    display: block;
}

.feedback-widget__panel small {
    color: var(--color-muted);
}

.feedback-widget__panel label {
    display: grid;
    gap: 0.35rem;
    font-weight: 800;
}

.feedback-widget__panel input,
.feedback-widget__panel textarea {
    width: 100%;
    min-width: 0;
}

.feedback-widget__submit {
    justify-self: stretch;
}

.feedback-widget__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
    gap: 1.1rem;
    align-items: center;
}

.footer-brand {
    display: grid;
    gap: 0.12rem;
}

.footer-brand strong {
    font-family: "Baloo 2", cursive;
    font-size: 1.38rem;
    line-height: 1;
}

.footer-brand span,
.footer-brand small {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.footer-brand small {
    font-size: 0.82rem;
}

.footer-navigation {
    display: grid;
    gap: 0.7rem;
    justify-items: end;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.footer-links a,
.footer-external-links a {
    border: 2px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.footer-links a {
    padding: 0.34rem 0.62rem;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.footer-external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.footer-external-links a {
    padding: 0.48rem 0.82rem;
    background: var(--color-yellow);
    color: var(--color-ink);
    box-shadow: var(--shadow-small);
}

.footer-links a:hover,
.footer-external-links a:hover {
    transform: translate(-1px, -1px);
}

@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mobile-drawer {
        display: block;
    }

    .site-header__inner {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3.35rem;
    }

    h2 {
        font-size: 2.05rem;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .event-list-hero,
    .event-list-card {
        grid-template-columns: 1fr;
    }

    .result-hero,
    .result-pending-card {
        grid-template-columns: 1fr;
    }

    .event-list-summary {
        width: min(260px, 100%);
        justify-items: start;
        text-align: left;
    }

    .contestant-list-hero {
        grid-template-columns: 1fr;
    }

    .contestant-list-hero__actions {
        justify-content: flex-start;
    }

    .bulk-row {
        grid-template-columns: 1fr;
    }

    .bulk-row__main {
        grid-template-columns: 1fr;
    }

    .matrix-row {
        grid-template-columns: 1fr;
    }

    .matrix-metrics {
        justify-content: flex-start;
    }

    .feature-grid > *,
    .contestant-grid > *,
    .event-grid > *,
    .gallery-grid > *,
    .dashboard-grid > *,
    .compact-card-grid > *,
    .round-card-grid > *,
    .stat-card-grid > *,
    .leaderboard-card,
    .split-panel > *,
    .question-layout > :first-child,
    .question-layout > :last-child {
        grid-column: span 6;
    }

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

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

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

    .sheet-workbench {
        grid-template-columns: 1fr;
    }

    .sheet-inspector {
        position: static;
        max-height: none;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .permission-card {
        position: static;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .event-list-hero h1 {
        max-width: 100%;
        font-size: clamp(2.55rem, 13vw, 3.7rem);
    }

    .contestant-list-hero h1 {
        max-width: 100%;
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .contestant-list-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contestant-list-count {
        justify-items: start;
        text-align: left;
    }

    .event-list-card {
        min-height: 0;
        padding: 0.95rem;
        box-shadow: 5px 5px 0 var(--color-ink);
    }

    .event-list-card h2 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .event-list-countdown.is-countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero {
        min-height: 0;
        padding: 1.05rem;
    }

    .home-hero::before {
        inset: 0.65rem;
    }

    .home-hero::after {
        right: -4rem;
        bottom: -4rem;
        width: 9rem;
        height: 9rem;
    }

    .home-hero h1 {
        max-width: 100%;
        font-size: clamp(2.85rem, 15vw, 4rem);
        line-height: 0.93;
    }

    .home-kicker {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 20px;
    }

    .site-header__inner,
    .header-actions,
    .section-heading,
    .button-row,
    .bulk-sheet__toolbar,
    .hero-actions,
    .profile-hero,
    .member-row {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header__inner {
        align-items: center;
        flex-direction: row;
    }

    .profile-avatar {
        flex-basis: auto;
        width: min(190px, 56vw);
        align-self: flex-start;
    }

    .brand-pill img {
        width: 44px;
        height: 44px;
    }

    .brand-pill strong {
        font-size: 1.08rem;
    }

    .brand-pill small {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .feature-grid > *,
    .contestant-grid > *,
    .event-grid > *,
    .gallery-grid > *,
    .dashboard-grid > *,
    .compact-card-grid > *,
    .round-card-grid > *,
    .stat-card-grid > *,
    .leaderboard-card,
    .split-panel > *,
    .question-layout > :first-child,
    .question-layout > :last-child {
        grid-column: span 12;
    }

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

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

    .footer-shell {
        grid-template-columns: 1fr;
    }

    .footer-navigation,
    .footer-links,
    .footer-external-links {
        justify-content: flex-start;
        justify-items: start;
    }

    .button,
    button,
    input[type="submit"] {
        width: 100%;
    }

    .button--small {
        width: auto;
    }

    .score-row,
    .info-pair,
    .home-action-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .mobile-sticky {
        position: sticky;
        bottom: 0.75rem;
        padding: 0.5rem;
        border: var(--border-thick);
        border-radius: 22px;
        background: rgba(255, 253, 245, 0.96);
        box-shadow: var(--shadow-small);
    }

    .exam-sheet-page {
        width: min(100% - 1rem, 1600px);
    }

    .sheet-topbar,
    .sheet-actionbar,
    .sheet-filterbar,
    .sheet-inspector__head,
    .sheet-inspector__actions,
    .sheet-inspector__media {
        align-items: stretch;
        flex-direction: column;
    }

    .sheet-topbar__actions,
    .sheet-actionbar__buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .sheet-matrix__grid {
        grid-template-columns: 1fr;
    }

    .sheet-filterbar label {
        min-width: 0;
        width: 100%;
    }

    .sheet-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .sheet-table,
    .sheet-table tbody,
    .sheet-table tr,
    .sheet-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .sheet-table thead,
    .sheet-table td:nth-child(4),
    .sheet-table td:nth-child(5),
    .sheet-table td:nth-child(6),
    .sheet-table td:nth-child(7),
    .sheet-table td:nth-child(9),
    .sheet-table td:nth-child(10) {
        display: none;
    }

    .sheet-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.55rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        border: var(--border-soft);
        border-radius: 18px;
        background: white;
        box-shadow: var(--shadow-small);
    }

    .sheet-row td {
        padding: 0;
        border-bottom: 0;
    }

    .sheet-row td:nth-child(1),
    .sheet-row td:nth-child(3),
    .sheet-row td:nth-child(8) {
        grid-column: 1 / -1;
    }

    .sheet-row td:nth-child(2),
    .sheet-row td:nth-child(11) {
        grid-row: 1;
    }

    .sheet-row td:nth-child(11) {
        grid-column: 2;
    }

    .sheet-error-row {
        display: block !important;
        margin: -0.4rem 0 0.75rem;
    }

    .sheet-error-row td {
        display: block;
        width: 100%;
        border-radius: 16px;
    }

    .sheet-cell-package strong {
        max-width: none;
    }

    .sheet-inline-text {
        min-width: 0;
    }

    .sheet-select {
        width: 100%;
    }

    .sheet-inspector__mini-grid {
        grid-template-columns: 1fr;
    }

    .profile-page {
        width: min(100% - 1rem, 1180px);
    }

    .profile-avatar-preview {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .container,
    .page-shell > .section-block,
    .page-shell > .dashboard-grid,
    .page-shell > .split-panel,
    .page-shell > .question-layout,
    .page-shell > .hero-panel {
        width: min(100% - 1rem, 1180px);
    }

    .page-shell {
        padding-top: 0.9rem;
    }

    .site-header__inner {
        width: min(100% - 1rem, 1600px);
        gap: 0.55rem;
    }

    .brand-pill {
        padding: 0.45rem 0.65rem 0.45rem 0.48rem;
    }

    .hero-panel,
    .card,
    .feature-card,
    .empty-state {
        border-radius: 20px;
        box-shadow: 5px 5px 0 var(--color-ink);
    }

    .hero-panel {
        padding: 0.85rem;
    }

    .profile-avatar {
        width: min(160px, 62vw);
    }

    .profile-hero__badges .pill-soft {
        font-size: 0.95rem;
    }

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

    .countdown-value {
        font-size: 1.6rem;
    }
}

/* Exam Sheet package authoring workspace */
.author-topbar h1 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.author-matrix {
    background: rgba(255, 255, 255, 0.82);
}

.author-actionbar {
    position: sticky;
    top: 0.75rem;
    z-index: 8;
}

.author-readonly-note {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(17, 24, 39, 0.22);
    border-radius: 16px;
    background: rgba(255, 230, 109, 0.32);
    font-weight: 800;
}

.author-workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.author-package-nav {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 0.8rem;
    max-height: calc(100vh - 7rem);
    overflow: auto;
    padding: 0.8rem;
    border: 2px solid rgba(17, 24, 39, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
}

.author-package-nav__group {
    display: grid;
    gap: 0.45rem;
}

.author-package-nav__group h2 {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.author-package-tab {
    display: grid;
    width: 100%;
    gap: 0.15rem;
    min-height: auto;
    padding: 0.58rem 0.65rem;
    border: 1px solid rgba(17, 24, 39, 0.2);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    color: var(--color-ink);
    text-align: left;
}

.author-package-tab:hover,
.author-package-tab:focus-visible {
    transform: none;
    background: rgba(167, 216, 255, 0.24);
}

.author-package-tab.is-active {
    border: 2px solid var(--color-ink);
    background: var(--color-yellow);
}

.author-package-tab.has-warning:not(.is-active) {
    border-color: rgba(245, 158, 11, 0.75);
    background: rgba(255, 184, 107, 0.18);
}

.author-package-tab span {
    font-weight: 900;
    line-height: 1.2;
}

.author-package-tab code,
.author-package-tab small {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.author-package-editor,
.author-package-panel,
.author-question-list {
    display: grid;
    min-width: 0;
    gap: 0.9rem;
}

.author-package-panel[hidden] {
    display: none !important;
}

.author-package-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid rgba(17, 24, 39, 0.2);
    border-radius: 22px;
    background: rgba(255, 253, 245, 0.95);
}

.author-package-head h2 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.author-package-head__actions,
.author-package-summary,
.author-media-strip,
.author-media-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.author-package-head__actions {
    justify-content: flex-end;
}

.author-package-summary {
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--color-muted);
    font-weight: 800;
}

.author-package-summary span {
    padding: 0.26rem 0.5rem;
    border-radius: var(--radius-pill);
    background: white;
}

.author-question-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 20px;
    background: white;
}

.author-question-row--error {
    border-color: rgba(220, 38, 38, 0.6);
    background: rgba(255, 158, 207, 0.13);
}

.author-question-index {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.2rem;
    padding: 0.5rem;
    border: 1px solid rgba(17, 24, 39, 0.15);
    border-radius: 16px;
    background: rgba(167, 216, 255, 0.24);
    line-height: 1;
}

.author-question-index span,
.author-question-index small {
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 900;
}

.author-question-index strong {
    font-size: 2rem;
}

.author-question-fields {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.author-field,
.author-advanced label {
    display: grid;
    min-width: 0;
    gap: 0.32rem;
    font-weight: 900;
}

.author-field--full,
.author-media-strip,
.author-advanced,
.author-row-errors {
    grid-column: 1 / -1;
}

.author-field textarea,
.author-advanced textarea,
.author-advanced input,
.author-advanced select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(17, 24, 39, 0.24);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    font-size: 0.96rem;
    line-height: 1.45;
}

.author-field textarea,
.author-advanced textarea {
    min-height: 96px;
    resize: vertical;
}

.author-field--full textarea {
    min-height: 128px;
}

.author-media-strip {
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    border: 1px dashed rgba(17, 24, 39, 0.22);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.95);
}

.author-media-strip--warning {
    border-color: rgba(245, 158, 11, 0.85);
    background: rgba(255, 184, 107, 0.16);
}

.author-media-strip strong,
.author-media-strip span {
    display: block;
}

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

.author-advanced {
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 14px;
    background: rgba(255, 253, 245, 0.65);
}

.author-advanced summary {
    cursor: pointer;
    padding: 0.62rem 0.75rem;
    color: var(--color-muted);
    font-weight: 900;
}

.author-advanced__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 0.75rem 0.75rem;
}

.author-row-errors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.author-row-errors span {
    padding: 0.32rem 0.55rem;
    border: 1px solid rgba(220, 38, 38, 0.42);
    border-radius: var(--radius-pill);
    background: #fff;
    color: #991b1b;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .author-workspace {
        grid-template-columns: 1fr;
    }

    .author-package-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
        overflow: visible;
        max-height: none;
        padding: 0.65rem;
    }

    .author-package-nav__group {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .author-actionbar {
        position: static;
    }

    .author-package-head,
    .author-media-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .author-package-head__actions,
    .author-media-strip__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .author-question-row {
        grid-template-columns: 1fr;
        padding: 0.8rem;
    }

    .author-question-index {
        grid-template-columns: auto auto 1fr;
        justify-items: start;
        align-items: center;
    }

    .author-question-index strong {
        font-size: 1.4rem;
    }

    .author-question-fields,
    .author-advanced__grid {
        grid-template-columns: 1fr;
    }

    .author-field--full textarea,
    .author-field textarea {
        min-height: 112px;
    }
}

/* Full-page responsive audit hardening */
main,
section,
article,
aside,
nav,
form,
fieldset,
.card,
.hero-panel,
.section-block,
.quiet-card,
.feature-card,
.round-card,
.contestant-card,
.gallery-card,
.leaderboard-card,
.site-footer,
.footer-shell,
.site-header__inner,
.main-nav,
.header-actions,
.button-row,
.button-cluster,
.dashboard-grid,
.split-panel,
.question-layout,
.event-grid,
.event-list-hero,
.event-list-stack,
.event-list-card,
.feature-grid,
.contestant-grid,
.gallery-grid,
.compact-card-grid,
.round-card-grid,
.stat-card-grid,
.lazy-section,
.lazy-section__content,
.lazy-section__placeholder,
.author-workspace,
.author-package-editor,
.author-question-fields,
.profile-hero-card,
.profile-hero-card__identity,
.hub-card-grid,
.hub-card,
.ops-console,
.ops-form-grid,
.ops-gallery-row,
.ops-filter-form {
    min-width: 0;
}

.container,
.page-shell > .section-block,
.page-shell > .dashboard-grid,
.page-shell > .split-panel,
.page-shell > .question-layout,
.page-shell > .hero-panel {
    width: min(100% - 2rem, 1280px);
}

.page-shell > .exam-sheet-page {
    width: min(100% - 1.5rem, 1600px);
}

.site-header .mobile-menu-toggle {
    display: none;
}

.site-header__inner {
    min-height: 78px;
}

.main-nav {
    flex-wrap: nowrap;
    min-width: 0;
}

.main-nav a {
    flex: 0 1 auto;
    white-space: nowrap;
}

.section-heading,
.button-row,
.hero-actions,
.sheet-topbar,
.sheet-actionbar,
.author-package-head,
.author-media-strip,
.member-row,
.info-pair,
.score-row,
.partner-heading {
    flex-wrap: wrap;
}

.button,
button,
input[type="submit"] {
    max-width: 100%;
    white-space: normal;
}

input,
textarea,
select {
    max-width: 100%;
    min-width: 0;
}

input[type="file"] {
    overflow: hidden;
}

.feature-grid,
.event-grid,
.gallery-grid,
.dashboard-grid,
.compact-card-grid,
.stat-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.feature-grid > *,
.event-grid > *,
.gallery-grid > *,
.dashboard-grid > *,
.compact-card-grid > *,
.stat-card-grid > * {
    grid-column: auto;
}

.contestant-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
}

.contestant-grid > *,
.contestant-grid--compact > *,
.contestant-grid--featured > * {
    grid-column: auto;
}

.round-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.round-card-grid > * {
    grid-column: auto;
}

.leaderboard-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.leaderboard-card {
    grid-column: auto;
}

.split-panel {
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
}

.split-panel > * {
    grid-column: auto;
}

.question-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(min(360px, 100%), 0.75fr);
}

.question-layout > :first-child,
.question-layout > :last-child {
    grid-column: auto;
}

.info-pair {
    max-width: 100%;
    min-width: 0;
}

.info-pair > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.profile-avatar-preview {
    flex-wrap: wrap;
}

.profile-avatar-preview > div {
    min-width: 0;
    overflow-wrap: break-word;
}

.mini-stat-row .pill-soft,
.card-badges .pill-soft,
.sponsor-strip .sponsor-chip {
    max-width: 100%;
}

.pill-soft,
.stamp,
.status-badge,
.sponsor-chip,
.partner-badge,
.sheet-badge {
    overflow-wrap: break-word;
}

.author-package-nav {
    min-width: 0;
}

.author-package-tab {
    overflow-wrap: break-word;
}

.author-package-tab span,
.author-package-tab code,
.author-package-tab small {
    min-width: 0;
}

.author-package-head__actions,
.author-media-strip__actions,
.sheet-topbar__actions,
.sheet-actionbar__buttons {
    min-width: 0;
}

@media (min-width: 1101px) {
    .author-workspace {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    }

    .author-package-nav {
        display: grid;
    }
}

@media (max-width: 1080px) {
    .site-header .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .hero-panel,
    .home-hero,
    .profile-layout,
    .profile-layout--polished,
    .split-panel,
    .question-layout {
        grid-template-columns: 1fr;
    }

    .profile-hero-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-hero-card__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .split-panel > *,
    .question-layout > :first-child,
    .question-layout > :last-child {
        grid-column: auto;
    }

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

    .season-orbit__step--space {
        grid-column: 1 / -1;
    }

    .season-orbit__step:not(:last-child)::after {
        display: none;
    }

    .profile-avatar-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .author-package-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
        overflow: visible;
    }

    .author-package-nav__group {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .info-pair {
        display: grid;
        gap: 0.25rem;
        justify-items: start;
        width: 100%;
    }

    .container,
    .page-shell > .section-block,
    .page-shell > .dashboard-grid,
    .page-shell > .split-panel,
    .page-shell > .question-layout,
    .page-shell > .hero-panel,
    .page-shell > .exam-sheet-page,
    .profile-page {
        width: min(100% - 1rem, 100%);
    }

    .season-orbit {
        grid-template-columns: 1fr;
    }

    .season-orbit__step--space {
        grid-column: auto;
    }

    .site-header {
        padding-inline: 0.5rem;
    }

    .site-header__inner {
        min-height: 68px;
    }

    .brand-pill {
        max-width: min(250px, calc(100vw - 5.4rem));
    }

    .mobile-drawer__panel {
        width: min(100%, calc(100vw - 1rem));
    }

    .hero-panel,
    .card,
    .quiet-card,
    .feature-card,
    .round-card,
    .contestant-card,
    .gallery-card,
    .empty-state,
    .author-package-head,
    .author-question-row {
        border-radius: 18px;
        box-shadow: 4px 4px 0 var(--color-ink);
    }

    .sheet-topbar,
    .sheet-actionbar,
    .author-package-head,
    .author-package-summary,
    .author-media-strip,
    .profile-avatar-preview,
    .profile-hero-card__identity {
        align-items: stretch;
        flex-direction: column;
    }

    .button-row > *,
    .hero-actions > *,
    .sheet-topbar__actions > *,
    .sheet-actionbar__buttons > *,
    .author-package-head__actions > *,
    .author-media-strip__actions > *,
    .profile-hero-card__actions > * {
        width: 100%;
    }

    .button--small {
        width: 100%;
    }

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

    .profile-avatar-preview img,
    .avatar-fallback--profile,
    .profile-hero-card__identity > img,
    .profile-hero-card__identity > .avatar-fallback--profile {
        width: 72px;
        height: 72px;
    }

    .footer-shell {
        gap: 0.75rem;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 2.25rem;
    }

    .brand-pill {
        padding: 0.38rem 0.5rem 0.38rem 0.4rem;
    }

    .brand-pill img {
        width: 40px;
        height: 40px;
    }

    .author-question-row,
    .card,
    .quiet-card,
    .hero-panel {
        padding: 0.75rem;
    }
}

.site-header .mobile-menu-toggle,
.site-header .mobile-menu-toggle.button,
.site-header .mobile-menu-toggle.button--small {
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    padding-right: 0;
    padding-left: 0;
}

@media (max-width: 430px) {
    .site-header .mobile-menu-toggle,
    .site-header .mobile-menu-toggle.button,
    .site-header .mobile-menu-toggle.button--small {
        flex-basis: 44px;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
    }
}

/* Focused public portal polish: favicon/countdown companion styles, nav alignment, sponsor centering. */
.site-header {
    padding-inline: clamp(0.75rem, 2.2vw, 1.5rem);
}

.site-header__inner {
    max-width: 1220px;
    min-height: 72px;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.brand-pill {
    max-width: 282px;
    padding: 0.4rem 0.68rem 0.4rem 0.46rem;
}

.brand-pill img {
    width: 44px;
    height: 44px;
}

.brand-pill strong {
    font-size: 1.08rem;
}

.brand-pill small {
    font-size: 0.68rem;
}

.main-nav {
    justify-content: center;
    gap: 0.32rem;
    padding: 0;
}

.main-nav a {
    min-height: 32px;
    padding: 0.36rem 0.56rem;
    border-width: 2px;
    font-size: clamp(0.78rem, 0.76vw, 0.9rem);
    line-height: 1;
}

.main-nav a:hover {
    transform: translateY(-1px);
}

.main-nav a.is-active {
    background: var(--color-green);
    box-shadow: inset 0 -3px 0 rgba(17, 24, 39, 0.18);
}

.header-actions {
    margin-left: auto;
}

.user-menu__button,
.header-actions > .button {
    min-height: 34px;
    white-space: nowrap;
}

.section-heading--center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading--center > div {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
}

.section-heading--center .text-link {
    align-self: center;
}

.sponsor-section {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.sponsor-section .section-heading {
    margin-bottom: 1.25rem;
}

.sponsor-grid,
.partner-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 1rem;
}

.sponsor-card,
.partner-preview-card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.partner-preview-card {
    padding: 1rem;
}

.sponsor-logo-box,
.partner-logo-box {
    display: flex;
    width: 150px;
    height: 70px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.65rem;
}

.sponsor-logo-box img,
.partner-logo-box img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.sponsor-logo-box .logo-placeholder,
.partner-logo-box .logo-placeholder {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0;
}

.partner-preview-card div:last-child,
.partner-heading {
    justify-items: center;
    justify-content: center;
    text-align: center;
}

.partner-heading {
    width: 100%;
}

.empty-state--center {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

@media (max-width: 1280px) and (min-width: 1081px) {
    .site-header__inner {
        max-width: 100%;
    }

    .brand-pill {
        max-width: 248px;
    }

    .main-nav a {
        padding-right: 0.45rem;
        padding-left: 0.45rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 1080px) {
    .site-header__inner {
        min-height: 66px;
    }
}

@media (max-width: 520px) {
    .brand-pill {
        max-width: min(230px, calc(100vw - 6rem));
    }

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

/* Public news page */
.news-page {
    display: grid;
    gap: clamp(0.95rem, 1.7vw, 1.2rem);
    padding-top: clamp(0.8rem, 1.7vw, 1.15rem);
}

.news-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
    gap: clamp(1rem, 2vw, 1.35rem);
    align-items: stretch;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: var(--border-thick);
    border-radius: var(--radius-card);
    background:
        linear-gradient(135deg, rgba(255, 230, 109, 0.86) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(167, 216, 255, 0.72) 100%);
    box-shadow: 6px 6px 0 var(--color-ink);
}

.news-hero::before {
    content: "";
    position: absolute;
    inset: 0.85rem;
    border: 2px dashed rgba(17, 24, 39, 0.18);
    border-radius: calc(var(--radius-card) - 10px);
    pointer-events: none;
}

.news-hero > * {
    position: relative;
    z-index: 1;
}

.news-hero__copy {
    display: grid;
    align-content: center;
}

.news-hero h1 {
    max-width: 16ch;
    margin-bottom: 0.55rem;
    font-size: clamp(3rem, 5.6vw, 4.85rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.news-hero .lead {
    max-width: 58ch;
    margin: 0;
    font-weight: 650;
}

.news-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.news-hero__meta span {
    display: inline-flex;
    gap: 0.35rem;
    align-items: baseline;
    min-height: 42px;
    padding: 0.42rem 0.72rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.78);
    font-weight: 900;
    box-shadow: 3px 3px 0 rgba(17, 24, 39, 0.12);
}

.news-hero__meta strong {
    font-family: "Baloo 2", cursive;
    font-size: 1.6rem;
    line-height: 0.85;
}

.news-hero__panel {
    display: grid;
    gap: 0.75rem;
    align-content: center;
    min-width: 0;
    padding: clamp(0.9rem, 1.8vw, 1.15rem);
    border: var(--border-thick);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-small);
}

.news-hero__label {
    width: fit-content;
    padding: 0.28rem 0.58rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-green);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-hero__panel > strong {
    min-width: 0;
    font-family: "Baloo 2", cursive;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    line-height: 0.98;
    overflow-wrap: break-word;
}

.news-hero__facts {
    display: grid;
    gap: 0.5rem;
}

.news-hero__facts span {
    padding: 0.58rem 0.7rem;
    border: 2px dashed rgba(17, 24, 39, 0.28);
    border-radius: 16px;
    background: rgba(255, 253, 245, 0.9);
    font-weight: 850;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: clamp(1rem, 2vw, 1.25rem);
    align-items: start;
}

.news-layout--announcements-first {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
}

.news-main,
.news-sidebar,
.news-card,
.news-empty-card,
.announcement-card {
    min-width: 0;
}

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

.news-section-head--with-link .text-link {
    margin-bottom: 0.35rem;
}

.news-section-head h2,
.news-sidebar__head h2 {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3.4vw, 2.65rem);
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
}

.news-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.85rem;
    padding: 0.95rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-small);
}

.news-card__cover {
    display: grid;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    place-items: center;
    border: var(--border-thick);
    border-radius: 18px;
    background: rgba(167, 216, 255, 0.36);
}

.news-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__cover--placeholder img {
    width: min(88px, 42%);
    height: auto;
    object-fit: contain;
}

.news-card__body {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.news-card__meta,
.announcement-item__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.news-card__meta .pill-soft {
    min-height: 30px;
    padding: 0.3rem 0.56rem;
    background: var(--color-blue);
    font-size: 0.86rem;
}

.news-card h3,
.announcement-item h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1;
}

.news-card p {
    margin: 0;
}

.news-card .button {
    justify-self: start;
}

.news-empty-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: var(--border-thick);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 245, 0.92)),
        linear-gradient(135deg, rgba(142, 240, 177, 0.38), rgba(167, 216, 255, 0.42));
    box-shadow: var(--shadow-small);
}

.news-empty-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.55rem;
    background: linear-gradient(180deg, var(--color-yellow), var(--color-green), var(--color-blue));
}

.news-empty-card__mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: var(--border-thick);
    border-radius: 20px;
    background: var(--color-green);
    font-family: "Baloo 2", cursive;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--shadow-small);
}

.news-empty-card h2 {
    margin-bottom: 0.3rem;
    font-size: clamp(1.75rem, 3.4vw, 2.4rem);
}

.news-empty-card p {
    max-width: 64ch;
    margin: 0;
}

.news-empty-card .button-row {
    grid-column: 2;
    margin-top: 0;
}

.announcement-feed {
    display: grid;
    gap: 0.85rem;
}

.announcement-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 0.95rem;
    align-items: stretch;
    padding: 0.95rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-small);
}

.announcement-card--featured {
    background:
        linear-gradient(135deg, rgba(142, 240, 177, 0.26), rgba(255, 255, 255, 0.96) 52%),
        rgba(255, 255, 255, 0.96);
    box-shadow: 6px 6px 0 var(--color-ink);
}

.announcement-card__rail {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 92px;
    padding: 0.6rem 0.4rem;
    border: var(--border-thick);
    border-radius: 18px;
    background: var(--color-blue);
    text-align: center;
}

.announcement-card--success .announcement-card__rail {
    background: var(--color-green);
}

.announcement-card--warning .announcement-card__rail,
.announcement-card--danger .announcement-card__rail {
    background: var(--color-pink);
}

.announcement-card__rail span {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 900;
}

.announcement-card__rail strong {
    font-family: "Baloo 2", cursive;
    font-size: 2rem;
    line-height: 0.92;
}

.announcement-card__body {
    display: grid;
    gap: 0.45rem;
    align-content: center;
}

.announcement-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.announcement-card h3 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1;
}

.announcement-card p {
    max-width: 72ch;
    margin: 0;
}

.news-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: var(--border-thick);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-small);
}

.news-sidebar .eyebrow {
    margin-bottom: 0.5rem;
    background: var(--color-green);
}

.announcement-timeline {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding-left: 0.55rem;
}

.announcement-timeline::before {
    content: "";
    position: absolute;
    top: 0.7rem;
    bottom: 0.7rem;
    left: 0.55rem;
    width: 3px;
    border-radius: var(--radius-pill);
    background: rgba(17, 24, 39, 0.2);
}

.announcement-item {
    position: relative;
    display: grid;
    gap: 0.38rem;
    margin-left: 0.7rem;
    padding: 0.82rem;
    border: 2px solid rgba(17, 24, 39, 0.28);
    border-radius: 18px;
    background: rgba(255, 253, 245, 0.92);
}

.announcement-item::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: -1.1rem;
    width: 14px;
    height: 14px;
    border: var(--border-soft);
    border-radius: 50%;
    background: var(--color-blue);
}

.announcement-item--warning::before,
.announcement-item--danger::before {
    background: var(--color-pink);
}

.announcement-item--success::before {
    background: var(--color-green);
}

.announcement-item__level {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0.26rem 0.52rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-yellow);
    font-size: 0.78rem;
    font-weight: 900;
}

.announcement-item p {
    margin: 0;
    line-height: 1.55;
}

.news-sidebar__empty {
    padding: 0.85rem;
    border: 2px dashed rgba(17, 24, 39, 0.28);
    border-radius: 18px;
    background: rgba(255, 253, 245, 0.82);
}

.news-sidebar__empty p {
    margin: 0.25rem 0 0;
}

.news-sidebar--recap {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 245, 0.94)),
        linear-gradient(135deg, rgba(255, 230, 109, 0.42), rgba(167, 216, 255, 0.32));
}

.news-sidebar--recap .eyebrow {
    background: var(--color-yellow);
}

.news-recap-card {
    display: grid;
    gap: 0.8rem;
}

.news-recap-card .news-empty-card__mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 2.55rem;
}

.news-recap-card p {
    margin: 0;
}

.news-sidebar--recap .button-row {
    display: grid;
    gap: 0.55rem;
    margin-top: 0;
}

.news-sidebar--recap .button {
    width: 100%;
}

@media (max-width: 980px) {
    .news-hero,
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .news-page {
        gap: 0.9rem;
    }

    .news-hero,
    .news-empty-card,
    .news-sidebar,
    .news-card,
    .announcement-card {
        border-radius: 18px;
        box-shadow: 4px 4px 0 var(--color-ink);
    }

    .news-hero {
        padding: 1rem;
    }

    .news-hero::before {
        inset: 0.55rem;
        border-radius: 14px;
    }

    .news-hero h1 {
        max-width: 100%;
        font-size: clamp(2.65rem, 14vw, 3.7rem);
    }

    .news-hero__panel,
    .news-sidebar {
        padding: 0.85rem;
    }

    .news-hero__meta span {
        width: 100%;
    }

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

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

    .announcement-card__rail {
        grid-auto-flow: column;
        width: fit-content;
        min-height: 0;
        gap: 0.5rem;
        padding: 0.48rem 0.7rem;
    }

    .announcement-card__rail strong {
        font-size: 1.42rem;
    }

    .announcement-card__top,
    .news-section-head--with-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-empty-card__mark {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 2.35rem;
    }

    .news-empty-card .button-row {
        grid-column: 1;
        width: 100%;
    }

    .news-empty-card .button-row .button {
        width: 100%;
    }

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

/* Public surface refresh: fewer framed cards, more color bands */
body.public-surface {
    --color-ink: #374151;
    --color-muted: #6b7280;
    --color-navy: #4b5563;
    background:
        linear-gradient(180deg,
            rgba(255, 241, 157, 0.34) 0%,
            rgba(231, 247, 255, 0.32) 32%,
            rgba(218, 251, 232, 0.28) 58%,
            rgba(255, 239, 249, 0.3) 100%),
        var(--color-paper);
}

.public-surface .paper-grid {
    opacity: 0.34;
}

.public-surface .site-header {
    background: rgba(255, 253, 245, 0.9);
}

.public-surface .main-nav a {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.public-surface .main-nav a:hover,
.public-surface .main-nav a:focus-visible {
    background: rgba(167, 216, 255, 0.36);
    text-decoration: none;
}

.public-surface .main-nav a.is-active {
    border-color: var(--color-ink);
    background: var(--color-green);
}

.public-surface .page-shell {
    position: relative;
    overflow: clip;
    padding-top: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 253, 245, 0) 0%,
            rgba(255, 253, 245, 0.38) 21%,
            rgba(232, 250, 241, 0.22) 42%,
            rgba(246, 244, 255, 0.22) 67%,
            rgba(255, 253, 245, 0.28) 100%);
}

.public-surface .page-shell > * + * {
    margin-top: 0;
}

.public-surface .page-shell > .section-block,
.public-surface .page-shell > .dashboard-grid,
.public-surface .page-shell > .split-panel,
.public-surface .page-shell > .question-layout,
.public-surface .page-shell > .hero-panel {
    width: 100%;
    padding: clamp(1.35rem, 3vw, 2.25rem) max(1rem, calc((100% - 1180px) / 2));
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 253, 245, 0.5) 0%,
            rgba(255, 253, 245, 0.12) 16%,
            rgba(255, 253, 245, 0) 48%,
            rgba(255, 253, 245, 0.16) 82%,
            rgba(255, 253, 245, 0.46) 100%),
        var(--surface-band, transparent);
    box-shadow: none;
}

.public-surface .page-shell > *:nth-child(4n + 1) {
    --surface-band:
        linear-gradient(155deg, rgba(255, 230, 109, 0.34), rgba(167, 216, 255, 0.24) 58%, rgba(142, 240, 177, 0.16));
}

.public-surface .page-shell > *:nth-child(4n + 2) {
    --surface-band:
        linear-gradient(155deg, rgba(142, 240, 177, 0.24), rgba(255, 253, 245, 0.44) 46%, rgba(167, 216, 255, 0.16));
}

.public-surface .page-shell > *:nth-child(4n + 3) {
    --surface-band:
        linear-gradient(155deg, rgba(255, 158, 207, 0.18), rgba(255, 184, 107, 0.16) 52%, rgba(255, 253, 245, 0.32));
}

.public-surface .page-shell > *:nth-child(4n) {
    --surface-band:
        linear-gradient(155deg, rgba(167, 216, 255, 0.22), rgba(142, 240, 177, 0.18) 54%, rgba(255, 230, 109, 0.14));
}

.public-surface .home-hero {
    --surface-band:
        linear-gradient(160deg, rgba(255, 230, 109, 0.42) 0%, rgba(255, 244, 179, 0.3) 38%, rgba(167, 216, 255, 0.28) 72%, rgba(142, 240, 177, 0.14) 100%);
}

.public-surface .home-intro {
    --surface-band:
        linear-gradient(180deg, rgba(142, 240, 177, 0.22) 0%, rgba(255, 253, 245, 0.36) 52%, rgba(255, 158, 207, 0.1) 100%);
}

.public-surface .lazy-section {
    --surface-band:
        linear-gradient(180deg, rgba(255, 158, 207, 0.12) 0%, rgba(231, 247, 255, 0.2) 48%, rgba(255, 253, 245, 0.26) 100%);
}

.public-surface .hero-panel,
.public-surface .news-hero,
.public-surface .result-hero {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.public-surface .news-hero,
.public-surface .result-hero {
    padding: 0;
    background: transparent;
}

.public-surface .news-hero::before,
.public-surface .result-hero::after {
    display: none;
}

.public-surface .hero-board,
.public-surface .news-hero__panel,
.public-surface .result-hero__meta,
.public-surface .home-event-card {
    border: 0;
    border-left: 5px solid var(--color-ink);
    border-radius: 16px;
    background: rgba(255, 253, 245, 0.62);
    box-shadow: none;
}

.public-surface .card,
.public-surface .quiet-card,
.public-surface .feature-card,
.public-surface .round-card,
.public-surface .event-list-card,
.public-surface .contestant-card,
.public-surface .gallery-card,
.public-surface .leaderboard-card,
.public-surface .news-card,
.public-surface .announcement-card,
.public-surface .news-empty-card,
.public-surface .result-pending-card,
.public-surface .home-stat-card,
.public-surface .partner-preview-card,
.public-surface .sponsor-card,
.public-surface .empty-state {
    border: 1px solid rgba(17, 24, 39, 0.2);
    border-radius: 16px;
    background: var(--card-tint, rgba(255, 253, 245, 0.72));
    box-shadow: none;
}

.public-surface .event-list-card,
.public-surface .result-pending-card,
.public-surface .announcement-card {
    border-left: 6px solid var(--card-accent, var(--color-blue));
}

.public-surface .feature-card::after,
.public-surface .event-list-card::before,
.public-surface .contestant-card::before,
.public-surface .news-empty-card::before {
    opacity: 0.32;
}

.public-surface .event-list-stack > *:nth-child(4n + 1),
.public-surface .feature-grid > *:nth-child(4n + 1),
.public-surface .event-grid > *:nth-child(4n + 1),
.public-surface .dashboard-grid > *:nth-child(4n + 1),
.public-surface .compact-card-grid > *:nth-child(4n + 1),
.public-surface .contestant-grid > *:nth-child(4n + 1),
.public-surface .contestant-match-grid > *:nth-child(4n + 1),
.public-surface .news-card-grid > *:nth-child(4n + 1),
.public-surface .announcement-feed > *:nth-child(4n + 1),
.public-surface .gallery-grid > *:nth-child(4n + 1),
.public-surface .sponsor-grid > *:nth-child(4n + 1),
.public-surface .partner-preview-grid > *:nth-child(4n + 1),
.public-surface .round-card-grid > *:nth-child(4n + 1),
.public-surface .stat-card-grid > *:nth-child(4n + 1),
.public-surface .leaderboard-strip > *:nth-child(4n + 1) {
    --card-tint: rgba(255, 230, 109, 0.48);
    --card-accent: var(--color-yellow);
}

.public-surface .event-list-stack > *:nth-child(4n + 2),
.public-surface .feature-grid > *:nth-child(4n + 2),
.public-surface .event-grid > *:nth-child(4n + 2),
.public-surface .dashboard-grid > *:nth-child(4n + 2),
.public-surface .compact-card-grid > *:nth-child(4n + 2),
.public-surface .contestant-grid > *:nth-child(4n + 2),
.public-surface .contestant-match-grid > *:nth-child(4n + 2),
.public-surface .news-card-grid > *:nth-child(4n + 2),
.public-surface .announcement-feed > *:nth-child(4n + 2),
.public-surface .gallery-grid > *:nth-child(4n + 2),
.public-surface .sponsor-grid > *:nth-child(4n + 2),
.public-surface .partner-preview-grid > *:nth-child(4n + 2),
.public-surface .round-card-grid > *:nth-child(4n + 2),
.public-surface .stat-card-grid > *:nth-child(4n + 2),
.public-surface .leaderboard-strip > *:nth-child(4n + 2) {
    --card-tint: rgba(167, 216, 255, 0.48);
    --card-accent: var(--color-blue);
}

.public-surface .event-list-stack > *:nth-child(4n + 3),
.public-surface .feature-grid > *:nth-child(4n + 3),
.public-surface .event-grid > *:nth-child(4n + 3),
.public-surface .dashboard-grid > *:nth-child(4n + 3),
.public-surface .compact-card-grid > *:nth-child(4n + 3),
.public-surface .contestant-grid > *:nth-child(4n + 3),
.public-surface .contestant-match-grid > *:nth-child(4n + 3),
.public-surface .news-card-grid > *:nth-child(4n + 3),
.public-surface .announcement-feed > *:nth-child(4n + 3),
.public-surface .gallery-grid > *:nth-child(4n + 3),
.public-surface .sponsor-grid > *:nth-child(4n + 3),
.public-surface .partner-preview-grid > *:nth-child(4n + 3),
.public-surface .round-card-grid > *:nth-child(4n + 3),
.public-surface .stat-card-grid > *:nth-child(4n + 3),
.public-surface .leaderboard-strip > *:nth-child(4n + 3) {
    --card-tint: rgba(142, 240, 177, 0.46);
    --card-accent: var(--color-green);
}

.public-surface .event-list-stack > *:nth-child(4n),
.public-surface .feature-grid > *:nth-child(4n),
.public-surface .event-grid > *:nth-child(4n),
.public-surface .dashboard-grid > *:nth-child(4n),
.public-surface .compact-card-grid > *:nth-child(4n),
.public-surface .contestant-grid > *:nth-child(4n),
.public-surface .contestant-match-grid > *:nth-child(4n),
.public-surface .news-card-grid > *:nth-child(4n),
.public-surface .announcement-feed > *:nth-child(4n),
.public-surface .gallery-grid > *:nth-child(4n),
.public-surface .sponsor-grid > *:nth-child(4n),
.public-surface .partner-preview-grid > *:nth-child(4n),
.public-surface .round-card-grid > *:nth-child(4n),
.public-surface .stat-card-grid > *:nth-child(4n),
.public-surface .leaderboard-strip > *:nth-child(4n) {
    --card-tint: rgba(255, 158, 207, 0.38);
    --card-accent: var(--color-pink);
}

.public-surface .accent-card--blue {
    --card-tint: rgba(167, 216, 255, 0.6);
}

.public-surface .accent-card--yellow {
    --card-tint: rgba(255, 230, 109, 0.64);
}

.public-surface .accent-card--green {
    --card-tint: rgba(142, 240, 177, 0.58);
}

.public-surface .accent-card--pink {
    --card-tint: rgba(255, 158, 207, 0.52);
}

.public-surface .accent-card--orange {
    --card-tint: rgba(255, 184, 107, 0.55);
}

.public-surface .info-pair,
.public-surface .event-list-meta span,
.public-surface .event-list-countdown-panel,
.public-surface .news-hero__facts span,
.public-surface .announcement-item,
.public-surface .news-sidebar__empty {
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.44);
}

.public-surface .info-pair .is-empty {
    color: rgba(75, 85, 99, 0.72);
    font-style: italic;
    font-weight: 600;
}

.public-surface .avatar-fallback,
.public-surface .contestant-card__media,
.public-surface .profile-avatar,
.public-surface .contestant-card__media img,
.public-surface .gallery-card img,
.public-surface .news-card__cover,
.public-surface .announcement-card__rail,
.public-surface .result-pending-card__mark {
    border-width: 1px;
    box-shadow: none;
}

.public-surface .news-sidebar {
    border: 0;
    border-radius: 16px;
    background: rgba(255, 230, 109, 0.28);
    box-shadow: none;
}

.public-surface .news-sidebar--recap {
    background: rgba(167, 216, 255, 0.28);
}

.public-surface .empty-state {
    place-items: start;
    max-width: 760px;
}

@media (max-width: 640px) {
    .public-surface .page-shell > .section-block,
    .public-surface .page-shell > .dashboard-grid,
    .public-surface .page-shell > .split-panel,
    .public-surface .page-shell > .question-layout,
    .public-surface .page-shell > .hero-panel {
        padding-inline: 1rem;
    }

    .rules-hero {
        align-items: start;
        flex-direction: column;
    }

    .rules-hero h1 {
        max-width: 100%;
        font-size: clamp(2.9rem, 14vw, 4rem);
    }

    .rule-card {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding-left: 0.95rem;
    }

    .rule-card__index {
        font-size: 2.35rem;
    }

    .rule-list {
        grid-template-columns: 1fr;
    }
}

/* Clean gallery surface */
.gallery-page {
    display: grid;
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
    gap: 1rem;
    align-items: end;
}

.gallery-hero h1 {
    max-width: 12ch;
    margin-bottom: 0;
    font-size: clamp(3.4rem, 7vw, 5.8rem);
    line-height: 0.88;
}

.gallery-hero__meta {
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
    border-left: 5px solid var(--color-ink);
    border-radius: 14px;
    background: rgba(255, 253, 245, 0.58);
}

.gallery-hero__meta strong {
    font-family: "Baloo 2", cursive;
    font-size: 1.35rem;
    line-height: 1;
}

.gallery-hero__meta span {
    color: var(--color-muted);
    font-weight: 850;
}

.gallery-album {
    display: grid;
    gap: 0.9rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(17, 24, 39, 0.18);
}

.gallery-album__head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
}

.gallery-album__head h2 {
    margin-bottom: 0.2rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
}

.gallery-album__head p {
    max-width: 68ch;
    margin: 0;
    color: var(--color-muted);
}

.gallery-album__count {
    flex: 0 0 auto;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgba(17, 24, 39, 0.28);
    border-radius: var(--radius-pill);
    background: rgba(142, 240, 177, 0.55);
    font-weight: 900;
}

.gallery-wall,
.home-gallery-strip {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(0.55rem, 1.5vw, 0.9rem);
}

.gallery-tile {
    position: relative;
    overflow: hidden;
    grid-column: span 4;
    margin: 0;
    border-radius: 18px;
    background: var(--color-blue);
}

.gallery-tile--feature {
    grid-column: span 6;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 420ms ease, filter 420ms ease;
}

.gallery-tile--feature img {
    aspect-ratio: 16 / 10;
}

.gallery-tile:hover img {
    filter: saturate(1.08);
    transform: scale(1.025);
}

.gallery-tile figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.6rem 0.85rem 0.75rem;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.78));
    color: white;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.35;
}

.home-gallery {
    display: grid;
    gap: 0.85rem;
}

.home-gallery-strip .gallery-tile {
    grid-column: span 3;
}

.home-gallery-strip .gallery-tile img {
    aspect-ratio: 5 / 4;
}

@media (max-width: 900px) {
    .gallery-hero,
    .gallery-album__head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .gallery-album__head {
        flex-direction: column;
    }

    .gallery-tile,
    .gallery-tile--feature,
    .home-gallery-strip .gallery-tile {
        grid-column: span 6;
    }
}

@media (max-width: 560px) {
    .gallery-wall,
    .home-gallery-strip {
        grid-template-columns: 1fr;
    }

    .gallery-tile,
    .gallery-tile--feature,
    .home-gallery-strip .gallery-tile {
        grid-column: auto;
    }

    .gallery-tile figcaption {
        position: static;
        padding: 0.6rem 0;
        background: transparent;
        color: var(--color-ink);
    }
}

/* Public typography: slightly lighter text weight */
.public-surface h1,
.public-surface h2,
.public-surface h3 {
    font-weight: 650;
}

.public-surface .lead,
.public-surface .home-hero .lead,
.public-surface .rule-card p,
.public-surface .event-list-hero .lead,
.public-surface .gallery-album__head p {
    font-weight: 500;
}

.public-surface :is(strong, b, th, label, summary, .button, .main-nav a, .mobile-drawer a, .pill-soft, .stamp, .status-badge, .eyebrow, .text-link) {
    font-weight: 700;
}

.public-surface :is(.home-kicker, .home-kicker span, .home-event-card__eyebrow, .home-event-card__meta span, .countdown-unit span, .gallery-album__count, .rules-season, .partner-badge, .gallery-tile figcaption) {
    font-weight: 750;
}

/* Home polish: icons, lighter stats, and compact contestant roster. */
.home-stat-card {
    position: relative;
    overflow: hidden;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem 0.75rem;
}

.home-stat-card__icon {
    display: inline-grid;
    grid-row: span 2;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 2px solid var(--color-ink);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-ink);
    font-size: 1.25rem;
}

.home-stat-card strong,
.home-stat-card > span:not(.home-stat-card__icon) {
    grid-column: 2;
}

.home-stat-card::after {
    content: "";
    position: absolute;
    right: -1rem;
    bottom: -1.35rem;
    width: 4.7rem;
    height: 4.7rem;
    border: 2px solid rgba(17, 24, 39, 0.14);
    border-radius: 999px;
}

.meaning-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.55rem;
}

.meaning-card__icon {
    display: inline-grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border: 2px solid var(--color-ink);
    border-radius: 18px;
    background: var(--color-yellow);
    color: var(--color-ink);
    font-size: 1.35rem;
    animation: homeIconFloat 3.8s ease-in-out infinite;
}

.meaning-card:nth-child(2) .meaning-card__icon {
    background: var(--color-blue);
    animation-delay: 0.45s;
}

.meaning-card:nth-child(3) .meaning-card__icon {
    background: var(--color-green);
    animation-delay: 0.9s;
}

@keyframes homeIconFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    45% {
        transform: translateY(-6px) rotate(-3deg);
    }

    70% {
        transform: translateY(2px) rotate(2deg);
    }
}

.home-contestant-section {
    gap: 1.15rem;
}

.contestant-match-panel {
    padding: clamp(0.95rem, 2vw, 1.25rem);
    border: 1px solid rgba(17, 24, 39, 0.2);
    border-left: 6px solid var(--color-ink);
    border-radius: 18px;
    background: rgba(255, 253, 245, 0.58);
}

.home-contestant-roster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
    gap: 0.8rem;
}

.home-contestant-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 132px;
    padding: 0.78rem;
    border: 1px solid rgba(17, 24, 39, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
}

.home-contestant-card__media {
    position: relative;
    width: 76px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 2px solid var(--color-ink);
    border-radius: 18px;
    background: var(--color-blue);
}

.home-contestant-card__media.contestant-card__media--square {
    aspect-ratio: 1;
}

.home-contestant-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--avatar-crop-x, 50%) var(--avatar-crop-y, 50%);
    transform: scale(var(--avatar-crop-zoom, 1));
    transform-origin: var(--avatar-crop-x, 50%) var(--avatar-crop-y, 50%);
}

.home-contestant-card__media .avatar-fallback {
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}

.home-contestant-card__copy {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
    align-content: center;
}

.home-contestant-card h4 {
    margin: 0;
    font-family: "Baloo 2", cursive;
    font-size: 1.36rem;
    line-height: 1.03;
    text-wrap: balance;
}

.home-contestant-card .button {
    justify-self: start;
    margin-top: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
    .meaning-card__icon {
        animation: none;
    }
}

@media (max-width: 560px) {
    .home-contestant-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .home-contestant-card__media {
        width: 72px;
    }

    .home-contestant-card .button {
        width: 100%;
    }
}

/* Newsroom refresh */
.news-page--refined {
    gap: clamp(1.1rem, 2vw, 1.45rem);
}

.public-surface .news-hero--refined {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
    gap: clamp(1rem, 2.3vw, 1.6rem);
    align-items: stretch;
    min-height: 260px;
    padding: clamp(1.2rem, 3vw, 2.25rem);
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-left: 7px solid var(--color-ink);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 230, 109, 0.5) 0%, rgba(255, 253, 245, 0.76) 40%, rgba(167, 216, 255, 0.44) 74%, rgba(142, 240, 177, 0.28) 100%);
    box-shadow: none;
}

.public-surface .news-hero--refined::before {
    display: block;
    inset: auto clamp(1rem, 2vw, 1.6rem) clamp(1rem, 2vw, 1.6rem) auto;
    width: min(170px, 20vw);
    aspect-ratio: 1;
    border: 3px solid rgba(17, 24, 39, 0.18);
    border-radius: 999px;
    opacity: 0.7;
}

.news-hero--refined .news-hero__copy {
    align-content: center;
    gap: 0.75rem;
}

.news-hero--refined h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(3.4rem, 6.6vw, 5.8rem);
    line-height: 0.9;
}

.news-hero--refined .lead {
    max-width: 62ch;
    font-size: clamp(1.02rem, 1.45vw, 1.18rem);
    line-height: 1.65;
}

.news-hero--refined .news-hero__meta {
    margin-top: 0.25rem;
}

.news-hero--refined .news-hero__meta span {
    min-height: 44px;
    gap: 0.5rem;
    border: 1px solid rgba(17, 24, 39, 0.2);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: none;
}

.news-hero--refined .news-hero__meta i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    background: var(--color-green);
    font-size: 0.88rem;
}

.news-hero--refined .news-hero__meta span:nth-child(2) i {
    background: var(--color-yellow);
}

.news-hero--refined .news-hero__meta span:nth-child(3) i {
    background: var(--color-blue);
}

.news-spotlight {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    align-content: center;
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.news-spotlight__label {
    width: fit-content;
    padding: 0.28rem 0.58rem;
    border: var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--color-green);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-spotlight > strong {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.news-spotlight h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 0.98;
}

.news-spotlight p,
.news-spotlight time {
    margin: 0;
}

.news-spotlight time {
    color: var(--color-muted);
    font-weight: 800;
}

.news-jumpbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    padding-block: 0.1rem;
}

.news-jumpbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(17, 24, 39, 0.22);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.54);
    color: var(--color-ink);
    font-weight: 900;
    text-decoration: none;
}

.news-jumpbar a:nth-child(2) {
    background: rgba(255, 230, 109, 0.48);
}

.news-jumpbar a:nth-child(3) {
    background: rgba(167, 216, 255, 0.46);
}

.news-jumpbar a:nth-child(4) {
    background: rgba(142, 240, 177, 0.44);
}

.news-jumpbar a:hover {
    transform: translateY(-1px);
}

.news-layout--refined {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.33fr);
    gap: clamp(1rem, 2.2vw, 1.5rem);
}

.news-layout--refined .news-sidebar {
    position: sticky;
    top: 94px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.news-side-card {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-left: 6px solid var(--card-accent, var(--color-blue));
    border-radius: 16px;
    background: var(--card-tint, rgba(255, 255, 255, 0.56));
}

.news-side-card + .news-side-card {
    margin-top: 0.85rem;
}

.news-side-card--event {
    --card-tint: rgba(167, 216, 255, 0.36);
    --card-accent: var(--color-blue);
}

.news-side-card--soft {
    --card-tint: rgba(255, 230, 109, 0.34);
    --card-accent: var(--color-yellow);
}

.news-side-card h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1;
}

.news-side-card p {
    margin: 0;
}

.news-fact-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.news-fact-list div {
    display: grid;
    gap: 0.18rem;
    padding: 0.62rem 0.68rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.news-fact-list dt {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.news-fact-list dd {
    margin: 0;
    font-weight: 900;
}

.news-side-links {
    display: grid;
    gap: 0.55rem;
}

.news-side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.54);
    color: var(--color-ink);
    font-weight: 900;
    text-decoration: none;
}

.news-side-links a i {
    order: -1;
}

.public-surface .announcement-card {
    overflow: hidden;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-left: 6px solid var(--card-accent, var(--color-blue));
}

.public-surface .announcement-card--featured {
    border-color: rgba(17, 24, 39, 0.24);
    border-left-color: var(--color-green);
    background:
        linear-gradient(135deg, rgba(142, 240, 177, 0.36), rgba(255, 253, 245, 0.64) 62%),
        rgba(255, 255, 255, 0.7);
}

.public-surface .announcement-card__rail {
    gap: 0.16rem;
    min-height: 112px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
}

.announcement-card__rail i {
    margin-bottom: 0.18rem;
    font-size: 1.12rem;
}

.announcement-card__body {
    padding: 1rem 1.05rem;
}

.announcement-card__top {
    margin-bottom: 0.1rem;
}

.announcement-card h3 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.announcement-feed {
    gap: 0.78rem;
}

.news-page--announcement-led .news-section-head {
    margin-bottom: 0.7rem;
}

.public-surface .news-card {
    border-left: 6px solid var(--card-accent, var(--color-blue));
}

@media (max-width: 980px) {
    .public-surface .news-hero--refined,
    .news-layout--refined {
        grid-template-columns: 1fr;
    }

    .news-layout--refined .news-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .public-surface .news-hero--refined {
        min-height: 0;
        padding: 1rem;
        border-left-width: 5px;
        border-radius: 18px;
    }

    .news-hero--refined h1 {
        max-width: 100%;
        font-size: clamp(2.9rem, 15vw, 4.05rem);
    }

    .news-hero--refined .news-hero__meta span {
        width: 100%;
    }

    .news-jumpbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-jumpbar a {
        justify-content: center;
        min-width: 0;
        text-align: center;
    }

    .public-surface .announcement-card {
        grid-template-columns: 1fr;
    }

    .public-surface .announcement-card__rail {
        grid-auto-flow: column;
        gap: 0.45rem;
        align-items: center;
        justify-content: start;
        width: 100%;
        min-height: 0;
        padding: 0.55rem 0.75rem;
    }

    .announcement-card__body {
        padding: 0.85rem;
    }
}

/* Minimal public news page */
.news-page--minimal {
    width: min(100%, 1040px);
    margin-inline: auto;
    gap: clamp(1.2rem, 2.4vw, 2rem);
    padding-top: clamp(1.4rem, 3vw, 2.2rem);
}

.news-minimal-hero {
    display: grid;
    gap: 0.7rem;
    padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(1rem, 2.6vw, 1.6rem);
    border-bottom: 2px solid rgba(17, 24, 39, 0.16);
}

.news-minimal-hero h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(3.4rem, 7vw, 5.5rem);
    line-height: 0.9;
}

.news-minimal-hero p {
    max-width: 64ch;
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(1.02rem, 1.5vw, 1.16rem);
    line-height: 1.65;
}

.news-minimal-meta {
    color: var(--color-muted) !important;
    font-size: 0.95rem !important;
    font-weight: 850;
}

.news-first-guide {
    max-width: 68ch;
    padding-top: 0.2rem;
    color: var(--color-muted) !important;
    font-size: 0.96rem !important;
}

.news-minimal-section {
    display: grid;
    gap: 0.9rem;
}

.news-minimal-heading {
    display: grid;
    gap: 0.35rem;
}

.news-minimal-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    line-height: 1;
}

.news-minimal-feed,
.news-minimal-grid {
    display: grid;
    gap: 0.75rem;
}

.news-minimal-item,
.news-minimal-post,
.news-minimal-empty {
    display: grid;
    gap: 0.45rem;
    padding: clamp(0.95rem, 2vw, 1.15rem);
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-left: 4px solid var(--news-accent, rgba(17, 24, 39, 0.28));
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: none;
}

.news-minimal-item--info,
.news-minimal-post {
    --news-accent: var(--color-blue);
}

.news-minimal-item--success {
    --news-accent: var(--color-green);
}

.news-minimal-item--warning {
    --news-accent: var(--color-yellow);
}

.news-minimal-item--danger {
    --news-accent: var(--color-pink);
}

.news-minimal-item .announcement-item__level {
    width: fit-content;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 900;
}

.news-minimal-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 850;
}

.news-minimal-item__meta time {
    color: var(--color-muted);
}

.news-minimal-item h3,
.news-minimal-post h3,
.news-minimal-empty h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    line-height: 1.03;
}

.news-minimal-item p,
.news-minimal-post p,
.news-minimal-empty p {
    max-width: 74ch;
    margin: 0;
    line-height: 1.6;
}

.news-minimal-post {
    grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
    align-items: start;
}

.news-minimal-post img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.news-minimal-post .pill-soft {
    width: fit-content;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.news-minimal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    align-items: center;
    margin-top: 0.2rem;
}

.news-reaction {
    display: inline-grid;
    grid-template-rows: auto auto auto;
    gap: 0.08rem;
    align-items: center;
    justify-items: center;
    min-width: 42px;
    margin: 0;
}

.news-minimal-item > .news-reaction {
    margin-top: 0.1rem;
}

.news-reaction button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(75, 85, 99, 0.72);
    font: inherit;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transform: none;
}

.news-reaction strong {
    min-width: 32px;
    color: var(--color-ink);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.news-reaction button:hover,
.news-reaction button.is-active {
    background: transparent;
    box-shadow: none;
    color: #f48024;
    transform: none;
}

.news-reaction button[value="down"]:hover,
.news-reaction button[value="down"].is-active {
    background: transparent;
    box-shadow: none;
    color: #2563eb;
    transform: none;
}

.news-reaction button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.news-clean-page {
    width: min(100%, 960px);
    margin-inline: auto;
    gap: clamp(1.2rem, 2.3vw, 1.85rem);
    padding-top: clamp(1.2rem, 2.8vw, 2rem);
}

.news-clean-hero {
    display: grid;
    gap: 0.6rem;
    padding-bottom: clamp(0.9rem, 2vw, 1.25rem);
    border-bottom: 2px solid rgba(17, 24, 39, 0.18);
}

.news-clean-hero--compact {
    padding-bottom: 0.45rem;
    border-bottom-width: 1px;
}

.news-clean-hero h1 {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(3.1rem, 6.5vw, 5rem);
    line-height: 0.9;
}

.news-clean-hero p {
    max-width: 62ch;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    font-weight: 600;
    line-height: 1.6;
}

.news-clean-section {
    display: grid;
    gap: 0.65rem;
}

.news-clean-heading {
    display: flex;
    gap: 0.75rem;
    align-items: end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(17, 24, 39, 0.14);
    padding-bottom: 0.45rem;
}

.news-clean-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1;
}

.news-clean-heading--meta-only {
    justify-content: flex-end;
    min-height: 1.2rem;
    padding-bottom: 0.25rem;
}

.news-clean-heading span,
.news-clean-meta,
.home-news-row span,
.home-news-row time {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.news-clean-feed,
.home-news-list {
    display: grid;
}

.news-clean-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.news-clean-row--featured {
    padding-top: 1rem;
    border-top: 0;
}

.news-clean-row--featured h3 {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.news-clean-copy {
    display: grid;
    min-width: 0;
    gap: 0.35rem;
}

.news-clean-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
}

.news-clean-meta span {
    color: var(--color-ink);
}

.news-clean-row h3,
.home-news-row h3 {
    margin: 0;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.15;
}

.news-clean-row h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-clean-row p,
.news-clean-empty p,
.home-news-row p {
    max-width: 72ch;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.news-clean-side {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
}

.news-clean-reaction {
    margin-top: -0.18rem;
}

.news-clean-empty {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.home-news-list {
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.home-news-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: start;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.home-news-row > div {
    display: grid;
    min-width: 0;
    gap: 0.28rem;
}

.home-news-row time {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .news-page--minimal {
        padding-top: 1rem;
    }

    .news-minimal-hero h1 {
        max-width: 100%;
        font-size: clamp(3rem, 16vw, 4.25rem);
    }

    .news-minimal-post {
        grid-template-columns: 1fr;
    }

    .news-reaction {
        width: fit-content;
    }

    .news-clean-row,
    .home-news-row {
        grid-template-columns: 1fr;
    }

    .news-clean-side {
        justify-items: start;
    }
}
