/* The DSP Challenge: additions to the house (../v0/sim.css) and day program (../day/day.css) styles. */
#hud { width: 300px; }
#hud h1 { font-size: 34px; }
#hud h1 small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
#timer { font-variant-numeric: tabular-nums; font-size: 13px; }
.where { margin: 12px 0 0; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.where small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
#places { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 1px; }
#places button { display: grid; grid-template-columns: 22px 1fr auto; gap: 9px; align-items: center; width: 100%; text-align: left; padding: 5px 8px; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 600; font-size: 13.5px; }
#places button:hover { background: rgba(79, 70, 229, 0.08); }
#places .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--primary); box-shadow: inset 0 0 0 2px rgba(32, 32, 94, 0.3); }
#places .done .dot { background: var(--green); color: #fff; box-shadow: none; }
#places .here { background: rgba(242, 180, 65, 0.22); }
#places .pts { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#hud .row { margin-top: 10px; }
#hud .row button { flex: 1; padding: 9px 10px; font-size: 13.5px; }

#place { top: 18px; right: 18px; width: 320px; animation: slide 0.3s ease both; }
#place h2 { font-size: 24px; }
#placeTasks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
#placeTasks li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px rgba(32, 32, 94, 0.1); font-weight: 600; font-size: 14px; }
#placeTasks li small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
#placeTasks li b { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; align-self: center; }
#placeTasks li.done { background: #e4f6ec; box-shadow: inset 0 0 0 2px rgba(31, 138, 91, 0.35); }
#placeTasks li.done b { color: #11573a; }

#card .eyebrow { display: flex; justify-content: space-between; gap: 12px; }
#cardWorth { color: var(--muted); letter-spacing: 0.02em; }
#card.side { left: auto; right: 18px; bottom: 18px; transform: none; width: min(380px, calc(100% - 36px)); animation: none; }
#cardText { width: 100%; box-sizing: border-box; margin-top: 12px; border-radius: 14px; border: 2px solid rgba(32, 32, 94, 0.2); padding: 11px 14px; font: inherit; font-size: 15px; line-height: 1.4; resize: vertical; background: #fff; color: var(--ink); }
#cardText:focus { outline: 3px solid var(--gold); border-color: var(--primary); }
#cardOptions .step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; }
#cardOptions .step i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; font-weight: 800; background: rgba(32, 32, 94, 0.08); color: var(--primary); }
#cardOptions .step.picked { background: #eef0ff; box-shadow: inset 0 0 0 2px var(--accent); }
#cardOptions .step.picked i { background: var(--primary); color: #fff; }
#cardOptions .step.right i { background: var(--green); color: #fff; }
#cardOptions .step.wrong { text-decoration: none; }
#cardOptions .step.wrong i { background: #c2571a; color: #fff; }
#cardRubric { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
#cardRubric li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px rgba(32, 32, 94, 0.1); }
#cardRubric li::before { content: "•"; font-weight: 800; text-align: center; }
#cardRubric li.met { background: #e4f6ec; }
#cardRubric li.met::before { content: "✓"; color: #11573a; }
#cardRubric li.part::before { content: "~"; color: #9a6a00; }
#cardRubric li.miss::before { content: "×"; color: #a63a1c; }
#cardRubric li small { display: block; color: var(--muted); }
#cardNote { align-self: center; margin: 0; }

.ring-label { position: absolute; left: 0; top: 0; padding: 6px 13px; border-radius: 999px; background: rgba(32, 32, 94, 0.94); color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; pointer-events: auto; cursor: pointer; border: 0; box-shadow: 0 6px 18px rgba(10, 12, 40, 0.3); }
.ring-label small { display: block; font-weight: 600; font-size: 11.5px; opacity: 0.8; }
.ring-label:hover { background: var(--accent); }
.ring-label.done { background: rgba(31, 138, 91, 0.95); }
.ring-label.locked { background: rgba(110, 116, 128, 0.9); cursor: default; }
.ring-label.person { background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: default; pointer-events: none; padding: 4px 11px; font-size: 12.5px; box-shadow: none; }
.ring-label.person.staff { background: rgba(32, 32, 94, 0.9); color: #fff; }
.ring-label.found { background: rgba(31, 138, 91, 0.96); cursor: default; pointer-events: none; }

#map { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(860px, calc(100% - 36px)); z-index: 7; }
.maphead { display: flex; justify-content: space-between; align-items: center; }
#map h2 { font-size: 24px; }
#map h3 { margin: 14px 0 4px; font-family: "Raleway", sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
#mapFloors svg { width: 100%; height: auto; display: block; }
#mapFloors .room { fill: #fff; stroke: #20205e; stroke-width: 0.12; cursor: pointer; }
#mapFloors .room:hover { fill: #eef0ff; }
#mapFloors .room.done { fill: #cfeedd; }
#mapFloors .room.locked { fill: #e6e7ea; stroke: #a5a8b0; cursor: default; }
#mapFloors .room.hallway { fill: #f6f3ea; }
#mapFloors text { font-family: "Open Sans", system-ui, sans-serif; font-size: 0.82px; font-weight: 700; fill: #20205e; pointer-events: none; }
#mapFloors text.sub { font-size: 0.6px; font-weight: 600; fill: #5b5b6b; }
#mapFloors .you { fill: #f2b441; stroke: #20205e; stroke-width: 0.14; }

#alarmFlash { position: fixed; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 rgba(192, 38, 29, 0); z-index: 3; }
body.alarm #alarmFlash { animation: alarm 1s steps(2, jump-none) infinite; }
@keyframes alarm { from { box-shadow: inset 0 0 120px 14px rgba(192, 38, 29, 0.55); } to { box-shadow: inset 0 0 60px 4px rgba(192, 38, 29, 0.12); } }
body.alarm #hud { box-shadow: 0 0 0 3px #c0261d, var(--shadow); }

.cover .row.center { justify-content: center; }
.report { text-align: left; width: min(980px, calc(100% - 40px)); max-height: calc(100vh - 40px); overflow: auto; }
.report h1 { font-size: clamp(44px, 6vw, 68px); }
.report h1 small { font-size: 20px; font-weight: 600; opacity: 0.8; }
.report h3 { margin: 22px 0 8px; font-family: "Raleway", sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.report h3 small { text-transform: none; letter-spacing: 0; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-left: 6px; }
.reportgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; }
.report ul, .report ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#reportSkills li { display: grid; grid-template-columns: 1fr 120px 130px; gap: 12px; align-items: center; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); font-weight: 600; }
#reportSkills .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
#reportSkills .bar span { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
#reportSkills b { text-align: right; font-size: 13px; padding: 3px 10px; border-radius: 99px; justify-self: end; }
#reportSkills b.Strength { background: #1f8a5b; }
#reportSkills b.Satisfactory { background: #4f46e5; }
#reportSkills b.Needs { background: #c2571a; }
#reportSkills b.None { background: rgba(255, 255, 255, 0.18); }
#reportTrainings li { padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
#reportTrainings li small { display: block; opacity: 0.75; }
@media (max-width: 820px) { .reportgrid { grid-template-columns: 1fr; } #place { top: auto; bottom: 18px; } }

/* A soft vignette over the 3D view, under the panels. */
#vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 50% 46%, rgba(10, 12, 30, 0) 58%, rgba(10, 12, 30, 0.2) 100%); }
.panel, #labels, .cover, #toast { z-index: 2; }
.cover { z-index: 8; }
#map { z-index: 7; }

/* The report card sits on a near-solid backdrop so the room behind does not fight the text. */
#report { background: linear-gradient(180deg, rgba(16, 18, 46, 0.95), rgba(12, 14, 36, 0.98)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); align-items: start; overflow: auto; padding: 28px 0; }
#reportSkills li { grid-template-columns: minmax(0, 1fr) 96px auto; }
#reportSkills li > span:first-child small { display: block; font-weight: 600; opacity: 0.75; }
#reportSkills b { white-space: nowrap; }
#toast { top: 20px; bottom: auto; }

/* The spoken introduction: its words on screen, and a way past it. */
#caption { left: 50%; top: auto; bottom: 34px; transform: translateX(-50%); width: min(820px, calc(100% - 40px)); max-width: none; padding: 14px 22px; border-radius: 16px; background: rgba(16, 18, 46, 0.9); color: #fff; font-size: 18px; font-weight: 600; line-height: 1.4; text-align: center; z-index: 6; }
#skipIntro { position: fixed; right: 22px; top: 22px; z-index: 6; }
#soundBtn, #statsBtn { margin-top: 8px; padding: 8px 10px; font-size: 13px; }

/* Phones and small tablets. The scoreboard folds down to a bar (Places opens the list), and the panels become
   sheets along the bottom so the room stays in view. Short screens: a phone held sideways. */
#hudToggle { display: none; }
html, body { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#cardText { -webkit-user-select: text; user-select: text; }
@media (max-width: 720px), (max-height: 520px) {
  #hud { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; width: auto; left: calc(10px + env(safe-area-inset-left)); right: calc(10px + env(safe-area-inset-right)); top: calc(10px + env(safe-area-inset-top)); padding: 10px 14px 12px; max-height: calc(100% - 20px - env(safe-area-inset-top)); border-radius: 16px; }
  #hud .eyebrow, #hud .hint { display: none; }
  #hud .clockrow { grid-column: 1 / -1; align-items: center; }
  #hud h1 { font-size: 26px; margin-right: auto; }
  #hud h1 small { font-size: 13px; }
  #hudToggle { display: inline-block; padding: 7px 14px; font-size: 13px; }
  #hud .progress { grid-column: 1 / -1; margin-top: 8px; height: 6px; }
  #hud .where { grid-column: 1; grid-row: 3; margin: 10px 0 0; font-size: 14px; min-width: 0; }
  #hud .where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #hud .where small { display: none; }
  #hud .row { grid-column: 2; grid-row: 3; margin: 10px 0 0; flex-wrap: nowrap; gap: 8px; }
  #hud .row button { flex: none; padding: 7px 13px; font-size: 13px; }
  #places { grid-column: 1 / -1; grid-row: 4; }
  #places button { padding: 9px 8px; font-size: 15px; }
  #soundBtn { grid-column: 1 / -1; grid-row: 5; }
  #statsBtn { grid-column: 1 / -1; grid-row: 6; }
  #hud:not(.open) #places, #hud:not(.open) #soundBtn, #hud:not(.open) #statsBtn { display: none; }

  #place, #card, #card.side { left: calc(10px + env(safe-area-inset-left)); right: calc(10px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; width: auto; transform: none; animation: none; padding: 14px 16px; border-radius: 16px; overflow: auto; -webkit-overflow-scrolling: touch; }
  #place { max-height: 46%; }
  #card { max-height: 64%; }
  #card.side { max-height: 45%; padding: 12px 14px; }
  #card .eyebrow { font-size: 11px; align-items: baseline; }
  #cardWorth { white-space: nowrap; }
  #card.side #cardPrompt { font-size: 14px; line-height: 1.35; }
  #card.side #cardOptions { gap: 5px; margin-top: 8px; }
  #card.side #cardOptions button { padding: 7px 11px; font-size: 13.5px; }
  #card.side .row { margin-top: 10px; }
  #card.side .row button { padding: 9px 16px; font-size: 14px; }
  #place h2, #card h2 { font-size: 19px; }
  #cardPrompt, #card.side #cardPrompt { font-size: 15px; margin-top: 6px; }
  #cardOptions { gap: 6px; margin-top: 10px; }
  #cardOptions button { padding: 10px 12px; font-size: 14.5px; }
  #cardText { font-size: 16px; }
  #placeTasks li { padding: 6px 10px; }
  #placeTasks li small { display: none; }

  #map { width: calc(100% - 20px); max-height: calc(100% - 20px); overflow: auto; padding: 14px; }
  #mapFloors { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #mapFloors svg { min-width: 660px; }

  #toast { top: calc(124px + env(safe-area-inset-top)); max-width: calc(100% - 24px); text-align: center; padding: 9px 16px; font-size: 14px; }
  #caption { bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: 11px 14px; font-size: 15.5px; }
  #skipIntro { top: auto; right: 50%; transform: translateX(50%); bottom: calc(150px + env(safe-area-inset-bottom)); white-space: nowrap; }
  .ring-label { padding: 7px 13px; }

  .cover-inner { width: calc(100% - 32px); }
  .cover p { font-size: 16px; }
  .big { font-size: 16px; padding: 13px 22px; }
  .report h1 { font-size: 40px; }
  .report h1 small { font-size: 16px; display: block; }
  .reportgrid { gap: 6px; }
  #reportSkills li { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; }
  #reportSkills .bar { display: none; }
  #report { padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); }
}
/* A phone held sideways: the scoreboard and the panels each take a side. */
@media (max-height: 520px) and (min-width: 560px) {
  #hud { right: auto; width: 300px; }
  #place, #card, #card.side { left: auto; width: min(46%, 420px); max-height: calc(100% - 20px); }
  #toast { top: 12px; }
  #skipIntro { bottom: auto; top: 12px; right: 12px; transform: none; }
  #caption { width: min(560px, calc(100% - 340px)); left: auto; right: 12px; transform: none; }
}

/* Where the player stands on the board, live. Bottom right; it steps out of the way of a question card. */
#standing { right: 18px; bottom: 18px; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
#standing b { font-size: 16px; color: var(--primary); }
#card.side:not([hidden]) ~ #standing { bottom: auto; top: 18px; }
#map:not([hidden]) ~ #standing { display: none; }
#placeMini { display: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
#reportPlace { margin: 6px 0 0; font-weight: 700; color: var(--gold); }
body.nostats #timer, body.nostats #placeMini, body.nostats #standing { display: none !important; }
@media (max-width: 1180px) { #card:not([hidden]) ~ #standing { bottom: auto; top: 18px; } }
@media (max-width: 720px), (max-height: 520px) {
  #standing { display: none !important; }
  #placeMini { display: inline; }
  #hud.open { z-index: 4; } /* the open list sits over a question card, so its buttons can be reached */
}

/* Trainings to take next: each one is a link to the course in the catalog. */
#reportTrainings li { padding: 0; }
#reportTrainings a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 14px; border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600; }
#reportTrainings a:hover, #reportTrainings a:focus-visible { background: rgba(255, 255, 255, 0.12); }
#reportTrainings a b { padding: 5px 14px; border-radius: 99px; background: var(--gold); color: #20205e; font-size: 13px; }

/* ---- The contest: sign-up, the certificate, sharing and the leaderboards ------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.linkish { background: none; padding: 0 2px; border-radius: 4px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.linkish.light { color: #fff; }
#cardTitle:focus, #mapTitle:focus, #signupTitle:focus, #reportTitle:focus { outline: none; }
#cardNote.bad { color: #a63a1c; font-weight: 600; }
.cover .prize { margin: 12px 0 0; font-size: 16px; font-weight: 700; color: var(--gold); }
.cover .prize a { color: #fff; }
.cover .error.light { color: #ffd2cc; }

#signup { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 36px)); max-height: calc(100% - 36px); overflow: auto; z-index: 9; animation: none; }
body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 12, 30, 0.5); z-index: 8; }
.sheethead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#signup h2 { font-size: 24px; }
#signup .lead { margin: 8px 0 0; }
#signup .invite, #signup .okay, #signup .error { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; }
#signup .invite { background: #fff6df; color: #6b4a00; }
#signup .okay { background: #e4f6ec; color: #11573a; }
#signup .error { background: #fdecea; }
#signup form { display: grid; gap: 12px; margin-top: 14px; }
#signup label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; color: var(--ink); }
#signup input:not([type="checkbox"]), #signup select { width: 100%; font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(32, 32, 94, 0.2); background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text; }
#signup input:focus, #signup select:focus { outline: 3px solid var(--gold); border-color: var(--primary); }
#signup [aria-invalid="true"] { border-color: #c0261d !important; }
#signup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#signup .field > label { margin-bottom: 4px; }
#signup .hint { margin: 6px 0 0; }
.combo { position: relative; }
#suOrgList { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2; list-style: none; margin: 0; padding: 4px; max-height: 240px; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(12, 14, 40, 0.25), inset 0 0 0 1px rgba(32, 32, 94, 0.15); }
#suOrgList li { padding: 8px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
#suOrgList li small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
#suOrgList li.active, #suOrgList li.opt:hover { background: #eef0ff; }
#suOrgList li.add { color: var(--accent); }
#suOrgList li.note { cursor: default; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.chosen { margin: 0; padding: 9px 12px; border-radius: 12px; background: #e4f6ec; color: #11573a; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#suOrgAdd { border: 0; margin: 8px 0 0; padding: 12px; border-radius: 12px; background: rgba(32, 32, 94, 0.05); display: grid; gap: 10px; }
#suOrgAdd legend { padding: 0; font-weight: 800; font-size: 14px; }
#suOrgAdd .linkish { justify-self: start; font-size: 14px; }
#signup .check { grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 600; }
#signup .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }
#signup .switch { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
#signup .row { margin-top: 0; justify-content: center; }
#signup .row button { padding: 9px 14px; font-size: 14px; }
#codeInput { font-size: 28px !important; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }

.report .level { display: inline-block; margin: 10px 0 0; padding: 6px 16px; border-radius: 999px; background: var(--gold); color: #20205e; font-weight: 800; font-size: 16px; }
.sharegrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); align-items: start; }
.sharegrid h3 { margin-top: 0; }
.sharegrid p { margin: 6px 0 0; }
.cert img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.cert button { margin-top: 12px; }
.cert .muted { margin: 0; }
.invitelink { display: flex; gap: 8px; margin-top: 10px; }
.invitelink input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; -webkit-user-select: text; user-select: text; }
.sharerow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sharebtn { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.45; text-decoration: none; }
.sharebtn:hover, .sharebtn:focus-visible { background: rgba(255, 255, 255, 0.26); }
a.sharebtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
#shareNote { margin: 10px 0 0; color: var(--gold); font-weight: 600; }
#setPassword { margin: 14px 0 0; }
#setPassword a { color: var(--gold); font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tabs button { padding: 7px 14px; font-size: 14px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.tabs button[aria-selected="true"] { background: var(--gold); color: #20205e; }
#boardPanel:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
#boardPanel h4 { margin: 14px 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
#boardPanel h4:first-child { margin-top: 2px; }
#boardPanel p { margin: 6px 0; }
#boardPanel .muted { color: rgba(255, 255, 255, 0.72); }
#boardPanel .board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#boardPanel .board li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font-weight: 600; font-variant-numeric: tabular-nums; }
#boardPanel .board li small { display: block; opacity: 0.75; font-weight: 600; }
#boardPanel .board li .val { white-space: nowrap; }
#boardPanel .board li.you { background: var(--gold); color: #20205e; }
#boardPanel .board li.gap { display: block; padding: 0; background: none; text-align: center; line-height: 1; }
#boardPanel .board li.gap::before { content: "..."; opacity: 0.6; }
@media (max-width: 820px) { .sharegrid { grid-template-columns: 1fr; } }
@media (max-width: 720px), (max-height: 520px) {
  #signup { left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); top: auto; transform: none; width: auto; max-height: calc(100% - 16px - env(safe-area-inset-top)); padding: 16px; border-radius: 18px; -webkit-overflow-scrolling: touch; }
  #signup h2 { font-size: 21px; }
  #signup form { gap: 10px; }
  .sharegrid { padding: 14px; gap: 16px; margin-top: 16px; }
  .invitelink { flex-wrap: wrap; }
  .invitelink input { flex-basis: 100%; }
  .sharebtn { padding: 9px 14px; }
  #boardPanel .board li { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 7px 10px; font-size: 14px; }
  .cover .prize { font-size: 15px; }
}
@media (max-width: 360px) { #signup .two { grid-template-columns: 1fr; } }
