/* Say It Right: game, map and phrase pages. Sticker-book look from the approved demo (formats-v2, option 2). */
@font-face { font-family: Fredoka; src: url(fonts/fredoka.woff2) format("woff2"); font-weight: 500 700; font-display: optional; }
@font-face { font-family: Lexend; src: url(fonts/lexend.woff2) format("woff2"); font-weight: 400 600; font-display: optional; }
:root {
  --ink: #22163B; --muted: #5B4E78; --page: #F4F1FA; --paper: #fff;
  --blue: #1F66D1; --pink: #C81D63; --green: #0B7A55; --yellow: #FFD23F; --purple: #7A3FE0; --bad: #C8102E;
  --line: 2.5px solid var(--ink); --lift: 0 5px 0 var(--ink);
  --display: Fredoka, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --text: Lexend, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tint: #EEF2FF; --accent: #7A3FE0;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font: 400 16px/1.55 var(--text); color: var(--ink); background: var(--page); overflow-x: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
img { -webkit-user-drag: none; user-select: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- page: game + fixed ad column on desktop ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; padding: 14px 16px calc(40px + var(--ab, 0px)); padding-top: calc(14px + var(--at, 0px)); }
/* the side ad column only from 1200px, 160px away from the game (ads stay 150px+ from every control) */
@media (min-width: 1200px) { .page { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 160px; align-items: start; padding: calc(24px + var(--at, 0px)) 24px calc(24px + var(--ab, 0px)); } .side { position: sticky; top: 24px; } }
@media (min-width: 1000px) and (max-width: 1199px) { .page { padding: calc(24px + var(--at, 0px)) 24px calc(24px + var(--ab, 0px)); } }
@media (max-width: 1199px) { .side { display: none; } }
.main { min-width: 0; }
/* room under a top ad that came with no tap (game.js setAtx): a transform, so it is not a layout shift */
.atx .main { transform: translateY(var(--atx, 0px)); }
/* a control of ours left under or right next to an anchor ad while the band is full (game.js guard) */
.uad { visibility: hidden !important; }
/* Google's top anchor pads <body>; the part our --at room already covers is taken back here (game.js setAt) */
.gx body > .rle-allgames { margin-top: calc(8px - var(--gx, 0px)) !important; }
.ad-ph { display: grid; place-items: center; overflow: hidden; text-align: center; color: #8A80A6; font-size: 13px; border: 2px dashed #B9AED6; border-radius: 12px; background: rgba(255,255,255,.7); }
.ad-side { height: 600px; } .ad-under { height: 100px; margin-top: 18px; }
/* the between-levels ad: only after a win from level 2 on, below the end card and the list of best replies */
.ad-break { height: 250px; margin: 18px auto 0; max-width: 336px; }
.ad-break:has(ins[data-ad-status="unfilled"]) { display: none; }
/* phrase pages: fixed-size units next to plain text only, never next to a Listen button */
.ad-rect { height: 280px; margin: 26px 0; } .ad-rect ins { width: 100%; height: 280px; }
.ad-banner { height: 100px; margin: 26px 0 0; } .ad-banner ins { width: 100%; height: 100px; }

/* ---------- game shell ---------- */
.game { max-width: 560px; margin: 0 auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 24px/1 var(--display); color: var(--ink); white-space: nowrap; }
.logo b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--yellow); border: var(--line); box-shadow: 0 3px 0 var(--ink); font-size: 20px; }
.bar .right { display: flex; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: var(--line); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); padding: 3px 12px; min-height: 38px; font: 600 15px var(--display); white-space: nowrap; text-decoration: none; }
a.pill:active, button.pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
button.pill { cursor: pointer; }
.pill.pop { animation: pillpop .35s; }
@keyframes pillpop { 50% { transform: scale(1.18); background: var(--yellow); } }
.icon { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 18px; }
.ir { position: relative; border-radius: 24px; padding: 14px; border: var(--line); box-shadow: var(--lift); overflow: hidden;
  background-color: var(--tint); background-image: radial-gradient(rgba(34,22,59,.07) 1.5px, transparent 1.6px); background-size: 22px 22px; }

