/* GoudQuiz's look (2026-11-20): the quiz's own, so a reader who goes from here to
   quiz.goud.games does not change rooms. Night blue with gold in the dark, warm paper in the light,
   one sans-serif face, round tiles; green for a right answer and red for a wrong one, and for
   nothing else. The colours are the quiz's (Goud.Quiz, wwwroot/phone.css). */

@font-face{font-family:QuizSans;font-weight:400;font-display:swap;src:url("fonts/vazirmatn-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+2010-2027,U+2190-21FF,U+25A0-25FF}
@font-face{font-family:QuizSans;font-weight:700;font-display:swap;src:url("fonts/vazirmatn-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+2010-2027,U+2190-21FF,U+25A0-25FF}
@font-face{font-family:QuizSans;font-weight:900;font-display:swap;src:url("fonts/vazirmatn-latin-900-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+2010-2027,U+2190-21FF,U+25A0-25FF}
@font-face{font-family:QuizSans;font-weight:400;font-display:swap;src:url("../../fonts/vazirmatn-arabic-400-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:QuizSans;font-weight:700;font-display:swap;src:url("fonts/vazirmatn-arabic-700-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:QuizSans;font-weight:900;font-display:swap;src:url("fonts/vazirmatn-arabic-900-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF}

:root{
  --bg:#0b1116;
  --bg2:#17222c;
  --ink:#dbe8f0;
  --dim:rgba(219,232,240,.62);
  --line:rgba(219,232,240,.14);
  --accent:#c9922f;
  --gold:#c9922f;
  --accent-ink:#0b1116;
  --rubric:#e0675a;
  --right:#3fb87f;
  --wrong:#e0675a;
  --card:rgba(219,232,240,.05);
  --card2:rgba(219,232,240,.09);
  --glow:rgba(201,146,47,.22);
  --glow-soft:rgba(201,146,47,.06);
  --plate:#111a21;
  --hero:radial-gradient(120% 85% at 50% 0%, rgba(201,146,47,.22) 0%, rgba(201,146,47,0) 62%), linear-gradient(180deg,#17222c 0%,#0f171e 100%);
  --shadow:0 18px 44px rgba(0,0,0,.35);
}
:root[data-theme="light"]{
  --bg:#f7f2ee;
  --bg2:#fde9e1;
  --ink:#0b1116;
  --dim:rgba(11,17,22,.6);
  --line:rgba(11,17,22,.11);
  --accent:#a86f12;
  --gold:#c9922f;
  --accent-ink:#ffffff;
  --rubric:#c8463a;
  --right:#1f9a62;
  --wrong:#c8463a;
  --card:#ffffff;
  --card2:#fbf6f2;
  --glow:rgba(201,146,47,.2);
  --glow-soft:rgba(201,146,47,.07);
  --plate:#ffffff;
  --hero:radial-gradient(120% 85% at 50% 0%, rgba(201,146,47,.18) 0%, rgba(201,146,47,0) 62%), linear-gradient(180deg,#fde9e1 0%,#f7f2ee 100%);
  --shadow:0 1px 2px rgba(11,17,22,.05), 0 10px 30px rgba(11,17,22,.08);
}

body{font-family:QuizSans,Vazirmatn,Tahoma,sans-serif;line-height:1.6}
:root[dir="rtl"] body{line-height:1.9}

main{flex:1;width:100%;max-width:1080px;margin:0 auto;padding:clamp(28px,5vw,60px) clamp(16px,5vw,56px) clamp(48px,7vw,90px)}

/* Calm (his word, 2026-11-21: the page was too busy): no tiles, no shadows, room between the
   parts. Only the clock and the gold button stand out; everything else is text on the page. */

/* ---- the head ---- */

.title{text-align:center;margin:clamp(12px,3vw,32px) auto clamp(30px,5vw,48px)}
.title .k{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--accent);font-weight:700;
  font-size:12px;letter-spacing:.2em;text-transform:uppercase;
}
/* the live stage: a small red dot, beating, beside the word */
.title .k[data-stage="Live"]{color:var(--wrong)}
.title .k[data-stage="Live"]::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
@media (prefers-reduced-motion:no-preference){
  .title .k[data-stage="Live"]::before{animation:beat 1.6s ease-in-out infinite}
  @keyframes beat{50%{opacity:.3}}
}
:root[dir="rtl"] .title .k{letter-spacing:0;font-size:15px;text-transform:none}
.title h1{margin:10px 0 0;font-weight:900;font-size:clamp(40px,7vw,68px);line-height:1.08;letter-spacing:-.01em;color:var(--ink);text-align:center}
:root[dir="rtl"] .title h1{line-height:1.4;letter-spacing:0;text-align:center}
.title h1 img{display:block;width:min(100%,520px);height:auto;margin:0 auto}
.title .sub{margin:14px auto 0;max-width:38ch;color:var(--dim);font-size:clamp(18px,2.4vw,21px);line-height:1.5}
:root[dir="rtl"] .title .sub{line-height:1.8}

/* ---- the next show, or the show on air ---- */

.onair{margin:clamp(56px,8vw,88px) auto 0;max-width:720px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.title + .onair{margin-top:0}
.onair .when{display:flex;flex-direction:column;align-items:center;gap:2px}
.onair .k{font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--dim)}
:root[dir="rtl"] .onair .k{letter-spacing:0;text-transform:none;font-size:16px}
.onair .count{font-weight:900;font-size:clamp(48px,9vw,80px);line-height:1.05;font-variant-numeric:tabular-nums;color:var(--ink)}
/* the words that stand in for the clock before it is read are a sentence, not a number */
.onair.read .count{direction:ltr}
.onair:not(.read) .count{font-size:clamp(20px,3vw,24px);font-weight:700;line-height:1.4;color:var(--dim)}
.onair:not(.read) .k{display:none}
.onair .what{color:var(--dim);font-size:16px}
.onair.on .k{color:var(--wrong)}
.onair.on .count,.onair.on .what{display:none}
.onair .tube{width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000}
.onair .tube iframe{display:block;width:100%;height:100%;border:0}
.onair .play,.ask a,.asked .again{
  display:inline-block;padding:13px 32px;border-radius:999px;border:0;
  background:var(--accent);color:var(--accent-ink);font:inherit;font-weight:700;font-size:18px;
  text-decoration:none;cursor:pointer;transition:filter .2s ease;
}
.onair .play:hover,.onair .play:focus-visible,.ask a:hover,.ask a:focus-visible,.asked .again:hover{filter:brightness(1.1)}
.onair .under{color:var(--dim);font-size:14px}

/* ---- boards: the countries ahead, a category's masters ---- */

.board{margin:clamp(56px,8vw,88px) auto 0;max-width:520px}
.board h2,.asked h2{margin:0 0 14px;font-weight:900;font-size:clamp(22px,3vw,28px);color:var(--ink);text-align:center}
.board ol{margin:0;padding:0;list-style:none}
.board li{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line)}
.board li:last-child{border-bottom:0}
.board .place{flex:0 0 1.6em;font-weight:700;color:var(--dim);text-align:center}
.board li:first-child .place{color:var(--accent)}
.board .flag{flex:0 0 auto;width:26px;height:19px;border-radius:2px;object-fit:cover}
.board .who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board .farr{font-weight:700;font-variant-numeric:tabular-nums;color:var(--dim)}
.board .farr::after{content:" \2726";color:var(--gold);font-weight:400}
.board .under{margin:10px 0 0;text-align:center;color:var(--dim);font-size:14px}
.board ol:empty{display:none}

/* ---- a question asked live ---- */

.asked{margin:clamp(56px,8vw,88px) auto 0;max-width:620px;text-align:center}
.asked .q{margin:0;font-weight:700;font-size:clamp(20px,2.8vw,24px);line-height:1.45;color:var(--ink)}
.asked .q .pic{display:block;max-width:220px;max-height:160px;margin:0 auto 14px;border-radius:8px}
.asked .options{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.asked .option{
  padding:13px 16px;border-radius:999px;border:1px solid var(--line);
  background:transparent;color:var(--ink);font:inherit;font-weight:700;font-size:17px;cursor:pointer;
  transition:border-color .2s ease,background .2s ease;
}
.asked .option:hover:not(:disabled),.asked .option:focus-visible{border-color:var(--accent)}
.asked .option:disabled{cursor:default;opacity:.55}
.asked .option img{display:block;width:100%;max-height:90px;object-fit:contain}
.asked .option .name{display:block;margin-top:6px;font-size:14px}
.asked .option.right{opacity:1;border-color:var(--right);background:color-mix(in srgb,var(--right) 18%,transparent)}
.asked .option.wrong{opacity:1;border-color:var(--wrong);background:color-mix(in srgb,var(--wrong) 16%,transparent)}
.asked .result{margin:14px 0 0;min-height:1.6em;color:var(--dim)}
.asked .again{margin-top:4px;font-size:15px;padding:9px 22px;background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}

/* ---- doors to every category ---- */

.doorways{margin-top:clamp(20px,3vw,28px);display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.doorways a{display:flex;flex-direction:column;overflow:hidden;color:inherit;text-decoration:none}
.doorways img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px}
.doorways b{padding:10px 2px 0;font-size:18px}
.doorways small{padding:2px 2px 0;color:var(--dim);font-size:14px;line-height:1.5}
/* small: the names alone, a quiet row of them */
.doorways.small{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:760px;margin-inline:auto}
.doorways.small a{display:inline-block;padding:7px 16px;border-radius:999px;border:1px solid var(--line);font-size:16px;transition:border-color .2s ease,color .2s ease}
.doorways.small a:hover,.doorways.small a:focus-visible{border-color:var(--accent);color:var(--accent)}

/* ---- films and pictures of the game ---- */

figure{margin:0}
.film{margin:clamp(26px,4vw,44px) auto 0}
.film video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:14px;background:#000;cursor:pointer}
.film figcaption,.shot figcaption{margin-top:12px;text-align:center;color:var(--dim);font-size:15px}
.shots{margin-top:clamp(48px,7vw,80px);display:grid;gap:clamp(14px,2.4vw,24px);grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.shots.one{grid-template-columns:1fr;max-width:900px;margin-inline:auto}
/* a phone's screens stand side by side at a phone's size */
.shots.tall{grid-template-columns:repeat(auto-fit,minmax(160px,260px));justify-content:center}
.frame{position:relative;border-radius:14px;overflow:hidden;background:var(--plate)}
.frame img{display:block;width:100%;height:auto}
.frame[data-full]{cursor:zoom-in}
.frame[data-full]:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* ---- running text ---- */

.lead{margin:clamp(18px,3vw,26px) auto 0;max-width:58ch;color:var(--dim);font-size:18px;text-align:center}
.lead + .lead{margin-top:1em}
.lead em{font-style:italic}
:root[dir="rtl"] .lead em{font-style:normal}

h2.subheading{margin:clamp(64px,9vw,104px) 0 0;text-align:center;font-weight:900;font-size:clamp(24px,3.2vw,32px);color:var(--ink)}

.shamsa{display:block;margin:clamp(34px,5vw,56px) auto 0;width:36px;height:36px;color:var(--gold);opacity:.7}
.shamsa.large{width:52px;height:52px;opacity:1}

/* ---- things said one after another: plain, one under the other ---- */

.points{margin:clamp(20px,3vw,30px) auto 0;padding:0;list-style:none;display:grid;gap:22px;max-width:640px}
.points h3{margin:0 0 4px;font-weight:700;font-size:18px;line-height:1.4;color:var(--ink)}
:root[dir="rtl"] .points h3{font-size:19px;line-height:1.6}
.points p{margin:0;color:var(--dim);font-size:16px}
.points p + p{margin-top:.7em}
.points.counted{counter-reset:step}
.points.counted li{counter-increment:step;position:relative;padding-inline-start:44px}
.points.counted li::before{
  content:counter(step);position:absolute;inset-inline-start:0;top:0;
  width:28px;line-height:28px;text-align:center;border-radius:50%;
  border:1px solid var(--accent);color:var(--accent);font-weight:700;font-size:15px;
}
:root[lang="fa"] .points.counted li::before{content:counter(step, persian)}


/* ---- buttons to somewhere ---- */

.ask{margin:clamp(22px,3.4vw,36px) 0 0;text-align:center}
.ask a{margin:0 6px 10px}
.ask a + a{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.ask a + a:hover,.ask a + a:focus-visible{box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent);filter:none}
.ask .under{display:block;margin-top:6px;font-size:14px;color:var(--dim)}

.credit{margin:clamp(40px,6vw,64px) 0 0;text-align:center;font-size:14px;color:var(--dim)}
.credit a{color:var(--accent)}
.promise{margin:clamp(30px,4.5vw,48px) auto 0;max-width:60ch;padding:20px 24px;text-align:center;color:var(--dim);font-size:16px;background:var(--card);border:1px solid var(--line);border-radius:18px}

/* ---- a picture, full size ---- */

.lightbox{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:clamp(12px,4vw,48px);background:rgba(5,9,12,.94);cursor:zoom-out}
.lightbox.on{display:flex}
.lightbox img{max-width:100%;max-height:100%;height:auto;width:auto;border-radius:10px}
.lightbox .close{position:absolute;top:18px;right:22px;font-size:12px;letter-spacing:.26em;text-transform:uppercase;color:#dbe8f0}
:root[dir="rtl"] .lightbox .close{right:auto;left:22px;letter-spacing:0;font-size:15px}

.bar .project{color:var(--accent)}
.bar .project i{font-style:normal;color:var(--dim)}
/* live: a red dot, beating, where the comma would stand */
.bar .project i[data-stage="Live"]{display:inline-flex;align-items:center;gap:7px;margin-inline-start:12px;color:var(--wrong)}
.bar .project i[data-stage="Live"]::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
@media (prefers-reduced-motion:no-preference){
  .bar .project i[data-stage="Live"]::before{animation:beat 1.6s ease-in-out infinite}
}

@media (max-width:820px){
  .shots{grid-template-columns:1fr}
  .shots.tall{grid-template-columns:repeat(2,minmax(0,1fr))}
  .points{grid-template-columns:1fr}
}
@media (max-width:480px){
  .asked .options{grid-template-columns:1fr}
  .doorways{grid-template-columns:1fr 1fr}
  .doorways b{padding:10px 12px 0;font-size:16px}
  .doorways small{display:none}
}

@media (prefers-reduced-motion:no-preference){
  .title,.onair{animation:rise .6s ease-out both}
  @keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
}

/* the way back to a show the reader plays (assets/live.js, backBar): a bar at the foot with the
   beating red dot of a live, the quiz's words, its gold button and a close */
.quiz-back{position:fixed;inset-inline:0;bottom:0;z-index:50;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;
  padding:12px max(16px,calc((100% - 720px) / 2)) calc(12px + env(safe-area-inset-bottom));
  background:var(--bg2);border-top:1px solid var(--line);box-shadow:var(--shadow);color:var(--ink)}
.quiz-back .dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:var(--wrong)}
.quiz-back .text{flex:1 1 200px;font-weight:700}
.quiz-back .go{flex:0 0 auto;padding:10px 18px;border-radius:12px;background:var(--accent);color:var(--accent-ink);font-weight:900;text-decoration:none}
.quiz-back .shut{flex:0 0 auto;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--dim);font-size:20px;line-height:1;cursor:pointer}
@media (prefers-reduced-motion:no-preference){
  .quiz-back .dot{animation:beat 1.6s ease-in-out infinite}
}
