:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f7f1e3;
  background: #10241f;
  --cream: #f7f1e3;
  --muted: #c0cec1;
  --gold: #f4d599;
  --border: #3c594d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top right, #244437, transparent 60%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.top, main { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; border-bottom: 1px solid var(--border); }
.brand { font-weight: 750; }
.brand span { margin-right: .35rem; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 2.5rem; }
.hero-copy { position: relative; z-index: 1; }
.season { color: var(--gold); font-weight: 700; font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(2.75rem, 8vw, 6.2rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
p { line-height: 1.55; }
.hero-copy > p:last-child { color: var(--muted); max-width: 30rem; margin-bottom: 0; }
.ornaments { position: absolute; inset: 0 5% 0 auto; width: min(37%, 20rem); color: var(--gold); opacity: .63; }
.ornaments::before, .ornaments::after { content: ''; position: absolute; border: 1px solid #c5a97580; border-radius: 50%; width: 85%; aspect-ratio: 1; top: 12%; right: 4%; }
.ornaments::after { width: 69%; right: 12%; top: 19%; border-style: dashed; }
.ornaments span { position: absolute; line-height: 1; }
.ornaments span:nth-child(1) { top: 25%; right: 20%; font-size: clamp(4rem, 14vw, 11rem); }
.ornaments span:nth-child(2) { top: 50%; left: 10%; font-size: 2.5rem; }
.ornaments span:nth-child(3) { top: 17%; right: 0; font-size: 1.5rem; }
main { padding-bottom: 3rem; }
.panel, dialog { padding: clamp(1rem, 4vw, 2rem); background: #19342b; border: 1px solid var(--border); border-radius: 1.25rem; }
.auth { max-width: 30rem; }
.auth > p, .hint, #date-status { color: var(--muted); }
form label { display: block; margin: .9rem 0 .4rem; font-weight: 650; }
input, select { width: 100%; padding: .75rem; border: 1px solid #698377; border-radius: .55rem; color: var(--cream); background: #10251e; }
fieldset { margin: 1.25rem 0 0; padding: .25rem 0 0; border: 0; }
legend { padding: 0; font-weight: 750; }
.option { display: flex; align-items: baseline; gap: .6rem; cursor: pointer; }
.option input { width: 1rem; height: 1rem; margin: 0; flex: none; accent-color: var(--gold); }
#plan-summary { color: var(--gold); }
#door-copy { white-space: pre-line; }
.primary, .quiet, .choices button, .close { padding: .6rem .9rem; border-radius: .65rem; border: 1px solid var(--border); color: var(--cream); background: #213d32; }
.primary { display: block; width: 100%; background: var(--gold); color: #172820; border-color: transparent; margin-top: 1.25rem; font-weight: 750; }
.text-button { border: 0; padding: .8rem 0 0; color: var(--gold); background: transparent; text-decoration: underline; }
.error { color: #ffc4b5; }
.choices { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.choices button { font-weight: 650; }
.choices button span { margin-right: .3rem; }
.choices [aria-pressed="true"] { color: #172820; background: var(--gold); border-color: var(--gold); }
.board-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; margin-bottom: 1rem; }
.board-heading p { margin: .4rem 0 0; }
#progress { color: var(--gold); }
.doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.4rem, 1.5vw, .85rem); }
.door { min-width: 0; min-height: 4rem; aspect-ratio: 1.35; display: grid; place-content: center; gap: .1rem; border-radius: .75rem; border: 1px solid #a18d64; background: #34574a; color: var(--cream); }
.door strong { font: 500 clamp(1.55rem, 4vw, 2.65rem)/1 Georgia, serif; }
.door small { font-size: .8rem; }
.door:disabled { background: #203c32; color: #bcc9bf; border-color: var(--border); }
.door.opened { color: var(--gold); background: #233e34; }
.door.today:not(:disabled) { background: var(--gold); color: #172820; }
.door:not(:disabled):hover { border-color: #fff1cf; }
dialog { width: min(32rem, calc(100% - 2rem)); color: var(--cream); }
dialog::backdrop { background: #071510cc; }
.close { float: right; font-size: 1.3rem; padding: .25rem .7rem; }
@media (max-width: 40rem) {
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ornaments { opacity: .34; right: 0; }
}
