/* Chess Millions: a 1970s TV game show that runs like a professional sport.
   The studio at night (aubergine and cream), sunset stripes, marquee bulbs and a
   Cooper-style display face for the show; condensed broadcast type for the data. */
:root,
[data-bs-theme="dark"] {
    --cm-ink: #110a16;
    --cm-bg: #1a0f22;
    --cm-bg-2: #22132d;
    --cm-surface: #2a1737;
    --cm-surface-2: #3a2149;
    --cm-line: rgba(255, 222, 184, 0.13);
    --cm-line-2: rgba(255, 222, 184, 0.26);
    --cm-text: #fbf1e3;
    --cm-muted: #cdb8c3;
    --cm-gold: #f6b93b;
    --cm-gold-deep: #b97a12;
    --cm-orange: #ef6a2b;
    --cm-red: #d9412e;
    --cm-magenta: #e0367b;
    --cm-plum: #7a2b6e;
    --cm-teal: #45c4b0;
    --cm-cream: #f6e6c6;
    --cm-pink: #ff8fbd;
    --cm-violet: #a48cff;
    --cm-danger: #ff7a7a;
    --cm-radius: 14px;
    --cm-display: "Caprasimo", "Cooper Black", Georgia, serif;
    --cm-sport: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    /* The sunset stripes, as bands stacked top to bottom. */
    --cm-stripes: linear-gradient(180deg, #f6b93b 0 20%, #f08f2b 20% 40%, #e2582b 40% 60%, #c53159 60% 80%, #7a2b6e 80% 100%);

    --bs-body-bg: var(--cm-bg);
    --bs-body-color: var(--cm-text);
    --bs-secondary-color: var(--cm-muted);
    --bs-border-color: var(--cm-line);
    --bs-link-color: var(--cm-gold);
    --bs-link-color-rgb: 246, 185, 59;
    --bs-link-hover-color: #ffd98a;
    --bs-link-hover-color-rgb: 255, 217, 138;
    --bs-emphasis-color: #fff;
    --bs-font-sans-serif: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-weight: 500;
    --bs-danger-text-emphasis: var(--cm-danger);
    --bs-form-invalid-color: var(--cm-danger);
    --bs-form-invalid-border-color: var(--cm-danger);
    --bs-table-bg: transparent;
}

html { scroll-behavior: smooth; }
body {
    background:
        radial-gradient(1100px 520px at 50% -160px, rgba(239, 106, 43, 0.16), transparent 70%),
        linear-gradient(180deg, var(--cm-bg-2), var(--cm-bg) 520px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1.05rem;
}
main { flex: 1; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, h3, .cm-display {
    font-family: var(--cm-display);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.08;
}
.cm-sport, .cm-kicker, .cm-chip, .cm-tier, .cm-tabs a, .btn, .nav-link, th, .cm-kind, .cm-rank {
    font-family: var(--cm-sport);
}
.cm-skip { position: absolute; left: 1rem; top: 0.5rem; z-index: 100; background: var(--cm-gold); color: #2a1600; padding: 0.4rem 0.8rem; border-radius: 8px; font-weight: 700; }
::selection { background: var(--cm-orange); color: #fff; }

/* ---- the stripes ---- */
.cm-stripes { height: 10px; background: var(--cm-stripes); }

/* ---- the ticker ---- */
.cm-ticker {
    display: flex; align-items: stretch; height: 2.15rem; overflow: hidden;
    background: var(--cm-ink); border-bottom: 1px solid var(--cm-line);
    font-family: var(--cm-sport); font-weight: 600; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.cm-ticker-label {
    flex: none; display: flex; align-items: center; gap: 0.45rem; padding: 0 1rem 0 0.9rem;
    background: var(--cm-red); color: #fff; font-weight: 800; letter-spacing: 0.1em;
    clip-path: polygon(0 0, 100% 0, calc(100% - 0.7rem) 100%, 0 100%); padding-right: 1.5rem;
}
.cm-ticker-label .cm-live-dot { background: #fff; box-shadow: 0 0 8px #fff; }
.cm-ticker-window { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.cm-ticker-reel { display: flex; width: max-content; animation: cm-crawl var(--cm-crawl, 50s) linear infinite; }
.cm-ticker:hover .cm-ticker-reel, .cm-ticker:focus-within .cm-ticker-reel { animation-play-state: paused; }
.cm-ticker-items { display: flex; align-items: center; gap: 2.75rem; list-style: none; margin: 0; padding: 0 2.75rem 0 1.25rem; white-space: nowrap; }
.cm-ticker-items li { display: flex; align-items: center; gap: 0.55rem; color: var(--cm-cream); }
.cm-ticker-items a { color: var(--cm-cream); text-decoration: none; }
.cm-ticker-items a:hover, .cm-ticker-items a:focus { color: var(--cm-gold); }
.cm-ticker-tag { color: var(--cm-gold); font-weight: 800; }
.cm-ticker-tag::after { content: "•"; margin-left: 0.55rem; color: var(--cm-line-2); }
.cm-ticker-tag-live { color: var(--cm-pink); }
@keyframes cm-crawl { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .cm-ticker-reel { animation: none; }
    .cm-ticker-window { overflow-x: auto; mask-image: none; }
    .cm-ticker-items[aria-hidden] { display: none; }
}

/* ---- header ---- */
.cm-header { position: sticky; top: 0; z-index: 30; background: rgba(26, 15, 34, 0.9); backdrop-filter: blur(10px); }
.cm-header::after { content: ""; display: block; height: 6px; background: var(--cm-stripes); }
.cm-header .navbar { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.cm-nav .nav-link {
    color: var(--cm-muted); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.4rem 0.75rem !important; position: relative; white-space: nowrap;
}
.cm-nav .nav-link:hover, .cm-nav .nav-link:focus { color: var(--cm-text); }
.cm-nav .nav-link[aria-current="page"] { color: #fff; }
.cm-nav .nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -0.1rem; height: 4px; border-radius: 2px; background: var(--cm-stripes);
}
.cm-nav .nav-link.cm-nav-play {
    color: #2a1600; background: var(--cm-gold); border-radius: 999px; margin-right: 0.5rem; padding: 0.35rem 1rem !important;
    box-shadow: 0 3px 0 var(--cm-gold-deep);
}
.cm-nav .nav-link.cm-nav-play:hover, .cm-nav .nav-link.cm-nav-play:focus { background: #ffcb5c; color: #2a1600; }
/* The menu folds away below 1200px: with Membership, Admin and a contestant name it no longer fits on one line. */
@media (max-width: 1199.98px) {
    .cm-nav { padding: 0.75rem 0; gap: 0.15rem; }
    .cm-nav .nav-link.cm-nav-play { display: inline-block; margin: 0 0 0.5rem; }
    .cm-nav .nav-link[aria-current="page"]::after { right: auto; width: 2.5rem; }
}
/* Laptop widths: the full menu and your name fit on one line. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .cm-nav .nav-link { font-size: 1rem; padding: 0.4rem 0.5rem !important; }
    .cm-nav .nav-link[aria-current="page"]::after { left: 0.5rem; right: 0.5rem; }
    .cm-nav .nav-link.cm-nav-play { padding: 0.35rem 0.85rem !important; margin-right: 0.25rem; }
    .cm-brand { margin-right: 0.5rem; }
}
/* The show's logo, the game's own marquee sign. */
.cm-brand { display: inline-flex; align-items: center; padding: 0; margin-right: 1rem; }
.cm-brand img { display: block; height: 62px; width: auto; transition: filter 0.2s ease; }
.cm-brand:hover img, .cm-brand:focus img { filter: brightness(1.1); }
.cm-you { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cm-text) !important; font-family: var(--cm-sport); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
/* A long contestant name stops short rather than pushing the menu over. */
.cm-you-name { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.cm-you-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--cm-teal); box-shadow: 0 0 10px var(--cm-teal); }
.navbar-toggler { border-color: var(--cm-line-2); }
@media (max-width: 575.98px) {
    .cm-brand img { height: 46px; }
    .cm-hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
    .cm-banner-inner { padding-top: 2.5rem; padding-bottom: 2rem; }
}
.cm-header .nav-link.btn-link { font-family: var(--cm-sport); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--cm-muted); }

/* ---- buttons ---- */
.btn { font-weight: 700; border-radius: 999px; padding: 0.55rem 1.4rem; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }
.btn-lg { font-size: 1.2rem; padding: 0.7rem 1.8rem; }
.btn-sm { font-size: 0.95rem; }
.btn-primary {
    --bs-btn-color: #2a1600;
    --bs-btn-bg: var(--cm-gold);
    --bs-btn-border-color: var(--cm-gold);
    --bs-btn-hover-color: #2a1600;
    --bs-btn-hover-bg: #ffcb5c;
    --bs-btn-hover-border-color: #ffcb5c;
    --bs-btn-active-bg: var(--cm-gold-deep);
    --bs-btn-active-border-color: var(--cm-gold-deep);
    --bs-btn-active-color: #2a1600;
    --bs-btn-focus-shadow-rgb: 246, 185, 59;
    --bs-btn-disabled-bg: var(--cm-gold);
    --bs-btn-disabled-border-color: var(--cm-gold);
    --bs-btn-disabled-color: #2a1600;
    box-shadow: 0 5px 0 var(--cm-gold-deep), 0 10px 24px rgba(246, 185, 59, 0.22);
    transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cm-gold-deep); }
.btn-outline-primary, .btn-secondary, .btn-outline-secondary, .btn-outline-light {
    --bs-btn-color: var(--cm-cream);
    --bs-btn-bg: rgba(17, 10, 22, 0.35);
    --bs-btn-border-color: rgba(246, 230, 198, 0.55);
    --bs-btn-hover-bg: var(--cm-cream);
    --bs-btn-hover-border-color: var(--cm-cream);
    --bs-btn-hover-color: #2a1600;
    --bs-btn-active-bg: var(--cm-cream);
    --bs-btn-active-border-color: var(--cm-cream);
    --bs-btn-active-color: #2a1600;
    border-width: 2px;
}
.btn-danger { --bs-btn-bg: #d9412e; --bs-btn-border-color: #d9412e; --bs-btn-hover-bg: #e8583f; --bs-btn-hover-border-color: #e8583f; }
.btn-link { font-weight: 700; text-transform: none; letter-spacing: 0; font-family: inherit; }
.cm-cta-sm { padding: 0.35rem 1rem; box-shadow: 0 4px 0 var(--cm-gold-deep); }
/* "Continue with Google" in Google's own button style (its sign-in branding guidelines): white, the four-colour G, Roboto. */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 50px; padding: 0 18px; border-radius: 999px;
    background: #fff; color: #1f1f1f; border: 1px solid #747775;
    font-family: Roboto, Arial, sans-serif; font-weight: 500; font-size: 17px; letter-spacing: 0.25px; text-decoration: none;
    cursor: pointer; transition: background-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover, .btn-google:focus-visible { background: #f2f2f2; color: #1f1f1f; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.btn-google:focus-visible { outline: 3px solid var(--cm-gold); outline-offset: 2px; }
.btn-google svg { width: 20px; height: 20px; flex: none; }

/* ---- forms ---- */
.form-control, .form-select {
    background-color: var(--cm-ink);
    border: 1px solid var(--cm-line-2);
    color: var(--cm-text);
    border-radius: 10px;
}
.form-control:focus, .form-select:focus {
    background-color: var(--cm-ink);
    color: var(--cm-text);
    border-color: var(--cm-gold);
    box-shadow: 0 0 0 0.2rem rgba(246, 185, 59, 0.25);
}
.form-control:disabled, .form-control[readonly] { background-color: rgba(255, 255, 255, 0.04); color: var(--cm-muted); }
.form-floating > label { color: var(--cm-muted); }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--cm-muted); }
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after { background-color: transparent !important; }
.form-check-input { background-color: var(--cm-ink); border-color: var(--cm-line-2); }
.form-check-input:checked { background-color: var(--cm-orange); border-color: var(--cm-orange); }
.text-danger { color: var(--cm-danger) !important; }
.alert { border-radius: 12px; border: 1px solid var(--cm-line); }
.alert-success { background: rgba(69, 196, 176, 0.12); color: var(--cm-teal); }
.alert-danger { background: rgba(255, 122, 122, 0.12); color: var(--cm-danger); }
.alert-info, .alert-warning { background: rgba(246, 185, 59, 0.12); color: #ffd98a; }
hr { border-color: var(--cm-line); opacity: 1; }
.table { --bs-table-color: var(--cm-text); --bs-table-border-color: var(--cm-line); }
.table > thead th { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--cm-muted); border-bottom: 2px solid var(--cm-line-2); }

/* ---- page frame and cards ---- */
.cm-page { padding-top: 2.5rem; padding-bottom: 4.5rem; }
.cm-card {
    background: linear-gradient(180deg, var(--cm-surface), var(--cm-bg-2));
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 1.75rem;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.cm-card h2 { font-size: 1.6rem; }

/* The account area: Identity's pages sit inside <main>; give its columns a card look. */
.cm-page > h1, .cm-page > h2 { margin-bottom: 1.25rem; }
.cm-page section, .cm-page .col-md-4 > form, .cm-page .col-md-6 > section {
    background: linear-gradient(180deg, var(--cm-surface), var(--cm-bg-2));
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    padding: 1.75rem;
}
.cm-page section.cm-band, .cm-page section.cm-plain { background: none; border: 0; border-radius: 0; padding: 0; }
.cm-page .row { row-gap: 1.5rem; }
.cm-page .nav-pills .nav-link { color: var(--cm-muted); border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cm-page .nav-pills .nav-link.active { background: var(--cm-surface-2); color: #fff; box-shadow: inset 4px 0 0 var(--cm-gold); }
.cm-page .nav-pills .nav-link:hover { color: #fff; }

/* ---- labels ---- */
.cm-kicker { color: var(--cm-gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.16em; }
.cm-chip {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.12rem 0.7rem; border-radius: 999px;
    font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
    border: 1px solid var(--cm-line-2); background: rgba(17, 10, 22, 0.55); color: var(--cm-muted); white-space: nowrap;
}
.cm-chip-gold { background: rgba(246, 185, 59, 0.14); border-color: rgba(246, 185, 59, 0.5); color: #ffd98a; }
/* Who a tournament is for: qualifier, ticket entry, members only. */
.cm-chip-kind { background: rgba(69, 196, 176, 0.12); border-color: rgba(69, 196, 176, 0.45); color: var(--cm-teal); }
/* A member, by their name in the rankings and on their profile. */
.cm-member { display: inline-block; margin-left: 0.4rem; padding: 0 0.45rem; border-radius: 999px; background: var(--cm-gold); color: var(--cm-ink);
    font-family: var(--cm-sport); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }

/* Membership: what members get, and the two ways to pay. */
.cm-perks { padding-left: 1.1rem; }
.cm-perks li { margin-bottom: 0.6rem; }
.cm-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cm-price { position: relative; display: grid; gap: 0.1rem; padding: 0.9rem 1rem; border: 2px solid var(--cm-line-2); border-radius: var(--cm-radius);
    background: rgba(17, 10, 22, 0.45); cursor: pointer; }
.cm-price input { position: absolute; opacity: 0; pointer-events: none; }
.cm-price:has(input:checked) { border-color: var(--cm-gold); box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.22); }
.cm-price:has(input:focus-visible) { outline: 2px solid var(--cm-gold); outline-offset: 2px; }
.cm-price-name { font-family: var(--cm-sport); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; color: var(--cm-muted); }
.cm-price-amount { font-family: var(--cm-display); font-size: 2rem; line-height: 1.1; color: #ffd98a; }
.cm-price-note { font-size: 0.88rem; color: var(--cm-muted); }
.cm-tier { display: inline-block; padding: 0.1rem 0.7rem; border-radius: 999px; background: rgba(69, 196, 176, 0.15); color: var(--cm-teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.92rem; }
.cm-note { color: var(--cm-muted); font-size: 0.93rem; }
.cm-live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--cm-pink); font-family: var(--cm-sport); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.cm-live-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--cm-pink); box-shadow: 0 0 10px var(--cm-pink); animation: cm-pulse 1.4s ease-in-out infinite; display: inline-block; }
li.cm-out { opacity: 0.5; }
@keyframes cm-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .cm-live-dot { animation: none; } }

/* ---- page banners ---- */
.cm-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(16rem, 32vw, 25rem); }
.cm-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cm-banner::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 10, 22, 0.88) 0%, rgba(17, 10, 22, 0.55) 45%, rgba(17, 10, 22, 0.1) 100%),
        linear-gradient(180deg, rgba(17, 10, 22, 0) 45%, rgba(26, 15, 34, 0.95) 100%);
}
.cm-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--cm-stripes); }
.cm-banner-inner { padding-top: 3.5rem; padding-bottom: 2.6rem; }
.cm-banner h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); margin: 0.35rem 0 0.5rem; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 0, 0, 0.5); }
.cm-banner-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40rem; margin: 0; color: #f3e6d6; font-weight: 500; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.cm-banner .cm-kicker { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.cm-banner-slim { min-height: clamp(12rem, 22vw, 17rem); }

/* ---- sections ---- */
.cm-band { margin-top: 4rem; }
.cm-band-title, .cm-section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.25rem; }
.cm-section-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--cm-line); position: relative;
}
.cm-section-head::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 6rem; height: 10px; background: var(--cm-stripes); border-radius: 2px; }
.cm-section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.cm-section-head p { margin: 0.3rem 0 0; color: var(--cm-muted); max-width: 44rem; }
.cm-more { font-family: var(--cm-sport); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap; }
.cm-more::after { content: " →"; }
.cm-section-sub { text-align: center; color: var(--cm-muted); max-width: 38rem; margin: 0 auto 2.5rem; }
.cm-seat-strip { height: 10px; border-radius: 2px; background: var(--cm-stripes); margin: 0 auto 2rem; max-width: 8rem; }

