/* Obsidian Labs visual system. */
:is(h1, h2, h3, main)[tabindex="-1"]:focus { outline: none; }
.admin-event-controls { position: relative; align-self: flex-start; }
.admin-event-controls summary { padding: 9px 14px; border: 1px solid var(--border-subtle); border-radius: 5px; font-size: 12px; color: var(--text-secondary); }
.admin-event-controls summary:hover { border-color: var(--border-strong); color: var(--text-primary); }
.event-control-actions { position: absolute; top: calc(100% + 8px); right: 0; width: 240px; padding: 8px; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 7px; z-index: 20; box-shadow: 0 12px 32px #0004; display: grid; gap: 4px; }
.event-control-actions button { min-height: 40px; text-align: left; background: transparent !important; color: var(--text-secondary) !important; font-weight: 500; }
.event-control-actions button:hover { background: var(--bg-raised) !important; color: var(--text-primary) !important; }
html.dark #admin-cert-results, html.dark #import-json-area { background: var(--bg-input) !important; color: var(--text-secondary) !important; border-color: var(--border-subtle) !important; }
@media (max-width: 639px) { .event-control-actions { right: auto; left: 0; } }
:is(#nav-btn-rules, #nav-btn-verify) { background: transparent !important; color: var(--text-muted) !important; white-space: nowrap; }
:is(#nav-btn-rules, #nav-btn-verify):hover, :is(#nav-btn-rules, #nav-btn-verify)[aria-current="page"] { background: transparent !important; color: var(--text-primary) !important; }
header nav a { white-space: nowrap; }
#view-rules { padding-top: 48px; padding-bottom: 64px; }
.guide-page-heading h1, .route-message h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.guide-page-heading p, .route-message p { margin-top: 14px; color: var(--text-secondary); line-height: 1.8; }
.guide-navigation { display: flex; flex-wrap: wrap; gap: 28px; padding: 24px 0; margin: 12px 0 32px; border-bottom: 1px solid var(--border-subtle); }
.guide-navigation a { font-size: 13px; color: var(--gold); min-height: 32px; align-content: center; }
.guide-navigation a:hover { text-decoration: underline; text-underline-offset: 5px; }
.admin-navigation { overflow-x: auto; gap: 24px !important; padding-bottom: 0; }
.admin-navigation a { min-height: 44px; white-space: nowrap; align-content: center; font-size: 13px; padding-bottom: 10px; border-bottom: 2px solid transparent; color: var(--text-muted); }
.admin-navigation a[aria-current="page"] { border-color: var(--gold) !important; color: var(--gold) !important; }
.admin-navigation a:hover { color: var(--text-primary); }
.route-message { padding-top: 80px; padding-bottom: 80px; }
.route-message a { margin: 24px 20px 0 0; }
body > footer > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
body > footer nav { display: flex; gap: 24px; font-size: 12px; }
body > footer a { min-height: 40px; align-content: center; }
body > footer a:hover { color: var(--gold); }
@media (max-width: 1279px) {
  body > header nav { display: none !important; }
  #mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  #mobile-nav-drawer:not(.hidden) { display: block; }
}
@media (max-width: 639px) { .guide-navigation { gap: 24px; } body > footer > div { flex-direction: column; align-items: flex-start; gap: 8px; } }
:is(#nav-btn-arena, #nav-btn-leaderboard, #nav-btn-dashboard, #nav-btn-admin) { background: transparent !important; color: var(--text-muted) !important; }
:is(#nav-btn-arena, #nav-btn-leaderboard, #nav-btn-dashboard, #nav-btn-admin):hover { background: transparent !important; color: var(--text-primary) !important; }
:is(#nav-btn-arena, #nav-btn-leaderboard, #nav-btn-dashboard, #nav-btn-admin)[aria-current="page"] { color: var(--text-primary) !important; }
html.dark .dashboard-metrics > div { background: transparent !important; border: 0 !important; border-right: 1px solid var(--border-subtle) !important; }
html.dark .dashboard-metrics > div:last-child { border-right: 0 !important; }
html.dark input:not([type="checkbox"]):not([type="radio"]), html.dark select, html.dark textarea { background: var(--bg-input) !important; color: var(--text-primary) !important; border-color: var(--border-subtle) !important; }
.dashboard-metrics { gap: 0 !important; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.dashboard-metrics > div { border: 0 !important; border-right: 1px solid var(--border-subtle) !important; background: transparent !important; border-radius: 0; }
.dashboard-metrics > div:last-child { border-right: 0 !important; }
@media (max-width: 639px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .dashboard-metrics > div:nth-child(2) { border-right: 0 !important; } .dashboard-metrics > div { padding: 16px 12px; } }
html { scroll-padding-top: 84px; }
#arena-directory, :is(#arena-schedule, #schedule), :is(#arena-categories, #categories), .guide-disclosure { scroll-margin-top: 16px; }
#arena-challenges-grid[aria-busy="true"] { opacity: .55; }
body > header div:has(> #header-status-badge), body > header a > div:has(> span:first-child + span) { display: none !important; }
#view-docs { padding-top: 44px; padding-bottom: 64px; }
#view-docs > div:first-child { border-top: 0px; border-right: 0px; border-left: 0px; border-image: none; padding: 0px 0px 30px; border-bottom: 1px solid var(--border-subtle); border-radius: 0px; background: transparent !important; }
#view-docs h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -0.04em; }
#view-docs h3 { font-weight: 500; letter-spacing: -0.02em; }
#view-docs p { line-height: 1.8; }
#view-docs [id^="doc-"] { scroll-margin-top: 100px; }
:root { --bg-canvas: #f5f5f2; --bg-surface: #fff; --bg-raised: #eeeee9; --bg-input: #f8f8f5; --border-subtle: #ddded7; --border-strong: #bcbeb4; --text-primary: #21231e; --text-secondary: #55594e; --text-muted: #6b7063; --gold: #936b1d; --gold-fill: #d9b66f; --gold-soft: #f5eddc; --green: #397358; --green-soft: #e7f1e9; --red: #bd4545; --red-soft: #fbedeb; }
html.dark { color-scheme: dark; --bg-canvas: #111312; --bg-surface: #191c1a; --bg-raised: #212521; --bg-input: #141714; --border-subtle: #30352f; --border-strong: #52594d; --text-primary: #eeefe8; --text-secondary: #b0b6aa; --text-muted: #929b8c; --gold: #d9b66f; --gold-fill: #d9b66f; --gold-soft: #2b271d; --green: #a0c9aa; --green-soft: #1c2a20; --red: #f19a98; --red-soft: #312020; }
html { scroll-padding-top: 100px; }
body, html.dark body { font-size: 14px; line-height: 1.6; font-synthesis: none; background: var(--bg-canvas) !important; color: var(--text-primary) !important; }
html.dark { background: var(--bg-canvas) !important; }
::selection, html.dark ::selection { background: var(--gold-fill) !important; color: rgb(23, 27, 21) !important; }
button, a, input, select, textarea, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
button, summary, [role="button"] { cursor: pointer; }
button, a, input, select, textarea, [role="button"] { transition: background-color 120ms, color 120ms, border-color 120ms, box-shadow 120ms; }
:is(button, a, input, select, textarea, summary, [role="button"]):focus-visible { outline-offset: 4px; outline: 2px solid var(--gold) !important; }
button:disabled, input:disabled { opacity: 0.5; cursor: not-allowed; }
button:active:not(:disabled), .primary-action:active { transform: translateY(1px); }
.max-w-7xl { max-width: 1280px; }
.shadow-subtle, .shadow-panel, .shadow-elevated { box-shadow: none !important; }
.bg-grid-pattern, html.dark .bg-grid-pattern { background-image: none !important; }
.backdrop-blur { backdrop-filter: none; }
.animate-ping { display: none; animation: auto ease 0s 1 normal none running none !important; }
.animate-pulse { animation: auto ease 0s 1 normal none running none; }
html.dark :is(.bg-white, [class~="bg-white/95"]) { background-color: var(--bg-surface) !important; }
html.dark :is(.bg-slate-50, [class~="bg-slate-50/70"], [class~="bg-slate-50/40"]) { background-color: var(--bg-input) !important; }
html.dark :is(.bg-slate-100, [class~="bg-slate-100/70"], [class~="bg-slate-200/70"]) { background-color: var(--bg-raised) !important; }
html.dark :is(.border-slate-100, .border-slate-200, .border-slate-300, .border-slate-800, [class~="border-amber-200/80"]) { border-color: var(--border-subtle) !important; }
html.dark :is(.border-slate-400, .border-slate-900) { border-color: var(--border-strong) !important; }
html.dark :is(.divide-slate-100, .divide-slate-200) > * + * { border-color: var(--border-subtle); }
html.dark :is(.text-slate-900, .text-slate-800) { color: var(--text-primary) !important; }
html.dark :is(.text-slate-700, .text-slate-600) { color: var(--text-secondary) !important; }
html.dark :is(.text-slate-500, .text-slate-400) { color: var(--text-muted) !important; }
html.dark :is(.bg-amber-50, .bg-amber-100) { background-color: var(--gold-soft) !important; }
html.dark :is(.text-amber-900, .text-amber-800, .text-amber-700, .text-amber-600, .text-amber-400) { color: var(--gold) !important; }
html.dark :is(.border-amber-200, .border-amber-300) { border-color: rgb(92, 78, 48) !important; }
html.dark :is(.bg-emerald-50, .bg-emerald-100, [class~="bg-emerald-50/20"]) { background-color: var(--green-soft) !important; }
html.dark :is(.text-emerald-600, .text-emerald-700, .text-emerald-800) { color: var(--green) !important; }
html.dark :is(.border-emerald-200, .border-emerald-300) { border-color: rgb(59, 84, 64) !important; }
html.dark :is(.bg-red-50, .bg-rose-50) { background-color: var(--red-soft) !important; }
html.dark :is(.text-red-600, .text-red-700, .text-red-800, .text-rose-700) { color: var(--red) !important; }
html.dark :is(.border-red-200, .border-rose-200) { border-color: rgb(100, 64, 61) !important; }
html.dark :is(.bg-blue-50, .bg-indigo-50, .bg-purple-50, .bg-cyan-50, .bg-rose-100) { background-color: var(--bg-raised) !important; }
html.dark :is(.text-blue-800, .text-indigo-800, .text-purple-800, .text-cyan-800) { color: rgb(183, 198, 210) !important; }
html.dark :is(.border-blue-200, .border-indigo-200, .border-purple-200, .border-cyan-200) { border-color: var(--border-subtle) !important; }
html.dark :is(.hover\:bg-slate-50, .hover\:bg-slate-100, .hover\:bg-slate-200):hover { background-color: var(--bg-raised) !important; }
html.dark :is(.hover\:text-slate-900, .hover\:text-slate-800, .hover\:text-slate-700):hover { color: var(--text-primary) !important; }
html.dark :is(.hover\:border-slate-300, .hover\:border-slate-400):hover { border-color: var(--border-strong) !important; }
html.dark .hover\:bg-red-50:hover { background-color: var(--red-soft) !important; }
html.dark .hover\:text-red-700:hover { color: var(--red) !important; }
body > header, html.dark body > header { backdrop-filter: none; background: var(--bg-canvas) !important; border-color: var(--border-subtle) !important; }
body > header > div > div:first-child { min-height: 80px; height: auto; gap: 20px; }
body > header picture img { width: 128px; max-width: 128px; height: auto; }
body > header nav { align-self: stretch; align-items: stretch !important; gap: 22px !important; }
body > header nav :is(button, a), html.dark body > header nav :is(button, a) { border: 0px; border-radius: 0px; padding: 0px 2px; font-size: 13px; font-weight: 500; position: relative; align-content: center; background: transparent !important; color: var(--text-muted) !important; }
body > header nav :is(button, a):hover, html.dark body > header nav :is(button, a):hover, body > header nav [aria-current="page"], html.dark body > header nav [aria-current="page"] { color: var(--text-primary) !important; background: transparent !important; }
body > header nav [aria-current="page"]::after { content: ""; position: absolute; bottom: 0px; height: 2px; background: var(--gold); left: 0px; right: 0px; }
#header-status-badge { font-size: 10px; font-weight: 400; }
#btn-header-login, html.dark #btn-header-login { border: 0px; padding: 10px 12px; font-size: 13px; color: var(--text-secondary) !important; background: transparent !important; }
#btn-header-register, html.dark #btn-header-register { padding: 10px 18px; font-size: 13px; border-radius: 5px; background: var(--gold-fill) !important; color: rgb(32, 35, 24) !important; }
#btn-header-register span { color: inherit; }
#btn-header-register:hover, html.dark #btn-header-register:hover, .primary-action:hover { background: rgb(229, 198, 136) !important; }
#theme-toggle-btn, html.dark #theme-toggle-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; flex-shrink: 0; color: var(--text-muted) !important; background: transparent !important; }
#theme-toggle-btn:hover, html.dark #theme-toggle-btn:hover { color: var(--gold) !important; background: var(--bg-raised) !important; }
#mobile-menu-toggle { min-width: 40px; min-height: 40px; border-color: var(--border-subtle); }
#mobile-nav-drawer { padding: 16px 0px; }
html.dark #mobile-nav-drawer { background: var(--bg-canvas) !important; border-color: var(--border-subtle) !important; }
#mobile-nav-drawer :is(button, a) { min-height: 44px; font-size: 14px; }
#view-arena { padding-top: 0px; padding-bottom: 64px; }
.arena-hero { padding: 66px 0px 50px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; border-bottom: 1px solid var(--border-subtle); margin-bottom: 42px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 500; letter-spacing: 0.13em; color: var(--text-muted); }
.edition-mark { border: 1px solid var(--gold); color: var(--gold); padding: 2px 7px; border-radius: 3px; font-family: "JetBrains Mono", monospace; }
.arena-hero h1 { font-size: clamp(38px, 4.4vw, 62px); letter-spacing: -0.055em; line-height: 1.08; font-weight: 500; margin: 24px 0px 20px; }
.arena-hero h1 > span { color: var(--gold); }
.hero-description { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 44px; padding: 11px 18px; border-radius: 5px; background: var(--gold-fill); color: rgb(32, 35, 24); font-size: 13px; font-weight: 600; }
.primary-action span { font-size: 18px; line-height: 1; }
.text-action { font-size: 12px; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.text-action:hover { color: var(--text-primary); }
.hero-facts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-muted); font-size: 11px; }
.hero-facts span + span { border-left: 1px solid var(--border-strong); padding-left: 18px; }
.event-clock { padding-top: 35px; }
.clock-heading { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.08em; }
.status-indicator { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.clock-digits { display: grid; grid-template-columns: repeat(4, minmax(0px, 1fr)); margin: 24px 0px 20px; }
.clock-digits > div { position: relative; display: flex; flex-direction: column; align-items: center; }
.clock-digits > div:not(:last-child)::after { content: ":"; position: absolute; right: -3px; top: 5px; font-size: 30px; color: var(--border-strong); font-weight: 300; }
.clock-digits :is(.cd-days, .cd-hours, .cd-minutes, .cd-seconds) { font-family: Inter, sans-serif; font-variant-numeric: tabular-nums; font-size: clamp(32px, 3.4vw, 48px); font-weight: 400; line-height: 1.2; letter-spacing: -0.055em; color: var(--text-primary); }
.clock-digits .cd-seconds { color: var(--gold); }
.clock-unit { font-size: 10px; color: var(--text-muted); margin-top: 8px; }
.clock-caption { display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--border-subtle); font-size: 9px; letter-spacing: 0.07em; color: var(--text-muted); font-family: "JetBrains Mono", monospace; }
.event-format { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 11px; }
.event-format span:first-child { font-family: "JetBrains Mono", monospace; letter-spacing: 0.08em; font-size: 9px; }
#arena-directory { border-bottom: 0px; padding-bottom: 0px; gap: 20px; scroll-margin-top: 100px; }
#arena-directory h2 { font-size: 23px; font-weight: 500; letter-spacing: -0.035em; }
#arena-directory p { font-size: 12px; margin-top: 6px; }
#arena-stats-counter, html.dark #arena-stats-counter { border: 0px; font-size: 10px; background: transparent !important; color: var(--text-muted) !important; }
#arena-search, #arena-difficulty-filter { height: 40px; font-size: 12px; border-radius: 5px; border-color: var(--border-subtle) !important; background: var(--bg-input) !important; color: var(--text-secondary) !important; }
#arena-search { padding-left: 34px; width: 224px; }
#arena-search + svg { top: 13px; left: 12px; }
#arena-directory button[title="Refresh Challenges"] { height: 40px; width: 40px; display: grid; place-items: center; background: transparent !important; border-color: var(--border-subtle) !important; }
#arena-category-pills { margin-top: 26px; gap: 23px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0px; scrollbar-width: thin; }
#arena-category-pills button, html.dark #arena-category-pills button { border-width: 0px 0px 2px; border-style: none none solid; border-color: currentcolor currentcolor transparent; border-image: none; border-radius: 0px; padding: 0px 0px 13px; min-height: 38px; font-size: 11px; font-weight: 500; background: transparent !important; color: var(--text-muted) !important; }
#arena-category-pills button:hover, html.dark #arena-category-pills button:hover { color: var(--text-primary) !important; background: transparent !important; }
#arena-category-pills button.bg-slate-900, html.dark #arena-category-pills button.bg-slate-900 { border-bottom-color: var(--gold); color: var(--gold) !important; background: transparent !important; }
#arena-challenges-grid { gap: 14px; margin-top: 24px; }
#arena-challenges-grid > [role="button"] { min-height: 154px; border-radius: 7px; padding: 22px; background: var(--bg-surface) !important; }
#arena-challenges-grid > [role="button"]:hover { border-color: var(--gold) !important; background: var(--bg-raised) !important; }
html.dark #arena-challenges-grid > div { background: var(--bg-surface) !important; border-color: var(--border-subtle) !important; box-shadow: none !important; }
html.dark #arena-challenges-grid > div:hover { border-color: var(--border-strong) !important; box-shadow: none !important; }
html.dark #arena-challenges-grid > div[role="button"]:hover { background: var(--bg-raised) !important; border-color: var(--gold) !important; }
html.dark #arena-challenges-grid > div.border-emerald-300 { border-color: rgb(59, 84, 64) !important; }
#arena-challenges-grid h4 { font-size: 16px; font-weight: 500; margin-top: 18px; letter-spacing: -0.02em; }
#arena-challenges-grid > .col-span-full { max-width: none; width: 100%; margin: 0px; padding: 36px 28px; background: var(--bg-surface); border: 1px dashed var(--border-strong); border-radius: 7px; }
#arena-challenges-grid > .col-span-full > div:first-child { font-size: 12px; border-radius: 50%; background: transparent !important; color: var(--gold) !important; }
#arena-challenges-grid > .col-span-full h3 { font-family: Inter, sans-serif; font-size: 17px; text-transform: none; letter-spacing: -0.02em; font-weight: 500; }
#arena-challenges-grid > .col-span-full p { max-width: 480px; margin: 10px auto 0px; line-height: 1.8; }
#arena-challenges-grid > .col-span-full > div:last-child { border: 0px; padding-top: 4px; font-size: 9px; flex-wrap: wrap; }
.guide-divider { margin: 64px 0px 32px; border-top: 1px solid var(--border-subtle); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-divider span:first-child { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--gold); }
.guide-divider span:last-child { font-size: 11px; color: var(--text-muted); }
:is(#arena-schedule, #schedule), :is(#arena-categories, #categories) { padding-top: 0px; margin-bottom: 42px; scroll-margin-top: 100px; }
:is(:is(#arena-schedule, #schedule), :is(#arena-categories, #categories)) > div:first-child { border: 0px; margin-bottom: 24px; padding: 0px; }
:is(:is(#arena-schedule, #schedule), :is(#arena-categories, #categories)) > div:first-child > span, :is(:is(#arena-schedule, #schedule), :is(#arena-categories, #categories)) > div:first-child > div > div > span { display: none; }
:is(:is(#arena-schedule, #schedule), :is(#arena-categories, #categories)) h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; }
:is(:is(#arena-schedule, #schedule), :is(#arena-categories, #categories)) > div:first-child p { margin-top: 7px; line-height: 1.7; }
:is(#arena-schedule, #schedule) > .grid { gap: 0px; border: 1px solid var(--border-subtle); border-radius: 7px; overflow: hidden; background: var(--bg-surface); }
:is(#arena-schedule, #schedule) > .grid > div { border-radius: 0px; padding: 22px; border-top: 0px !important; border-bottom: 0px !important; border-left: 0px !important; border-image: none !important; border-right: 1px solid var(--border-subtle) !important; background: transparent !important; }
:is(#arena-schedule, #schedule) > .grid > div:last-child { border-right: 0px !important; }
:is(#arena-schedule, #schedule) > .grid > div > div:first-child > span:first-child { padding: 0px; font-weight: 400; font-size: 10px; color: var(--text-muted) !important; background: transparent !important; }
:is(#arena-schedule, #schedule) > .grid p { color: var(--text-muted) !important; line-height: 1.7; }
:is(#arena-schedule, #schedule) > .grid > div > div:last-child { border: 0px; margin-top: 14px; padding-top: 0px; font-size: 9px; font-weight: 400; }
:is(#arena-schedule, #schedule) > div:last-child:not(.grid) { border: 0px; padding: 8px 0px; font-size: 9px; font-weight: 400; background: transparent !important; color: var(--text-muted) !important; }
:is(#arena-categories, #categories) > .grid { grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 0px 32px; }
:is(#arena-categories, #categories) > .grid > div { border-radius: 0px; padding: 22px 0px; background: transparent !important; border-right: 0px !important; border-bottom: 0px !important; border-left: 0px !important; border-image: none !important; border-top: 1px solid var(--border-subtle) !important; }
:is(#arena-categories, #categories) h4 { font-size: 14px; font-weight: 500; margin: 10px 0px 6px; }
:is(#arena-categories, #categories) p { line-height: 1.8; color: var(--text-muted) !important; }
:is(#arena-categories, #categories) > .grid > div > div:last-child { border: 0px; margin-top: 12px; padding-top: 0px; font-size: 10px; }
:is(#arena-categories, #categories) button { color: var(--gold) !important; }
:is(#arena-categories, #categories) > .grid > div > div:first-child > span:first-child { border: 0px; padding: 0px; font-size: 9px; letter-spacing: 0.08em; background: transparent !important; color: var(--gold) !important; }
:is(#arena-categories, #categories) > .grid > div > div:first-child > span:last-child { font-size: 9px; font-weight: 400; color: var(--text-muted) !important; }
.guide-disclosure { border-top: 1px solid var(--border-subtle); scroll-margin-top: 100px; }
.guide-disclosure:last-child { border-bottom: 1px solid var(--border-subtle); }
.guide-disclosure > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 70px; font-size: 16px; letter-spacing: -0.02em; }
.guide-disclosure > summary::-webkit-details-marker { display: none; }
.guide-disclosure > summary > span { color: var(--text-muted); font-size: 22px; font-weight: 300; transition: transform 120ms; }
.guide-disclosure[open] > summary > span { transform: rotate(45deg); }
.disclosure-content { padding-bottom: 30px; }
.disclosure-content > div:first-child { display: none; }
.disclosure-content .bg-white { border: 0px; border-radius: 0px; background: transparent !important; }
.disclosure-content h4 { font-size: 13px; letter-spacing: 0px; font-weight: 500; }
.disclosure-content p { line-height: 1.8; font-size: 12px; }
:is(#view-leaderboard, #view-dashboard, #view-admin, #view-verify) { padding-top: 48px; padding-bottom: 64px; }
:is(#view-leaderboard, #view-dashboard, #view-admin) h2 { font-size: 28px; letter-spacing: -0.04em; font-weight: 500; }
html.dark .bg-slate-900 { background-color: var(--bg-raised); }
html.dark :is(button, a).bg-slate-900 { background: var(--gold-fill) !important; color: rgb(32, 35, 24) !important; border-color: var(--gold-fill) !important; }
html.dark :is(button, a).bg-slate-900:hover { background: rgb(229, 198, 136) !important; }
html.dark :is(input, textarea, select) { background-color: var(--bg-input) !important; color: var(--text-primary) !important; border-color: var(--border-subtle) !important; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.8; }
:is(input:not([type="checkbox"]):not([type="radio"]), select) { min-height: 42px; }
table th { font-size: 10px; letter-spacing: 0.06em; font-weight: 500 !important; }
table td { font-size: 13px; padding-top: 18px !important; padding-bottom: 18px !important; }
html.dark table thead tr, html.dark table tbody tr:hover { background: var(--bg-raised) !important; }
html.dark table tbody tr { border-color: var(--border-subtle) !important; }
#my-rank-banner, html.dark #my-rank-banner { background: var(--bg-raised) !important; border-color: var(--border-subtle) !important; }
#my-rank-banner .text-white { color: var(--text-primary); }
.modal-backdrop, html.dark .modal-backdrop { backdrop-filter: none; overflow-y: auto; overscroll-behavior: contain; background: rgba(9, 13, 22, 0.82) !important; }
.modal-backdrop > div { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; box-shadow: rgba(0, 0, 0, 0.333) 0px 28px 80px; border-color: var(--border-strong) !important; }
html.dark :is(#modal-auth, #modal-challenge, #modal-admin-challenge) > div { background: var(--bg-surface) !important; border-color: var(--border-strong) !important; }
#modal-auth > div { padding: 30px; }
#modal-auth h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.035em; }
#modal-auth label { text-transform: none; font-family: Inter, sans-serif; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
#modal-auth input { font-size: 14px; padding: 10px 12px; border-radius: 5px; }
html.dark #modal-auth input { background: var(--bg-input) !important; border-color: var(--border-subtle) !important; }
#modal-auth button[type="submit"], html.dark #modal-auth button[type="submit"] { min-height: 44px; font-size: 13px; background: var(--gold-fill) !important; color: rgb(32, 35, 24) !important; }
#modal-auth [aria-label="Close modal"] { min-width: 36px; min-height: 36px; display: grid; place-items: center; }
#auth-tab-login, #auth-tab-register { min-height: 36px; font-size: 12px; }
html.dark #modal-auth .bg-slate-100 { background: var(--bg-input) !important; border-color: var(--border-subtle) !important; }
html.dark #auth-tab-login.bg-white, html.dark #auth-tab-register.bg-white { background: var(--bg-raised) !important; color: var(--text-primary) !important; }
.password-field { position: relative; }
html.dark #m-chal-desc { background: var(--bg-input) !important; border-color: var(--border-subtle) !important; color: var(--text-secondary) !important; }
html.dark #m-chal-submit-btn { background: var(--gold-fill) !important; color: rgb(32, 35, 24) !important; }
html.dark #m-chal-submit-btn:hover { background: rgb(229, 198, 136) !important; }
html.dark #m-chal-unauth-banner { background: var(--gold-soft) !important; border-color: rgb(92, 78, 48) !important; color: var(--gold) !important; }
.password-field input { padding-right: 65px !important; }
.password-toggle { position: absolute; right: 3px; top: 3px; height: calc(100% - 6px); padding: 0px 10px; color: var(--text-secondary); font-size: 11px; border-radius: 3px; }
.password-toggle:hover { background: var(--bg-raised); }
#auth-error-banner { font-weight: 400; line-height: 1.7; }
body > footer, html.dark body > footer { padding: 24px 0px; background: var(--bg-canvas) !important; border-color: var(--border-subtle) !important; }
body > footer > div { font-family: Inter, sans-serif; font-size: 9px; color: var(--text-muted); letter-spacing: 0.04em; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--gold-fill); color: rgb(32, 35, 24); padding: 12px 20px; border-radius: 5px; }
.skip-link:focus { top: 12px; }
.connection-notice { background: var(--gold-soft); color: var(--gold); border-bottom: 1px solid var(--border-subtle); padding: 10px 20px; text-align: center; font-size: 12px; }
html.dark ::-webkit-scrollbar-track { background: var(--bg-canvas) !important; }
html.dark ::-webkit-scrollbar-thumb { background: var(--border-strong) !important; }
@media (min-width: 1024px) and (max-width: 1199px) {
  #header-status-badge { display: none; }
  body > header nav { gap: 16px; }
}
@media (max-width: 1023px) {
  .arena-hero { gap: 40px; padding: 48px 0px 40px; }
  body > header > div > div:first-child { min-height: 72px; }
  body > header nav { gap: 16px; }
  body > header picture img { width: 108px; }
  body > header a > .hidden.sm\:flex { display: none; }
  #arena-directory { align-items: flex-start; }
  #arena-directory > div:last-child { width: 100%; }
  #arena-search { width: 100%; }
  #arena-directory > div:last-child > .relative { flex: 1 1 0%; }
  :is(#arena-schedule, #schedule) > .grid > div { border-bottom: 1px solid var(--border-subtle) !important; }
  :is(#arena-schedule, #schedule) > .grid > div:nth-child(2n) { border-right: 0px !important; }
  :is(#arena-schedule, #schedule) > .grid > div:nth-last-child(-n+2) { border-bottom: 0px !important; }
}
@media (max-width: 767px) {
  body > header > div > div:first-child { min-height: 68px; gap: 10px; }
  body > header > div > div:first-child > div:last-child { gap: 7px; }
  body > header picture img { width: 106px; max-width: 106px; }
  #unauth-buttons { gap: 4px; }
  #btn-header-login, html.dark #btn-header-login { padding: 8px; font-size: 12px; }
  #btn-header-register, html.dark #btn-header-register { padding: 9px 12px; font-size: 12px; }
  #btn-header-register span:last-child { display: none; }
  #theme-toggle-btn, html.dark #theme-toggle-btn { width: 32px; }
  .arena-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; margin-bottom: 30px; }
  .arena-hero h1 { font-size: clamp(38px, 8vw, 56px); margin-top: 22px; }
  .eyebrow { font-size: 8px; gap: 10px; }
  .hero-description { font-size: 13px; }
  .hero-actions { gap: 22px; margin-top: 22px; }
  .primary-action { gap: 18px; padding: 11px 14px; font-size: 12px; white-space: nowrap; }
  .text-action { gap: 8px; font-size: 11px; white-space: nowrap; }
  .hero-facts { gap: 7px 12px; margin-top: 24px; font-size: 10px; }
  .hero-facts span + span { padding-left: 12px; }
  .event-clock { padding: 24px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 7px; }
  .clock-digits { margin-top: 20px; }
  .clock-digits :is(.cd-days, .cd-hours, .cd-minutes, .cd-seconds) { font-size: 38px; }
  .event-format { margin-top: 20px; }
  #arena-directory h2 { font-size: 21px; }
  #arena-directory > div:first-child > div { flex-wrap: wrap; }
  #arena-directory > div:last-child { gap: 8px; }
  #arena-directory > div:last-child > .relative { min-width: 150px; }
  #arena-difficulty-filter { max-width: 124px; font-size: 11px; padding-left: 8px; padding-right: 4px; }
  #arena-category-pills { gap: 24px; margin-top: 22px; }
  #arena-category-pills button { min-height: 44px; }
  #arena-challenges-grid > .col-span-full { padding: 28px 20px; }
  .guide-divider { margin-top: 44px; flex-direction: column; align-items: flex-start; gap: 5px; }
  :is(#arena-categories, #categories) > .grid { grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 0px 24px; }
  .disclosure-content > .grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 16px; }
  .modal-backdrop > div { max-height: calc(100dvh - 32px); }
  #modal-auth > div { padding: 24px; }
  #auth-user-menu { gap: 6px; }
  #auth-user-menu > div { padding: 5px; border: 0px; background: transparent !important; }
  #auth-user-menu > div > div:last-child { display: none; }
  #auth-user-menu button { font-size: 10px; padding: 7px; min-height: 40px; }
  body > footer > div { align-items: flex-start; gap: 8px; font-size: 8px; }
  :is(#view-dashboard, #view-admin) h2 { font-size: 24px; }
  #view-admin > div:first-child { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  #arena-directory > div:last-child > .relative { flex-basis: 100%; }
  #arena-difficulty-filter { flex: 1 1 0%; max-width: none; }
  .hero-facts { max-width: 310px; }
  .hero-facts span:last-child { border: 0px; padding-left: 0px; flex-basis: 100%; }
  :is(#arena-categories, #categories) > .grid { grid-template-columns: 1fr; }
  :is(#arena-schedule, #schedule) > .grid > div { border-right: 0px !important; border-bottom: 1px solid var(--border-subtle) !important; }
  :is(#arena-schedule, #schedule) > .grid > div:last-child { border-bottom: 0px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { scroll-behavior: auto !important; animation: auto ease 0s 1 normal none running none !important; transition: none !important; }
}
/* Component refinements after desktop and mobile verification. */
html.dark :is(#modal-auth, #modal-challenge, #modal-admin-challenge) > div { background: var(--bg-surface) !important; border-color: var(--border-strong) !important; }
html.dark #m-chal-desc, html.dark #m-chal-hints-list > div { background: var(--bg-input) !important; border-color: var(--border-subtle) !important; color: var(--text-secondary) !important; }
html.dark #m-chal-difficulty { background: var(--bg-raised) !important; color: var(--text-secondary) !important; }
html.dark #m-chal-submit-btn, html.dark #m-chal-hints-list button { background: var(--gold-fill) !important; color: #202318 !important; }
html.dark #m-chal-submit-btn:hover, html.dark #m-chal-hints-list button:hover { background: #e5c688 !important; }
html.dark #m-chal-unauth-banner { background: var(--gold-soft) !important; border-color: #5c4e30 !important; color: var(--gold) !important; }
html.dark #auth-user-menu > div.bg-slate-100, html.dark #auth-user-menu button, html.dark #user-avatar-initial { background: var(--bg-raised) !important; border-color: var(--border-subtle) !important; color: var(--text-secondary) !important; }
html.dark #auth-user-menu button:hover { background: var(--bg-surface) !important; color: var(--text-primary) !important; }
[role="button"]:active { transform: translateY(1px); }
@media (max-width: 1023px) {
  body > header nav { display: none !important; }
  #mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  #mobile-nav-drawer:not(.hidden) { display: block; }
}
@media (max-width: 767px) {
  .primary-action { gap: 18px; padding: 11px 14px; font-size: 12px; white-space: nowrap; }
  .text-action { gap: 8px; font-size: 11px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .hero-facts span:last-child { border-left: 1px solid var(--border-strong); padding-left: 12px; flex-basis: auto; }
  #m-chal-flag-input { min-width: 0; }
  #m-chal-submit-btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
}
