/* Hotel materials. Both rCTF theme selections retain their native controls. */
html:root {
  --hh-paper: #f3ece4;
  --hh-ink: #160f10;
  --hh-blood: #de3040;
  --hh-green: #a8fb7f;
  --hh-surface: light-dark(#f6f0e7,#100e0f);
  --hh-panel: light-dark(#fffaf1,#211a1c);
  --hh-line: light-dark(#bb9d99,#55353b);
  --hh-text: light-dark(#241619,#f4eae2);
  --hh-secondary: light-dark(#614c4c,#cebab5);
  --hh-accent: light-dark(#8a1325,#ff9d9a);
  --hh-solves: light-dark(#285b23,#a8fb7f);
  --background-l0:var(--hh-surface)!important;
  --background-l1:var(--hh-panel)!important;
  --background-l2:light-dark(#eee3d7,#2a2123)!important;
  --background-l3:light-dark(#e5d5ca,#392a2d)!important;
  --background-l4:light-dark(#d9c4bc,#4d3438)!important;
  --background-l5:light-dark(#cbb3aa,#604248)!important;
  --foreground-l0:var(--hh-text)!important;
  --foreground-l1:var(--hh-text)!important;
  --foreground-l2:var(--hh-secondary)!important;
  --foreground-l3:var(--hh-secondary)!important;
  --foreground-l4:light-dark(#735d5c,#b8a5a1)!important;
  --foreground-l5:light-dark(#785e59,#ae9892)!important;
  --background-accent:light-dark(#f3d2ce,#53232d)!important;
  --background-accent-hover:light-dark(#efbdb9,#6c303a)!important;
  --foreground-accent:var(--hh-accent)!important;
  --background-success:light-dark(#deebd5,#223b24)!important;
  --foreground-success:var(--hh-solves)!important;
  --background-self:var(--background-success)!important;
  --foreground-self:var(--hh-solves)!important;
  --prose:var(--hh-text)!important;
  --prose-link:var(--hh-accent)!important;
  --hh-mono: ui-monospace,"DejaVu Sans Mono",monospace;
}
html:root body {
  color:var(--hh-text); background-color:var(--hh-surface);
  background-image:repeating-linear-gradient(120deg,transparent 0 13px,#b6383910 13px 14px);
  accent-color:var(--hh-accent);
}
::selection {background:#a42232;color:white}
html body :focus-visible {outline:2px solid var(--hh-solves)!important;outline-offset:3px}
html body :is(nav,[role=navigation]) {border-color:var(--hh-line);font-family:var(--hh-mono)}
html body :is(nav,[role=navigation]) a[aria-current=page] {color:var(--hh-accent);text-decoration:underline;text-underline-offset:.35em}
html body :is(h1,h2,card-title) {font-family:Georgia,"Times New Roman",serif;letter-spacing:-.025em;color:var(--hh-text)}
html body h1 {font-weight:700;line-height:1.08;text-wrap:balance}
html body :is(ui-card,challenge-card,[role=dialog],dialog) {
  border:1px solid var(--hh-line);border-top:2px solid var(--hh-accent);border-radius:3px;
  background-color:var(--hh-panel);color:var(--hh-text);box-shadow:0 3px 0 #18091022;
}
html body :is(ui-card,challenge-card):focus-within {border-color:var(--hh-solves)}
html body :is(input:not([type]),input:is([type=text],[type=email],[type=password],[type=search],[type=url],[type=datetime-local]),textarea,select) {
  background-color:var(--hh-panel);color:var(--hh-text);border:1px solid var(--hh-line);border-radius:3px;
}
html body :is(button,a)[data-variant=solid],html body button[type=submit] {
  background:#812332;color:#fff1e8;border-color:#aa3442;border-radius:3px;
}
html body button[type=submit]:enabled:hover {background:#952c3b}
html body :is(button,a)[aria-disabled=true],html body button:disabled {opacity:.65}
html body table {font-variant-numeric:tabular-nums;border-color:var(--hh-line)}
html body thead th {background-color:var(--hh-panel);color:var(--hh-secondary);border-bottom:2px solid var(--hh-accent);font:600 .82rem/1.35 var(--hh-mono)}
html body tbody td {border-bottom-color:var(--hh-line)}
html body tbody tr:hover {background-color:var(--background-l2)}
html:is([data-ht8-page="scores"],[data-ht8-page="scoreboard"],[data-ht8-page="leaderboard"]) tbody td:first-child {
  font-family:var(--hh-mono);font-weight:700;color:var(--hh-solves);
}
html body code {font-family:var(--hh-mono)}
.hh-shell {
  --cream:#f5ebdc; --silver:#c5c1ba; --neon:#b7f68d;
  display:block; container-type:inline-size; isolation:isolate; grid-column:1/-1;
  flex:0 0 auto; align-self:stretch; min-width:0; width:min(100%,84rem); margin:0 auto 1.25rem;
  background:#10100f;color:var(--cream);box-sizing:border-box;text-align:left;
  border:1px solid #44403c;border-top:2px solid #cf3837;
}
.hh-shell *, .hh-shell *::after {box-sizing:border-box}
.hh-shell [hidden] {display:none!important}
.hh-strip {display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.35rem clamp(.8rem,3%,2.3rem);min-height:3.1rem;background:#131313}
.hh-shell .hh-mark,.hh-shell .hh-reg {
  display:inline-flex;align-items:center;gap:.7em;min-height:2.5rem;
  text-decoration:none;line-height:1.2;font-family:var(--hh-mono);
}
.hh-shell .hh-mark {color:var(--cream);font-weight:700;letter-spacing:.09em;text-transform:uppercase;font-size:.82rem}
.hh-mark span {color:#f7554d}.hh-shell .hh-reg {color:var(--neon);font-size:.8rem}
.hh-shell .hh-reg span {font:1.28em/1 system-ui}
.hh-shell a:hover {text-decoration:underline;text-underline-offset:4px}
.hh-scene {
  position:relative;isolation:isolate;display:flex;align-items:center;min-height:clamp(18rem,37cqw,32rem);
  overflow:hidden;background:#151010;border-block:1px solid #392e2e;
}
.hh-scene picture,.hh-scene img,.hh-scene::after {position:absolute;inset:0;width:100%;height:100%;display:block}
.hh-scene picture{z-index:-2}.hh-scene img{object-fit:cover;object-position:center 50%}
.hh-scene::after{content:"";z-index:-1;background:linear-gradient(90deg,#090908e8,#0b0807aa 24%,#100a0930 51%,transparent 72%)}
.hh-copy {position:relative;padding:clamp(1.5rem,5cqw,4.6rem);width:54%;color:var(--cream)}
.hh-shell .hh-present,.hh-shell .hh-tag {font-family:var(--hh-mono);line-height:1.4;margin:0;color:#eee6d6}
.hh-shell .hh-present {font-size:clamp(.7rem,1.2cqw,.94rem);letter-spacing:.24em;font-weight:bold}
.hh-shell h2.hh-title {display:block;font-family:Georgia,"Times New Roman",serif;line-height:.84;letter-spacing:-.065em;
  font-size:clamp(4.1rem,9.8cqw,8.7rem);font-weight:400;color:var(--cream);margin:.22em 0 .19em;text-wrap:nowrap}
.hh-title i,.hh-title b{display:block;font:inherit}.hh-title i{font-style:italic}.hh-title b{text-transform:uppercase;font-size:1.02em;letter-spacing:-.075em}
.hh-shell .hh-tag {font-size:clamp(.72rem,1.2cqw,.97rem);letter-spacing:.1em;color:var(--neon)}
.hh-desk {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);background:#171615;color:var(--cream)}
.hh-invitation,.hh-schedule {padding:clamp(1.1rem,3.2cqw,2.85rem)}
.hh-invitation {align-self:center}
.hh-invitation strong {display:block;font:500 clamp(1.5rem,3.2cqw,2.55rem)/1.04 Georgia,serif;letter-spacing:-.035em;color:var(--cream)}
.hh-invitation p {max-width:44ch;margin:.65rem 0 0;color:var(--silver);font:normal .97rem/1.55 system-ui,sans-serif}
.hh-schedule {border-left:1px solid #48403e;display:grid;align-content:center;gap:.62rem;
  background:linear-gradient(120deg,#20231d,#171815 70%)}
.hh-dial-label,.hh-digits small {font:600 .68rem/1.25 var(--hh-mono);text-transform:uppercase;letter-spacing:.12em;color:#c4d1b9}
.hh-digits {display:flex;align-items:start;gap:clamp(.6rem,2.8cqw,2rem);font-variant-numeric:tabular-nums}
.hh-digits span {display:grid;gap:.25rem;min-width:2ch}.hh-digits b {font:500 clamp(1.85rem,4.2cqw,3.45rem)/1 var(--hh-mono);letter-spacing:-.085em;color:var(--neon)}
.hh-digits small {color:#e0dcd1;font-size:.63rem}
.hh-date {display:block;color:#c5c6bb;font:normal .77rem/1.4 var(--hh-mono)}
html[data-ht8-page="lobby"] img[src$="/hotel/poster.jpg"] {display:none}
html:not([data-ht8-page="lobby"]) .hh-shell {border-left:4px solid #d34642}
html body challenge-card,html body ui-card {background-image:linear-gradient(135deg,transparent 82%,#a8222610);border-radius:2px}
html body :is(nav,[role=navigation]) :is(a,button):hover {text-underline-offset:.27em}
html body thead th {text-transform:uppercase;letter-spacing:.055em}
@container(max-width:43rem) {
  .hh-scene {min-height:0;aspect-ratio:1.12;align-items:flex-end}
  .hh-copy {padding:1.35rem;width:80%}
  .hh-shell h2.hh-title {font-size:clamp(3.5rem,14cqw,6.6rem);margin:.12em 0}
  .hh-scene img{object-position:66% 36%}
  .hh-scene::after {background:linear-gradient(0deg,#090908f2,transparent 72%),linear-gradient(90deg,#1009068a,transparent 62%)}
  .hh-desk {grid-template-columns:1fr}.hh-schedule{border-left:0;border-top:1px solid #443d39}
  .hh-invitation,.hh-schedule{padding:1.1rem 1.3rem}
  .hh-schedule{grid-template-columns:1fr auto;align-items:center}.hh-digits {grid-column:2;grid-row:1/3;gap:.85rem}
  .hh-date{grid-column:1}.hh-dial-label{align-self:end}
}
@container(max-width:24rem){
  .hh-mark{gap:.4em}.hh-shell .hh-mark,.hh-shell .hh-reg{font-size:.7rem}
  .hh-schedule{grid-template-columns:1fr}.hh-digits,.hh-date{grid-row:auto;grid-column:auto}
  .hh-digits{gap:1.4rem}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover){
  .hh-reg span{transition:transform .18s ease-out}.hh-reg:hover span{transform:translate(2px,-2px)}
}
html[data-ht8-page]:not([data-ht8-page="lobby"]) .hh-strip {
  min-height:3.8rem;background:
    linear-gradient(90deg,#131211 24%,#1714139e 62%,#100f0dec),
    url("night-desk.webp") right 42%/auto 180% no-repeat,#131211;
}
html body challenge-card,html body ui-card:has(card-header) {
  background-image:linear-gradient(115deg,transparent 55%,#9c38320d);
  box-shadow:inset 3px 0 0 var(--hh-line),0 2px 0 #100b0a1a;
}
html body challenge-card:hover,html body challenge-card:focus-within {
  border-color:var(--foreground-accent);
}
html body [role=dialog]::backdrop,html body dialog::backdrop {background:#100909bc}
html body [role=tab][aria-selected=true] {
  box-shadow:inset 0 -2px var(--foreground-accent);font-weight:650;
}
html body progress {accent-color:var(--hh-solves)}
html body table :is(th,td):first-child {font-variant-numeric:tabular-nums}
html body :where(nav,[role=navigation]) a[aria-current=page] {font-weight:700}
@media (forced-colors:active) {
  .hh-shell,.hh-schedule {border:1px solid CanvasText}
  .hh-shell .hh-mark,.hh-shell .hh-reg {color:LinkText}
}