/* ---- the front page's hero ---- */
.cm-hero { position: relative; isolation: isolate; overflow: hidden; }
.cm-hero .cm-banner-img { object-position: 50% 40%; }
.cm-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 10, 22, 0.92) 0%, rgba(17, 10, 22, 0.66) 42%, rgba(17, 10, 22, 0.2) 75%, rgba(17, 10, 22, 0.35) 100%),
        linear-gradient(180deg, rgba(17, 10, 22, 0.25) 0%, rgba(17, 10, 22, 0) 30%, rgba(26, 15, 34, 0.96) 100%);
}
.cm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--cm-stripes); }
.cm-hero-inner { padding-top: 5.5rem; padding-bottom: 4.5rem; }
.cm-hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: 0.95; text-shadow: 0 5px 0 rgba(0, 0, 0, 0.45); margin: 0.5rem 0 1.25rem; }
.cm-hero h1 .gold { color: var(--cm-gold); display: block; }
.cm-hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 36rem; margin: 0 0 2rem; color: #f3e6d6; font-weight: 500; }
.cm-hero .btn { font-size: 1.2rem; padding: 0.8rem 1.9rem; }
.cm-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.cm-badge { border: 1px solid var(--cm-line-2); background: rgba(17, 10, 22, 0.6); border-radius: 999px; padding: 0.25rem 0.9rem; color: var(--cm-cream); font-family: var(--cm-sport); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* The main event: a card ringed with marquee bulbs. */
/* The home page's live panel: a hosted show on air, its Twitch stream a click away, in a 16:9 frame (Twitch's player
   wants 300 pixels of height at least). */
.cm-onair { max-width: 980px; margin: 0 auto 2.5rem; }
.cm-onair-elsewhere { text-align: right; margin: 0.4rem 0.2rem 0; font-size: 0.95rem; }
.cm-onair-frame { position: relative; aspect-ratio: 16 / 9; min-height: 300px; border: 3px solid var(--cm-gold); border-radius: 18px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 35%, rgba(217, 65, 46, 0.35), rgba(26, 15, 34, 0.96) 70%);
    box-shadow: 0 0 0 6px rgba(217, 65, 46, 0.25), 0 18px 48px rgba(0, 0, 0, 0.55); }
