:root {
  color-scheme: light;
  --forest: #173e32;
  --ink: #1d3025;
  --muted: #516354;
  --lime: #d8ef96;
  --paper: #fffef7;
  --line: #bdc8b6;
  --wash: #eef2e4;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef0e4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background-image: radial-gradient(#b4bea7 0.6px, transparent 0.8px); background-size: 9px 9px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #407db0; outline-offset: 4px; }
.mast { background: var(--forest); color: #fafbef; }
.mast-inner, main { max-width: 1112px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.mast-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 500 26px/1.1 Georgia, serif; }
.mast .brand { color: inherit; text-decoration: none; }
.mode-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mode-actions .button { display: inline-flex; align-items: center; text-decoration: none; }
.pack-entry .lobby-link { color: var(--forest); text-underline-offset: .2em; }
.brand-icon { position: relative; height: 20px; width: 17px; border: 2px solid var(--lime); border-radius: 3px; transform: rotate(-10deg); }
.brand-icon::after { content: ""; position: absolute; inset: 2px -5px -5px 2px; border: 2px solid var(--lime); background: var(--forest); border-radius: 3px; transform: rotate(16deg); }
#role { color: #d9e7c8; font-size: .9rem; }
main { padding-block: clamp(22px, 5vw, 58px); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3.6vw, 40px); box-shadow: 0 5px 0 #203b2320; min-width: 0; }
.stack { display: grid; align-content: start; gap: 18px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(228px, .49fr); align-items: start; gap: 18px; }
.landing { max-width: 860px; margin: 0 auto; display: grid; gap: 24px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 16px; }
.entry-grid .card { align-content: space-between; }
.solo-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--forest); color: var(--paper); }
.solo-entry div { flex: 1 1 275px; }
.solo-entry p { margin-top: 8px; color: #e5ecd8; }
.solo-entry .button { display: inline-flex; align-items: center; background: var(--lime); border-color: var(--lime); color: var(--forest); text-decoration: none; }
.audience { max-width: 710px; margin-inline: auto; }
h1, h2, h3, p, fieldset { margin: 0; }
h1, h2 { font-family: "DM Serif Text", Georgia, serif; font-weight: 500; text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.75rem); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; }
p { line-height: 1.5; }
.meta { color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .045em; }
.muted { color: var(--muted); }
.bar, .scoreboard { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.round { color: var(--forest); background: var(--lime); border-radius: 99px; padding: 5px 12px; font-size: .85rem; font-weight: 700; }
.scoreboard { gap: 8px 20px; font-size: .92rem; color: var(--muted); }
.scoreboard strong { margin-left: 5px; color: var(--ink); }
.fields { display: grid; gap: 12px; }
label, legend { color: var(--ink); font-weight: 650; }
label { display: grid; gap: 6px; }
input[type="text"], select { border: 1px solid #899b8b; background: white; color: var(--ink); border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%; }
input.code { text-transform: uppercase; font-family: "IBM Plex Mono", Consolas, monospace; letter-spacing: .12em; }
button, .button { border: 1px solid #859785; border-radius: 10px; background: var(--paper); color: var(--forest); font-weight: 650; cursor: pointer; min-height: 45px; padding: 10px 18px; text-align: center; }
.primary { background: var(--forest); color: var(--paper); border-color: var(--forest); }
button:hover:enabled { filter: brightness(.95); }
button:disabled { opacity: .55; cursor: default; }
.stack > button, .stack > .button { justify-self: start; }
.answers { display: grid; gap: 12px; }
.answer, .reference { display: grid; gap: 6px; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.reference { border-left: 4px solid var(--forest); }
.quote { font: 500 1.33rem/1.35 "DM Serif Text", Georgia, serif; }
.round-items { margin: 0; padding-inline-start: 2rem; line-height: 1.65; }
.question-visual { display: block; width: 100%; max-height: 330px; object-fit: contain; background: #193e40; border-radius: 10px; }
.round-items li::marker { color: var(--forest); font-weight: 700; }
.quote, .invite a, .reference, h1, h2 { overflow-wrap: anywhere; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { margin-bottom: 6px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.choices label { display: inline-flex; align-items: center; flex: 1; justify-content: center; gap: 7px; cursor: pointer; font-size: .94rem; padding: 9px 12px; min-height: 44px; min-width: 92px; border: 1px solid #9da999; border-radius: 8px; background: var(--paper); }
.choices label:has(:checked) { background: var(--lime); color: var(--forest); border-color: var(--forest); }
input[type="radio"] { accent-color: var(--forest); margin: 0; }
.invite { gap: 12px; }
.room-code { font: 700 clamp(1.7rem, 3.5vw, 2.4rem)/1.2 "IBM Plex Mono", Consolas, monospace; letter-spacing: .09em; }
.invite img { width: min(190px,100%); height: auto; aspect-ratio: 1; padding: 4px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.invite a { color: var(--forest); text-underline-offset: .16em; font-size: .94rem; }
.invite select { font-size: .9rem; }
#notice:not([hidden]) { background: #fff2ce; border: 1px solid #b49b66; border-radius: 8px; padding: 10px 15px; margin-bottom: 16px; }
.result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 15px; justify-content: space-between; }
.result strong { color: var(--forest); }
@media (max-width: 710px) { .layout { grid-template-columns: minmax(0,1fr); } .invite img { width: 156px; } }
@media (max-width: 560px) { .entry-grid { grid-template-columns: minmax(0,1fr); } .mast-inner { min-height: 56px; } .stack { gap: 14px; } }
