/* FGV Quiz - FGV Transport colours (red / orange / maroon) on GoTogether's "field journal" paper:
   warm paper, ink text, Fraunces headings, Instrument Sans text, flat vector logistics art. */
@font-face { font-family: "Fraunces"; src: url(/static/fonts/fraunces-600.ttf) format("truetype"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/static/fonts/instrument-sans-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/static/fonts/instrument-sans-600.ttf) format("truetype"); font-weight: 600 800; font-display: swap; }
:root {
  --fgv-red: #d7262d; --fgv-red-ink: #c8202a; --fgv-orange: #f7941e; --fgv-orange-ink: #b4540a; --fgv-maroon: #40131b; --fgv-yellow: #e9b44c;
  --ink: #1c2422; --muted: #545852; --bg: #fbf8f2; --parchment: #f3eee3; --card: #ffffff; --line: #e6dfd0; --line-strong: #d6cdba;
  --ok: #3f7d58; --bad: #c8202a; --asphalt: #4a4f4c;
  --gt-teal: #0e5e58; --gt-mint: #66c9bc;
  --a: #c8202a; --b: #0e5e58; --c: #b4540a; --d: #1f4e79; --e: #6b1f3a; --f: #3f7d58;
  --radius: 14px; --shadow: 0 1px 2px rgb(28 36 34 / .06), 0 0 0 1px rgb(28 36 34 / .04); --shadow-2: 0 4px 12px -2px rgb(28 36 34 / .12);
  --display: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); background: var(--bg) url(/static/art/contours.svg?v=8) center top / 900px repeat; color: var(--ink); min-height: 100vh;
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
main { flex: 1; width: 100%; }
a { color: var(--fgv-red-ink); }
h1, h2, .qtitle, .gt-h, .pinbig { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
/* top band: a maroon road with gold lane marks */
.stripe { height: 10px; background: var(--fgv-maroon); position: relative; }
.stripe::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: repeating-linear-gradient(90deg, var(--fgv-yellow) 0 22px, transparent 22px 40px); }
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 20px 0 0; min-height: 56px; background: rgb(251 248 242 / .92); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
/* FGV's hanging logo tab, as on fgvholdings.com */
.logo-tab { align-self: flex-start; background: #fff; padding: 8px 16px 18px; margin-left: 20px; margin-bottom: -14px; box-shadow: var(--shadow-2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 78%); display: flex; }
.logo-tab img { height: 36px; width: auto; }
.topbar .t { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar #who { white-space: nowrap; flex: none; }
.topbar .sp { flex: 1; }
.topbar a.lnk { font-size: 14px; text-decoration: none; color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 18px 40px; }
.narrow { max-width: 460px; margin: 0 auto; padding: 34px 18px 30px; }
h1 { font-size: 30px; margin: 0 0 6px; line-height: 1.15; } h2 { font-size: 22px; margin: 22px 0 10px; line-height: 1.25; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fgv-red-ink); margin-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 11px 18px; min-height: 44px;
  font: 600 15px var(--sans); cursor: pointer; text-decoration: none; background: var(--fgv-red-ink); color: #fff; transition: background .15s, transform .06s; }
.btn:hover { background: #a91a23; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, .tile:focus-visible, .demo-card:focus-visible { outline: 2px solid var(--gt-teal); outline-offset: 2px; }
.btn.alt { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); } .btn.alt:hover { background: var(--parchment); }
.btn.orange { background: var(--fgv-orange-ink); } .btn.orange:hover { background: #974608; }
.btn.big { font-size: 20px; padding: 16px 26px; border-radius: 14px; }
.btn.sm { padding: 6px 12px; font-size: 13px; min-height: 34px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; font: 16px var(--sans); padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--fgv-orange-ink); box-shadow: 0 0 0 3px rgb(247 148 30 / .2); }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 8px; }
.pin-input { font-size: 30px !important; text-align: center; letter-spacing: 8px; font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; border: 1px solid var(--line-strong); }
.tag.quiz { color: var(--fgv-red-ink); border-color: var(--fgv-red-ink); } .tag.survey { color: var(--gt-teal); border-color: var(--gt-teal); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* the landscape strip at the foot of pages: palms, warehouse, containers, trucks on the road */
.ground { height: calc(max(100vw, 880px) * .125); background: url(/static/art/scene.svg?v=8) center bottom / max(100%, 880px) auto no-repeat; margin-top: 12px; }
body.live .ground { display: none; }
/* illustrations */
.art { display: block; margin: 6px auto 10px; height: 96px; width: auto; max-width: 100%; }
.art.idle { animation: idle 1.6s ease-in-out infinite; }
.art.go { animation: drive 2.4s ease-in-out infinite; }
.art.lift { animation: idle 1.2s ease-in-out infinite; }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes drive { 0% { transform: translateX(-10px); } 50% { transform: translateX(10px) translateY(-2px); } 100% { transform: translateX(-10px); } }
@media (prefers-reduced-motion: reduce) { .art, .road .trk { animation: none !important; transition: none !important; } }
/* timer as a road: the truck drives toward the drop-off pin as time runs out */
.road { position: relative; height: 50px; margin: 2px 0 14px; --p: 0; }
.road::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border-radius: 7px; background: var(--asphalt); }
.road::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: repeating-linear-gradient(90deg, var(--fgv-yellow) 0 14px, transparent 14px 26px); }
.road .goal { position: absolute; right: 2px; bottom: 10px; width: 22px; height: 30px; background: url(/static/art/pin.svg?v=8) center / contain no-repeat; z-index: 1; }
.road .trk { position: absolute; bottom: 5px; height: 36px; width: auto; left: calc((100% - 120px) * var(--p)); transition: left .25s linear; z-index: 2; }
.road.hurry .trk { animation: idle .3s linear infinite; }
.road.hurry::before { background: #6b2a2a; }
.road.big { height: 66px; margin: 6px 0 4px; } .road.big::before { height: 18px; border-radius: 9px; } .road.big::after { bottom: 8px; height: 3px; }
.road.big .trk { height: 50px; left: calc((100% - 160px) * var(--p)); } .road.big .goal { width: 30px; height: 40px; bottom: 14px; }
/* result stamp, GoTogether's "booked" stamp idea */
.stamp { display: inline-block; font: 600 17px var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 3px solid currentColor;
  border-radius: 8px; padding: 6px 14px; margin: 4px 0 12px; transform: rotate(-5deg); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35); }