.cm-onair-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cm-onair-start { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.6rem; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: center; padding: 1rem; }
.cm-onair-title { font-family: var(--cm-sport); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.6rem, 4.5vw, 3rem); line-height: 1.05; }
.cm-onair-host { color: var(--cm-gold); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.3rem); }
.cm-onair-play { margin-top: 0.6rem; padding: 0.7rem 1.6rem; border-radius: 999px; background: var(--cm-gold); color: #2a1600; font-weight: 800;
    font-size: 1.15rem; box-shadow: 0 5px 0 var(--cm-gold-deep), 0 10px 24px rgba(246, 185, 59, 0.3); }
.cm-onair-start:hover .cm-onair-play, .cm-onair-start:focus-visible .cm-onair-play { filter: brightness(1.08); }
.cm-onair-start:focus-visible { outline: 3px solid var(--cm-gold); outline-offset: -6px; }

.cm-spotlight {
    position: relative;
    background: linear-gradient(180deg, rgba(58, 33, 73, 0.96), rgba(26, 15, 34, 0.96));
    border: 2px solid rgba(246, 185, 59, 0.75);
    border-radius: 20px;
    padding: 1.9rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(246, 185, 59, 0.16);
    outline: 4px dotted rgba(255, 228, 160, 0.9);
    outline-offset: 7px;
}
.cm-spotlight h2 { font-size: 2rem; margin: 0.35rem 0 0.75rem; }
.cm-spotlight-flag {
    position: absolute; top: -0.95rem; left: 1.5rem; padding: 0.2rem 0.9rem; border-radius: 6px;
    background: var(--cm-red); color: #fff; font-family: var(--cm-sport); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ---- the bulb scoreboard (the show in numbers) ---- */
.cm-numbers {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0; margin: 0 0 2rem;
    background: radial-gradient(circle, rgba(255, 190, 90, 0.08) 1px, transparent 1.6px) 0 0 / 7px 7px, #0e0712;
    border: 3px solid #3b2530; border-radius: 14px; padding: 0.4rem;
    box-shadow: inset 0 0 0 2px #000, inset 0 0 40px rgba(0, 0, 0, 0.6), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.cm-numbers > div { display: flex; flex-direction: column-reverse; justify-content: center; text-align: center; padding: 0.75rem 0.5rem; border-right: 1px dashed rgba(255, 190, 90, 0.14); }
.cm-numbers > div:last-child { border-right: 0; }
.cm-numbers dt { font-family: var(--cm-sport); color: var(--cm-muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.cm-numbers dd {
    margin: 0; font-family: var(--cm-sport); font-weight: 800; font-size: 2.3rem; line-height: 1.1; letter-spacing: 0.04em;
    color: #ffc04a; text-shadow: 0 0 6px rgba(255, 170, 40, 0.8), 0 0 20px rgba(255, 110, 20, 0.4);
}

/* ---- tournaments as fixtures ---- */
.cm-tcard { display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 0; overflow: hidden; }
.cm-tcard-head { display: flex; gap: 1rem; align-items: stretch; padding: 1.4rem 1.4rem 0; }
.cm-date {
    flex: none; width: 4.6rem; border-radius: 10px; overflow: hidden; text-align: center; background: var(--cm-cream); color: #2a1600;
    font-family: var(--cm-sport); line-height: 1; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); align-self: flex-start;
}
.cm-date-day { display: block; background: var(--cm-red); color: #fff; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.12em; padding: 0.3rem 0; text-transform: uppercase; }
.cm-date-num { display: block; font-weight: 800; font-size: 2rem; padding: 0.3rem 0 0.1rem; }
.cm-date-month { display: block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; padding-bottom: 0.4rem; text-transform: uppercase; }
.cm-tcard h3 { font-size: 1.55rem; margin: 0.35rem 0 0; }
.cm-tcard h3 a { color: #fff; text-decoration: none; }
.cm-tcard h3 a:hover { color: #ffd98a; }
.cm-tcard-body { padding: 0 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.cm-tcard .cm-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; margin: 0; font-size: 0.98rem; }
.cm-tcard .cm-facts dt { color: var(--cm-muted); font-family: var(--cm-sport); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.cm-tcard .cm-facts dd { margin: 0; }
.cm-tcard-foot { margin-top: auto; padding: 0 1.4rem 1.4rem; }
.cm-tcard.cm-has-prize, .cm-prize-card { border-color: rgba(246, 185, 59, 0.5); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(246, 185, 59, 0.12); }
.cm-purse { margin: 0 1.4rem; padding: 0.8rem 1rem; border-radius: 12px; background: linear-gradient(135deg, rgba(246, 185, 59, 0.16), rgba(239, 106, 43, 0.1)); border: 1px dashed rgba(246, 185, 59, 0.55); }
.cm-meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 0.35rem; }
.cm-meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cm-teal), var(--cm-gold), var(--cm-orange)); border-radius: 3px; }

/* ---- prizes ---- */
.cm-pool { font-family: var(--cm-display); color: var(--cm-gold); line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.cm-pool-xl { font-size: clamp(2.8rem, 7vw, 4rem); }
.cm-pool-lg { font-size: 2.3rem; }
.cm-payouts { width: 100%; }
.cm-payouts td { padding: 0.45rem 0; border-bottom: 1px solid var(--cm-line); }
.cm-payouts tr:last-child td { border-bottom: 0; }
.cm-payouts td:first-child { font-family: var(--cm-sport); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cm-payouts td.cm-amount { text-align: right; font-weight: 700; color: #ffd98a; }
.cm-payouts td.cm-share { text-align: right; color: var(--cm-muted); width: 4.5rem; }
.cm-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.cm-steps li { counter-increment: step; background: rgba(42, 23, 55, 0.8); border: 1px solid var(--cm-line); border-radius: var(--cm-radius); padding: 1.2rem 1.2rem 1.2rem 3.8rem; position: relative; }
.cm-steps li::before {
    content: counter(step); position: absolute; left: 1.05rem; top: 1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--cm-gold); color: #2a1600; font-family: var(--cm-sport); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center;
    border: 2px dotted rgba(255, 238, 190, 0.95); box-shadow: 0 0 0 2px var(--cm-bg-2);
}
.cm-steps strong { display: block; color: #fff; margin-bottom: 0.2rem; font-family: var(--cm-sport); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.1rem; }
.cm-steps span { color: var(--cm-muted); }
.cm-two-up .cm-steps { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 575.98px) { .cm-two-up .cm-steps { grid-template-columns: 1fr; } }
.cm-winners > li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--cm-line); }
.cm-winners > li:last-child { border-bottom: 0; }
.cm-winners .cm-amount { font-family: var(--cm-display); color: var(--cm-gold); font-size: 1.35rem; white-space: nowrap; }

/* The prize band: the pool on its pedestal, then the three ways a pool pays. */
.cm-prize-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; border: 1px solid rgba(246, 185, 59, 0.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.cm-prize-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.cm-prize-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17, 10, 22, 0.94) 0%, rgba(17, 10, 22, 0.75) 40%, rgba(17, 10, 22, 0.05) 80%); }
.cm-prize-band-inner { padding: clamp(2rem, 5vw, 3.5rem); max-width: 36rem; }
@media (max-width: 767.98px) { .cm-prize-band::before { background: linear-gradient(180deg, rgba(17, 10, 22, 0.6), rgba(17, 10, 22, 0.92)); } }
.cm-prize-band h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0.4rem 0 0.8rem; }
.cm-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 767.98px) { .cm-ways { grid-template-columns: 1fr; } }
.cm-way { overflow: hidden; padding: 0; }
.cm-way img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.cm-way-body { padding: 1.1rem 1.25rem 1.3rem; }
.cm-way h3 { font-size: 1.35rem; margin: 0 0 0.35rem; }
.cm-way p { margin: 0; color: var(--cm-muted); }

