/* Guess the Language: a passport. Navy cover with gold foil, cream visa pages with a guilloche
   pattern, rubber stamps and postcards. The game area keeps this look in light and dark mode. */
.backlink { font-weight: 800; font-size: 14px; text-decoration: none; justify-self: start; }
.backlink:hover { text-decoration: underline; }

.gl {
  --navy: #14254a; --navy-2: #1d3466; --navy-deep: #0b1630;
  --foil: #d4ae57; --foil-hi: #f7e3a1; --foil-lo: #a77d2c;
  --paper: #f7f1e1; --paper-2: #efe5cb; --ink: #1c2238; --ink-2: #4a4f66; --line-p: #d9cba6;
  --stamp-red: #b3262e; --stamp-green: #1f7a45; --stamp-blue: #2a4d9b;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  display: grid; gap: 18px; max-width: 980px; margin: 0 auto; min-width: 0;
}
:where(.gl) button { font: inherit; }
.gl :focus-visible { outline: 3px solid var(--foil); outline-offset: 3px; }
.gl .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.gl kbd { font: inherit; font-weight: 800; font-size: 12px; border: 1px solid var(--line-p); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; }

/* guilloche paper used on every visa page */
.gl .visa, .gl .info-card {
  color: var(--ink); border-radius: 18px; padding: clamp(16px, 3.4vw, 28px); position: relative; min-width: 0;
  background:
    repeating-radial-gradient(circle at 0 0, transparent 0 22px, rgba(42,77,155,.05) 22px 23px),
    repeating-radial-gradient(circle at 100% 100%, transparent 0 22px, rgba(179,38,46,.04) 22px 23px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  box-shadow: 0 0 0 1px var(--line-p), 0 0 0 7px var(--navy), 0 18px 40px rgba(11,22,48,.35);
  margin: 7px;
}

/* ---------- Start: hero + passport cover ---------- */
.gl-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: clamp(540px, 64vw, 620px); display: grid; place-items: center; padding: 34px 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,174,87,.18), transparent 40%),
    repeating-radial-gradient(circle at 50% 120%, transparent 0 18px, rgba(212,174,87,.08) 18px 19px),
    linear-gradient(160deg, #24407a, var(--navy-deep)); }
.gl-hero .hero-img { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); object-fit: cover; filter: blur(2.5px) brightness(.8) saturate(.95); }
.passport { position: relative; z-index: 1; width: min(420px, 100%); text-align: center; color: var(--foil-hi); padding: 30px 26px 20px; border-radius: 10px 22px 22px 10px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 5px),
    linear-gradient(135deg, #22396f, var(--navy) 55%, #0f1d3d);
  box-shadow: inset 10px 0 0 rgba(0,0,0,.18), inset 12px 0 0 rgba(255,255,255,.05), 0 0 0 1px rgba(212,174,87,.4), 0 26px 50px rgba(0,0,0,.5); }