/* credit: GoTogether's own wordmark style, small */
.credit { text-align: center; padding: 14px 12px 20px; background: var(--asphalt); }
.credit-in { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; color: #eef1ef; text-decoration: none; font-size: 15px; font-weight: 600; }
.credit-in .gt-word { font-size: 17px; color: #fff; }
.credit-in .gt-mark { width: 26px; height: 26px; }
.credit-url { font-size: 13px; font-weight: 600; color: var(--gt-mint); border: 1px solid rgb(102 201 188 / .45); border-radius: 999px; padding: 3px 10px; }
.credit-in:hover .credit-url { background: rgb(102 201 188 / .15); }
.gt-chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 12px 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #cfe7e3;
  color: var(--gt-teal); font-size: 13px; font-weight: 600; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .05); white-space: nowrap; }
.gt-chip:hover { border-color: var(--gt-teal); }
.gt-chip .gt-mark { width: 20px; height: 20px; }
.gt-chip .gt-word { font-size: 15px; }
.gt-chip-pre { color: #5b625e; font-weight: 400; }
body.live .gt-chip { display: none; }
@media (max-width: 520px) { .gt-chip-pre { display: none; } .gt-chip { padding: 4px 10px 4px 8px; } }
.pfoot .gt-mark { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
/* presenter footer: small, bottom-right, hidden while a question is live */
.pfoot { font-size: 14px; color: var(--muted); margin-right: 14px; white-space: nowrap; }
.pfoot a { color: var(--gt-teal); font-weight: 600; text-decoration: none; }
.pfoot .gt-mark { width: 24px; height: 24px; vertical-align: -7px; }
.promo { position: fixed; right: 22px; bottom: 84px; background: #fff; border: 1px solid #cfe7e3; border-radius: 14px; padding: 10px; text-align: center;
  width: 170px; font-size: 13px; color: var(--gt-teal); box-shadow: var(--shadow-2); z-index: 5; }
.promo img { width: 100%; display: block; } .promo b { display: block; font-size: 14px; margin-top: 4px; }
.pend-credit { margin-top: 26px; font-size: 13px; color: var(--muted); text-align: center; }
.pend-credit a { color: var(--gt-teal); font-weight: 600; text-decoration: none; }
.credit-lg { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 30px; background: #fff; border: 1px solid #cfe7e3;
  color: var(--gt-teal); font-weight: 600; font-size: 16px; }
.credit-lg b { color: var(--gt-teal); }

/* demo */
.demo-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; margin-bottom: 22px; }
.demo-hero h1 { font-size: clamp(30px, 4.4vw, 48px); }
.hero-truck { width: 100%; height: auto; }
.demo-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border-radius: 16px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); font: 15px var(--sans); color: var(--muted); transition: transform .12s, border-color .12s; }
.demo-card:hover { transform: translateY(-2px); border-color: var(--fgv-orange); } .demo-card:disabled { opacity: .6; cursor: wait; }
.demo-card img { height: 84px; width: auto; margin-bottom: 8px; }
.demo-card b { font: 600 24px var(--display); color: var(--ink); }
.demo-tag { font-size: 13px; font-weight: 600; color: var(--fgv-orange-ink); background: #fdf1e3; border: 1px solid #f3c891; border-radius: 20px; padding: 3px 12px; }
.demo-note { margin-top: 16px; font-size: 18px; color: var(--muted); background: var(--parchment); border-radius: 12px; padding: 10px 14px; display: inline-block; }
.demo-note.go { color: #fff; background: var(--fgv-red-ink); font-size: 26px; font-weight: 600; }
@media (max-width: 760px) { .demo-hero, .demo-pick { grid-template-columns: 1fr; } .hero-truck { max-width: 320px; } }

/* answer tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; border: 0; border-radius: 14px; color: #fff; font: 600 18px var(--sans); text-align: left;
  padding: 18px 16px 18px 58px; min-height: 84px; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); transition: transform .06s; }
.tile:active { transform: translateY(2px); }
.tile .k { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 9px;
  background: rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.tile.sel { box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--ink); padding-right: 108px; }
.tile.sel .k { background: #fff; color: var(--ink); font-size: 20px; }
.tile.sel::after { content: '\2713  Selected'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 20px; white-space: pre; }
.multi-hint { display: inline-block; background: #fdf1e3; border: 1.5px solid var(--fgv-orange); color: #7a3a06; border-radius: 10px;
  padding: 7px 12px; font-size: 15px; margin: -6px 0 14px; }
.btn .cnt { background: rgba(255,255,255,.25); border-radius: 20px; padding: 2px 10px; font-size: 15px; margin-left: 6px; }
.tile.dim { opacity: .35; } .tile.good { outline: 4px solid var(--ok); outline-offset: 2px; }
.t0 { background: var(--a); } .t1 { background: var(--b); } .t2 { background: var(--c); } .t3 { background: var(--d); } .t4 { background: var(--e); } .t5 { background: var(--f); }
.rating { display: flex; gap: 8px; justify-content: space-between; }
.rating button { flex: 1; font: 600 22px var(--sans); padding: 16px 0; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.rating button.sel { background: var(--fgv-orange-ink); color: #fff; border-color: var(--fgv-orange-ink); }
.rating-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* player screen */
.play { max-width: 560px; margin: 0 auto; padding: 16px 14px 30px; }
.pbar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.pbar b { color: var(--ink); }
.qtext { font-size: 22px; font-weight: 600; font-family: var(--display); line-height: 1.35; margin: 8px 0 18px; }
.center { text-align: center; } .big-emoji { font-size: 54px; line-height: 1; margin: 18px 0 8px; }
.result { border-radius: var(--radius); padding: 24px 18px; text-align: center; color: #fff; }
.result.good { background: var(--ok); } .result.bad { background: var(--bad); } .result.none { background: #6e6a60; }
.result .pts { font-size: 38px; font-weight: 600; font-family: var(--display); }

/* host presenter */
.present { min-height: calc(100vh - 10px); display: flex; flex-direction: column; }
.present .bar { display: flex; align-items: center; gap: 14px; padding: 0 22px 0 0; min-height: 60px; background: rgb(251 248 242 / .92); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.present .bar .logo-tab img { height: 42px; } .present .bar .title { font-family: var(--display); font-weight: 600; font-size: 22px; }
.present .stage { flex: 1; padding: 26px 34px; display: flex; flex-direction: column; }
.present .stage.deco { background: url(/static/art/scene.svg?v=8) center bottom / max(100%, 1100px) auto no-repeat; padding-bottom: calc(max(100vw, 1100px) * .125 + 16px); }
.present .ctrl { display: flex; gap: 10px; align-items: center; padding: 12px 22px; background: #fff; border-top: 1px solid var(--line); flex-wrap: wrap; }
.present .ctrl .pfoot { color: var(--muted); }
.lobby { display: grid; grid-template-columns: minmax(280px, 460px) minmax(0, 760px); gap: 48px; align-items: center; justify-content: center; flex: 1; }
.qrbox { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); text-align: center; }
.qrbox img { width: 100%; height: auto; display: block; }
.joinhow { font-size: 22px; line-height: 1.5; }
.joinhow .url { font-weight: 700; color: var(--fgv-red); word-break: break-all; }
.pinbig { font-size: 68px; font-weight: 600; letter-spacing: 8px; color: var(--ink); line-height: 1.1; }
.names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-height: 38vh; overflow: auto; }
.names span { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; font-weight: 600; font-size: 17px; }
.names span.kick { cursor: pointer; } .names span.kick:hover { border-color: var(--bad); color: var(--bad); text-decoration: line-through; }
.present .qtitle { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.2; margin: 6px 0 18px; }
.present .meta { display: flex; gap: 18px; align-items: center; font-size: 18px; color: var(--muted); }
.present .meta b { color: var(--ink); font-size: 26px; }
.countdown { width: 86px; height: 86px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 600; color: #fff; background: var(--fgv-maroon); flex: none; box-shadow: 0 0 0 4px var(--fgv-orange); }
.ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: auto; }
.ptile { position: relative; border-radius: 14px; color: #fff; font-size: clamp(18px, 2vw, 28px); font-weight: 700; padding: 22px 20px 22px 72px; min-height: 92px; }
.ptile .k { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ptile.wrong { opacity: .3; } .ptile .cnt { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.ptile.right::after { content: '\2713'; position: absolute; right: 70px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.brow { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 70px; gap: 12px; align-items: center; font-size: 17px; }
.brow .track { background: var(--parchment); border-radius: 8px; height: 30px; overflow: hidden; }
.brow .fill { height: 100%; border-radius: 8px; min-width: 2px; transition: width .4s; }
.brow .n { text-align: right; font-weight: 700; }
.lb { display: flex; flex-direction: column; gap: 8px; max-width: 760px; width: 100%; margin: 0 auto; }
.lb div { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 18px; font-size: 22px; font-weight: 600; }
.lb div b { color: var(--fgv-red-ink); } .lb .r1 { border-color: var(--fgv-yellow); background: #fdf6e3; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 18px; margin: 10px 0 24px; }
.podium .p { width: 200px; text-align: center; }
.podium .p .blk { border-radius: 6px 6px 0 0; color: #fff; font: 600 44px var(--display); display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--ink); border-bottom: 0; background-image: repeating-linear-gradient(90deg, rgb(0 0 0 / .14) 0 3px, transparent 3px 16px) !important; text-shadow: 0 2px 0 rgb(0 0 0 / .25); }
.podium .p .nm { font-size: 24px; font-weight: 600; font-family: var(--display); margin-bottom: 6px; word-break: break-word; }
.svgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.texts { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.texts div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 15px; }

/* editor */
.qcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; margin-bottom: 12px; }
.qcard .hd { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.qcard .hd .num { font-weight: 600; color: var(--fgv-red-ink); }
.opt { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.opt .k { width: 30px; height: 30px; flex: none; border-radius: 8px; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.opt label { display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; color: var(--muted); }
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline > div { flex: 1; min-width: 140px; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .lobby { grid-template-columns: 1fr; } .ptiles { grid-template-columns: 1fr; } .svgrid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; } .tile { min-height: 64px; }
}

/* host results views */
.rsum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 auto 18px; width: 100%; max-width: 1100px; }
.rsum div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-align: center; }
.rsum b { display: block; font-size: 34px; font-weight: 600; font-family: var(--display); color: var(--ink); } .rsum span { color: var(--muted); font-size: 15px; }
.pc { flex: none; text-align: center; font-size: 26px; font-weight: 800; border-radius: 12px; padding: 6px 12px; background: #f1ece5; color: var(--ink); line-height: 1.1; }
.pc small { display: block; font-size: 12px; font-weight: 600; } .pc.good { background: #e3f3ea; color: var(--ok); }
.pc.mid { background: #fdf1dc; color: #9a6400; } .pc.low { background: #fbe4e7; color: var(--bad); }
.scores { max-width: 1000px; width: 100%; margin: 0 auto; max-height: calc(100vh - 330px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.scores table { width: 100%; border-collapse: collapse; font-size: 20px; }
.scores th { position: sticky; top: 0; background: #fff; text-align: left; font-size: 14px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.scores td { padding: 10px 16px; border-bottom: 1px solid var(--line); } .scores .num { text-align: right; }
.scores tr.top td:first-child { color: var(--fgv-red-ink); font-weight: 600; }
.card.sv { cursor: zoom-in; } .card.sv:hover { border-color: var(--fgv-orange); }
.focus { max-width: 1200px; width: 100%; margin: 0 auto; } .focus .card { cursor: default; padding: 28px 34px; }
.focus h2 { font-size: clamp(26px, 3vw, 42px); } .focus .brow { font-size: 24px; grid-template-columns: minmax(160px, 30%) 1fr 110px; } .focus .brow .track { height: 44px; }
.focus .texts { max-height: 55vh; } .focus .texts div { font-size: 22px; }
@media (max-width: 760px) { .rsum { grid-template-columns: repeat(2, 1fr); } }

/* GoTogether end-screen card: GoTogether teal only here, FGV colours stay on the result card above */
.gt-card { margin-top: 14px; padding: 0 16px 14px; border: 1px solid #d6cdba; border-radius: 14px; background: #fbf8f2; overflow: hidden; box-shadow: var(--shadow-2); }
.gt-art { display: block; width: calc(100% + 32px); margin: 0 -16px 12px; height: 110px; object-fit: cover; }
.gt-brand { display: flex; align-items: center; gap: 6px; font-size: 16px; color: #1c2422; }
.gt-brand img { width: 24px; height: 24px; }
.gt-h { font-size: 20px; margin: 8px 0 4px; line-height: 1.25; color: #1c2422; }
.gt-l { font-size: 14px; color: var(--muted); line-height: 1.45; }
.gt-btn { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 12px; border-radius: 10px; background: #0e5e58; color: #fff;
  font-weight: 600; text-decoration: none; font-size: 16px; }
.gt-wa { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: #0e5e58; font-weight: 600; }

/* static forms (Google-Form style) */
.fwrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 30px; }
.fhead { border-top: 8px solid var(--fgv-red-ink); }
.fhead h1 { font-size: clamp(26px, 4vw, 34px); }
.scale { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--parchment); border-radius: 10px; font-size: 13px; color: var(--muted); }
.scale b { color: var(--ink); margin-right: 4px; }
.scale i { font-style: normal; font-weight: 600; color: #fff; background: var(--fgv-maroon); border-radius: 6px; padding: 0 6px; margin-right: 5px; }
.req { color: var(--bad); }
.fsec { margin: 28px 2px 10px; font-size: 22px; }
.fq { margin: 0 0 12px; border: 1px solid var(--line); min-width: 0; }
.fq legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-weight: 600; font-size: 17px; line-height: 1.4; }
.fq legend + * { clear: both; }
.fq.bad { border-color: var(--bad); box-shadow: 0 0 0 2px rgb(200 32 42 / .15); }
.ferr { color: var(--bad); font-size: 14px; margin-top: 6px; min-height: 0; } .ferr:empty { display: none; }
.hint { font-size: 13px; color: var(--muted); margin: -6px 0 8px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt-r { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: 16px; min-height: 48px; background: #fff; }
.opt-r:hover { background: var(--bg); }
.opt-r input { width: 20px; height: 20px; accent-color: var(--fgv-red-ink); flex: none; margin: 0; }
.opt-r:has(input:checked) { border-color: var(--fgv-red-ink); background: #fdf0f0; }
.other { margin-top: 8px; }
.syspick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sysopt { position: relative; cursor: pointer; }
.sysopt input { position: absolute; opacity: 0; pointer-events: none; }
.sysopt span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; min-height: 64px; }
.sysopt b { font-size: 17px; } .sysopt small { color: var(--muted); font-size: 13px; }
.sysopt input:checked + span { border-color: var(--fgv-red-ink); background: var(--fgv-red-ink); color: #fff; } .sysopt input:checked + span small { color: #ffe3e3; }
.sysopt input:focus-visible + span { outline: 2px solid var(--gt-teal); outline-offset: 2px; }
.sysintro { margin-top: 12px; padding: 12px 14px; background: var(--parchment); border-left: 4px solid var(--fgv-orange); border-radius: 8px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rate label { cursor: pointer; } .rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 4px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; height: 100%; }
.rate b { font-size: 22px; } .rate small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.rate input:checked + span { background: var(--fgv-orange-ink); border-color: var(--fgv-orange-ink); color: #fff; } .rate input:checked + span small { color: #fff3e6; }
.rate input:focus-visible + span { outline: 2px solid var(--gt-teal); outline-offset: 2px; }
.fsubmit { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.systabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; }
.systabs a { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 20px; padding: 6px 14px; font-size: 14px; }
.systabs a b { color: var(--muted); margin-left: 4px; } .systabs a.on { background: var(--fgv-maroon); color: #fff; border-color: var(--fgv-maroon); } .systabs a.on b { color: #f3c891; }
.links { padding: 12px 18px; font-size: 14px; } .links summary { cursor: pointer; font-weight: 600; } .links div { margin-top: 6px; } .links code { font-size: 13px; word-break: break-all; }
@media (max-width: 520px) { .rate { grid-template-columns: repeat(5, 1fr); gap: 4px; } .rate small { font-size: 10px; } .fq { padding: 16px 14px; } }

/* ── Winner reveal (host screen): a prime mover drives in with the winner's name on the trailer ── */
.present .stage.winstage { background: linear-gradient(#fbf8f2 0%, #f3eee3 70%); overflow: hidden; }
.wtitle { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 58px); text-align: center; margin: 4px 0 0; animation: wfade .8s .2s both; }
.wscene { position: relative; flex: 1; min-height: 360px; }
.wroad { position: absolute; left: -34px; right: -34px; bottom: 0; height: 70px; background: var(--asphalt); }
.wroad::after { content: ''; position: absolute; left: 0; right: 0; top: 32px; height: 5px; background: repeating-linear-gradient(90deg, var(--fgv-yellow) 0 46px, transparent 46px 84px); }
.wpos { position: absolute; left: 0; right: 0; bottom: 40px; margin: 0 auto; width: min(94%, 1500px, (100vh - 300px) * 3.125); }
.rig { position: relative; animation: rigin 4s cubic-bezier(.3, .55, .3, 1) both; }
.rig svg { display: block; width: 100%; height: auto; overflow: visible; }
.rig .wh { transform-box: fill-box; transform-origin: center; animation: spin 4s cubic-bezier(.3, .55, .3, 1) both; }
.rig .honk { opacity: 0; animation: honk .5s 4s ease-out 2 both; }
.wpanel { position: absolute; left: 4%; top: 10.5%; width: 61%; height: 45%; display: flex; align-items: center; gap: 3%; }
.wpanel img { height: 82%; width: auto; aspect-ratio: 600 / 493; flex: none; }
.wtext { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.wlab { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fgv-red-ink); font-size: clamp(11px, 1.3vw, 22px); }
.wname { font-family: var(--display); font-weight: 700; line-height: 1.02; color: var(--fgv-maroon); overflow: hidden; overflow-wrap: anywhere; }
.wpts { color: var(--muted); font-weight: 600; font-size: clamp(11px, 1.2vw, 20px); margin-top: 2px; }
.puff { position: absolute; left: 1%; bottom: 3%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: #d6cdba; opacity: 0; animation: puff 1.1s calc(3.5s + var(--d)) ease-out both; }
.puff:nth-of-type(2) { left: 6%; bottom: 1%; } .puff:nth-of-type(3) { left: 11%; bottom: 4%; width: 5%; }
.conf { position: absolute; top: -20px; left: var(--x); width: 10px; height: 16px; background: var(--c); border-radius: 2px; opacity: 0; animation: conf 2.6s var(--d) ease-in both; }
@keyframes rigin { 0% { transform: translateX(-160%); } 86% { transform: translateX(1.6%); } 93% { transform: translateX(-.4%) translateY(3px); } 100% { transform: translateX(0); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(2900deg); } }
@keyframes honk { 0% { opacity: 0; transform: translateX(-6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(8px); } }
@keyframes puff { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: .7; } 100% { opacity: 0; transform: translateX(-60%) translateY(-30%) scale(1.8); } }
@keyframes conf { 0% { opacity: 0; transform: translateY(0) rotate(var(--r)); } 6% { opacity: 1; } 100% { opacity: 0; transform: translateY(70vh) rotate(calc(var(--r) + 540deg)); } }
@keyframes wfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rig, .rig .wh, .puff, .conf, .wtitle { animation: none !important; } .puff, .conf { display: none; } }

/* ── Host platform: navigation, dashboard, admin, editors ─────────────────── */
.hnav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.hnav .nm-short { display: none; }
.topbar.host { gap: 8px; padding-right: 10px; }
.hnav a, .hnav button { font: 600 14px var(--sans); color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 9px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.hnav a:hover, .hnav button:hover { background: var(--parchment); color: var(--ink); }
.hnav a.on { color: var(--fgv-red-ink); background: #fdf0f0; }
.hnav form { margin: 0; display: flex; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--fgv-red-ink); color: #fff; font-size: 12px; font-weight: 700; margin-left: 2px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; } .crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--fgv-red-ink); }
.dhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dhead p { margin: 0; max-width: 620px; }
.newbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; background: #fff; }
.seg a, .seg button { padding: 8px 14px; font: 600 14px var(--sans); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
.seg a + a, .seg button + button { border-left: 1px solid var(--line-strong); }
.seg .on { background: var(--fgv-maroon); color: #fff; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 14px; }
.toolbar .search { flex: 1; min-width: 180px; max-width: 340px; padding: 9px 12px; font-size: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font: 600 14px var(--sans); padding: 7px 13px; border-radius: 20px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; }
.chips button b { color: var(--muted); font-weight: 600; margin-left: 3px; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; } .chips button.on b { color: #d6dbd8; }
.items { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.item-art { width: 56px; height: 40px; object-fit: contain; }
.item h3 { margin: 4px 0 2px; font: 600 18px var(--display); line-height: 1.3; overflow-wrap: anywhere; }
.item h3 a { color: var(--ink); text-decoration: none; } .item h3 a:hover { color: var(--fgv-red-ink); text-decoration: underline; }
.item-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.item-meta { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.item-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tag.form { color: var(--fgv-orange-ink); border-color: var(--fgv-orange-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: var(--parchment); color: var(--muted); }
.pill.live { background: #e3f3ea; color: var(--ok); } .pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.6s ease-in-out infinite; }
.pill.ended { background: #f1ece5; color: #6a5d4d; } .pill.pending { background: #fdf1dc; color: #8a5a00; }
.pill.disabled, .pill.rejected { background: #fbe4e7; color: var(--bad); } .pill.active { background: #e3f3ea; color: var(--ok); }
.pill.admin { background: var(--fgv-maroon); color: #fff; }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none; } }
/* "More" menu */
details.menu { position: relative; }
details.menu > summary { list-style: none; } details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; display: flex; flex-direction: column; }
details.menu .menu-list a, details.menu .menu-list button { text-align: left; font: 15px var(--sans); color: var(--ink); background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; }
details.menu .menu-list a:hover, details.menu .menu-list button:hover { background: var(--parchment); }
details.menu .menu-list .danger { color: var(--bad); }
.btn.danger { background: var(--bad); } .btn.danger:hover { background: #9e1820; }
.btn.ghost { background: none; color: var(--fgv-red-ink); border: 1px solid transparent; } .btn.ghost:hover { background: #fdf0f0; }
/* onboarding */
.onboard { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px; }
.onboard h2 { margin-top: 0; font-size: 26px; }
.steps { margin: 12px 0 18px; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--fgv-maroon); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.kind { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.45; transition: border-color .12s, transform .12s; }
.kind:hover { border-color: var(--fgv-orange); transform: translateY(-2px); }
.kind img { height: 54px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.kind b { font: 600 20px var(--display); color: var(--ink); }
.kind .go { margin-top: auto; padding-top: 6px; color: var(--fgv-red-ink); font-weight: 600; }
/* stat tiles */
.tiles4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.tiles4 div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.tiles4 b { display: block; font: 600 28px var(--display); color: var(--ink); line-height: 1.15; } .tiles4 > div > span { color: var(--muted); font-size: 13px; }
.tiles4 small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list td .small { margin-top: 2px; }
.req-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border: 1px solid #f3c891; background: #fffaf2; border-radius: 12px; margin-bottom: 8px; }
.notice { padding: 12px 14px; border-radius: 12px; background: #fdf1e3; border: 1px solid #f3c891; color: #6b3606; font-size: 15px; margin-bottom: 14px; }
.notice.ok { background: #e3f3ea; border-color: #b9dcc7; color: #24533a; }
.notice.info { background: #eef5f4; border-color: #cfe7e3; color: #0b4b46; }
.help { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ok-msg { color: var(--ok); }
/* in-page dialogs (no browser confirm()) */
dialog.udlg { border: 0; border-radius: 16px; padding: 22px; max-width: min(440px, calc(100vw - 32px)); width: 100%; box-shadow: 0 20px 50px -10px rgb(28 36 34 / .45); color: var(--ink); background: #fff; }
dialog.udlg::backdrop { background: rgb(28 36 34 / .45); }
dialog.udlg form { margin: 0; } .udlg-msg { font-size: 17px; line-height: 1.45; margin: 0 0 18px; }
.udlg-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.secret { display: block; font: 600 22px ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; background: var(--parchment); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; text-align: center; user-select: all; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 15px; box-shadow: var(--shadow-2); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); }
/* editor validation */
.qcard.bad { border-color: var(--bad); box-shadow: 0 0 0 2px rgb(200 32 42 / .15); }
.qerr { color: var(--bad); font-size: 14px; margin-top: 8px; } .qerr:empty { display: none; }
input.bad, textarea.bad { border-color: var(--bad); }
.qcard textarea { margin-top: 2px; }
.qcard .hd { flex-wrap: wrap; } .qcard .hd select { min-width: 0; }
.qtools { display: flex; gap: 6px; margin-left: auto; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--fgv-red-ink); }
.sticky-save { flex-wrap: wrap; z-index: 5; }
.linkbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--parchment); border-radius: 12px; padding: 10px 12px; }
.linkbox code { font-size: 14px; overflow-wrap: anywhere; flex: 1; min-width: 160px; }
.qrsmall { width: 132px; height: 132px; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.preview-bar { background: var(--fgv-maroon); color: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 15px; }
.auth { max-width: 440px; margin: 0 auto; padding: 34px 18px 30px; }
.auth h1 { margin-bottom: 4px; } .auth .card { padding: 24px; }
.auth .alt-link { text-align: center; margin-top: 16px; font-size: 15px; }
@media (max-width: 760px) {
  .item { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .item-art { width: 40px; height: 30px; }
  .item-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .onboard { grid-template-columns: 1fr; padding: 18px; } .onboard .art { display: none; }
  .kinds { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
  .sticky-save { gap: 8px; padding: 10px 0; } .sticky-save .btn { padding: 9px 13px; font-size: 14px; min-height: 40px; } .sticky-save .btn.ghost#cancel { display: none; }
  .topbar.host .t, .topbar.host .sp { display: none; } .topbar.host .hnav { margin-left: auto; }
  .hnav .nm-full { display: none; } .hnav .nm-short { display: inline; }
  .hnav a, .hnav button { padding: 8px 6px; font-size: 13.5px; }
  .hnav { gap: 0; }
  .wrap { padding: 20px 14px 34px; }
  h1 { font-size: 26px; }
  table.list.stack thead { display: none; }
  table.list.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.list.stack td { display: flex; gap: 10px; justify-content: space-between; border: 0; padding: 4px 4px; text-align: right; }
  table.list.stack td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; text-align: left; flex: none; }
  table.list.stack td.wide { display: block; text-align: left; } table.list.stack td.wide::before { display: none; }
  table.list.stack .row-actions { justify-content: flex-start; }
}
@media (max-width: 420px) { .logo-tab { padding: 6px 10px 14px; margin-left: 12px; } .logo-tab img { height: 30px; } }