/* ---- picture tiles (the show, how to play) ---- */
.cm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991.98px) { .cm-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .cm-tiles { grid-template-columns: 1fr; } }
.cm-tile {
    position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--cm-radius);
    border: 1px solid var(--cm-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); color: var(--cm-text); text-decoration: none; isolation: isolate;
}
@media (max-width: 479.98px) { .cm-tile { aspect-ratio: 4 / 3; } }
.cm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.cm-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 10, 22, 0) 35%, rgba(17, 10, 22, 0.94) 82%); }
.cm-tile:hover img, .cm-tile:focus img { transform: scale(1.05); }
.cm-tile:hover, .cm-tile:focus { color: var(--cm-text); }
.cm-tile-num {
    position: absolute; top: 0.85rem; left: 0.85rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--cm-gold); color: #2a1600; font-family: var(--cm-sport); font-weight: 800; font-size: 1.3rem;
    border: 2px dotted rgba(255, 238, 190, 0.95); box-shadow: 0 0 0 2px rgba(17, 10, 22, 0.7);
}
.cm-tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem; }
.cm-tile-body h3 { font-size: 1.55rem; margin: 0 0 0.35rem; }
.cm-tile-body p { margin: 0; color: #e9dccd; font-size: 0.98rem; }
@media (prefers-reduced-motion: reduce) { .cm-tile img { transition: none; } }

/* A picture beside words, alternating sides down the page. */
.cm-feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 3.5rem; }
.cm-feature-row:nth-of-type(even) > .cm-feature-pic { order: 2; }
@media (max-width: 991.98px) { .cm-feature-row { grid-template-columns: 1fr; } .cm-feature-row:nth-of-type(even) > .cm-feature-pic { order: 0; } }
.cm-feature-pic { position: relative; }
.cm-feature-pic img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--cm-line); box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45); display: block; }
.cm-feature-pic.cm-square img { aspect-ratio: 1; object-fit: cover; }
.cm-feature-pic::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 40%; height: 40%; border-radius: 0 0 20px 0; background: var(--cm-stripes); z-index: -1; }
.cm-feature-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.3rem 0 0.9rem; }
.cm-feature-text p, .cm-feature-text li { color: #eadfd2; }
.cm-feature-text ul { padding-left: 1.2rem; }
.cm-feature-text li { margin-bottom: 0.35rem; }
.cm-feature-text li::marker { color: var(--cm-gold); }
.cm-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.cm-rules li { margin: 0; padding: 0.8rem 1rem; border-radius: 12px; background: rgba(42, 23, 55, 0.8); border: 1px solid var(--cm-line); border-left: 5px solid var(--cm-rule, var(--cm-gold)); }
.cm-rules strong { display: block; font-family: var(--cm-sport); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.cm-rules span { color: var(--cm-muted); font-size: 0.95rem; }
.cm-facts-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 3rem; padding: 0; list-style: none; }
.cm-facts-strip li { flex: 1 1 9rem; text-align: center; padding: 0.9rem 0.5rem; border-radius: 12px; background: rgba(42, 23, 55, 0.8); border: 1px solid var(--cm-line); }
.cm-facts-strip strong { display: block; font-family: var(--cm-sport); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--cm-gold); }
.cm-facts-strip span { font-family: var(--cm-sport); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cm-muted); font-size: 0.85rem; }