.passport::before { content: ""; position: absolute; inset: 10px 10px 10px 20px; border: 1.5px solid rgba(212,174,87,.45); border-radius: 4px 14px 14px 4px; pointer-events: none; }
.passport .cat-pill { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--paper); color: var(--navy); font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 14px; border-radius: 999px; box-shadow: 0 0 0 1px var(--foil); }
.passport .emblem { width: 96px; height: 96px; display: block; margin: 4px auto 6px; }
@media (prefers-reduced-motion: no-preference) { .passport .emblem g:first-child { transform-origin: 60px 60px; animation: gl-spin 40s linear infinite; } }
@keyframes gl-spin { to { transform: rotate(360deg); } }
.passport .wordmark { margin: 0; font-family: var(--serif); font-weight: 700; line-height: .95; text-transform: uppercase;
  background: linear-gradient(180deg, var(--foil-hi), var(--foil) 55%, var(--foil-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.passport .wordmark .w1 { display: block; font-size: clamp(20px, 5vw, 24px); letter-spacing: .32em; font-weight: 600; }
.passport .wordmark .w2 { display: block; font-size: clamp(44px, 12vw, 58px); letter-spacing: .06em; }
.passport .pp-sub { margin: 8px 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,227,161,.85); }

.gl .play-btn { display: block; width: 100%; min-height: 60px; border-radius: 10px; border: 0; cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-deep);
  background: linear-gradient(180deg, var(--foil-hi), var(--foil) 60%, #b98d38); box-shadow: 0 4px 0 var(--foil-lo), 0 10px 20px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.35); transition: transform .1s; }
.gl .play-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.gl .play-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--foil-lo); }
.gl .play-btn:disabled { opacity: .55; cursor: default; transform: none; }
.passport .meta-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--paper); }
.gl .toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.gl .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gl .toggle i { width: 48px; height: 28px; border-radius: 999px; background: var(--navy-deep); box-shadow: inset 0 0 0 2px var(--foil); position: relative; transition: background .2s; }
.gl .toggle i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); transition: transform .2s, background .2s; }
.gl .toggle input:checked + i { background: var(--foil); }
.gl .toggle input:checked + i::after { transform: translateX(20px); background: var(--navy); }
.gl .toggle input:focus-visible + i { outline: 3px solid var(--foil-hi); outline-offset: 3px; }
.passport .best-line:empty { display: none; }
.passport .best-line { margin: 8px 0 0; min-height: 1.3em; font-size: 14px; font-weight: 700; color: var(--foil-hi); }
.passport .opts-toggle { margin-top: 4px; background: none; border: 0; color: var(--paper); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; min-height: 40px; }
.passport .opts-toggle::after { content: " \25BE"; }
.passport .opts-toggle[aria-expanded="true"]::after { content: " \25B4"; }
.passport .opts { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.25); }
.passport .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--foil-hi); }
.gl .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: rgba(0,0,0,.3); padding: 4px; border-radius: 10px; width: 100%; }
.gl .seg button { font-weight: 800; font-size: 14px; line-height: 1.2; border: 0; border-radius: 8px; padding: 9px 6px; min-height: 40px; background: transparent; color: var(--paper); cursor: pointer; }
.gl .seg button[aria-pressed="true"] { background: var(--paper); color: var(--navy); }
.passport .chips { justify-content: center; gap: 6px; }
.passport .chip { background: transparent; color: var(--paper); border: 1px solid rgba(247,241,225,.45); min-height: 38px; font-weight: 800; }
.passport .chip[aria-pressed="true"] { background: var(--foil); border-color: var(--foil); color: var(--navy-deep); }
.passport .chip:disabled { opacity: .4; cursor: not-allowed; }
.passport .note { margin: 0; font-size: 13px; color: rgba(247,241,225,.85); font-weight: 700; }
.passport .keys { margin: 10px 0 0; font-size: 12px; color: rgba(247,241,225,.75); }
@media (hover: none) { .gl .keys { display: none; } }
.gl .err { margin: 10px 0 0; color: #ffb3ad; font-weight: 700; }
.gl .credit { margin: 6px 4px 0; font-size: 13px; font-style: italic; color: var(--muted); }
.gl .credit a { color: inherit; }

/* ---------- Visa page: header, sample, choices ---------- */
.gl-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line-p); }
.gl-head .ttl { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: .02em; }
.gl-head .stats { display: flex; align-items: center; gap: 12px; position: relative; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.gl-head .qn { font-family: var(--mono); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.gl .tier { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 1px 8px; border: 1.5px solid var(--stamp-blue); color: var(--stamp-blue); border-radius: 4px; margin-left: 8px; vertical-align: 2px; transform: rotate(-3deg); }
.gl-head .sc { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--paper); background: var(--navy); border-radius: 8px; padding: 5px 12px; font-variant-numeric: tabular-nums; }
.gl .pop { position: absolute; right: 100%; margin-right: 6px; top: 50%; background: var(--stamp-green); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 3px 10px; opacity: 0; transform: translateY(-50%) scale(.6); pointer-events: none; white-space: nowrap; }
.gl .pop.show { opacity: 1; transform: translateY(-50%) scale(1); }
@media (prefers-reduced-motion: no-preference) { .gl .pop.show { animation: gl-pop 1.4s ease forwards; } }
@keyframes gl-pop { 0% { opacity: 0; transform: translateY(-50%) scale(.6); } 15% { opacity: 1; transform: translateY(-50%) scale(1.12); } 25% { transform: translateY(-50%) scale(1); } 80% { opacity: 1; transform: translateY(-70%); } 100% { opacity: 0; transform: translateY(-110%); } }
.gl .ring { position: relative; width: 46px; height: 46px; display: grid; place-items: center; flex: none; }
.gl .ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gl .ring circle { fill: none; stroke-width: 3.5; }
.gl .ring .trk { stroke: var(--line-p); }
.gl .ring .arc { stroke: var(--navy); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear, stroke .3s; }
.gl .ring.low .arc { stroke: var(--stamp-red); }
.gl .ring b { font-family: var(--mono); font-weight: 700; font-size: 16px; }
.gl .prog { height: 6px; border-radius: 999px; background: var(--line-p); margin-top: 12px; overflow: hidden; }
.gl .prog i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--stamp-blue) 0 10px, var(--stamp-red) 10px 20px); border-radius: 999px; transition: width .3s; }
.gl .ask { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; margin: 16px 0 0; text-align: center; color: var(--navy); }
.gl .sample { margin: 12px 0 0; padding: clamp(16px, 3vw, 24px); border-radius: 6px; background: #fffdf6; color: var(--ink); border: 1px solid var(--line-p);
  box-shadow: 0 1px 0 #fff inset, 0 6px 14px rgba(28,34,56,.08); font-size: clamp(19px, 2.6vw, 25px); line-height: 1.75; overflow-wrap: anywhere; word-break: normal; hyphens: none; min-height: 120px; max-width: 100%;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(1.75em - 1px), rgba(42,77,155,.12) calc(1.75em - 1px) 1.75em); background-position: 0 calc(clamp(16px, 3vw, 24px) + 2px); }
.gl .sample[dir="rtl"] { text-align: right; }
.gl .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.gl .tools .chip { min-height: 38px; background: transparent; border: 1.5px dashed var(--ink-2); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 13px; }
.gl .tools .chip:hover:not(:disabled) { background: rgba(42,77,155,.08); }
.gl .tools .chip:disabled { opacity: .5; cursor: default; }
.gl .tools .chip[aria-pressed="true"]:disabled { opacity: 1; border-style: solid; border-color: var(--stamp-blue); color: var(--stamp-blue); }
.gl .worth { font-family: var(--mono); font-size: 13px; color: var(--ink-2); font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.gl .clue { margin: 10px 0 0; padding: 10px 14px; border-radius: 6px; background: #fff3c9; border-left: 4px solid var(--foil); font-size: 15px; font-weight: 700; line-height: 1.45; }
.gl .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 16px; padding: 4px; }
@media (max-width: 420px) { .gl .choices { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.gl .choice { position: relative; font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--ink); background: #fffdf6; border: 2px solid var(--ink); border-radius: 8px;
  min-height: 58px; padding: 10px 14px 10px 46px; text-align: left; cursor: pointer; overflow-wrap: anywhere; box-shadow: 3px 3px 0 var(--navy); transition: transform .1s, box-shadow .1s, background-color .15s, opacity .25s; }
.gl .choice .k { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink-2); color: var(--ink-2); font-family: var(--mono); font-size: 13px; display: grid; place-items: center; }
@media (hover: hover) { .gl .choice:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--navy); background: #fff; } }
.gl .choice:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.gl .choice:disabled { cursor: default; color: var(--ink); }
.gl .choice.right { background: #e3f4e8; border-color: var(--stamp-green); box-shadow: 3px 3px 0 var(--stamp-green); }
.gl .choice.wrong { background: #fbe4e2; border-color: var(--stamp-red); box-shadow: 3px 3px 0 var(--stamp-red); }
.gl .choice.dim { opacity: .4; box-shadow: none; }
.gl .choice .badge { position: absolute; top: -12px; right: -10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 3px var(--paper); }
.gl .choice .badge svg { width: 16px; height: 16px; }
.gl .choice.right .badge { background: var(--stamp-green); }
.gl .choice.wrong .badge { background: var(--stamp-red); }
@media (prefers-reduced-motion: no-preference) {
  .gl .shake { animation: gl-shake .4s ease; }
  .gl .choice .badge { animation: gl-stamp .3s cubic-bezier(.3,1.6,.5,1); }
}
@keyframes gl-shake { 0%,100% { translate: 0; } 20% { translate: -8px; } 40% { translate: 7px; } 60% { translate: -5px; } 80% { translate: 3px; } }
@keyframes gl-stamp { from { transform: scale(2.2) rotate(-20deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.gl .next { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gl .next-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 26px; border-radius: 8px; border: 0; cursor: pointer; background: var(--navy); color: var(--paper); font-weight: 800; font-size: 18px; box-shadow: 0 4px 0 var(--navy-deep); }
.gl .next-btn svg { width: 22px; height: 22px; }
.gl .next-btn:hover { background: var(--navy-2); }
.gl .next-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--navy-deep); }
.gl .ghost-btn { min-height: 48px; padding: 8px 18px; border-radius: 8px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-weight: 800; font-size: 15px; cursor: pointer; }
.gl .ghost-btn:hover { background: rgba(20,37,74,.08); }

/* Reveal: lightbulb + postcard */
.gl .reveal { margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed var(--line-p); display: grid; gap: 16px; }
.gl .bulb-box { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.gl .bulb { width: 30px; height: 30px; color: var(--foil-lo); }
.gl .verdict { margin: 0; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.gl .reveal.ok .verdict { color: var(--stamp-green); }
.gl .reveal.no .verdict { color: var(--stamp-red); }
.gl .reveal .fact { margin: 2px 0 0; font-size: 17px; line-height: 1.55; }
.gl .postcard { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; padding: 14px; background: #fffdf6; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 12px 24px rgba(28,34,56,.12); transform: rotate(-.6deg); }
@media (max-width: 640px) { .gl .postcard { grid-template-columns: minmax(0, 1fr); } }
.gl .pc-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: var(--paper-2); }
.gl .pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl .pc-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 4px; font-size: 11px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.gl .pc-photo figcaption a { color: inherit; }
.gl .pc-stamp { position: absolute; bottom: 10px; right: 10px; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 10px; line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-14deg);
  border: 3px double currentColor; background: rgba(255,253,246,.78); }
.gl .reveal.ok .pc-stamp { color: var(--stamp-green); }
.gl .reveal.no .pc-stamp { color: var(--stamp-red); }
.gl .pc-stamp b { display: block; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) { .gl .pc-stamp { animation: gl-thud .35s cubic-bezier(.3,1.5,.5,1); } }
@keyframes gl-thud { from { transform: rotate(-14deg) scale(1.8); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }
/* illustrated fallback until the photo exists */
.gl .pc-art { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px 14px 70px; text-align: center; color: #fff; overflow: hidden; }
.gl .pc-art::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255,255,255,.55); border-radius: 2px; }
.gl .pc-art .nat { font-size: clamp(26px, 6vw, 38px); line-height: 1.3; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.3); overflow-wrap: anywhere; position: relative; }
.gl .pc-art .from { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; margin-top: 4px; }
.gl .pc-art[data-r="Europe"] { background: linear-gradient(135deg, #2a4d9b, #5b7fd0); }
.gl .pc-art[data-r="Asia"] { background: linear-gradient(135deg, #b3262e, #e0794a); }
.gl .pc-art[data-r="Africa"] { background: linear-gradient(135deg, #a5631b, #e2b04a); }
.gl .pc-art[data-r="Americas"] { background: linear-gradient(135deg, #1f7a45, #5bb07a); }
.gl .pc-art[data-r="Pacific"] { background: linear-gradient(135deg, #0f6e83, #3fb3c4); }
.gl .rname { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.1; margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.gl .rname .nat { font-family: inherit; font-weight: 600; color: var(--ink-2); font-size: 22px; }
.gl .facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 0; font-size: 15px; line-height: 1.45; }
.gl .facts dt { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.gl .facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .gl .facts { grid-template-columns: minmax(0, 1fr); } .gl .facts dd { margin-bottom: 6px; } }
.gl .meaning { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; font-style: italic; }
.gl .meaning b { color: var(--ink); font-style: normal; }

/* ---------- End page: stamps ---------- */
.gl .endpage { text-align: center; }
.gl .endpage .kicker { margin: 0; font-family: var(--mono); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.gl .big { font-family: var(--serif); font-size: clamp(56px, 12vw, 84px); font-weight: 700; line-height: 1; margin: 6px 0 0; color: var(--navy); font-variant-numeric: tabular-nums; }
.gl .endpage .sub { margin: 6px 0 0; color: var(--ink-2); }
.gl .endpage .best { font-weight: 800; margin: 6px 0 0; }
.gl .endpage .best.new { color: var(--stamp-green); }
.gl .recap { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 16px 12px; }
.gl .recap li { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 96px; padding: 10px 8px; border: 3px double currentColor; border-radius: 12px; font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.35); }
.gl .recap li:nth-child(3n+1) { transform: rotate(-4deg); }
.gl .recap li:nth-child(3n+2) { transform: rotate(3deg); border-radius: 50% / 40%; }
.gl .recap li:nth-child(3n) { transform: rotate(-1.5deg); }
.gl .recap li.y { color: var(--stamp-green); }
.gl .recap li.n { color: var(--stamp-red); }
.gl .recap .nm { overflow-wrap: anywhere; }
.gl .recap .pt { font-size: 12px; opacity: .85; }
.gl .go { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gl .go .play-btn { width: auto; min-width: 220px; font-size: 24px; }
@media (max-width: 480px) { .gl .go .play-btn, .gl .go .ghost-btn { width: 100%; } }

/* ---------- Info cards under the game ---------- */
.gl-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 700px) { .gl-info { grid-template-columns: minmax(0, 1fr); } }
.gl .info-card h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--navy); }
.gl .info-card .sub { color: var(--ink-2); font-size: 14px; margin: 4px 0 0; }
.gl .info-card ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; }
.gl .bests { display: grid; gap: 6px; margin-top: 10px; font-size: 14px; }
.gl .bests div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px dashed var(--line-p); font-weight: 700; }
.gl .bests b { font-family: var(--mono); font-variant-numeric: tabular-nums; }

#guide h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 32px; }

/* Font fallbacks so each writing system finds a font on Windows, macOS, iOS, Android and Linux. */
.gl [data-s] { font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif; }
.gl [data-s="grek"] { font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "DejaVu Sans", sans-serif; }
.gl [data-s="arab"] { font-family: "Noto Naskh Arabic", "Segoe UI", "Geeza Pro", "Arial", "Tahoma", "DejaVu Sans", sans-serif; }
.gl [data-s="arab"]:lang(ur) { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Segoe UI", "Geeza Pro", Arial, sans-serif; line-height: 2.1; }
.gl [data-s="hebr"] { font-family: "Noto Sans Hebrew", "Segoe UI", "Arial Hebrew", Arial, "DejaVu Sans", sans-serif; }
.gl [data-s="deva"] { font-family: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", Mangal, sans-serif; }
.gl [data-s="beng"] { font-family: "Noto Sans Bengali", "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", Vrinda, sans-serif; }
.gl [data-s="guru"] { font-family: "Noto Sans Gurmukhi", "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", Raavi, sans-serif; }
.gl [data-s="taml"] { font-family: "Noto Sans Tamil", "Nirmala UI", "Tamil Sangam MN", Latha, sans-serif; }
.gl [data-s="mlym"] { font-family: "Noto Sans Malayalam", "Nirmala UI", "Malayalam Sangam MN", Kartika, sans-serif; }
.gl [data-s="sinh"] { font-family: "Noto Sans Sinhala", "Nirmala UI", "Sinhala Sangam MN", "Iskoola Pota", sans-serif; }
.gl [data-s="thai"] { font-family: "Noto Sans Thai", "Leelawadee UI", "Thonburi", Tahoma, "Loma", sans-serif; }
.gl [data-s="laoo"] { font-family: "Noto Sans Lao", "Leelawadee UI", "Lao Sangam MN", "Lao UI", "Phetsarath OT", sans-serif; }
.gl [data-s="khmr"] { font-family: "Noto Sans Khmer", "Leelawadee UI", "Khmer Sangam MN", "Khmer UI", DaunPenh, sans-serif; line-height: 2; }
.gl [data-s="mymr"] { font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar Sangam MN", "Myanmar MN", Padauk, sans-serif; line-height: 2.1; }
.gl [data-s="geor"] { font-family: "Noto Sans Georgian", "Segoe UI", "Helvetica Neue", Sylfaen, "DejaVu Sans", sans-serif; }
.gl [data-s="armn"] { font-family: "Noto Sans Armenian", "Segoe UI", "Helvetica Neue", Sylfaen, "DejaVu Sans", sans-serif; }
.gl [data-s="ethi"] { font-family: "Noto Sans Ethiopic", "Nyala", "Ebrima", "Kefa", "Abyssinica SIL", sans-serif; }
.gl [data-s="hang"] { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", sans-serif; }
.gl [data-s="jpan"] { font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "IPAGothic", sans-serif; }
.gl [data-s="hans"] { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "WenQuanYi Zen Hei", sans-serif; }
.gl [data-s="cher"] { font-family: "Noto Sans Cherokee", "Gadugi", "Plantagenet Cherokee", sans-serif; }
.gl [data-s="cans"] { font-family: "Noto Sans Canadian Aboriginal", "Gadugi", "Euphemia UCAS", "Euphemia", sans-serif; }

@media (prefers-reduced-motion: reduce) { .gl, .gl *, .gl *::before { transition: none !important; animation: none !important; } }

/* keep the start screen inside the phone width */
.gl-start { max-width: 100%; min-width: 0; overflow-x: clip; }
.gl-start > * { min-width: 0; max-width: 100%; }
