:root {
    --bg-deep: #0b0816;
    --bg-mid: #17112c;
    --bg-panel: rgba(18, 21, 42, 0.78);
    --bg-panel-strong: rgba(16, 18, 36, 0.9);
    --line-soft: rgba(168, 250, 243, 0.16);
    --line-strong: rgba(250, 118, 146, 0.22);
    --text-main: #f6fbff;
    --text-soft: #b5c4da;
    --text-dim: #7e90a8;
    --cyan: #79f0ef;
    --cyan-strong: #3dd8db;
    --coral: #ff7c98;
    --coral-strong: #ff5f83;
    --gold: #f6f86e;
    --winner-bg: rgba(121, 240, 239, 0.16);
    --winner-text: #96fffa;
    --loss-bg: rgba(255, 124, 152, 0.14);
    --loss-text: #ff9db1;
    --shadow-panel: 0 20px 70px rgba(0, 0, 0, 0.42);
}

html {
    min-height: 100%;
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 18% 18%, rgba(121, 240, 239, 0.12), transparent 20%),
        radial-gradient(circle at 78% 22%, rgba(255, 124, 152, 0.16), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(119, 63, 183, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(9, 7, 18, 0.7), rgba(9, 7, 18, 0.92)),
        linear-gradient(135deg, #0a0716 0%, #18112b 52%, #120d22 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 24% 74%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px),
        radial-gradient(circle at 62% 30%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px),
        radial-gradient(circle at 90% 64%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
        radial-gradient(circle at 36% 54%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1.5px);
    opacity: 0.5;
}

a {
    color: inherit;
}

.site-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: auto -15vw -24vh auto;
    width: 40vw;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #ffcf8b 0%, #cc8350 42%, #342118 73%, transparent 74%);
    opacity: 0.42;
    pointer-events: none;
    filter: blur(0.5px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(10, 9, 21, 0.86), rgba(10, 9, 21, 0.62));
    border-bottom: 1px solid rgba(121, 240, 239, 0.14);
}

.site-header-inner,
.site-main,
.site-footer {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.impersonation-banner {
    width: min(1180px, calc(100% - 2rem));
    margin: 1rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(246, 248, 110, 0.38);
    border-radius: 8px;
    background: rgba(46, 39, 24, 0.88);
    color: var(--text-main);
    box-shadow: var(--shadow-panel);
}

.impersonation-banner form {
    margin: 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.site-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(121, 240, 239, 0.24), rgba(255, 124, 152, 0.18));
    border: 1px solid rgba(121, 240, 239, 0.2);
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-shadow: 0 0 14px rgba(121, 240, 239, 0.25);
    box-shadow: inset 0 0 18px rgba(121, 240, 239, 0.08);
}

.site-brand-mark-image {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
}

.site-brand-copy strong {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-brand-copy span {
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.site-nav > a,
.site-account-dropdown a {
    position: relative;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: var(--text-soft);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-account-dropdown a:hover,
.site-account-dropdown a:focus-visible {
    color: var(--text-main);
    border-color: rgba(121, 240, 239, 0.18);
    background: rgba(121, 240, 239, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.site-nav > a.is-active,
.site-account-dropdown a.is-active {
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(121, 240, 239, 0.16), rgba(255, 124, 152, 0.12));
    border-color: rgba(121, 240, 239, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.site-account-menu {
    position: relative;
}

.site-account-menu summary {
    list-style: none;
}

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

.site-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.7rem 0.3rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(121, 240, 239, 0.18);
    background: rgba(121, 240, 239, 0.08);
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.site-account-chip:hover,
.site-account-chip:focus-visible {
    border-color: rgba(121, 240, 239, 0.28);
    background: rgba(121, 240, 239, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.site-account-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(121, 240, 239, 0.1);
}

.site-account-avatar-fallback {
    display: inline-grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--cyan);
    background:
        linear-gradient(135deg, rgba(121, 240, 239, 0.18), rgba(255, 124, 152, 0.14));
}

.site-account-name {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-account-caret {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.site-account-menu[open] .site-account-caret {
    color: var(--text-main);
}

.site-account-dropdown {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    min-width: 13rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.18);
    background: rgba(14, 17, 33, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    z-index: 30;
}

.site-account-dropdown-label {
    padding: 0.45rem 0.65rem 0.6rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-main {
    padding: 3rem 0 4rem;
}

.status-note {
    display: inline-block;
    margin: 0 0 1.1rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(121, 240, 239, 0.22);
    background: rgba(121, 240, 239, 0.1);
    color: var(--text-main);
}

[hidden] {
    display: none !important;
}

.status-note-error {
    border-color: rgba(255, 124, 152, 0.24);
    background: rgba(255, 124, 152, 0.12);
}

.field-validation-valid,
.validation-summary-valid {
    display: none;
}

.admin-linking-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-linking-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(26rem, 34rem);
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    background: rgba(12, 15, 31, 0.56);
}

.admin-linking-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1.3rem;
}

.admin-linking-meta {
    margin: 0.35rem 0;
    color: var(--text-soft);
}

.admin-linking-separator {
    margin: 0 0.45rem;
    color: var(--text-dim);
}

.admin-session-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.admin-session-stat {
    min-height: 4.8rem;
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(22, 27, 50, 0.58);
}

.admin-session-stat span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-session-stat strong {
    display: block;
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.25;
}

.admin-session-stat-active {
    border-color: rgba(121, 240, 239, 0.32);
    background: rgba(121, 240, 239, 0.13);
}

.admin-session-stat-active strong {
    color: var(--cyan);
}

.admin-session-stat-open {
    border-color: rgba(246, 248, 110, 0.28);
    background: rgba(246, 248, 110, 0.1);
}

.admin-session-stat-open strong {
    color: var(--gold);
}

.admin-linking-form {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

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

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

.admin-role-actions .button-link,
.admin-linking-actions .button-link {
    width: 100%;
}

.match-generator-layout {
    align-items: start;
    margin-top: 1.4rem;
}

.match-generator-entry-list,
.match-generator-rounds {
    display: grid;
    gap: 0.7rem;
}

.match-generator-round {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(121, 240, 239, 0.14);
}

.match-generator-round h3 {
    margin: 0;
}

.match-generator-match {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(8, 14, 34, 0.36);
}

.match-generator-match-bye {
    border-color: rgba(245, 237, 107, 0.25);
    background: rgba(245, 237, 107, 0.07);
}

.match-generator-meta {
    margin-bottom: 0.5rem;
}

.submission-queue-card h2 {
    margin-bottom: 0.5rem;
}

.submission-queue-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1.25rem;
    align-items: start;
}

.submission-queue-main {
    min-width: 0;
}

.submission-queue-summary {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0;
}

.submission-queue-error-summary {
    color: #ffb9c7;
}

.submission-queue-actions {
    display: grid;
    gap: 0.85rem;
    justify-items: stretch;
}

.submission-queue-form {
    width: 100%;
    max-width: none;
}

.submission-queue-cancel-form {
    margin-top: 0;
}

.submission-queue-cancel-form .button-link,
.submission-queue-form .button-link {
    width: 100%;
}

.submission-queue-published {
    margin-top: 0;
}

.submission-queue-details {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(121, 240, 239, 0.14);
}

.submission-queue-details-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    list-style: none;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

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

.submission-queue-details-summary::before {
    content: "+";
    color: rgba(121, 240, 239, 0.8);
    font-weight: 700;
}

.submission-queue-details[open] .submission-queue-details-summary::before {
    content: "-";
}

.submission-queue-details-body {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.35rem;
}

.admin-linking-form-linked {
    opacity: 0.9;
}

.admin-audit-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-audit-card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    background: rgba(12, 15, 31, 0.56);
}

.admin-audit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.admin-audit-header h2 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
}

.admin-audit-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-end;
    text-align: right;
    font-size: 0.95rem;
}

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

.admin-audit-json-panel {
    min-width: 0;
}

.admin-audit-json {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(10, 12, 24, 0.92);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-linking-label {
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-linking-select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(11, 13, 28, 0.9);
    color: var(--text-main);
}

.admin-linking-select:focus {
    outline: 2px solid rgba(121, 240, 239, 0.28);
    outline-offset: 2px;
}

.hero,
.content-panel,
.placeholder-page,
.error-page {
    position: relative;
    overflow: hidden;
    background: var(--bg-panel);
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-panel);
}

.hero::before,
.content-panel::before,
.placeholder-page::before,
.error-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(121, 240, 239, 0.05), transparent 28%, rgba(255, 124, 152, 0.04) 72%, transparent 100%);
}

.hero {
    display: grid;
    gap: 1.75rem;
    padding: 3rem;
    margin-bottom: 1.75rem;
    background:
        radial-gradient(circle at top right, rgba(121, 240, 239, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 124, 152, 0.14), transparent 28%),
        var(--bg-panel-strong);
}

.hero-copy {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero-copy-home {
    max-width: 52rem;
}

.home-upcoming-title {
    display: inline-block;
    max-width: none;
    margin-inline: 0;
    color: transparent;
    background:
        linear-gradient(135deg, #ffffff 0%, #d7fffb 28%, #ffc2d0 68%, #fff0bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 2px 0 rgba(8, 10, 22, 0.45),
        0 0 18px rgba(121, 240, 239, 0.22),
        0 0 36px rgba(255, 124, 152, 0.18);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.26));
}

.home-upcoming-subtitle {
    margin: 0.75rem 0 0;
    color: var(--text-soft);
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-upcoming-meta {
    margin: 0.45rem 0 0;
    color: var(--text-dim);
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-premiere-presenter {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.8rem 1.15rem 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background:
        radial-gradient(circle at top center, rgba(121, 240, 239, 0.12), transparent 62%),
        linear-gradient(180deg, rgba(14, 18, 36, 0.94), rgba(29, 18, 38, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 30px rgba(0, 0, 0, 0.22);
}

.home-premiere-presenter-kicker {
    margin: 0;
    color: rgba(255, 215, 223, 0.9);
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow:
        0 2px 0 rgba(38, 8, 15, 0.85),
        0 0 16px rgba(255, 124, 152, 0.24);
}

.home-premiere-presenter-names {
    margin: 0;
    color: #39d1ca;
    font-family: "Arial Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.02;
    text-transform: uppercase;
    text-shadow:
        0 2px 0 rgba(7, 10, 24, 0.95),
        0 4px 0 rgba(89, 10, 18, 0.92),
        0 0 20px rgba(121, 240, 239, 0.24),
        0 0 30px rgba(255, 124, 152, 0.18);
    -webkit-text-stroke: 1.4px rgba(10, 14, 25, 0.9);
}

.hero h1,
.placeholder-page h1,
.error-page h1 {
    margin: 0;
    max-width: 12ch;
    font-family: Bahnschrift, "Arial Black", Impact, sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow:
        0 0 22px rgba(121, 240, 239, 0.18),
        0 0 0 rgba(0, 0, 0, 0.6);
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--coral);
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-text,
.placeholder-intro,
.error-page p,
.content-panel p {
    max-width: 70ch;
    font-size: 1.05rem;
    line-height: 1.72;
    color: var(--text-soft);
}

.hero-supporting-text {
    margin: 1rem auto 0;
    max-width: 52ch;
    color: var(--text-dim);
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.hero-home-aside {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 1.25rem 1.4rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(121, 240, 239, 0.08), transparent 40%),
        linear-gradient(160deg, rgba(255, 124, 152, 0.08), transparent 48%),
        rgba(7, 13, 28, 0.56);
    border: 1px solid rgba(121, 240, 239, 0.12);
}

.hero-home-mark {
    display: flex;
    justify-content: center;
}

.hero-home-mark img {
    display: block;
    width: min(100%, 150px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.hero-home-stats {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.hero-home-stats div {
    display: grid;
    gap: 0.25rem;
}

.hero-home-stats dt {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-home-stats dd {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.55;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(121, 240, 239, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button-link:hover,
.button-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(121, 240, 239, 0.34);
    box-shadow: 0 0 20px rgba(121, 240, 239, 0.12);
    outline: none;
}

.button-link-primary {
    background: linear-gradient(90deg, rgba(33, 185, 205, 0.86), rgba(255, 124, 152, 0.82));
    border-color: rgba(255, 124, 152, 0.28);
    color: #fff;
}

.button-link-subtle {
    min-height: 2.5rem;
    padding: 0.6rem 0.95rem;
    color: var(--text-soft);
}

.button-link-compact {
    min-height: 2.2rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.92rem;
}

.content-panel,
.placeholder-page,
.error-page {
    padding: 2rem;
}

.content-panel h2,
.placeholder-page h2,
.error-page h2 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main);
}

.page-header {
    margin-bottom: 1.5rem;
}

.competition-index-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.competition-index-intro {
    margin-bottom: 1.5rem;
}

.competition-index-table th:nth-child(1),
.competition-index-table td:nth-child(1) {
    width: 9%;
}

.competition-index-table th:nth-child(2),
.competition-index-table td:nth-child(2) {
    width: 49%;
}

.competition-index-table th:nth-child(3),
.competition-index-table td:nth-child(3),
.competition-index-table th:nth-child(4),
.competition-index-table td:nth-child(4),
.competition-index-table th:nth-child(5),
.competition-index-table td:nth-child(5) {
    white-space: nowrap;
}

.competition-name-cell .table-link {
    display: inline-block;
    max-width: 28ch;
}

.competition-video-menu {
    position: relative;
    display: inline-block;
}

.competition-video-menu-summary {
    list-style: none;
    cursor: pointer;
    color: var(--cyan);
    font-weight: 700;
}

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

.competition-video-menu[open] .competition-video-menu-summary {
    color: var(--text-main);
}

.competition-video-menu-list {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 8;
    min-width: 12rem;
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    background: linear-gradient(180deg, rgba(18, 24, 46, 0.98), rgba(24, 18, 40, 0.96));
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.competition-video-menu-item {
    display: block;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.competition-video-menu-item:hover,
.competition-video-menu-item:focus-visible {
    background: rgba(121, 240, 239, 0.1);
    color: var(--cyan);
}

.entrant-index-table th:nth-child(1),
.entrant-index-table td:nth-child(1) {
    width: 46%;
}

.entrant-index-table th:nth-child(2),
.entrant-index-table td:nth-child(2),
.entrant-index-table th:nth-child(3),
.entrant-index-table td:nth-child(3),
.entrant-index-table th:nth-child(4),
.entrant-index-table td:nth-child(4),
.entrant-index-table th:nth-child(5),
.entrant-index-table td:nth-child(5) {
    white-space: nowrap;
}

.competition-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
}

.competition-overview-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.competition-overview-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
}

.competition-overview-title {
    min-width: 0;
}

.competition-poster-thumb-card {
    display: block;
    width: min(210px, 100%);
    justify-self: end;
    text-decoration: none;
}

.competition-poster-thumb-image {
    display: block;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.competition-challenge-card {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(121, 240, 239, 0.08), rgba(255, 124, 152, 0.06));
    border: 1px solid rgba(121, 240, 239, 0.14);
}

.competition-challenge-label {
    margin: 0 0 0.45rem;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.competition-challenge-text {
    margin: 0;
    color: var(--text-main);
    font-size: 1.08rem;
    line-height: 1.7;
}

.competition-facts-card {
    align-self: stretch;
    padding: 1.35rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 124, 152, 0.09), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(121, 240, 239, 0.055));
    border: 1px solid rgba(121, 240, 239, 0.12);
}

.competition-facts-heading {
    margin: 0 0 0.9rem;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.competition-fact {
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    background: rgba(121, 240, 239, 0.045);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.competition-fact-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
}

.competition-fact-label {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.competition-fact-value {
    display: block;
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.25;
}

.competition-fact-subtext {
    display: block;
    margin-top: 0.18rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.competition-division-finals {
    display: grid;
    gap: 0.25rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.competition-division-final strong {
    color: var(--text-main);
}

.page-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.crumb-link {
    color: var(--cyan);
    text-decoration: none;
}

.crumb-link:hover,
.crumb-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.page-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: start;
    align-items: center;
}

.detail-card {
    margin-bottom: 1.5rem;
}

.competition-entry-groups {
    display: grid;
    gap: 1.25rem;
}

.competition-entry-group {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(121, 240, 239, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(121, 240, 239, 0.03));
}

.competition-entry-group-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.competition-entry-group-header h3 {
    margin: 0;
}

.competition-entry-group .section-copy {
    margin: 0.25rem 0 0;
}

.winner-card {
    display: grid;
    gap: 1.5rem;
}

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

.competition-poster-link {
    display: block;
}

.competition-poster-image {
    display: block;
    width: min(100%, 720px);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.competition-poster-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
    gap: 0.85rem;
    margin-top: 0.9rem;
}

.competition-poster-gallery-panel {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.competition-poster-gallery-item {
    display: grid;
    gap: 0.45rem;
    color: var(--text-soft);
    text-decoration: none;
    max-width: 160px;
}

.competition-poster-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    max-height: 210px;
    border-radius: 12px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(121, 240, 239, 0.04);
}

.competition-poster-gallery-item span {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.home-teaser-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 26px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(121, 240, 239, 0.05));
}

.home-teaser-image-link {
    display: block;
}

.home-teaser-image {
    display: block;
    width: min(100%, 560px);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.finalist-card {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(121, 240, 239, 0.05));
    border: 1px solid rgba(121, 240, 239, 0.12);
}

.finalist-card-winner {
    border-color: rgba(121, 240, 239, 0.22);
    box-shadow: inset 0 0 0 1px rgba(121, 240, 239, 0.05);
}

.finalist-card-label {
    margin: 0 0 0.75rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.finalist-card-header {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.finalist-thumb-link {
    display: block;
}

.finalist-thumb,
.finalist-thumb-placeholder {
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(121, 240, 239, 0.05);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.finalist-thumb {
    display: block;
    object-fit: cover;
}

.finalist-thumb-placeholder {
    display: grid;
    place-items: center;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.finalist-card-copy {
    min-width: 0;
}

.finalist-card-copy h2 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.finalist-card-entry {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.champion-showdown-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(121, 240, 239, 0.05));
}

.champion-showdown-side {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.champion-showdown-side h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
}

.champion-showdown-role {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.champion-showdown-entry {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.champion-showdown-center {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    text-align: center;
}

.champion-showdown-versus {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.champion-showdown-winner-label {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.champion-showdown-winner {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.3;
}

.rules-sections {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

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

.rules-disclosure {
    border: 1px solid rgba(121, 240, 239, 0.12);
    border-radius: 22px;
    background: rgba(121, 240, 239, 0.03);
    padding: 0.2rem 1rem 1rem;
}

.rules-disclosure-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 0;
    cursor: pointer;
    list-style: none;
}

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

.rules-disclosure-title {
    color: var(--text-main);
    font-weight: 700;
}

.rules-disclosure-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.rules-bracket-heading {
    margin: 0;
    color: var(--text-main);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rules-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.rules-category-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(121, 240, 239, 0.04), rgba(255, 124, 152, 0.04));
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.rules-category-heading {
    margin: 0 0 0.85rem;
    color: var(--text-main);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rules-list {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.rule-row {
    display: grid;
    gap: 0.25rem;
}

.rule-name {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 700;
}

.rule-text {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.winner-card-copy {
    min-width: 0;
}

.section-kicker {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.info-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(121, 240, 239, 0.03));
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.info-card h2 {
    margin-top: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.home-archive-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.home-archive-copy h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.home-archive-links {
    display: grid;
    gap: 0.9rem;
}

.home-archive-link {
    display: grid;
    gap: 0.28rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(121, 240, 239, 0.04);
    color: inherit;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.home-archive-link strong {
    color: var(--cyan);
    font-size: 1rem;
}

.home-archive-link span {
    color: var(--text-soft);
    line-height: 1.55;
}

.home-archive-link:hover,
.home-archive-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(121, 240, 239, 0.22);
    background: rgba(121, 240, 239, 0.07);
    outline: none;
}

.home-links-panel {
    display: grid;
    gap: 1.5rem;
    padding: 2.15rem;
    margin-bottom: 1.75rem;
}

.home-links-copy {
    max-width: 46rem;
}

.home-links-copy h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.home-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.home-link-card {
    display: grid;
    gap: 0.4rem;
    min-height: 9.5rem;
    padding: 1.1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background:
        radial-gradient(circle at top right, rgba(121, 240, 239, 0.1), transparent 38%),
        linear-gradient(180deg, rgba(121, 240, 239, 0.04), rgba(255, 124, 152, 0.05));
    color: inherit;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.home-link-card strong {
    color: var(--cyan);
    font-size: 1rem;
}

.home-link-card span {
    color: var(--text-soft);
    line-height: 1.55;
}

.home-link-card:hover,
.home-link-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(121, 240, 239, 0.22);
    background: linear-gradient(180deg, rgba(121, 240, 239, 0.08), rgba(255, 124, 152, 0.08));
    outline: none;
}

.home-links-more {
    border: 1px solid rgba(121, 240, 239, 0.12);
    border-radius: 20px;
    background: rgba(121, 240, 239, 0.03);
    padding: 0.2rem 1rem 1rem;
    margin-top: 0.1rem;
}

.home-links-more-summary {
    padding: 0.9rem 0;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.home-links-more-summary::-webkit-details-marker {
    display: none;
}

.home-links-more-list {
    display: grid;
    gap: 0.75rem;
}

.home-links-more-item {
    display: grid;
    gap: 0.22rem;
    color: inherit;
    text-decoration: none;
}

.home-links-more-item strong {
    color: var(--text-main);
}

@media (max-width: 760px) {
    .home-links-panel {
        padding: 1.8rem;
    }

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

.home-links-more-item span {
    color: var(--text-soft);
    line-height: 1.5;
}

.home-links-more-item:hover strong,
.home-links-more-item:focus-visible strong {
    color: var(--cyan);
}

.placeholder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.82rem;
    border-radius: 999px;
    background: rgba(121, 240, 239, 0.08);
    border: 1px solid rgba(121, 240, 239, 0.14);
    color: var(--cyan);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pill-link {
    text-decoration: none;
}

.feature-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-soft);
    line-height: 1.8;
}

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

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

.data-table th,
.data-table td {
    padding: 0.95rem 0.75rem;
    border-bottom: 1px solid rgba(121, 240, 239, 0.1);
    text-align: left;
    vertical-align: top;
}

.data-table tr:hover td {
    background: rgba(121, 240, 239, 0.04);
}

.data-table th {
    color: var(--text-dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.number-cell {
    white-space: nowrap;
    color: var(--gold);
    font-weight: 700;
}

.table-link {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover,
.table-link:focus-visible {
    color: #b8ffff;
    text-decoration: underline;
    outline: none;
}

.entry-image-cell {
    width: 104px;
}

.entry-thumb {
    display: block;
    width: 88px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(121, 240, 239, 0.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.entry-hero-panel {
    margin-bottom: 1.5rem;
}

.entry-hero-grid {
    display: grid;
    gap: 1.35rem;
}

.entry-hero-media {
    min-width: 0;
    margin-top: 1rem;
}

.entry-hero-image,
.entry-hero-placeholder {
    width: min(100%, 980px);
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(121, 240, 239, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.entry-hero-image {
    display: block;
    height: auto;
    object-fit: contain;
}

.entry-hero-placeholder {
    display: grid;
    place-items: center;
}

.entry-hero-ship-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.entry-hero-ship-card {
    display: grid;
    gap: 0.55rem;
    text-decoration: none;
}

.entry-hero-ship-thumb,
.entry-hero-ship-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(121, 240, 239, 0.05);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.entry-hero-ship-thumb {
    display: block;
    object-fit: cover;
}

.entry-hero-ship-placeholder {
    display: grid;
    place-items: center;
}

.entry-hero-ship-name {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.entry-hero-copy h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.ship-detail-panel {
    margin-bottom: 1.5rem;
}

.ship-detail-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}

.ship-detail-context h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.ship-detail-media {
    min-width: 0;
    margin-top: 1rem;
}

.ship-detail-image,
.ship-detail-placeholder {
    width: min(100%, 980px);
    max-height: 620px;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(121, 240, 239, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.ship-detail-image {
    display: block;
    height: auto;
    object-fit: contain;
}

.ship-detail-placeholder {
    display: grid;
    place-items: center;
}

.ship-detail-panel .ship-detail-flow {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.ship-detail-panel .ship-detail-flow > * {
    width: 100% !important;
    max-width: none !important;
}

.entry-notes {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(121, 240, 239, 0.05);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.entry-notes p:last-child {
    margin-bottom: 0;
}

.entry-upload-panel {
    display: grid;
    gap: 1rem;
}

.entry-upload-form {
    display: grid;
    gap: 0.85rem;
}

.entry-upload-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
}

.ship-image-upload-panel {
    background: transparent;
    border-style: dashed;
}

.ship-image-upload-summary {
    list-style: none;
    width: fit-content;
    cursor: pointer;
}

.ship-image-upload-summary::-webkit-details-marker {
    display: none;
}

.ship-image-upload-summary::before {
    content: "+";
    margin-right: 0.45rem;
    font-weight: 700;
    color: rgba(121, 240, 239, 0.8);
}

.ship-image-upload-panel[open] .ship-image-upload-summary::before {
    content: "-";
}

.ship-image-upload-body {
    margin-top: 0.9rem;
}

.ship-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ship-settings-toggle {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.ship-settings-form {
    margin-top: 0.75rem;
}

.ship-settings-form-body {
    display: grid;
    gap: 0.85rem;
}

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

.section-header-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ship-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(117, 234, 255, 0.35);
    background: rgba(117, 234, 255, 0.12);
    color: #9ff3ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.muted-text {
    color: var(--text-dim);
}

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

.entrant-trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.entrant-trophy-grid-sparse {
    grid-template-columns: repeat(auto-fit, minmax(190px, 280px));
    justify-content: start;
}

.entrant-trophy-card {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(121, 240, 239, 0.04));
}

.entrant-trophy-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.entrant-trophy-copy h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.entrant-trophy-count {
    margin: 0.35rem 0 0;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-grid h2 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
}

.winner-ships {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.winner-ships-medium {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.winner-ships-compact {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.winner-ship-card {
    display: grid;
    gap: 0.65rem;
    text-decoration: none;
}

.winner-ship-thumb,
.winner-ship-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(121, 240, 239, 0.05);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.winner-ship-thumb {
    display: block;
    object-fit: cover;
}

.winner-ship-thumb-placeholder {
    display: grid;
    place-items: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.winner-ship-name {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.entry-fleet-card {
    display: grid;
    gap: 0.9rem;
    min-width: min(100%, 24rem);
}

.entry-fleet-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

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

.entry-fleet-fallback {
    display: grid;
    gap: 0.35rem;
}

.entry-fleet-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.entry-fleet-thumb-link {
    display: block;
}

.entry-fleet-thumb,
.entry-fleet-thumb-placeholder {
    width: 88px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(121, 240, 239, 0.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.entry-fleet-thumb {
    display: block;
    object-fit: cover;
}

.entry-fleet-thumb-placeholder {
    display: grid;
    place-items: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-align: center;
}

.entry-fleet-copy {
    min-width: 0;
}

.award-subject-cell {
    display: grid;
    gap: 0.2rem;
}

.award-name-cell,
.match-round-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.award-badge-image {
    display: block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.entry-honours-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.entry-honour-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.entry-honour-count {
    position: absolute;
    right: -0.25rem;
    bottom: -0.2rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--gold);
    color: #1a132c;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.award-context-text {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ship-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.ship-detail-meta-item {
    min-width: 160px;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: rgba(121, 240, 239, 0.04);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.ship-detail-meta-value {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

.ship-stats-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    background:
        radial-gradient(circle at top left, rgba(121, 240, 239, 0.1), transparent 32%),
        rgba(9, 13, 29, 0.54);
}

.ship-detail-flow > .ship-stats-panel {
    margin-top: 0;
}

.ship-stats-panel > .section-kicker {
    grid-column: 1 / -1;
    margin: 0;
}

.ship-stats-section {
    display: grid;
    gap: 0.7rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(121, 240, 239, 0.1);
}

.ship-stats-panel > .section-kicker + .ship-stats-section {
    padding-top: 0;
    border-top: 0;
}

.ship-stats-section h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ship-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
    gap: 0.75rem;
}

.ship-stat-card {
    min-height: 4.5rem;
    padding: 0.85rem;
    border-radius: 17px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.ship-stat-card strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-main);
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    overflow-wrap: anywhere;
}

.ship-stat-card-feature {
    border-color: rgba(246, 248, 110, 0.28);
    background:
        linear-gradient(135deg, rgba(246, 248, 110, 0.12), rgba(121, 240, 239, 0.08));
}

.ship-stat-card-feature strong {
    color: var(--gold);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.ship-stat-card-cost strong {
    font-size: clamp(1.15rem, 1.65vw, 1.8rem);
    letter-spacing: -0.06em;
    white-space: nowrap;
    overflow-wrap: normal;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(121, 240, 239, 0.06), rgba(255, 124, 152, 0.04));
    border: 1px solid rgba(121, 240, 239, 0.12);
}

.stat-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-main);
}

.my-entries-sections {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.my-entries-section-header h2 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.my-entry-list {
    display: grid;
    gap: 1rem;
}

.my-entry-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(12, 15, 31, 0.56);
}

.my-entry-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.my-entry-card-header h3 {
    margin: 0;
    font-size: 1.45rem;
}

.my-entry-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.55rem;
}

.my-entry-inline-form .admin-linking-label {
    width: 100%;
}

.my-entry-inline-form .admin-linking-select {
    min-width: 11rem;
}

.my-entry-meta {
    margin: 0.55rem 0 0;
}

.my-entry-ships {
    display: grid;
    gap: 0.85rem;
}

.my-entry-ship-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas:
        "media fields"
        "media actions";
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(121, 240, 239, 0.04);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.my-entry-ship-media {
    grid-area: media;
    min-width: 0;
}

.my-entry-ship-placeholder {
    display: grid;
    place-items: center;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.my-entry-ship-fields {
    grid-area: fields;
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.my-entry-ship-settings-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.my-entry-ship-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.my-entry-setting {
    display: grid;
    gap: 0.45rem;
}

.my-entry-ship-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.my-entry-ship-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
}

.assembly-member-settings {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
    border: 1px solid rgba(121, 240, 239, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.assembly-member-row {
    display: grid;
    grid-template-columns: minmax(8rem, 1.1fr) minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 0.75rem;
    align-items: end;
}

.assembly-member-name {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.assembly-member-name strong {
    color: var(--text-main);
}

.assembly-member-name span {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.ship-assembly-summary,
.entry-assembly-summary {
    margin-top: 0.75rem;
}

.assembly-member-summary-row {
    grid-template-columns: minmax(10rem, 1.5fr) minmax(6rem, 0.7fr) minmax(6rem, 0.7fr);
    align-items: center;
}

.entry-assembly-summary {
    padding: 0.65rem;
}

.entry-assembly-summary .assembly-member-summary-row {
    grid-template-columns: minmax(9rem, 1fr);
    gap: 0.45rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(121, 240, 239, 0.08);
}

.entry-assembly-summary .assembly-member-summary-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.my-entry-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(11, 13, 28, 0.9);
    color: var(--text-main);
    font: inherit;
}

.my-entry-edit-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--cyan);
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.my-entry-edit-button:hover,
.my-entry-edit-button:focus-visible {
    color: #b8ffff;
    text-decoration: underline;
    outline: none;
}

.my-entry-input:focus {
    outline: 2px solid rgba(121, 240, 239, 0.28);
    outline-offset: 2px;
}

.my-entry-select:focus {
    outline: 2px solid rgba(121, 240, 239, 0.28);
    outline-offset: 2px;
}

.my-entry-ship-fields[data-editing="false"] .my-entry-input,
.my-entry-ship-fields[data-editing="false"] .my-entry-ship-settings-grid,
.my-entry-ship-fields[data-editing="false"] .assembly-member-settings,
.my-entry-ship-fields[data-editing="false"] .ship-settings-form-body,
.my-entry-ship-fields[data-editing="false"] + .my-entry-ship-actions .button-link-primary,
.my-entry-ship-fields[data-editing="false"] + .my-entry-ship-actions [data-cancel-edit] {
    display: none;
}

.my-entry-ship-fields[data-editing="true"] .my-entry-ship-display,
.my-entry-ship-fields[data-editing="true"] .my-entry-ship-settings-summary,
.my-entry-ship-fields[data-editing="true"] [data-edit-toggle] {
    display: none;
}

.my-entry-ship-fields[data-editing="true"] + .my-entry-ship-actions {
    align-self: start;
}

.my-entry-ship-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.my-entry-ship-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.my-entry-ship-actions .button-link[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.judge-editor-form,
.judge-rule-sections,
.judge-existing-rules {
    display: grid;
    gap: 1rem;
}

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

.judge-corner-sections {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.judge-corner-group {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(121, 240, 239, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(121, 240, 239, 0.08), transparent 36%),
        rgba(9, 12, 27, 0.34);
}

.judge-corner-group-header {
    display: grid;
    gap: 0.3rem;
    padding: 0.15rem 0.25rem 0.25rem;
}

.judge-corner-group-header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.judge-corner-group-header .section-copy {
    margin: 0;
}

.judge-corner-group-cards {
    display: grid;
    gap: 1rem;
}

.judge-corner-card {
    border: 1px solid rgba(121, 240, 239, 0.12);
    border-radius: 24px;
    background: rgba(11, 13, 28, 0.58);
    overflow: hidden;
}

.judge-corner-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.judge-corner-summary::after {
    content: "+";
    color: var(--accent-cyan);
    font-size: 1.25rem;
    line-height: 1;
}

.judge-corner-card[open] .judge-corner-summary::after {
    content: "−";
}

.judge-corner-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
}

.judge-competition-list {
    display: grid;
    gap: 0.9rem;
}

.judge-competition-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background:
        linear-gradient(180deg, rgba(16, 22, 42, 0.94), rgba(12, 16, 32, 0.92));
}

.judge-competition-copy {
    min-width: 0;
}

.judge-competition-copy h2 {
    margin: 0.35rem 0 0.2rem;
    font-size: 1.2rem;
}

.judge-entry-filter-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    align-items: end;
}

.judge-entry-list {
    display: grid;
    gap: 0.9rem;
}

.judge-ship-groups {
    display: grid;
    gap: 1rem;
}

.judge-ship-group-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(121, 240, 239, 0.04);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.judge-ship-group-header h2,
.judge-ship-copy h3 {
    margin: 0.35rem 0 0;
}

.judge-ship-list {
    display: grid;
    gap: 0.8rem;
}

.judge-ship-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(11, 13, 28, 0.56);
    border: 1px solid rgba(121, 240, 239, 0.08);
}

.judge-ship-copy {
    min-width: 0;
}

.judge-ship-copy .admin-linking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.judge-entry-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background:
        linear-gradient(180deg, rgba(16, 22, 42, 0.94), rgba(12, 16, 32, 0.92));
}

.judge-entry-copy {
    min-width: 0;
}

.judge-entry-copy h2 {
    margin: 0.35rem 0 0.2rem;
    font-size: 1.15rem;
}

.judge-move-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(121, 240, 239, 0.08);
}

.judge-move-ship-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.judge-move-ship-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    background: rgba(11, 13, 28, 0.72);
    color: var(--text-soft);
    font-size: 0.95rem;
}

.judge-move-ship-option input {
    margin: 0;
}

.judge-move-panel {
    display: grid;
    gap: 0.6rem;
}

.judge-move-controls {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.judge-remove-entry {
    display: grid;
    gap: 0.6rem;
}

.judge-remove-entry > summary {
    list-style: none;
}

.judge-remove-entry > summary::-webkit-details-marker {
    display: none;
}

.judge-remove-entry-panel {
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 124, 152, 0.24);
    background: rgba(52, 17, 32, 0.32);
}

.judge-remove-entry-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-soft);
}

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

.judge-division-card {
    display: grid;
    gap: 0.45rem;
}

.judge-deadline-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.judge-textarea,
.judge-rule-textarea {
    width: 100%;
    min-height: 7rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(11, 13, 28, 0.9);
    color: var(--text-main);
    font: inherit;
    line-height: 1.6;
    resize: vertical;
}

.judge-file-input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(121, 240, 239, 0.16);
    background: rgba(11, 13, 28, 0.9);
    color: var(--text-main);
    font: inherit;
}

.judge-textarea:focus,
.judge-rule-textarea:focus {
    outline: 2px solid rgba(121, 240, 239, 0.28);
    outline-offset: 2px;
}

.judges-upload-status {
    white-space: pre-wrap;
    word-break: break-word;
}

.judge-rule-section {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(12, 15, 31, 0.48);
}

.judge-rule-section-header h3 {
    margin: 0.25rem 0 0;
    font-size: 1.4rem;
}

.competition-rules-text-card {
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(12, 15, 31, 0.48);
}

.competition-rules-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--text-main);
}

.judge-default-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.judge-entry-layout {
    display: grid;
    gap: 1rem;
}

.judge-entry-form,
.judge-entry-groups,
.judge-entry-list {
    display: grid;
    gap: 1rem;
}

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

.judge-entry-group-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(121, 240, 239, 0.04);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

@media (max-width: 900px) {
    .judge-division-grid,
    .judge-entry-grid,
    .judge-deadline-grid,
    .judge-entry-filter-form,
    .judge-move-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .judge-entry-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .judge-ship-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .judge-entry-row-copy {
        align-items: flex-start;
        flex-direction: column;
    }
}

.judge-entry-group-header,
.judge-entry-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.judge-entry-group-header h3 {
    margin: 0;
}

.judge-entry-row {
    display: grid;
    gap: 0.85rem;
    align-items: start;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(11, 13, 28, 0.56);
    border: 1px solid rgba(121, 240, 239, 0.08);
}

.judge-entry-row-copy {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    min-width: 0;
}

.judge-entry-upload-form {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.judge-entry-upload-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.judge-entry-file-input {
    min-width: 0;
    width: 100%;
}

.judge-entry-upload-controls .button-link {
    white-space: nowrap;
}

.judge-entry-file-input {
    font-size: 0.95rem;
}

.judge-roster-entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: start;
    padding: 1.05rem 1.15rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(16, 22, 42, 0.96), rgba(12, 16, 32, 0.92));
    border-color: rgba(121, 240, 239, 0.12);
}

.judge-roster-entry-row .judge-entry-copy h2 {
    margin-top: 0.45rem;
    line-height: 1.25;
}

.judge-roster-entry-row .judge-index-actions {
    justify-content: flex-end;
}

.judge-roster-tools {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(121, 240, 239, 0.1);
}

.judge-roster-move-form {
    margin: 0;
    padding: 0;
    border-top: 0;
}

.judge-roster-selection-help {
    margin: 0;
}

.judge-roster-selected-actions {
    display: grid;
    gap: 0.8rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(121, 240, 239, 0.035);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.judge-roster-danger-button {
    width: fit-content;
    border-color: rgba(255, 124, 152, 0.28);
    color: #ffd4de;
}

.judge-roster-danger-button:hover,
.judge-roster-danger-button:focus-visible {
    border-color: rgba(255, 124, 152, 0.52);
    box-shadow: 0 0 20px rgba(255, 124, 152, 0.12);
}

.judge-roster-remove-ships > summary {
    width: fit-content;
}

.judge-roster-remove-panel {
    margin-top: 0.65rem;
}

.judge-roster-remove-list {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    list-style: none;
}

.judge-roster-remove-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    background: rgba(11, 13, 28, 0.52);
    border: 1px solid rgba(255, 124, 152, 0.12);
}

.judge-roster-remove-list span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.judge-roster-upload-form {
    width: min(100%, 760px);
}

.judge-roster-upload-controls {
    grid-template-columns: minmax(220px, 1fr) auto;
    padding: 0.5rem;
    border-radius: 18px;
    background: rgba(121, 240, 239, 0.035);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.judge-roster-upload-controls .judge-file-input {
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(7, 9, 22, 0.78);
}

.judge-roster-upload-controls .button-link {
    min-width: 11rem;
}

.judge-rules-panel {
    display: grid;
    gap: 1rem;
}

.judge-rules-panel > summary {
    width: fit-content;
}

.judge-default-card,
.judge-rule-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(121, 240, 239, 0.04);
    border: 1px solid rgba(121, 240, 239, 0.1);
}

.judge-default-header,
.judge-rule-card-header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.judge-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    font-weight: 700;
}

.judge-checkbox {
    width: 1rem;
    height: 1rem;
}

.judge-rule-meta {
    display: grid;
    gap: 0.45rem;
}

.judge-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.judge-site-link-list {
    display: grid;
    gap: 1rem;
}

.judge-site-link-card {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.12);
    background: rgba(121, 240, 239, 0.03);
}

.judge-link-flags {
    display: grid;
    gap: 0.6rem;
    align-content: start;
}

.judge-add-rule-panel {
    border: 1px solid rgba(121, 240, 239, 0.12);
    border-radius: 20px;
    background: rgba(121, 240, 239, 0.03);
    padding: 0.2rem 1rem 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-badge-winner {
    background: var(--winner-bg);
    border-color: rgba(121, 240, 239, 0.18);
    color: var(--winner-text);
}

.status-badge-loss {
    background: var(--loss-bg);
    border-color: rgba(255, 124, 152, 0.16);
    color: var(--loss-text);
}

.site-footer {
    width: min(1180px, calc(100% - 2rem));
    padding: 1rem 0 2rem;
    color: var(--text-dim);
    text-align: center;
}

.section-copy {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-soft);
}

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

.leagueboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.league-table th,
.league-table td {
    white-space: nowrap;
}

.awards-standings-wrap {
    overflow-x: auto;
}

.awards-standings-table {
    min-width: 860px;
}

.awards-standings-table th:not(:first-child),
.awards-standings-table td:not(:first-child) {
    text-align: center;
}

.leaderboard-award-icon {
    display: inline-block;
    width: 2.45rem;
    height: 2.45rem;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 12px rgba(121, 240, 239, 0.2));
}

.leaderboard-award-fallback {
    display: inline-block;
    max-width: 7rem;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: normal;
}

.award-count-cell {
    font-weight: 800;
}

.award-count-cell span {
    color: var(--text-dim);
    font-weight: 600;
}

.home-countdown-card {
    position: relative;
    overflow: hidden;
    margin-top: 1.15rem;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(121, 240, 239, 0.18);
    background:
        radial-gradient(circle at top left, rgba(121, 240, 239, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 124, 152, 0.2), transparent 36%),
        linear-gradient(135deg, rgba(18, 24, 46, 0.96), rgba(28, 20, 45, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 22px 48px rgba(0, 0, 0, 0.28);
}

.home-countdown-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(121, 240, 239, 0.08), transparent 36%),
        linear-gradient(transparent 96%, rgba(121, 240, 239, 0.12) 100%);
    mask-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 0, 0, 0.75) 1px, transparent 1px);
    mask-size: auto, 26px 26px, 26px 26px;
    mask-position: 0 0, 0 0, 0 0;
    opacity: 0.7;
}

.home-countdown-copy,
.home-countdown-grid,
.home-countdown-meta {
    position: relative;
    z-index: 1;
}

.home-countdown-label {
    margin: 0 0 0.35rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 700;
}

.home-countdown-local {
    margin: 0;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

.home-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.home-countdown-unit {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(121, 240, 239, 0.14);
    background: rgba(7, 10, 24, 0.5);
    box-shadow: inset 0 0 20px rgba(121, 240, 239, 0.04);
}

.home-countdown-value {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--text-main);
    text-shadow: 0 0 24px rgba(121, 240, 239, 0.14);
}

.home-countdown-unit-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.home-countdown-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.home-countdown-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.button-link-compact {
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
}

.spotlight-card {
    display: flex;
    flex-direction: column;
    min-height: 720px;
}

.spotlight-card h2 {
    max-width: 14ch;
}

.spotlight-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.spotlight-heading h2 {
    margin: 0;
}

.spotlight-award-badge {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.spotlight-table-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
}

.spotlight-table-wrap::-webkit-scrollbar {
    width: 0.65rem;
}

.spotlight-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.spotlight-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(121, 240, 239, 0.25);
    border-radius: 999px;
}

.spotlight-table th:nth-child(1),
.spotlight-table td:nth-child(1) {
    width: 32%;
}

.spotlight-table th:nth-child(2),
.spotlight-table td:nth-child(2) {
    width: 12%;
    white-space: nowrap;
}

.spotlight-table th:nth-child(3),
.spotlight-table td:nth-child(3) {
    width: 56%;
}

.spotlight-table td:nth-child(3) {
    font-size: 0.95rem;
    line-height: 1.55;
}

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

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

    .leaderboard-spotlights {
        grid-template-columns: 1fr;
    }

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

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

    .competition-overview {
        grid-template-columns: 1fr;
    }

    .competition-fact-wide {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .judge-default-header,
    .judge-rule-card-header {
        grid-template-columns: 1fr;
    }

    .my-entry-ship-row {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .my-entry-ship-settings-grid {
        grid-template-columns: 1fr;
    }

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

    .ship-settings-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-entry-ship-actions {
        grid-column: auto;
        justify-content: flex-start;
    }

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

    .champion-showdown-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .champion-showdown-center {
        justify-items: start;
        text-align: left;
    }

    .entry-fleet-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .entry-hero-ship-gallery {
        grid-template-columns: 1fr;
    }

    .entry-upload-controls {
        grid-template-columns: 1fr;
    }

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

    .admin-linking-card,
    .admin-role-actions {
        grid-template-columns: 1fr;
    }

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

    .entry-fleet-thumb,
    .entry-fleet-thumb-placeholder {
        width: 72px;
    }

    .finalist-card-header {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .finalist-thumb,
    .finalist-thumb-placeholder {
        width: 88px;
    }

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

    .competition-poster-thumb-card {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-main,
    .site-footer {
        width: min(1180px, calc(100% - 1rem));
    }

    .site-main {
        padding-top: 1rem;
    }

    .site-brand-copy span {
        letter-spacing: 0.03em;
    }

    .hero,
    .content-panel,
    .placeholder-page,
    .error-page {
        border-radius: 20px;
        padding: 1.25rem;
    }

    .hero h1,
    .placeholder-page h1,
    .error-page h1 {
        max-width: none;
    }

    .hero-home-aside {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-countdown-card {
        padding: 1.2rem;
    }

    .home-premiere-presenter {
        display: flex;
        width: 100%;
        padding: 0.85rem 1rem 1rem;
    }

    .home-premiere-presenter-names {
        font-size: clamp(1.05rem, 6vw, 1.45rem);
    }

    .home-countdown-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .home-countdown-actions {
        justify-content: stretch;
    }

    .home-countdown-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-nav {
        width: 100%;
    }

    .data-table th,
    .data-table td {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .competition-index-table th:nth-child(2),
    .competition-index-table td:nth-child(2) {
        width: auto;
    }

    .my-entry-card-header {
        flex-direction: column;
    }

    .my-entry-inline-form,
    .my-entry-inline-form .admin-linking-select,
    .my-entry-inline-form .button-link {
        width: 100%;
    }

    .my-entry-ship-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "fields"
            "actions";
    }

    .my-entry-ship-actions {
        flex-direction: column;
        align-items: stretch;
    }

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