/* the map is in the HTML; a level page (?s=...) hides it before first paint and shows the play box at its final size */
#play { display: none; }
.is-play #map { display: none; }
.is-play #play { display: block; min-height: 640px; }
.is-play .game.wide { max-width: 620px; }
.is-play .bar .tot { display: none; }   /* a level shows its own score in the HUD */

/* ---------- map ---------- */
.map-h1 { font-size: clamp(21px, 3.4vw, 28px); margin: 0 0 4px; }
.intro-line { margin: 0 0 12px; font: 500 15px/1.4 var(--text); color: var(--muted); }
.sits { display: grid; gap: 14px; }
.sit { --tint: #fff; background: var(--tint); border: var(--line); border-radius: 20px; box-shadow: var(--lift); padding: 12px 12px 14px; }
.sit-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.face { width: 64px; height: 64px; border-radius: 16px; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.face img { display: block; width: 150%; height: auto; margin: 2px 0 0 -25%; }
.sit h2 { font-size: 21px; }
.sit h2 a { text-decoration: none; }
.sit .who { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 4px; padding: 4px; background: #fff; border: var(--line); border-radius: 16px; }
.modes button, .modes a { cursor: pointer; border: 0; border-radius: 11px; padding: 7px 4px; background: none; font: 600 15px var(--display); text-align: center; text-decoration: none; }
.modes .on { background: var(--purple); color: #fff; box-shadow: 0 3px 0 #4B1FA0; }
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; position: relative; }
.road::before { content: ""; position: absolute; left: 16%; right: 16%; top: 34px; border-top: 4px dotted rgba(34,22,59,.25); }
.node { position: relative; display: grid; justify-items: center; gap: 4px; text-decoration: none; text-align: center; padding: 0; background: none; border: 0; cursor: pointer; }
.node .t { position: relative; width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: #fff; border: var(--line); box-shadow: 0 4px 0 var(--ink); font: 700 22px var(--display); }
.node .lv { margin-top: 8px; font: 600 13px/1.2 var(--display); }   /* clear of the star badge (.st hangs 6px below the tile) */
.node .nm { text-wrap: balance; font: 400 12.5px/1.25 var(--text); color: var(--muted); min-height: 32px; }
.node .st { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: var(--ink); color: #FFE14D; font-size: 11.5px; line-height: 18px; letter-spacing: 1px; white-space: nowrap; }
.node .st:empty { display: none; }
.node .st.none { color: #B9AEDB; }   /* a level not played yet */
.node.done .t { background: #DFF7E6; }
.node.current .t { background: var(--yellow); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.node.locked { cursor: default; }
.node.locked .t { background: #E6E0F2; color: #9A8FB8; box-shadow: 0 4px 0 #9A8FB8; border-color: #9A8FB8; }
.node.locked .t::after { content: "🔒"; position: absolute; right: -8px; top: -8px; font-size: 16px; }
.node.locked .lv, .node.locked .nm { opacity: .6; }
.node.soon .t::after { content: "⏳"; }
.lockmsg { margin: 8px 0 0; font: 600 14px/1.3 var(--display); color: var(--ink); text-align: center; }
.node.unlocking .t { animation: unlock .9s cubic-bezier(.2,1.6,.4,1); }
@keyframes unlock { 0% { transform: scale(.3) rotate(-20deg); } }
.node:active:not(.locked) .t { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.study { display: inline-block; margin-top: 18px; font: 600 14px var(--display); color: var(--ink); }
@media (min-width: 700px) { .sits { grid-template-columns: 1fr 1fr; } .sit.big { grid-column: 1 / -1; } .game.wide { max-width: 860px; }
  /* the job interview card takes the first row: an odd card at the end gets the whole last row, not half of it */
  .sits > .sit.big:first-child ~ .sit:last-child:nth-child(even) { grid-column: 1 / -1; }
  /* ...laid out as a wide card (name and phrases link on the left, the levels on the right), so its road isn't stretched */
  .sits > .sit.big:first-child ~ .sit:last-child:nth-child(even) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 18px; align-items: center; }
  .sits > .sit.big:first-child ~ .sit:last-child:nth-child(even) > .sit-head { grid-column: 1; grid-row: 1; }
  .sits > .sit.big:first-child ~ .sit:last-child:nth-child(even) > .road { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .sits > .sit.big:first-child ~ .sit:last-child:nth-child(even) > .study { grid-column: 1; grid-row: 2; justify-self: start; } }

/* ---------- play ---------- */
.ptop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ptag { font: 600 14px/1.25 var(--display); text-align: right; }
.ptag small { display: block; font: 400 12.5px var(--text); color: var(--muted); }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 38px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.dots i.on { background: var(--yellow); } .dots i.ok { background: #3FBF6B; } .dots i.no { background: #FF8A8A; }
.streak { visibility: hidden; } .streak.hot { visibility: visible; }   /* shows from 2 good answers in a row (the bonus) */
.stage { position: relative; height: 250px; border: var(--line); border-radius: 20px; box-shadow: var(--lift); overflow: hidden; background: #CFE6FF center / cover no-repeat; }
@media (min-width: 600px) { .stage { height: 290px; } }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(34,22,59,.18)); pointer-events: none; }
.chr { position: absolute; left: 2px; bottom: -4px; height: 220px; width: auto; aspect-ratio: auto; z-index: 3; transform-origin: 50% 100%; filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
@media (min-width: 600px) { .chr { height: 260px; left: 10px; } }
.chr.talk { animation: talk .45s ease-in-out infinite; }
@keyframes talk { 50% { transform: scaleY(1.025) translateY(-2px); } }
.chr.bounce { animation: bounce .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes bounce { 0% { transform: scale(.92, 1.08); } 40% { transform: scale(1.06, .94) translateY(-10px); } }
.chr.droop { animation: droop .5s ease-out; }
@keyframes droop { 30% { transform: translateX(-5px) rotate(-2deg); } 60% { transform: translateX(5px) rotate(2deg); } }
.bub { position: absolute; z-index: 5; left: 140px; right: 10px; top: 12px; padding: 9px 12px; background: #fff; border: var(--line); border-radius: 16px; font: 600 16px/1.28 var(--display); box-shadow: 0 3px 0 var(--ink); }
@media (min-width: 600px) { .bub { left: 190px; font-size: 18px; top: 18px; } .waves, .subt { left: 200px !important; } }
.bub.in { animation: popin .3s cubic-bezier(.2,1.6,.4,1); }
.bub::after { content: ""; position: absolute; bottom: -12px; left: 26px; border: 0 solid transparent; border-width: 12px 10px 0 0; border-top-color: var(--ink); }
.lbtn { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 3px 11px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); font: 600 14px var(--display); }
.lbtn:disabled { opacity: .45; cursor: default; }
.bub .lbtn { margin-top: 6px; padding: 1px 9px; font-size: 13px; }
.stage.short { height: 170px; } .stage.short .chr { height: 150px; } .stage.short .bub { left: 104px; top: 8px; }
@media (min-width: 600px) { .stage.short { height: 200px; } .stage.short .chr { height: 180px; } .stage.short .bub { left: 140px; top: 10px; } }
.stage.flat { height: auto; padding: 8px; } .stage.flat .chr, .stage.flat::after, .stage.flat .bub::after { display: none; }
.stage.flat .bub { position: relative; left: auto; right: auto; top: auto; } .stage.flat .nametag { position: static; display: inline-block; margin: 0 0 6px; }
.nametag { position: absolute; z-index: 6; bottom: 8px; left: 10px; padding: 1px 9px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12.5px var(--display); }
.ask { font: 600 17px var(--display); margin: 12px 0 0; } .ask.gone { display: none; }
.reps { display: grid; gap: 9px; margin-top: 8px; min-height: 190px; align-content: start; }
.rep { position: relative; width: 100%; cursor: pointer; text-align: left; padding: 11px 13px; border-radius: 16px 16px 4px 16px; border: var(--line); box-shadow: 0 4px 0 var(--ink); background: #fff; font: 500 15.5px/1.32 var(--text); color: var(--ink); }
.rep:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.rep:disabled { cursor: default; }
.rep.right { background: #DFF7E6; border-color: #0B7A55; } .rep.wrong { background: #FFE1E1; animation: shake .35s; } .rep.dim { opacity: .4; }
.rep .kind { display: block; margin-top: 3px; font: 600 12.5px var(--display); color: var(--bad); }
.reps.wait .rep { opacity: .45; }
/* a short free band between a tall top anchor and the search bar (game.js fitReps): smaller replies, so all 3 fit */
.reps.tight { gap: 5px; min-height: 0; } .reps.tight .rep { padding: 4px 10px; font-size: 13.5px; line-height: 1.2; box-shadow: 0 2px 0 var(--ink); }
/* still too tall (long B2 replies in about 146px): one step smaller */
.reps.tighter { gap: 4px; } .reps.tighter .rep { padding: 3px 8px; font-size: 12.5px; line-height: 1.15; }
.reps.tightest { gap: 3px; margin-top: 4px; } .reps.tightest .rep { padding: 2px 7px; font-size: 12px; line-height: 1.12; box-shadow: 0 1px 0 var(--ink); }
.fb { margin-top: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--ink); background: #fff; font-size: 15px; animation: popin .3s; }
.fb b { font-family: var(--display); font-size: 17px; }
.fb.good b { color: #0B7A55; } .fb.bad b { color: var(--bad); }
.fb .best { display: block; margin-top: 6px; font-weight: 500; }
.fb .lbtn { margin-top: 8px; }
.nextb { display: block; margin-top: 10px; width: 100%; cursor: pointer; padding: 11px; border-radius: 14px; border: var(--line); box-shadow: 0 3px 0 var(--ink); background: var(--ink); color: #fff; font: 600 18px var(--display); text-align: center; text-decoration: none; }
.nextb.go { background: #16A34A; }
.nextb.alt { background: #fff; color: var(--ink); }
.nextb:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.start { text-align: center; padding: 16px 14px 14px; background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--lift); margin-top: 12px; }
.start h2 { font-size: 23px; text-wrap: balance; }
.start p { margin: 6px 0 0; }
.start .how { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 4px; font-size: 15px; text-align: left; }
.live { position: absolute; z-index: 6; top: 10px; left: 10px; padding: 2px 9px; border-radius: 999px; background: #C8102E; color: #fff; font: 600 12.5px var(--display); }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 6px; vertical-align: 1px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ring { position: absolute; z-index: 6; top: 8px; right: 8px; width: 54px; height: 54px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--display); color: var(--ink); }
.waves { position: absolute; z-index: 4; left: 150px; top: 46px; display: flex; gap: 4px; align-items: center; height: 40px; }
.waves i { width: 6px; border-radius: 3px; background: #fff; border: 2px solid var(--ink); animation: wave .5s ease-in-out infinite; }
.waves i:nth-child(2) { animation-delay: .1s } .waves i:nth-child(3) { animation-delay: .2s } .waves i:nth-child(4) { animation-delay: .3s } .waves i:nth-child(5) { animation-delay: .15s }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 36px; } }
.subt { position: absolute; z-index: 6; left: 150px; right: 10px; top: 96px; padding: 8px 10px; border-radius: 12px; background: rgba(34,22,59,.84); color: #fff; font: 600 15px/1.3 var(--display); }
.subt .nv { display: block; margin-top: 4px; font: 500 12px/1.3 var(--text); color: #D9D2F0; }
.subt.hid { color: #E4DDF7; font: 500 13.5px/1.35 var(--text); }
.tools { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tools .sm { display: none; }
/* phones: the two Live tools share one row (the band under a tall top ad plus the search bar is short: review 2026-10-20 r2) */
@media (max-width: 600px) { .tools { flex-wrap: nowrap; gap: 6px; } .tools .lbtn { font-size: 13px; padding: 3px 9px; white-space: nowrap; } .tools .lg { display: none; } .tools .sm { display: inline; } }
@media (max-width: 350px) { .tools { flex-wrap: wrap; } }
.hire { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 600 14px var(--display); }
.meter { flex: 1; height: 14px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #F59E0B, #22C55E); transform-origin: left; transition: transform .6s cubic-bezier(.2,1.4,.4,1); }
.endcard { text-align: center; padding: 16px 12px 12px; background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--lift); animation: popin .4s cubic-bezier(.2,1.6,.4,1); }
.endcard img.who { height: 170px; width: auto; display: block; margin: 0 auto; }
.endcard h2 { font-size: 28px; margin-top: 4px; }
.endcard h2:focus { outline: none; }
.start .ahead { margin: 10px 0 0; padding: 8px 10px; border-radius: 12px; background: #FFF6D6; font-size: 15px; }
.recap { margin-top: 16px; padding: 14px 16px; background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--lift); }
.recap h3 { font-size: 19px; margin: 0 0 6px; }
.recap ol { margin: 0; padding: 0 0 0 22px; display: grid; gap: 8px; }
.recap li span { display: block; font-size: 14px; color: var(--muted); }
.recap li b { display: block; font: 600 16px/1.3 var(--display); }
.recap li.no::marker { color: var(--bad); } .recap li.ok::marker { color: var(--green); }
.endcard .stars { font-size: 40px; letter-spacing: 4px; margin: 2px 0; }
.endcard .stars span { display: inline-block; animation: popin .5s cubic-bezier(.2,1.6,.4,1) both; }
.endcard .stars span:nth-child(2) { animation-delay: .25s; } .endcard .stars span:nth-child(3) { animation-delay: .5s; }
.endcard .stars .off { filter: grayscale(1); opacity: .3; }
.endcard .says { margin: 4px 0 6px; font: 600 16px/1.35 var(--display); }
.endcard .pts { margin: 0 0 4px; font: 600 15px var(--display); color: var(--muted); }
.endcard .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* a short free band between the anchor ads and the search bar (game.js): the title and the main button fit in it */
.endcard.tight { padding-top: 8px; } .endcard.tight h2 { font-size: 21px; line-height: 1.1; margin-top: 0; }
.endcard.tight .stars { font-size: 22px; line-height: 1.1; margin: 0; } .endcard.tight .says { font-size: 13px; line-height: 1.2; margin: 2px 0; } .endcard.tight .pts { font-size: 12px; margin: 0; }
.endcard.tight .nextb { margin-top: 6px; padding: 8px; }
/* even shorter (about 170px): stars next to the title, the points in the line under it, the last 3 buttons in one row */
.endcard.tightest h2, .endcard.tightest .stars { display: inline-block; vertical-align: middle; margin: 0 3px; }
.endcard.tightest .pts { display: none; } .endcard.tightest .says { margin: 0; }
.endcard.tightest .row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.endcard.tightest { padding: 6px 10px 8px; } .endcard.tightest .nextb { margin-top: 5px; padding: 6px; font-size: 16px; }
.endcard.tightest .row .nextb { font-size: 15px; padding: 6px 2px; white-space: nowrap; overflow: hidden; }
.boom { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.boom i { position: absolute; width: 9px; height: 13px; top: 40%; border-radius: 2px; animation: conf 1.1s ease-out forwards; }
@keyframes conf { to { transform: translate(var(--x), var(--y)) rotate(540deg); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes popin { from { transform: scale(.3); opacity: 0; } }
.float { position: absolute; pointer-events: none; font: 700 24px var(--display); color: #FFE14D; text-shadow: 0 2px 0 var(--ink), 0 0 8px var(--ink); animation: floatup 1s ease-out forwards; z-index: 25; white-space: nowrap; }
@keyframes floatup { from { transform: translate(-50%, 0); } to { transform: translate(-50%, -54px); opacity: 0; } }
@media (max-width: 380px) { .bub { left: 118px; font-size: 15px; } .chr { height: 200px; } .waves, .subt { left: 126px !important; } .logo { font-size: 20px; } .logo b { width: 32px; height: 32px; font-size: 17px; } }

/* ---------- text sections (hub and phrase pages) ---------- */
.txt { max-width: 760px; margin: 34px auto 0; }
.card { background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--lift); padding: 18px 20px; margin-top: 18px; }
.txt .nb, .nb { white-space: nowrap; text-wrap-mode: nowrap; }
.txt h1 { font-size: clamp(27px, 5vw, 38px); }
.txt h2 { font-size: 24px; margin: 4px 0 8px; }
.txt h3 { font-size: 18.5px; margin: 18px 0 8px; }
.txt p { margin: 0 0 12px; }
.txt p, .txt li, .txt span { text-wrap: pretty; }
.txt h1, .txt h2, .txt h3, .crumbs { text-wrap: balance; }
.txt .lead { font-size: 17px; color: var(--muted); margin-top: 8px; }
.txt .lead + .lead { margin-top: 12px; }
.txt a { color: #5A22C4; font-weight: 600; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plist li { display: grid; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #CFC5E6; }
.plist li:last-child { border: 0; }
.plist .pp { font: 600 17px/1.3 var(--display); margin: 0; }
.plist .pd { font-size: 15px; color: var(--muted); margin: 0; }
.line { margin-top: 12px; padding: 14px 0 20px; border-top: 1px dashed #CFC5E6; }
.line:first-of-type { border-top: 0; }
.line h3 { margin-top: 0; }
.line .good { margin: 8px 0 12px; }
.line .good strong { color: var(--green); }
.line .why { color: var(--muted); font-size: 15px; }
.line .avoid { font-size: 15px; margin: 0; }
.line .avoid s { text-decoration: none; color: var(--bad); }
.line .lbtn { margin: 16px 8px 0 0; }
.crumbs { font-size: 14px; margin: 0 0 10px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 20px 8px; margin-top: 18px; }
.cta a { text-decoration: none; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 14px; border: var(--line); box-shadow: 0 4px 0 var(--ink); background: #16A34A; color: #fff !important; font: 600 18px var(--display); text-decoration: none; }
.btn.alt { background: #fff; color: var(--ink) !important; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; align-items: end; }
.hero img { width: 120px; height: auto; order: 2; }
@media (max-width: 560px) { .hero { display: block; } .hero img { float: right; width: 78px; margin: 0 0 4px 8px; } .hero .cta { clear: both; } }
.links li { margin-bottom: 4px; }
.fine { font-size: 13.5px; color: var(--muted); }
.card + .fine { margin-top: 20px; }   /* clear of the card's 5px shadow */
footer.foot { max-width: 760px; margin: 28px auto 0; font-size: 14px; color: var(--muted); }
footer.foot a { color: var(--ink); }

html.is-play .rle-allgames { margin-bottom: 18px !important; }
/* design rules (2026-10-27): 16px of air under the games pill and the Map pill, 16px above Start; each extra pixel is taken from the
   padding next to it, so every control sits exactly where it sat before (the .page and card tops are measured by the ad-room code) */
html.is-play .page { padding-top: calc(0px + var(--at, 0px)); }
@media (min-width: 1000px) { html.is-play .page { padding-top: calc(10px + var(--at, 0px)); } }
html.is-play .ptop { margin-bottom: 19px; }
html.is-play .ir { padding-top: 5px; }
.start .nextb.go { margin-top: 16px; }
.start .how { margin-top: 6px; }
.start .pnote { margin: 14px 0 0; font-size: 14px; font-weight: 700; color: #8a1c14; text-wrap: balance; }
.start { padding-bottom: 12px; }