/* How to Play's way into the tutorial, under the facts strip. */
.cm-tutorial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: -1.5rem 0 3rem;
  padding: 1.4rem 1.6rem; border-radius: 16px; background: rgba(42, 23, 55, 0.8); border: 1px solid var(--cm-gold); }
.cm-tutorial h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0.2rem 0 0.4rem; }
.cm-tutorial p { color: #eadfd2; max-width: 40rem; }

/* ---- a call to action over a picture ---- */
.cm-cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; margin-top: 4rem; border: 1px solid var(--cm-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.cm-cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cm-cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17, 10, 22, 0.95) 0%, rgba(17, 10, 22, 0.55) 55%, rgba(17, 10, 22, 0.2) 100%); }
.cm-cta-band-inner { padding: clamp(6rem, 16vw, 11rem) clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.cm-cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.3rem 0 0.5rem; }
.cm-cta-band p { margin: 0; color: #eadfd2; max-width: 36rem; }

/* ---- rankings ---- */
.cm-board th, .cm-board td { white-space: nowrap; }
.cm-board td { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.cm-board tbody tr:nth-child(odd) > td { background: rgba(255, 255, 255, 0.025); }
.cm-board tr.cm-me > td { background: rgba(246, 185, 59, 0.12) !important; }
.cm-board tbody td:nth-child(2) a { font-weight: 700; }
.cm-rank { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none; font-weight: 800; font-size: 1.15rem; color: var(--cm-gold); }
/* Gold, silver and bronze by rank (people who tie share a medal). */
.cm-medal { border-radius: 50%; color: #2a1600; font-size: 1.05rem; }
.cm-medal-1 { background: radial-gradient(circle at 35% 30%, #fff1b8, #f6b93b 60%, #b97a12); }
.cm-medal-2 { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd3dc 60%, #8b90a0); }
.cm-medal-3 { background: radial-gradient(circle at 35% 30%, #ffd9b0, #d58a4a 60%, #8a4f22); }
.cm-lines > li { padding: 0.5rem 0; border-bottom: 1px solid var(--cm-line); }
.cm-lines > li:last-child { border-bottom: 0; }
.cm-standings > li { display: flex; align-items: center; gap: 0.75rem; }
.cm-standings > li > strong { margin-left: auto; font-family: var(--cm-sport); font-size: 1.1rem; }
.cm-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cm-tabs a { padding: 0.3rem 1rem; border-radius: 999px; border: 1px solid var(--cm-line-2); color: var(--cm-muted); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; }
.cm-tabs a:hover { color: var(--cm-text); }
.cm-tabs a.active { background: var(--cm-cream); border-color: var(--cm-cream); color: #2a1600; }

/* ---- news ---- */
.cm-kind { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.12rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cm-kind-post { background: rgba(164, 140, 255, 0.18); color: #cfc2ff; }
.cm-kind-tournament { background: rgba(69, 196, 176, 0.16); color: var(--cm-teal); }
.cm-kind-result { background: rgba(246, 185, 59, 0.18); color: #ffd98a; }
.cm-kind-calledoff { background: rgba(255, 122, 122, 0.15); color: var(--cm-danger); }
.cm-kind-build { background: rgba(127, 184, 255, 0.15); color: #a8ccff; }
.cm-news { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
/* An <img>'s height attribute would otherwise win over the aspect ratio. */
.cm-news-pic { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--cm-line); }
.cm-news-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.cm-news-body > a:last-child { margin-top: auto; }
.cm-news h2 { font-size: 1.5rem; }
.cm-news-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
.cm-news-featured .cm-news-pic { height: 100%; aspect-ratio: auto; min-height: 18rem; max-height: 30rem; border-bottom: 0; border-right: 1px solid var(--cm-line); }
.cm-news-featured .cm-news-body { padding: 2rem 2.25rem; justify-content: center; }
.cm-news-featured h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
@media (max-width: 767.98px) {
    .cm-news-featured { grid-template-columns: 1fr; }
    .cm-news-featured .cm-news-pic { height: auto; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--cm-line); }
    .cm-news-featured .cm-news-body { padding: 1.5rem; }
}
/* Admin → News: the cover as it'll look, and small ones in the list of posts. */
.cm-cover-preview { display: block; width: 100%; max-width: 28rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--cm-line); }
.cm-cover-thumb { width: 4.5rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
/* A picture in a post's text, with its caption. */
.cm-news-figure { margin: 0.5rem 0 1rem; }
.cm-news-figure img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--cm-line); }
.cm-news-figure figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--bs-secondary-color); }
.cm-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; }
.cm-news-grid > .cm-card { margin: 0 !important; }
.cm-news-prize { display: inline-block; margin: 0.25rem 0 0.75rem; padding: 0.3rem 0.8rem; border-radius: 10px; background: rgba(246, 185, 59, 0.12); color: #ffd98a; font-weight: 700; }

/* ---- a contestant's card ---- */
.cm-player { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding: 1.75rem; position: relative; overflow: hidden; }
.cm-player::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 12px; background: var(--cm-stripes); }
.cm-player .cm-avatar { width: 5.5rem; height: 5.5rem; font-size: 2.8rem; }
.cm-player h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* ---- the account area ---- */
.cm-account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cm-avatar {
    width: 3.75rem; height: 3.75rem; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: radial-gradient(circle at 35% 30%, #ffd98a, var(--cm-orange) 55%, var(--cm-magenta));
    font-family: var(--cm-display); font-size: 1.8rem; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    border: 3px dotted rgba(255, 238, 190, 0.95); box-shadow: 0 0 0 3px var(--cm-bg), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.cm-dash .cm-card { padding: 1.5rem; }
.cm-dash .cm-numbers { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.cm-dash .cm-numbers dd { font-size: 1.9rem; }
.cm-dash h2 { font-size: 1.4rem; }
.cm-stat { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--cm-line); }
.cm-stat:last-child { border-bottom: 0; }
.cm-stat dt { color: var(--cm-muted); font-weight: 600; }
.cm-stat dd { margin: 0; font-weight: 700; }
.cm-list > li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--cm-line); }
.cm-list > li:last-child { border-bottom: 0; }

/* Signing in and joining: a picture beside the form. */
.cm-join { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; max-width: 64rem; margin: 0 auto; }
.cm-join-pic { position: relative; isolation: isolate; min-height: 22rem; display: flex; align-items: flex-end; }
.cm-join-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cm-join-pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 10, 22, 0.1) 30%, rgba(17, 10, 22, 0.92) 100%); }
.cm-join-pic ul { list-style: none; padding: 1.75rem; margin: 0; }
.cm-join-pic li { font-family: var(--cm-sport); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0; }
.cm-join-pic li::before { content: "★"; color: var(--cm-gold); margin-right: 0.6rem; }
.cm-join-form { padding: clamp(1.75rem, 4vw, 2.75rem); }
@media (max-width: 767.98px) { .cm-join { grid-template-columns: 1fr; } .cm-join-pic { min-height: 13rem; } }

/* ---- older pieces still in use ---- */
.cm-feature { height: 100%; }
.cm-feature h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cm-feature p { color: var(--cm-muted); margin: 0; }
.cm-feature .cm-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; display: inline-block; }
.cm-shot { width: 100%; border-radius: var(--cm-radius); border: 1px solid var(--cm-line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }

/* ---- footer ---- */
.cm-footer { background: var(--cm-ink); color: var(--cm-muted); font-weight: 500; margin-top: 2rem; }
.cm-footer > .container { padding-top: 2.75rem; padding-bottom: 1.5rem; }
.cm-footer a { color: var(--cm-muted); text-decoration: none; }
.cm-footer a:hover { color: var(--cm-text); }
.cm-footer .cm-brand img { height: 80px; }
.cm-footer h2 { font-family: var(--cm-sport); font-size: 1rem; font-weight: 800; color: var(--cm-gold); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.7rem; }
.cm-footer ul { list-style: none; padding: 0; margin: 0; }
.cm-footer li { padding: 0.18rem 0; }
/* The show's accounts elsewhere: pills, Discord's first and brightest. */
.cm-footer .cm-socials { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.cm-footer .cm-socials li { padding: 0; }
.cm-footer .cm-socials a { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--cm-line-2); font-size: 0.88rem; font-weight: 700; }
.cm-footer .cm-socials a:hover { border-color: var(--cm-gold); color: var(--cm-text); }
.cm-footer .cm-socials a.cm-social-discord, .cm-discord-btn { background: #5865f2; border-color: #5865f2; color: #fff; }
.cm-footer .cm-socials a.cm-social-discord:hover, .cm-discord-btn:hover { background: #4752c4; color: #fff; }
.cm-footer-base { border-top: 1px solid var(--cm-line); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.92rem; }

/* Two-step sign-in: the QR code on a white card (scanners want dark on light), and the recovery codes. */
.cm-qr { display: inline-block; background: #fff; padding: 10px; border-radius: 10px; line-height: 0; }
.cm-qr svg { width: 200px; height: 200px; max-width: 100%; }
.cm-steps-list { display: grid; gap: 1.25rem; padding-left: 1.25rem; }
.cm-recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; }
.cm-recovery-codes code { font-size: 1rem; letter-spacing: 0.04em; }

/* The admin pages' menu, and the audit log's rows that didn't go through. */
.cm-admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--bs-border-color); }
.cm-admin-nav a { text-decoration: none; font-weight: 600; }
.cm-admin-nav a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cm-activity-refused td, .cm-activity-failed td, li.cm-activity-refused, li.cm-activity-failed { background: rgba(255, 170, 0, 0.07); }
.cm-chip-danger { background: rgba(255, 80, 80, 0.14); border-color: rgba(255, 90, 90, 0.5); color: #ff9b9b; }
/* An account's admin actions: one at a time, each opening its own small form. */
.cm-admin-actions details { border-top: 1px solid var(--cm-line); padding: 0.55rem 0; }
.cm-admin-actions summary { cursor: pointer; font-weight: 600; }
.cm-admin-actions details[open] summary { color: var(--cm-gold); }

/* Paying an entry fee: a checkout card, the price up top, PayPal's button in a frame of our own. */
.cm-pay { background: linear-gradient(180deg, var(--cm-surface-2), var(--cm-surface)); border: 1px solid var(--cm-line-2); border-radius: var(--cm-radius); padding: 1.5rem; position: relative; overflow: hidden; margin-bottom: 1rem; }
.cm-pay::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--cm-stripes); }
.cm-pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.cm-pay-title { font-family: var(--cm-display); font-size: 1.35rem; line-height: 1.2; }
.cm-pay-price { text-align: right; flex-shrink: 0; }
.cm-pay-price span { display: block; font-family: var(--cm-sport); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--cm-gold); text-shadow: 0 0 18px rgba(246, 185, 59, 0.35); }
.cm-pay-price small { color: var(--cm-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; }
.cm-pay-points { list-style: none; padding: 0; margin: 0 0 1.1rem; font-size: 0.93rem; }
.cm-pay-points li { padding: 0.35rem 0 0.35rem 1.6rem; position: relative; }
.cm-pay-points li::before { content: "\2713"; position: absolute; left: 0; top: 0.3rem; color: var(--cm-teal); font-weight: 800; }
/* PayPal's iframe is light; on our dark page the browser backs it with white unless this matches it. */
.cm-pay-buttons { max-width: 22rem; color-scheme: light; margin-bottom: 0.25rem; }
.cm-pay-trust { color: var(--cm-muted); font-size: 0.82rem; margin: 0; }
@media (max-width: 420px) { .cm-pay-head { flex-direction: column; } .cm-pay-price { text-align: left; } }
