/* My Restaurant City: site styles.
   Colours come from the game's own art: the logo's brown outline, sign cream, plate blues, button orange, stamp red.
   Display type is Huggable, the game's UI font, rebuilt from the game files. */

@font-face { font-family: 'Huggable RC'; src: url('/assets/fonts/huggable-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Huggable RC'; src: url('/assets/fonts/huggable-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #4c4238;          /* logo outline brown */
  --ink-2: #6e6155;
  --ink-strong: #2f2721;
  --cream: #fffae6;        /* sign cream */
  --cream-2: #f1e8c8;
  --wood: #a07d5a;
  --sky: #bfe8ef;
  --sky-2: #e1f8f9;
  --plate: #a7cfd8;
  --steel: #77a0ad;
  --orange: #f69221;
  --orange-deep: #d9731a;
  --red: #d84a4a;
  --red-deep: #803b40;
  --leaf: #5e9e3a;
  --bg: var(--cream);
  --surface: #fff;
  --line: var(--ink);
  --radius: 20px;
  --display: 'Huggable RC', 'Chalkboard SE', 'Comic Sans MS', system-ui, sans-serif;
  --text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --step: clamp(64px, 9vw, 128px);
  /* the game's UI: lawn, window frame (grey with a slate line), help bubble, the green OK button */
  --lawn: #b3e06c; --frame: #e6e6e6; --frame-line: #536868; --bubble-line: #7f7f7f; --ok: #a8e621; --ok-line: #2e7812;
  color-scheme: only light;   /* "only": Android Chrome / Samsung Internet must not darken the page (3 Dec 2026) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--lawn); color: var(--ink); font: 500 1.0625rem/1.6 var(--text); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink-strong); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; color: var(--ink-strong); text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-family: var(--display); font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; word-spacing: -.08em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---- buttons: chunky, outlined, with the game's bottom bevel ---------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .55em 1.15em;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink-strong);
  font: 700 1.05rem/1 var(--display); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / .08), 0 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .08), 0 4px 0 var(--ink); color: var(--ink-strong); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .08), 0 1px 0 var(--ink); }
.btn-play { background: var(--orange); box-shadow: inset 0 -5px 0 var(--orange-deep), 0 3px 0 var(--ink); }
.btn-play:hover { box-shadow: inset 0 -5px 0 var(--orange-deep), 0 4px 0 var(--ink); }
.btn-lg { font-size: 1.35rem; padding: .62em 1.5em; min-height: 56px; }
.btn-sm { font-size: .95rem; min-height: 38px; padding: .4em .9em; }
.btn-quiet { background: var(--cream); }
.btn-ghost { background: transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 1.4em; }

/* ---- header ------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 8px var(--gutter);
  background: color-mix(in srgb, var(--lawn) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid rgb(46 120 18 / .2); }
.brand { display: flex; align-items: center; gap: 2px; text-decoration: none; flex: none; }
.brand { gap: 10px; }
.brand img { width: 128px; height: auto; }
.brand-word { font: 700 1.3rem/1 var(--display); color: var(--ink-strong); padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.top-nav { flex: 1; }
.top-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(10px, 2vw, 26px); justify-content: center; }
.top-nav a { font-weight: 800; text-decoration: none; padding: 6px 2px; border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 7px; }
/* The nav wears the game's own restaurant buttons (RoomUi): idle, and the hover frame on hover. */
.nav-ico { position: relative; width: 34px; height: 34px; flex: none; }
.nav-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .18s cubic-bezier(.3, 1.7, .5, 1); }
.nav-ico img + img, .top-nav a:hover .nav-ico img:first-child { opacity: 0; }
.top-nav a:hover .nav-ico img + img { opacity: 1; }
.top-nav a:hover .nav-ico img, .top-nav a[aria-current] .nav-ico img { transform: scale(1.14) rotate(-5deg); }
/* The game's level bar (chef's hat badge + bar), here filling as you read down the page. */
.lvl { display: flex; align-items: center; flex: none; }
.lvl-badge { width: 34px; height: 34px; position: relative; z-index: 1; }
.lvl-bar { width: 96px; height: 14px; margin-left: -9px; background: #fcfaeb; border: 2.5px solid #2b2621; border-radius: 3px; overflow: hidden; }
.lvl-fill { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(#c4f25c, #7bc31f); }
.lvl.is-up .lvl-badge { animation: lvl-up .7s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes lvl-up { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-10deg); } 100% { transform: scale(1); } }
/* "How to play" stays on one line: tighter gaps from 1320px down, then the level bar goes at 1180px. */
@media (max-width: 1320px) { .top { gap: 14px; } .top-nav ul { gap: 14px; } .top-nav a { white-space: nowrap; } }
@media (max-width: 1212px) { .lvl { display: none; } .nav-ico { width: 28px; height: 28px; } }
@media (max-width: 960px) and (min-width: 901px) { .top { gap: 10px; } .top-nav ul { gap: 9px; } .top-act { gap: 8px; } .top-act .btn { padding-inline: .75em; } .nav-word { font-size: .94rem; } }
@media (max-width: 1048px) and (min-width: 901px) { .brand-word { display: none; } }
.top-nav a:hover, .top-nav a[aria-current] { border-bottom-color: var(--ok-line); }
.top-act { display: flex; align-items: center; gap: 14px; flex: none; }
.top-act .btn { min-height: 42px; font-size: 1rem; padding: .45em 1em; }
.snd { display: flex; gap: 6px; }
.snd[hidden] { display: none; }
.snd-btn { position: relative; width: 38px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.snd-btn img { position: absolute; inset: 2px; width: 34px; height: 34px; transition: transform .12s; }
.snd-btn img + img, .snd-btn[aria-pressed="true"] img:first-child { opacity: 0; }
.snd-btn[aria-pressed="true"] img + img { opacity: 1; }
.snd-btn:hover img { transform: scale(1.08) rotate(-3deg); }
.snd-btn:active img { transform: scale(.94); }
.snd-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
/* chefs online: a little game HUD pill with a live green light */
.online { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: #fff;
  border: 2px solid var(--frame-line); box-shadow: 0 3px 0 rgb(46 120 18 / .2); font-size: .9rem; font-weight: 700; color: var(--ink-strong); white-space: nowrap; }
.online b { font: 700 1.05rem/1 var(--display); }
@media (max-width: 1360px) { .online-words { display: none; } .online { padding-inline: 9px 11px; gap: 6px; } }
@media (max-width: 1060px) { .online { display: none !important; } }   /* no room: the home page line still shows it */
.dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #3cb521; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #3cb521; animation: live-ping 1.8s ease-out infinite; }
@keyframes live-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
/* the same two numbers under the Play button on the home page */
.live-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 0; font-weight: 700; color: var(--ink-strong); }
.live-count > span { display: inline-flex; align-items: center; gap: 8px; }
.live-count > span[hidden] { display: none; }
.live-count b { display: inline-block; font: 700 1.2rem/1 var(--display); }
.live-count img { width: 26px; height: 26px; }
/* the dot sits in a 26px column like the street icon, so the two lines' words start at the same place (Mike, 3 Dec 2026) */
.live-count > span > .dot { margin-inline: 8px; }
.live-count .tick { animation: hud-tick .75s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .dot::after, .live-count .tick { animation: none; } }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; row-gap: 0; padding-top: 6px; }
  .brand img { width: 96px; }
  .brand-word { font-size: 1.05rem; padding-left: 8px; }
  .top-act .btn { min-height: 40px; font-size: .95rem; }
  .top-nav a { padding: 4px 0 6px; flex-direction: column; gap: 1px; font-size: .78rem; min-width: 60px; }
  .nav-ico { width: 30px; height: 30px; }
  .top-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .top-nav ul { justify-content: space-between; gap: 6px; white-space: nowrap; }
  .top-act { margin-left: auto; }
  .online { display: none !important; }
  .snd-btn { width: 34px; height: 34px; } .snd-btn img { width: 30px; height: 30px; }
}

@media (max-width: 440px) {
  .top { gap: 10px; }
  .brand-word { font-size: .95rem; padding-left: 7px; }
  .brand img { width: 84px; }
  .top-act { gap: 8px; }
  .snd { gap: 2px; }
  .snd-btn { width: 30px; height: 30px; } .snd-btn img { width: 27px; height: 27px; inset: 1px; }
  .top-act .btn { min-height: 38px; font-size: .9rem; padding: .4em .8em; }
}

/* ---- footer ------------------------------------------------------------------------------------- */
.foot { margin-top: var(--step); background: var(--ink); color: var(--cream); padding: 56px var(--gutter) 40px; }
.foot a { color: var(--cream); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot-cols { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 32px; }
.foot h2 { font-size: 1.15rem; color: #fff; margin-bottom: .7em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .98rem; }
.foot-join p { font-size: .98rem; opacity: .9; }
.foot-join .btn { background: var(--cream); color: var(--ink-strong); box-shadow: inset 0 -4px 0 var(--cream-2), 0 3px 0 #2a231d; border-color: #2a231d; }
.foot-legal { max-width: var(--wrap); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgb(255 250 230 / .2); font-size: .85rem; opacity: .8; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-join { grid-column: 1 / -1; } }


/* ---- shared page parts (guide pages, articles) ----------------------------------------------- */
.page-head { padding-top: clamp(28px, 5vw, 64px); max-width: 860px; }
.page-head h1 { font: 700 clamp(2.2rem, 5.4vw, 4rem)/1.05 var(--display); }
.answer { font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 68ch; }
.updated { font-size: .92rem; color: var(--ink-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .92rem; font-weight: 700; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 860px; }
.prose-sec { margin-top: 48px; }
.prose-sec h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.prose-sec a, .answer a, .prose-body a { font-weight: 700; }
.bullets { padding-left: 1.2em; } .bullets li { margin: .35em 0; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 14px 70px; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); border: 3px solid var(--ink); font: 700 1.1rem/1 var(--display); color: var(--ink-strong); }
.steps h3 { margin: 4px 0 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts div { padding: 14px 18px; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.facts dt { font-size: .85rem; font-weight: 800; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.sources { font-size: .95rem; } .sources li { margin: .3em 0; }
.table-wrap { overflow-x: auto; border: 3px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
th { font-weight: 800; background: var(--cream-2); }
.tag { display: inline-block; font: 700 .8rem/1 var(--display); padding: 5px 9px; border-radius: 999px; background: var(--cream-2); border: 2px solid var(--ink); }
.tag-new { background: var(--red); color: #fff; }
.stars { color: var(--orange); letter-spacing: 2px; } .stars-off { color: color-mix(in srgb, var(--ink) 22%, transparent); }

.course { margin-top: 56px; }
.course-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.course-head h2 a { text-decoration: none; }
.count { font-weight: 800; color: var(--ink-2); }
.dish-grid, .ing-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.dish-card a, .ing-grid a { position: relative; display: grid; gap: 4px; height: 100%; padding: 12px 14px 14px; text-decoration: none; background: var(--surface);
  border: 3px solid var(--line); border-radius: var(--radius); transition: transform .15s ease; }
.dish-card a:hover, .ing-grid a:hover { transform: translateY(-3px) rotate(-.6deg); }
.dish-art { display: grid; place-items: center; height: 104px; }
.dish-art img { max-height: 96px; width: auto; }
.dish-name, .ing-name { font: 700 1.08rem/1.15 var(--display); color: var(--ink-strong); }
.dish-meta, .ing-meta { font-size: .86rem; line-height: 1.35; color: var(--ink-2); }
.dish-card .tag { position: absolute; top: 10px; right: 10px; }

/* ---- HOME ---------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.lede { font-size: clamp(1.12rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 34ch; color: var(--ink); }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 8px 40px; align-items: end; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); }
.sec-head a { font-weight: 800; color: var(--ink-strong); }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

.intro, .menu-sec, .how-sec, .hist-sec, .faq-sec, .news-sec { margin-top: var(--step); }
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.intro .answer { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border: 3px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.numbers div { padding: 16px 18px; }
.numbers div:nth-child(odd) { border-right: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.numbers div:nth-child(-n+2) { border-bottom: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.numbers dt { font-size: .88rem; font-weight: 800; color: var(--ink-2); }
.numbers dd { margin: 0; font: 700 clamp(2rem, 4vw, 2.8rem)/1.05 var(--display); color: var(--ink-strong); }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* pot toy */
.pot-sec { margin-top: var(--step); padding: clamp(48px, 7vw, 96px) 0; background: var(--sky-2); border-block: 3px solid var(--line); }
.pot-wrap { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pot-copy p { color: var(--ink); }
.pot-toy { display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 20px; align-items: start; }
.tray { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); }
.tray button { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; font: 700 .68rem/1.1 var(--text); color: var(--ink); letter-spacing: -.01em; }
.tray button:hover { background: var(--cream); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.tray button:active img { transform: scale(.9); }
.tray img { width: 46px; height: 46px; object-fit: contain; transition: transform .12s; }
.tray span { text-align: center; }
.pot-stage { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 18px 16px; background: var(--cream); border: 3px solid var(--line); border-radius: var(--radius); text-align: center; }
.slots { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.slots li { width: 50px; height: 50px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); display: grid; place-items: center; background: #fff; }
.slots li.on { border-style: solid; border-color: var(--ink); animation: plop .32s cubic-bezier(.3, 1.6, .5, 1); }
.slots img { width: 38px; height: 38px; object-fit: contain; }
.pot-img { width: 104px; margin-top: 4px; }
.pot-img.bubble { animation: bubble .5s ease; }
.pot-out { margin: 0; font-weight: 700; min-height: 3.2em; }
.pot-out .made { display: grid; justify-items: center; gap: 4px; }
.pot-out .made img { height: 84px; width: auto; animation: rise .5s cubic-bezier(.3, 1.5, .5, 1); }
.pot-out .made a { font: 700 1.3rem/1.1 var(--display); color: var(--ink-strong); }
@keyframes plop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes bubble { 30% { transform: scale(1.08, .94); } 60% { transform: scale(.96, 1.05); } }
@keyframes rise { from { transform: translateY(30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 1020px) { .pot-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pot-toy { grid-template-columns: 1fr; }
  .pot-stage { order: -1; position: sticky; top: 104px; z-index: 3; grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; }
  .pot-stage .slots { grid-column: 1 / -1; }
  .pot-img { width: 64px; grid-row: 2 / span 2; }
  /* all 18 in view: a sideways strip hid most of them (Mike's friend missed them, 3 Dec 2026) */
  .tray { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 4px; padding: 10px; }
}

/* menu */
.menu-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.menu-course h3 { font: 700 1.5rem/1 var(--display); margin-bottom: 10px; }
.menu-course h3 a { text-decoration: none; }
.menu-course ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-course li a { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; text-decoration: none; background: var(--surface); border: 3px solid var(--line); border-radius: 16px; }
.menu-course li a:hover { background: var(--cream); }
.menu-course img { grid-row: 1 / span 2; width: 64px; height: 52px; object-fit: contain; }
.m-name { font-weight: 800; line-height: 1.2; color: var(--ink-strong); }
.m-dots { display: none; }
.m-ings { font-size: .85rem; line-height: 1.3; color: var(--ink-2); font-weight: 600; }
.m-count { display: none; }
.m-name .tag { font-size: .7rem; padding: 3px 7px; vertical-align: 2px; margin-left: 4px; }
@media (max-width: 960px) { .menu-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .menu-card { grid-template-columns: 1fr; } }

/* how it plays: three steps, deliberately not identical cards */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); }
.how li { position: relative; }
.how img { height: 100px; width: auto; margin-bottom: 14px; }
.how h3 { font: 700 1.7rem/1 var(--display); }
.how-2 { margin-top: 44px; } .how-3 { margin-top: 88px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } .how-2, .how-3 { margin-top: 0; } .how li { display: grid; grid-template-columns: 90px 1fr; column-gap: 16px; } .how img { grid-row: 1 / span 2; height: 80px; } }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--line); }
.timeline li { position: relative; padding: 26px 22px 0 0; }
.timeline li::before { content: ''; position: absolute; top: -10px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink); }
.timeline li:last-child::before { background: var(--orange); }
.timeline time { font: 700 2.4rem/1 var(--display); color: var(--ink-strong); }
.timeline h3 { margin: 8px 0 6px; }
.timeline p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--line); margin-left: 8px; } .timeline li { padding: 0 0 26px 26px; } .timeline li::before { top: 4px; left: -10px; } }

/* faq and news: heading on the left, content on the right on wide screens */
@media (min-width: 980px) {
  .faq-sec, .news-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 56px; align-items: start; }
  .faq-sec .sec-head, .news-sec .sec-head { grid-template-columns: 1fr; position: sticky; top: 110px; }
}
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 56px 16px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 3px 12px no-repeat, var(--cream-2); }
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat, var(--orange); }
.faq summary h3 { margin: 0; font-size: 1.12rem; }
.faq details p { padding: 0 20px 18px; margin: 0; max-width: 70ch; }

/* news */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }   /* no top rule: the 2010 frame is the edge (Mike, 5 Dec 2026: "Is the line at top meant to be there?") */
.news-list li:last-child a { border-bottom: 0; }
.news-list a { display: grid; grid-template-columns: 180px 1fr; column-gap: 24px; padding: 20px 4px; text-decoration: none; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.news-list a:hover h3 { text-decoration: underline; }
.news-list time { font-weight: 800; color: var(--ink-2); grid-row: 1 / span 2; }
.news-list h3 { margin: 0 0 4px; font: 700 1.4rem/1.15 var(--display); }
.news-list p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .news-list a { grid-template-columns: 1fr; } .news-list time { grid-row: auto; } }

/* closer */
.closer { position: relative; margin-top: var(--step); padding: clamp(56px, 8vw, 110px) 0; background: var(--orange); border-block: 3px solid var(--line); overflow: hidden; }
.closer h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); margin: 0 0 .25em; }
.closer p { font-size: 1.2rem; color: var(--ink-strong); max-width: 40ch; }
.closer .btn-play { background: var(--cream); box-shadow: inset 0 -5px 0 var(--cream-2), 0 3px 0 var(--ink); }
body .foot { margin-top: 0; }

/* ================================================================================================
   HOME: the living restaurant. A real Restaurant City restaurant runs on a sticky stage
   (assets/rc-home.js); the story scrolls over it as the game's own dialogs:
   - the hero is the game's text box (GenericTextBox: grey #e6e6e6 frame, #536868 outline, white inside)
   - every later beat is the game's help pop-up (HelpPopup: the tutorial girl and a white speech
     bubble with a #7f7f7f outline), opening with the pop-up's own 50% -> 105% -> 100% grow
   - secondary actions use the game's green OK button (#a8e621 with a #2e7812 outline)
   ================================================================================================ */
.pg-home .top { position: fixed; left: 0; right: 0; }

.live { position: relative; background: var(--lawn); }
.live-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--lawn) url(/art/home-poster.webp) 62% 50% / cover no-repeat; }
@media (max-width: 900px) { .live-stage { background-image: url(/art/home-poster-tall.webp); background-position: 50% 0; } }
.live.is-live .live-stage { background-image: none; }
.live-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease; }
.live.is-live .live-stage canvas { opacity: 1; }
.live-beats { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.beat { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--gutter) 56px;
  padding-left: max(var(--gutter), calc(50% - var(--wrap) / 2)); }
.beat > * { pointer-events: auto; }
.beat-hero { padding-top: 110px; }

/* the hero: the game's text box */
.hero-card { width: min(540px, 100%); margin: 13px; padding: clamp(22px, 2.6vw, 34px); background: #fff; border-radius: 18px;
  box-shadow: 0 0 0 10px var(--frame), 0 0 0 13px var(--frame-line), 0 18px 0 6px rgb(46 120 18 / .16); }
.hero-logo { width: clamp(190px, 20vw, 270px); margin: -6px 0 14px -6px; }
.hero-card h1 { font-size: clamp(2.3rem, 4.3vw, 3.7rem); line-height: 1.02; margin-bottom: .32em; }
.hero-card .lede { max-width: 36ch; color: var(--ink); }
.hero-card .cta-row { margin-top: 1.1em; }
.alpha-note { display: flex; gap: 12px; align-items: center;   /* the stamp sits in the middle of the note (Mike, 3 Dec 2026) */
   margin: 1.3em 0 0; font-size: .95rem; color: var(--ink-2); }
.stamp { flex: none; font: 700 .95rem/1 var(--display); color: #fff; background: var(--red); padding: 5px 9px 4px; border-radius: 6px;
  transform: rotate(-4deg); box-shadow: 0 0 0 2px var(--red-deep); }

/* the game's green OK button */
.btn-ok { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .5em 1.05em; border: 3px solid var(--ok-line); border-radius: 12px;
  background: var(--ok); color: #173f06; font: 700 1.05rem/1 var(--display); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgb(46 120 18 / .3), 0 3px 0 var(--ok-line); transition: transform .12s ease, box-shadow .12s ease; }
.btn-ok::before { content: ''; width: .95em; height: .95em; flex: none; background: #fdfdfd;
  clip-path: polygon(8% 52%, 24% 38%, 40% 56%, 78% 10%, 94% 24%, 40% 88%); filter: drop-shadow(0 0 0 var(--ok-line)); }
.btn-ok:hover { transform: translateY(-1px); color: #173f06; box-shadow: inset 0 -4px 0 rgb(46 120 18 / .3), 0 4px 0 var(--ok-line); }
.btn-ok:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgb(46 120 18 / .3), 0 1px 0 var(--ok-line); }

/* the kitchen getting ready, the HUD, and the pop-up when you tap something */
.live-loading { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 999px;
  background: rgb(255 255 255 / .92); border: 3px solid var(--bubble-line); font: 700 1.05rem/1 var(--display); color: var(--ink-strong); white-space: nowrap; }
.live.is-live .live-loading, .live.no-live .live-loading { display: none; }
.hud { position: absolute; z-index: 3; right: max(var(--gutter), calc(50% - var(--wrap) / 2)); bottom: 26px; margin: 0; display: flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 10px; background: #fff; border: 3px solid var(--frame-line); border-radius: 999px; box-shadow: 0 4px 0 rgb(46 120 18 / .25);
  font: 700 .98rem/1 var(--display); color: var(--ink-strong); }
.hud img { width: 30px; }
.hud b { font-size: 1.15rem; }
.hud-sep { width: 2px; height: 18px; background: var(--frame); }
.hud.bump { animation: bump .4s ease; }
/* a number that just changed: it jumps up, swells in the game's orange and settles (rc-live.js) */
.hud-n { position: relative; display: inline-block; min-width: .7em; text-align: center; font-size: 1.15rem; }
.hud .tick { display: inline-block; animation: hud-tick .75s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hud-tick { 0% { transform: translateY(45%) scale(.6); color: var(--orange-deep); }
  40% { transform: translateY(-12%) scale(1.6); color: var(--orange-deep); } 75% { color: var(--orange-deep); } 100% { transform: none; } }
.hud-plus { position: absolute; left: 50%; bottom: 70%; translate: -50% 0; pointer-events: none; white-space: nowrap;
  font: 700 1.35rem/1 var(--display); color: var(--orange); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; word-spacing: -.1em;
  animation: hud-plus 1.3s ease-out forwards; }
@keyframes hud-plus { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 15% { opacity: 1; transform: translateY(-6px) scale(1.3); }
  60% { opacity: 1; transform: translateY(-22px) scale(1); } 100% { opacity: 0; transform: translateY(-40px) scale(1); } }
.online [data-online-n] { display: inline-block; min-width: .6em; text-align: center; }
.online .tick { animation: hud-tick .75s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: reduce) { .hud .tick, .hud-plus, .hud.bump, .online .tick { animation: none; } }
@keyframes bump { 40% { transform: scale(1.12); } }
.tap-pop { position: absolute; z-index: 4; display: grid; justify-items: center; gap: 4px; min-width: 150px; max-width: 240px; padding: 12px 16px;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 6px var(--frame), 0 0 0 8.5px var(--frame-line), 0 10px 0 4px rgb(46 120 18 / .2);
  text-align: center; font-size: .92rem; line-height: 1.3; color: var(--ink); pointer-events: none;
  transform: translate(-50%, calc(-100% - 22px)) scale(.5); opacity: 0; transform-origin: 50% 100%; }
.tap-pop.is-open { animation: tap-open .32s linear forwards; }
.tap-pop b { font: 700 1.2rem/1.1 var(--display); color: var(--ink-strong); }
.tap-pop .coin-line { display: inline-flex; align-items: center; gap: 6px; font: 700 1rem/1 var(--display); color: #2e7812; }
.tap-pop .coin-line img { width: 24px; }
.tap-pop.is-served { background: #fffbe0; }
@keyframes tap-open {            /* the help pop-up's grow, from where you tapped */
  0% { opacity: 0; transform: translate(-50%, calc(-100% - 22px)) scale(.5); } 14.3% { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(.7); }
  42.9% { transform: translate(-50%, calc(-100% - 22px)) scale(.96); } 71.4% { transform: translate(-50%, calc(-100% - 22px)) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(1); } }

/* every other beat: the game's help pop-up */
.help { display: flex; align-items: center; width: min(600px, 100%); transform-origin: 30% 60%; }
.helper { flex: none; align-self: flex-end; width: clamp(104px, 11vw, 150px); aspect-ratio: 163.3 / 222.5;
  background: url(/art/ui/helper.svg) 0 0 / 1000% 600% no-repeat; position: relative; z-index: 1; }
.bubble { position: relative; flex: 1; min-width: 0; margin: 0 0 12% 18px; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px) clamp(16px, 1.8vw, 22px);
  background: #fff; border: 3px solid var(--bubble-line); border-radius: 22px; box-shadow: 0 14px 0 2px rgb(46 120 18 / .14); }
.bubble::before { content: ''; position: absolute; left: -15px; top: 40%; width: 24px; height: 24px; background: #fff;
  border: solid var(--bubble-line); border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; transform: rotate(45deg) skew(14deg, 14deg); }
.bubble h2 { font-size: clamp(1.7rem, 2.7vw, 2.35rem); margin-bottom: .3em; }
.bubble p { margin: 0; }
.bubble .btn-ok, .bubble .more { margin-top: 1em; }
.bubble .more { display: inline-block; font-weight: 800; color: var(--ink-strong); }
.bubble .cta-row { margin: 1.1em 0 0; }
.bubble-stamp { position: absolute; top: -15px; left: 26px; }     /* "Coming soon" on the Original Kopi beat: the Alpha stamp */
/* The collab's logo in the empty space right of the two-line heading (the logo's own picture, no frame) */
.bubble-logo { float: right; width: clamp(96px, 8.6vw, 132px); height: auto; margin: -4px -10px 4px 8px; }
@media (max-width: 760px) { .bubble-logo { float: none; display: block; width: 132px; margin: 4px 0 6px; } }   /* phones: no room beside the heading */
.rc-js .help { opacity: 0; transform: scale(.5); }
.rc-js .help.is-open { animation: help-open .32s linear both; }
@keyframes help-open {            /* HelpPopup frames 1-8 at 25 fps */
  0% { opacity: 0; transform: scale(.5); } 14.3% { opacity: 1; transform: scale(.7); } 28.6% { transform: scale(.85); }
  42.9% { transform: scale(.96); } 57.1% { transform: scale(1.03); } 71.4% { transform: scale(1.05); }
  85.7% { transform: scale(1.04); } 100% { opacity: 1; transform: none; }
}

/* phones and tablets: the restaurant stays in the top half, the dialogs come up from the bottom */
@media (max-width: 900px) {
  .beat { align-items: flex-end; padding: 88px var(--gutter) 28px; }
  .beat-hero { min-height: 100svh; padding-bottom: 20px; }
  .hero-card { margin: 10px; box-shadow: 0 0 0 8px var(--frame), 0 0 0 10.5px var(--frame-line), 0 12px 0 5px rgb(46 120 18 / .16); }
  .hero-logo { display: none; }
  .hero-card .lede { font-size: 1.05rem; }
  .alpha-note { font-size: .88rem; }
  .help { width: 100%; }
  .helper { width: 86px; margin-right: -6px; }
  .bubble { margin: 0 0 18% 12px; }
  .bubble h2 { font-size: 1.6rem; }
  .bubble p { font-size: 1rem; }
}
@media (max-width: 900px) { .hud { top: 140px; bottom: auto; right: var(--gutter); font-size: .88rem; } .hud b { font-size: 1rem; } }
@media (max-width: 380px) { .helper { width: 70px; } .hero-card .cta-row .btn-ok { display: none; } }
@media (prefers-reduced-motion: reduce) { .rc-js .help { opacity: 1; transform: none; } }

/* ---- below the story: the same world to the footer ---------------------------------------------
   The page stays on the lawn. Every block is a piece of the game's own UI: text boxes and panels are
   the game's window (grey frame, slate outline, white inside), the FAQ is the tutorial girl again,
   news is the game's newsletter, and the page ends on the road. */
.pg-home .intro { margin-top: 0; padding-top: var(--step); }
.pg-home h2 { color: #1f3d10; }
.pg-home .sec-head p, .pg-home .pot-copy p { color: #2c4a1a; }
.pg-home .sec-head a { color: #173f06; }
.window { background: #fff; border-radius: 18px; margin: 13px; box-shadow: 0 0 0 10px var(--frame), 0 0 0 13px var(--frame-line), 0 16px 0 6px rgb(46 120 18 / .16); }

.pg-home .intro-grid { padding: clamp(22px, 3vw, 40px); align-items: center; }
.pg-home .numbers { border: 0; gap: 10px; }
.pg-home .numbers div { position: relative; padding: 12px 14px 12px 74px; border: 0 !important; background: #f2f2f2; border-radius: 14px; min-height: 76px; }
.pg-home .numbers img { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 54px; height: 50px; object-fit: contain; }
.pg-home .numbers dd { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.pg-home .pot-sec { background: none; border: 0; padding: var(--step) 0 0; margin-top: 0; }
.pg-home .pot-toy { padding: 18px; }
.pg-home .pot-toy .tray { background: #f2f2f2; border: 0; }

.pg-home .menu-card { padding: clamp(18px, 2.4vw, 30px); }
.pg-home .menu-course li a { background: #f2f2f2; border-color: transparent; }
.pg-home .menu-course li a:hover { background: #e8f7cf; }

.pg-home .timeline li::before { background: #fff; border-color: var(--frame-line); }
.pg-home .timeline li:last-child::before { background: var(--ok); border-color: var(--ok-line); }
.pg-home .timeline::before, .pg-home .timeline { border-color: var(--frame-line); }
.pg-home .timeline p { color: #2c4a1a; }

.faq-help { width: 100%; max-width: 1000px; align-items: flex-start; }
.faq-help .helper { align-self: flex-start; position: sticky; top: 110px; width: clamp(110px, 12vw, 160px); }
.faq-help .bubble { margin: 30px 0 0 18px; }
.faq-help .bubble::before { top: var(--tail, 70px); }   /* site.js keeps it pointing at the helper while she stays put (Mike, 3 Dec 2026) */
.pg-home .faq details { border-width: 0; background: #f2f2f2; border-radius: 14px; }
.pg-home .faq details[open] { background: #fff; box-shadow: inset 0 0 0 3px var(--frame); }

.news-window { overflow: hidden; }
.news-head { width: 100%; height: clamp(120px, 15vw, 180px); object-fit: cover; object-position: 50% 0; }
.pg-home .news-list { border-top: 0; padding: 4px clamp(16px, 2.4vw, 30px) 10px; }
.pg-home .news-list li:last-child a { border-bottom: 0; }

/* the end of the page is the road in front of the restaurant */
.pg-home .closer { background: none; border: 0; margin-top: var(--step); padding-bottom: clamp(70px, 9vw, 120px); }
.pg-home .closer h2 { color: #1f3d10; }
.pg-home .closer p { color: #2c4a1a; }
.pg-home .closer .btn-play { background: var(--orange); box-shadow: inset 0 -5px 0 var(--orange-deep), 0 3px 0 var(--ink); }
.pg-home .closer-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.table-for-you { position: relative; width: min(100%, 540px); justify-self: center; }
.table-for-you img { position: absolute; height: auto; max-width: none; }
.rc-js .closer:not(.is-in) .drop { opacity: 0; transform: translateY(-60px); }
.closer.is-in .drop { animation: drop-in .7s var(--d, 0s) both; }
.closer.is-in .you { animation: drop-in .7s var(--d, 0s) both; }
@keyframes drop-in {            /* the game's drop-in bounce */
  0% { opacity: 0; transform: translateY(-60px); } 36% { opacity: 1; transform: translateY(0); } 55% { transform: translateY(-14px); }
  73% { transform: translateY(0); } 86% { transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }
/* The table's easter egg (rc-live.js "the closing table"). Chairs slide back along the floor (--px/--py: a full pull, in
   cqw of the table's width; --k: how far, 0..1) with a small overshoot. Your chair starts a third of the way out, as
   the invitation it always was. What was under a chair pops up with the game's pop; collected coins float up. */
.table-for-you { container-type: inline-size; }
.table-for-you .tile, .table-for-you img:not(.chair):not(.dish):not(.find) { pointer-events: none; }
.table-for-you .chair { --k: 0; translate: calc(var(--px) * var(--k)) calc(var(--py) * var(--k)); cursor: grab; touch-action: none;
  transition: translate .42s cubic-bezier(.34, 1.56, .64, 1); -webkit-user-select: none; user-select: none; }
.table-for-you .chair.is-pulled { --k: 1; }
.closer.is-in .table-for-you .you:not(.is-touched) { --k: .35; transition-delay: 1.6s; }
.table-for-you .dish { cursor: pointer; transition: transform 40ms linear; }
.table-for-you .dish.bite { animation: rc-bite .22s linear; }
@keyframes rc-bite { 0% { scale: 1; } 40% { scale: 1.12 .9; } 100% { scale: 1; } }
.table-for-you .dish.refill { animation: drop-in .7s both; }
.table-for-you .find { opacity: 0; scale: .2; pointer-events: none; cursor: pointer; transition: opacity .15s, scale .3s cubic-bezier(.34, 1.56, .64, 1); }
.table-for-you .find.is-shown { opacity: 1; scale: 1; pointer-events: auto; animation: rc-find 1.8s 0.4s ease-in-out infinite; }
@keyframes rc-find { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5%; } }
.table-for-you .find.is-taken { opacity: 0; translate: 0 -60%; scale: 1.3; pointer-events: none; animation: none; transition: opacity .45s, translate .45s ease-out, scale .45s; }
.table-for-you .twinkle { opacity: 0; pointer-events: none; }
.closer.is-in .table-for-you:not(.is-found) .twinkle { animation: rc-twinkle 2.6s 2.6s linear infinite; }
@keyframes rc-twinkle { 0%, 60%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 70% { opacity: 1; scale: 1.15; } 80% { opacity: 1; scale: .9; rotate: 45deg; } 90% { opacity: 0; scale: .3; rotate: 90deg; } }
/* the floating "+5" with the game's coin note: white Huggable outlined dark green, like the game's coins-added */
.tfy-plus { position: absolute; z-index: 3; display: flex; align-items: center; gap: 4px; translate: -50% -100%; pointer-events: none; white-space: nowrap;
  font: 700 clamp(1rem, 2.4cqw + .6rem, 1.5rem)/1 var(--display); color: #fff; -webkit-text-stroke: 5px #2E7812; paint-order: stroke fill;
  animation: rc-plus 1.3s ease-out both; }
.tfy-plus img { position: static; width: 2.2em; height: auto; }
@keyframes rc-plus { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 30% { transform: scale(1); }
  80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }
/* The letter under your chair: a 2010 pop-up (frame, close cross, title white outlined brown, brown sentence) */
.seat-note .seat-note-in { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 6px 8px 2px; }
.seat-note .seat-note-in:focus { outline: none; }
.pg-home .closer .seat-note .seat-title { margin: 0; font: 700 clamp(1.5rem, 4vw, 1.9rem)/1.1 var(--display); color: #fff;   /* beats .pg-home .closer h2's green */ -webkit-text-stroke: 7px #6B5943; paint-order: stroke fill; }
.seat-note .seat-note-in p { margin: 0; color: #6B5943; }
@media (max-width: 600px) { .pg-home .closer .seat-note .seat-title { -webkit-text-stroke-width: 5px; } }
.seat-note .btn10-row { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .table-for-you .chair, .table-for-you .find { transition: none; } .table-for-you .find.is-shown, .closer.is-in .table-for-you .twinkle { animation: none; } }
@media (max-width: 900px) { .pg-home .closer-in { grid-template-columns: 1fr; } .table-for-you { width: min(80%, 360px); } }
.foot { position: relative; background: #808080; color: #fff; padding-top: 92px;
  background-image: linear-gradient(#c9a4a4 0 34px, #a77f7f 34px 38px, #808080 38px), repeating-linear-gradient(90deg, transparent 0 60px, rgb(0 0 0 / .08) 60px 63px);
  background-size: 100% 100%, 100% 34px; background-repeat: no-repeat; }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: 66px; height: 6px;
  background: repeating-linear-gradient(90deg, #fff 0 70px, transparent 70px 150px); opacity: .9; }
.foot a, .foot h2 { color: #fff; }
.foot-legal { border-top-color: rgb(255 255 255 / .3); }
.foot-join .btn { background: #fff; color: var(--ink-strong); }
@media (max-width: 900px) {
  .faq-help .helper { position: static; width: 80px; }
  .faq-help { flex-direction: column; }
  .faq-help .bubble { margin: 18px 0 0; }
  .faq-help .bubble::before { left: 34px; top: -15px; transform: rotate(135deg) skew(14deg, 14deg); }
  .pg-home .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* stat cards on phones: smaller picture, so the words and numbers stay inside the box */
@media (max-width: 560px) {
  .pg-home .numbers { gap: 8px; }
  .pg-home .numbers div { padding: 10px 10px 10px 54px; min-height: 68px; min-width: 0; }
  .pg-home .numbers img { left: 7px; width: 40px; height: 38px; }
  .pg-home .numbers dt { font-size: .8rem; line-height: 1.2; }
  .pg-home .numbers dd { font-size: 1.7rem; }
}

/* ---- reduced motion: everything lands in its final state ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* small line above a page title (date, course): plain text, not tracked caps */
.kicker { font-weight: 800; color: var(--ink-2); margin: 0 0 .6em; }
.kicker a { text-decoration: none; } .kicker a:hover { text-decoration: underline; }

/* ---- inner pages: the same world as the home page ----------------------------------------------
   Titles sit on the lawn; everything you read is inside one of the game's windows (grey frame, slate
   line, white inside); recipes and ingredients are the game's "new dish" card; the page ends on the
   road. Panels inside a window are the game's light grey (#f2f2f2) and turn green on hover. */
body:not(.pg-home) main { padding-bottom: var(--step); }
main > .page-head h1 { color: #1f3d10; }
main > .page-head .answer, main > .page-head .updated, main > .page-head .crumbs { color: #2c4a1a; }
main > .page-head .answer a { color: #173f06; }
body:not(.pg-home) main > section.wrap:not(.page-head), main > article.prose, .dish-intro, .dish-body {
  background: #fff; border-radius: 18px; box-shadow: 0 0 0 10px var(--frame), 0 0 0 13px var(--frame-line), 0 16px 0 6px rgb(46 120 18 / .16); }
body:not(.pg-home) main > section.wrap:not(.page-head), main > article.prose { width: min(100% - 2 * var(--gutter) - 26px, var(--wrap)); margin-top: 52px; padding: clamp(20px, 3vw, 40px); }
main > article.prose { max-width: 920px; }
/* The page title lines up with the frame under it (Mike, 3 Dec 2026: "Are these meant to be off alignment?"):
   the title block is as wide as the frames and starts at the frame's left edge; only its text keeps the
   860px reading width. The account page's frames are 760px, so its title block is too. */
body:not(.pg-home) main > .page-head.wrap { width: min(100% - 2 * var(--gutter) - 26px, var(--wrap)); max-width: none; }
body:not(.pg-home) main > .page-head.wrap > * { max-width: 860px; }
body:not(.pg-home) main > .page-head.ac-head { max-width: 760px; }
main > article.prose .page-head { padding-top: 0; }
main > article.prose .page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.crumbs { padding-top: 18px; }
main > article.prose .crumbs { padding-top: 0; }
.dish .crumbs, .ingredient .crumbs { color: #2c4a1a; }
.course { margin-top: 52px; }
.course-head h2 { margin-bottom: .2em; }

/* tiles inside a window */
.dish-card a, .ing-grid a { background: #f2f2f2; border: 0; border-radius: 14px; }
.dish-card a:hover, .ing-grid a:hover { background: #e8f7cf; }
.dish-art { height: 118px; } .dish-art img { width: 100%; height: 116px; object-fit: contain; transition: transform .2s cubic-bezier(.3, 1.7, .5, 1); }
.dish-card a:hover .dish-art img { transform: scale(1.08) rotate(-3deg); }
.ing-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ing-grid a { justify-items: center; text-align: center; padding: 14px 10px; }
.ing-grid img { width: 64px; height: 64px; object-fit: contain; }

/* a recipe or ingredient page: the card on the left, the window with the facts on the right */
.dish-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 60px); align-items: start; margin-top: 10px; }
.dish-intro { margin: 13px; padding: clamp(20px, 3vw, 36px); }
.dish-intro h1 { font: 700 clamp(2.2rem, 4.6vw, 3.6rem)/1.05 var(--display); }
.dish-body { margin: 56px 13px 0; padding: clamp(20px, 3vw, 40px); }
.dish-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.4em; }
.dish-body h2:first-child { margin-top: 0; }
.h-small { font: 700 1.35rem/1.2 var(--display); margin: 1.2em 0 .5em; }
.card { position: relative; margin: 13px; padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2vw, 26px) 22px; background: #fff; border-radius: 18px; text-align: center;
  box-shadow: 0 0 0 10px #ffd83a, 0 0 0 13px #cf9312, 0 16px 0 6px rgb(46 120 18 / .16); rotate: -2deg; transition: rotate .3s cubic-bezier(.3, 1.7, .5, 1);
  animation: card-in .32s steps(8, jump-none) both; }
.card:hover { rotate: 0deg; }
.card-ing { box-shadow: 0 0 0 10px #7dbbf0, 0 0 0 13px #2f6fae, 0 16px 0 6px rgb(46 120 18 / .16); rotate: 2deg; }
.card-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.card-art::before { content: ''; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle closest-side, #fff200 0 78%, #fffbb4 79% 100%); }
.card-ing .card-art::before { background: radial-gradient(circle closest-side, #d6efff 0 78%, #eef8ff 79% 100%); }
.card-art > img:first-child { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84%; height: auto; }
.card-ing .card-art > img:first-child { width: 58%; }
.card-spark { position: absolute; width: 7%; left: 18%; bottom: 18%; animation: twinkle 1.8s ease-in-out infinite; }
.card-spark.s2 { left: auto; right: 16%; bottom: auto; top: 14%; width: 5%; animation-delay: .9s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
/* the game's pop-up curve: 50%, 70%, 85%, 96%, 103%, 105%, 104%, 100% at 25 frames a second */
@keyframes card-in { 0% { scale: .5; } 14% { scale: .7; } 28% { scale: .85; } 42% { scale: .96; } 57% { scale: 1.03; } 71% { scale: 1.05; } 85% { scale: 1.04; } 100% { scale: 1; } }
.card figcaption { display: grid; gap: 2px; margin-top: 8px; }
.card-name { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.1 var(--display); color: var(--ink-strong); }
.card-meta { font-weight: 800; font-size: .95rem; color: var(--ink-2); }

/* the ingredient slots: like the pot's tray */
.ing-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ing-list a { position: relative; display: grid; justify-items: center; gap: 4px; width: 108px; padding: 12px 6px 10px; background: #f2f2f2; border-radius: 14px;
  text-decoration: none; font-weight: 800; font-size: .92rem; line-height: 1.2; text-align: center; color: var(--ink-strong); }
.ing-list a:hover { background: #e8f7cf; }
.ing-list img { width: 56px; height: 56px; object-fit: contain; transition: transform .2s cubic-bezier(.3, 1.7, .5, 1); }
.ing-list a:hover img { transform: scale(1.12) rotate(-6deg); }
.ing-list b { position: absolute; top: 6px; right: 7px; font: 700 .85rem/1 var(--display); background: var(--orange); color: var(--ink-strong); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 6px; }
.facts.small { margin-top: 18px; border: 0; background: #f2f2f2; border-radius: 14px; }
.facts.small div { border-bottom-color: rgb(0 0 0 / .08); }

/* tables inside a window */
.table-wrap { border: 0; border-radius: 14px; background: #f7f7f7; }
th { background: #e6e6e6; }
tr.mark th, tr.mark td { background: #e8f7cf; }
.levels-table td:first-child, .levels-table th[scope="row"] { font: 700 1.05rem/1 var(--display); }
.plain { padding-left: 1.2em; } .plain li { margin: .4em 0; }

/* the food quiz: each question a grey panel; answers turn green (right) or red (wrong) */
.quiz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: q; }
.quiz-q { counter-increment: q; background: #f2f2f2; border-radius: 14px; padding: 16px 18px; }
.quiz-text { font: 700 1.15rem/1.3 var(--display); color: var(--ink-strong); }
.quiz-text::before { content: counter(q) '. '; color: var(--ink-2); }
.quiz-choices { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.quiz-choice { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; background: #fff; border: 3px solid transparent; border-radius: 12px;
  font: 700 1rem/1.2 var(--text); color: var(--ink-strong); cursor: pointer; text-align: left; }
.quiz-choice:hover:not(:disabled) { border-color: var(--ok-line); }
.quiz-choice img { width: 36px; height: 36px; object-fit: contain; }
.quiz-choice.is-right { background: var(--ok); border-color: var(--ok-line); }
.quiz-choice.is-wrong { background: #f6c4c4; border-color: var(--red); }
.quiz-choice:disabled { cursor: default; }
.quiz-answer summary { cursor: pointer; font-weight: 800; color: var(--ink-2); }
.quiz-score { position: sticky; bottom: 16px; margin: 18px 0 0; text-align: center; font: 700 1.2rem/1 var(--display); }
.quiz-score:not(:empty) { background: #fff; padding: 12px; border-radius: 14px; box-shadow: 0 0 0 3px var(--ok-line); }

/* the server status page */
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #f2f2f2; border-radius: 14px; font-weight: 800; }
.status-list b { margin-left: auto; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: #c8c8c8; flex: none; }
[data-ok="yes"] .status-dot { background: var(--ok); box-shadow: 0 0 0 3px rgb(46 120 18 / .25); }
[data-ok="no"] .status-dot { background: var(--red); }

@media (max-width: 860px) {
  .dish-hero { grid-template-columns: 1fr; }
  .card { width: min(100% - 26px, 290px); justify-self: center; }
  .ing-list a { width: calc(33.3% - 8px); min-width: 92px; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } .card-spark { display: none; } }
/* panels inside a window: the game's light grey, no outline */
.steps li { background: #f2f2f2; border: 0; border-radius: 14px; }
.steps li::before { border-color: var(--orange-deep); }
.facts { border: 0; background: #f2f2f2; border-radius: 14px; }
.facts div { border-bottom-color: rgb(0 0 0 / .08); }
main .faq details { border: 0; background: #f2f2f2; border-radius: 14px; }
main .faq details[open] { background: #fff; box-shadow: inset 0 0 0 3px var(--frame); }
@media (max-width: 600px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dish-art { height: 92px; } .dish-art img { height: 90px; }
  .dish-card a { padding: 10px 10px 12px; }
  .dish-card .tag { top: 6px; right: 6px; }
  .ing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .levels-table { font-size: .88rem; } .levels-table th, .levels-table td { padding: 8px 8px; }
  body:not(.pg-home) main > section.wrap:not(.page-head), main > article.prose, .dish-body, .dish-intro { padding: 18px 14px; }
}
/* long words (Pomegranate, web addresses) must never push a phone page sideways */
.dish-hero > * { min-width: 0; }
.dish-intro h1, main h1 { overflow-wrap: break-word; }   /* only breaks a word that can never fit; "anywhere" split "answer-ed" on 360 px phones */
code { overflow-wrap: anywhere; }
@media (max-width: 600px) { .dish-intro h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); } }
.newsletter p, .prose-body p { overflow-wrap: anywhere; }

/* ================================================================================================
   HOME: Gourmet Street (src/pages/home.mjs street(), assets/rc-street.js). The game's street scenery
   and restaurant fronts (tools/export_street.py), drawn in game pixels inside .st-view and scaled
   by --k. Without JavaScript or with reduced motion it is a still street that scrolls sideways,
   each restaurant's summary on the road under it. With .is-walk the stage sticks and scrolling
   walks the chef along it.
   ================================================================================================ */
.street { position: relative; background: #bddbdc; }
.street-head { padding-block: clamp(48px, 7vw, 88px) 18px; }
.street-head h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 0 0 .2em; color: #2c5a63; }
.street-head p { max-width: 54ch; font-size: 1.15rem; color: #2c5a63; }
.street-skip { font-weight: 800; color: var(--ink-strong); white-space: nowrap; }
.street-stage { --k: 1; --base: 372px; position: relative; height: 640px; overflow-x: auto; overflow-y: hidden;
  background: linear-gradient(#bddbdc 0 calc(var(--base) + 60px), #99978f 0); }
.st-view { position: absolute; left: 0; top: var(--base); width: calc(9 * 420px + 640px); height: 0; transform-origin: 0 0; }
.st-layer { position: absolute; left: 0; right: 0; background-repeat: repeat-x; }
.st-world { position: absolute; left: 0; top: 0; transform: translateX(560px); }
.st-greg { position: absolute; }
.st-greg img { width: 100%; height: auto; display: block; }
.st-shops { list-style: none; margin: 0; padding: 0; }
.st-front { position: absolute; display: block; }
.st-front img { width: 100%; height: 100%; display: block; }
.st-front:focus-visible { outline: 4px solid var(--ok-line); outline-offset: 6px; border-radius: 6px; }
.st-sign { position: absolute; font-family: var(--display); font-weight: 700; color: #000; line-height: 16px; text-align: center; white-space: nowrap; pointer-events: none; }
.st-card { position: absolute; pointer-events: none; transform-origin: 25% 60%; }
.st-card > img:first-child { width: 100%; height: 100%; display: block; }
.st-pic { position: absolute; width: 50px; height: 50px; object-fit: contain; background: #fff; border-radius: 2px; padding: 4px; }
.st-card span { position: absolute; font-family: var(--display); font-weight: 700; text-align: center; line-height: 1.1; white-space: nowrap; }
.st-rank { color: #fff; -webkit-text-stroke: 4px #2e5f75; paint-order: stroke fill; }
.st-name { color: #000; }
.st-point { color: #fff; -webkit-text-stroke: 3px #3a6a2a; paint-order: stroke fill; }
.st-info { position: absolute; left: calc(var(--x, 0) * 1px); top: 54px; width: 340px; margin-left: -170px; padding: 12px 16px 14px;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 5px var(--frame), 0 0 0 7px var(--frame-line); }
.st-info h3 { margin: 0 0 .2em; font-size: 1.35rem; }
.st-info h3 a { color: var(--ink-strong); text-decoration: none; }
.st-info p { margin: 0; font-size: .95rem; line-height: 1.35; }
.st-info .st-go { display: none; }
.st-chef, .st-panel { display: none; }

/* walking */
.street.is-walk .street-track { height: calc(100vh + var(--n) * 62vh); height: calc(100svh + var(--n) * 62svh); }
.street.is-walk .street-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.street.is-walk .st-view { width: auto; }
.street.is-walk .st-info { display: none; }
.street.is-walk .st-card { opacity: 0; }
.street.is-walk .st-shop.is-here .st-card { animation: help-open .32s linear both; }
.street.is-walk .st-chef { display: block; position: absolute; left: 50%; translate: -50% 0; opacity: 0; transition: opacity .4s; pointer-events: none; }
.street.is-walk.has-chef .st-chef { opacity: 1; }
.street.is-walk .st-chef::after { content: none; }
.street.is-walk .st-panel { display: block; position: absolute; left: 50%; bottom: 18px; width: min(560px, calc(100% - 2 * var(--gutter) - 26px));
  translate: -50% 0; padding: 16px 20px 12px; background: #fff; border-radius: 18px; opacity: 0;
  box-shadow: 0 0 0 9px var(--frame), 0 0 0 12px var(--frame-line), 0 14px 0 4px rgb(0 0 0 / .14); }
.street.is-walk .st-panel.is-open { animation: help-open .32s linear both; }
.st-panel h3 { margin: 0 0 .15em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.st-panel h3 a { color: var(--ink-strong); text-decoration: none; }
.st-panel p { margin: 0; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: .75em; }
.st-panel .st-go { display: inline-flex; white-space: nowrap; }
.st-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto !important; font-weight: 800; color: var(--ink-2); font-size: .9rem; white-space: nowrap; }
.st-nav button { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--frame-line); background: var(--frame); font: 800 1.6rem/1 var(--display); color: var(--ink-strong); cursor: pointer; }
.st-nav button:disabled { opacity: .35; cursor: default; }
/* the heading sits in the sky at the start of the walk and scrolls away as you go */
.street.is-walk .street-head { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding-top: 118px; }
@media (max-width: 900px) { .street.is-walk .street-head { padding-top: 156px; } }
@media (max-width: 700px) {
  .street-head p { font-size: 1.02rem; }
  .street.is-walk .st-panel { bottom: 14px; padding: 14px 16px 10px; }
  .st-panel p { font-size: .98rem; }
}

/* ================================================================================================
   The history comic (src/pages/comic.mjs, assets/rc-comic.js). Each page is a scene drawn from the
   game's art on an 800 x 500 page (sizes in % and cqw, so it scales as one picture), with a caption
   box under it. Paged: one page at a time with the game's pop-up grow; otherwise the pages stack.
   ================================================================================================ */
.comic { max-width: 880px; margin-inline: auto; }
.comic-head { margin-bottom: 18px; }
.comic-head p { margin: .3em 0 0; color: var(--ink-2); }
.comic-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.comic.is-paged .comic-pages { display: block; }
.comic-page[hidden] { display: none; }
.comic-art { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: hidden; border-radius: 16px;
  background: linear-gradient(var(--sky, #bddbdc) 0 var(--road, 88%), #99978f 0);
  box-shadow: 0 0 0 6px var(--frame), 0 0 0 9px var(--frame-line), 0 12px 0 4px rgb(0 0 0 / .12); margin: 9px; }
.comic.is-paged .comic-art { cursor: pointer; -webkit-user-select: none; user-select: none; }
.comic-art img, .comic-art span, .comic-art p, .comic-art div:not(.night) { position: absolute; }
.comic-art img { display: block; height: auto; }
.comic-art .night { position: absolute; inset: 0; filter: brightness(.58) saturate(.75) hue-rotate(8deg); }
.c-sign { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; color: #000; white-space: nowrap; line-height: 1; }
.say { margin: 0; padding: .7em .9em; background: #fff; border: 3px solid var(--bubble-line); border-radius: 16px;
  font: 700 clamp(11px, 2.3cqw, 19px)/1.25 var(--text); color: var(--ink-strong); box-shadow: 0 4px 0 rgb(0 0 0 / .12); }
.say::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border: solid var(--bubble-line); border-width: 0 0 3px 3px; }
.say-left::after { left: 22px; bottom: -10px; transform: rotate(-45deg); }
.say-down::after { left: 40%; bottom: -10px; transform: rotate(-45deg); }
.times-date { font: 700 1.9cqw/1 var(--display); color: #5b5046; text-align: right; }
.col { display: flex; flex-direction: column; gap: .5em; padding: 1.2cqw 1.4cqw; color: #3a332c; font: 1.9cqw/1.35 var(--text); overflow: hidden; }
.comic-art .col > * { position: static; }
.col b { font: 700 3.1cqw/1.05 var(--display); color: #c0392b; }
.comic-art .c-card { display: block; }
.comic-art .c-pic { object-fit: contain; background: #fff; border-radius: 2px; padding: .4cqw; box-sizing: border-box; }
.c-rank { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; line-height: 1;
  color: #fff; -webkit-text-stroke: .45cqw #2e5f75; paint-order: stroke fill; }
.col-lead b { font-size: 5.6cqw; padding-left: .06em; }
.col-lead span { font-size: 2.4cqw; }
.times-ico { opacity: .95; }
.clip { margin: 0; padding: 1cqw 1.3cqw; background: #fffdf4; border: 2px solid #d8ceb4; border-radius: 4px; box-shadow: 0 3px 0 rgb(0 0 0 / .12);
  font: 600 clamp(9px, 1.75cqw, 15px)/1.3 var(--text); color: #3a332c; rotate: -2deg; }
.clip[data-d="1"] { rotate: 1.5deg; }
.clip time { display: block; font: 700 1.15em/1.2 var(--display); color: #c0392b; margin-bottom: .2em; }
.closed-word { display: flex; align-items: center; justify-content: center; font: 700 2.3cqw/1 var(--display); color: #4c3a22; }
.comic-cap { margin: 22px 9px 0; padding: 16px 22px 18px; background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 rgb(0 0 0 / .1); }
.comic-date { margin: 0; font: 700 .95rem/1 var(--display); color: var(--orange-deep); letter-spacing: .02em; }
.comic-cap h2, .comic-cap h3, .comic-cap h4 { margin: .25em 0 .2em; font-size: clamp(1.5rem, 3vw, 2rem); outline: none; }
.comic-cap p { margin: 0; }
.comic-cap .cta-row { margin-top: .9em; }
.comic-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.comic-nav[hidden] { display: none; }
.comic-nav > button { width: 48px; height: 48px; border-radius: 12px; border: 3px solid var(--frame-line); background: var(--frame);
  font: 800 1.7rem/1 var(--display); color: var(--ink-strong); cursor: pointer; }
.comic-nav > button:disabled { opacity: .35; cursor: default; }
.comic-dots { display: flex; gap: 8px; }
.comic-dots button { width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.comic-dots button::before { content: ''; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--frame-line); }
.comic-dots button[aria-current="step"]::before { background: var(--ok); border-color: var(--ok-line); transform: scale(1.2); }
/* turning the page: the game's pop-up grow, then the pieces land */
.comic.is-paged .comic-page.is-on .comic-art { animation: comic-in .36s linear both; }
.comic.is-paged .comic-page.is-on .comic-cap { animation: rise .4s .08s ease-out both; }
@keyframes comic-in { 0% { opacity: 0; transform: scale(.5) rotate(-2deg); } 14.3% { opacity: 1; transform: scale(.7) rotate(-1.5deg); }
  42.9% { transform: scale(.96) rotate(-.4deg); } 71.4% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
.comic.is-paged .comic-page.from-back .comic-art { animation-name: comic-back; }
@keyframes comic-back { 0% { opacity: 0; transform: scale(.5) rotate(2deg); } 14.3% { opacity: 1; } 71.4% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
.comic.is-paged .is-on .pop { animation: help-open .32s linear both; animation-delay: calc(.35s + var(--d, 0) * .18s); }
.comic.is-paged .is-on [data-d="1"] { --d: 1; } .comic.is-paged .is-on [data-d="2"] { --d: 2; }
.comic.is-paged .is-on .say { animation: help-open .32s .55s linear both; transform-origin: 20% 100%; }
.comic.is-paged .is-on .float { animation: float 2.6s ease-in-out infinite; }
.comic.is-paged .is-on .float-2 { animation-delay: -1.3s; }
@keyframes float { 50% { translate: 0 -3%; } }
.comic.is-calm .comic-page .comic-art, .comic.is-calm .comic-page .comic-cap, .comic.is-calm .comic-page * { animation: none !important; }
@media (max-width: 600px) {
  .comic-cap { padding: 14px 16px 16px; }
  .say { padding: .45em .6em; border-width: 2px; border-radius: 10px; }
  .say::after { width: 10px; height: 10px; border-width: 0 0 2px 2px; bottom: -7px; }
  .comic-nav { gap: 8px; }
  .col span { display: none; }               /* too small to read on a phone; the caption tells it */
  .comic-dots { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .comic-page * { animation: none !important; } }

/* ---- the server's own pages (src/pages/server-pages.mjs) and the donate page ----------------------
   Log in, sign up, account, leaderboards and the policies, in the game's look: the tutorial girl
   greets you, forms sit in a game window, fields are the game's white boxes with a slate line, and the
   main action is the green OK button. Class names the V1 scripts toggle: hidden, error, ok, active. */
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the helper pops open by itself on pages without the home page's script */
.rc-js .help:not([data-help]) { animation: help-open .32s .15s linear both; }
.help h1 { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.08 var(--display); margin: 0 0 .3em; color: var(--ink-strong); }

.ac { display: grid; justify-items: center; gap: 8px; padding-top: clamp(24px, 4vw, 48px); }
.ac-help { width: min(620px, 100%); }
.ac-card { width: min(520px, 100% - 26px); padding: clamp(22px, 3vw, 34px); }
.ac-form { display: grid; gap: 14px; }
.ac-form h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.ac-field { display: grid; gap: 6px; font-weight: 800; color: var(--ink-strong); font-size: .98rem; }
.ac-input { width: 100%; min-height: 48px; padding: .55em .8em; border: 3px solid var(--frame-line); border-radius: 12px; background: #fff;
  font: 600 1.05rem/1.3 var(--text); color: var(--ink-strong); box-shadow: inset 0 3px 0 rgb(0 0 0 / .06); }
.ac-input:focus { outline: none; border-color: var(--ok-line); box-shadow: inset 0 3px 0 rgb(0 0 0 / .06), 0 0 0 4px rgb(168 230 33 / .45); }
.ac-input::placeholder { color: #9a9a9a; font-weight: 500; }
.ac-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-note { margin: 0; font-size: .92rem; color: var(--ink-2); }
/* the username in Settings: shown, not editable (no name attribute, so the form never sends it) */
.ac-input[readonly] { background: #ececec; color: var(--ink-2); cursor: default; box-shadow: none; }
.ac-input[readonly]:focus { border-color: var(--frame-line); box-shadow: none; }
.ac-locked { font-weight: 600; color: var(--ink-2); font-size: .88rem; }
.ac-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 600; }
.ac-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ok-line); flex: none; }
.ac-go { justify-self: start; min-height: 50px; font-size: 1.2rem; padding-inline: 1.4em; }
.ac-go:disabled { opacity: .6; cursor: progress; }
.ac-switch { margin: 2px 0 0; font-weight: 700; }
.ac-switch a, .ac-check a { font-weight: 800; }
.rc-msg { min-height: 0; font-weight: 800; }
.rc-msg:empty { display: none; }
.rc-msg.error { color: #b3261e; background: #fdeceb; border: 2px solid #e3a19c; border-radius: 10px; padding: .5em .8em; }
.rc-msg.ok { color: #1f5a0b; background: #eaf8d4; border: 2px solid #9fd36a; border-radius: 10px; padding: .5em .8em; }
.ac-head .cta-row { margin-top: 1em; }
.ac-panel { max-width: 760px; }
.ac-panel h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }

/* leaderboards */
.lb-tabs { display: grid; gap: 12px; margin-bottom: 18px; }
/* a row per time span, its name at the left in the 2010 brown */
.lb-tabrow { display: grid; grid-template-columns: 104px 1fr; align-items: start; gap: 10px; }
.lb-tabhead { padding-top: 15px; font: 700 1.05rem/1.1 var(--display); color: #6B5943; }
.lb-tabset { display: flex; flex-wrap: wrap; gap: 10px; }
.board-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: .4em 1em .4em .6em; border: 3px solid var(--frame-line);
  border-radius: 14px; background: #f2f2f2; font: 700 1.05rem/1 var(--display); color: var(--ink-strong); cursor: pointer; }
.board-tab img { width: auto; height: 30px; }
.board-tab:hover { background: #e8f7cf; }
.board-tab[aria-selected="true"] { background: var(--ok); border-color: var(--ok-line); box-shadow: inset 0 -4px 0 rgb(46 120 18 / .3); }
.lb-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.lb-periods { display: flex; gap: 6px; flex-wrap: wrap; }
.period { min-height: 40px; padding: .3em .9em; border: 2px solid var(--frame-line); border-radius: 999px; background: #fff; font: 700 .95rem/1 var(--text); cursor: pointer; color: var(--ink-strong); }
.period.active { background: var(--orange); border-color: var(--ink); }
.lb-search { position: relative; flex: 1 1 260px; max-width: 380px; margin-left: auto; }
.lb-search img { position: absolute; left: 10px; top: 50%; translate: 0 -50%; pointer-events: none; }
.lb-search .ac-input { padding-left: 44px; }
/* A real podium (Mike, 3 Dec 2026: "Why is our 2nd place larger than 1st place"): the cards stretch to the row's
   height and 2nd and 3rd start lower, so 1st is always the tallest and 3rd the shortest, whatever each holds. */
.lb-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin-bottom: 18px; }
.lb-top { align-content: start; }
.lb-top.second { margin-top: 30px; } .lb-top.third { margin-top: 52px; }
.lb-podium:empty { display: none; }
.lb-top { display: grid; justify-items: center; text-align: center; padding: 16px 10px 14px; border-radius: 16px; background: #f2f2f2; cursor: pointer; }
.lb-top:hover, .lb-top:focus-visible { background: #e8f7cf; }
.lb-top.first { order: 2; background: #fff4d6; padding-top: 26px; } .lb-top.second { order: 1; } .lb-top.third { order: 3; }
.lb-top h3 { margin: 10px 0 2px; font-size: 1.1rem; overflow-wrap: anywhere; }
.lb-top p { margin: 0 0 6px; font-size: .92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.lb-top strong { font: 700 1.15rem/1 var(--display); color: var(--orange-deep); }
.lb-card { position: relative; display: block; width: min(110px, 100%); aspect-ratio: 85.4 / 74.2; container-type: inline-size; margin-top: 12px; }
.lb-card > img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* in the card's own box [-145.8, -41.6, 85.4 x 74.2]: the photo slot (-136, -36, 50 x 50) and tf_rank (-172.2, -54.8, 61 x 50.4, size 40) */
.lb-pic { position: absolute; left: 11.48%; top: 7.55%; width: 58.55%; height: 67.39%; display: grid; place-items: center; background: #fff; }
/* The game loads the picture into the 50 x 50 slot and masks it with the slot's shape (Card's mask = the teal
   quad, path 4), so the pale rim stays visible round it and the corners are square (Gift pop-up, 3 Dec 2026).
   Same mask on the street and comic cards. No photo: nothing is drawn and the card's own grey "?" chef shows. */
.lb-pic, .st-pic, .comic-art .c-pic { clip-path: polygon(8.7% 7.3%, 95% 7.3%, 99.4% 92.4%, 10.6% 93.6%); border-radius: 0; }
.st-pic, .comic-art .c-pic { padding: 6px 4px 5px 6px; }
.comic-art .c-pic { padding: 1.1cqw .8cqw 1cqw 1.1cqw; }
.lb-rank { position: absolute; left: -30.91%; top: -17.79%; width: 71.43%; height: 67.92%; display: grid; place-items: center;
  font: 700 46.8cqw/1 var(--display); color: #fff; -webkit-text-stroke: 5cqw #2e5f75; paint-order: stroke fill; }
.lb-top.first .lb-card { width: min(130px, 100%); }
/* Layers, bottom to top (Mike, 3 Dec 2026: "Profile picture should be on lower layer"): the card, the photo,
   the chef badge (CardBadge.svg, the badge alone), then the rank number. Explicit z-index so no browser
   draws the photo over the badge or the number. Same order on the street cards and the comic. */
.lb-card, .st-card, .comic-art .c-card { isolation: isolate; }
.lb-card > img:first-child, .st-card > img:first-child { z-index: 0; }
.lb-pic, .st-pic, .comic-art .c-pic { z-index: 1; }
.lb-card > .lb-badge, .st-badge, .comic-art .c-badge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.lb-rank, .st-card span, .comic-art .c-rank { z-index: 3; }
.lb-you { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; margin-bottom: 18px;
  border: 3px solid var(--ok-line); border-radius: 14px; background: #eaf8d4; cursor: pointer; }
.lb-you-rank { font: 700 1.6rem/1 var(--display); color: var(--ok-line); }
.lb-you-copy { display: grid; } .lb-you-copy span { font-size: .92rem; color: var(--ink-2); }
.lb-you-score { font: 700 1.15rem/1 var(--display); }
.lb-sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.lb-sum h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.lb-sum small { color: var(--ink-2); font-weight: 600; }
.lb-scroll { overflow-x: auto; border-radius: 14px; background: #f2f2f2; }
.lb-scroll table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.lb-scroll th { text-align: left; padding: 10px 12px; font: 700 .95rem/1.1 var(--display); color: var(--ink-2); white-space: nowrap; }
.lb-scroll td { padding: 10px 12px; border-top: 2px solid #fff; white-space: nowrap; }
.lb-scroll tbody tr { cursor: pointer; }
.lb-scroll tbody tr:hover, .lb-scroll tbody tr:focus-visible { background: #e8f7cf; }
.lb-n { font: 700 1.05rem/1 var(--display); }
.lb-up { color: #2e7812; font-size: .8rem; margin-left: 4px; } .lb-down { color: #b3261e; font-size: .8rem; margin-left: 4px; }
.lb-who { display: flex; align-items: center; gap: 10px; }
.lb-who > span:last-child { display: grid; } .lb-who small { color: var(--ink-2); }
.lb-mini { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--sky); border: 2px solid var(--steel);
  font: 700 .9rem/1 var(--display); color: var(--ink-strong); }
.lb-metric { font-weight: 800; color: var(--ink-strong); }
.lb-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 12px; }
.lb-state small { color: var(--ink-2); }
.lb-loading { height: 52px; margin-bottom: 8px; border-radius: 12px; background: linear-gradient(90deg, #f2f2f2 0%, #fafafa 50%, #f2f2f2 100%) 0 0 / 200% 100%; animation: lb-shine 1.2s linear infinite; }
@keyframes lb-shine { to { background-position: -200% 0; } }
.lb-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; font-weight: 700; }
.lb-pager button:disabled { opacity: .4; cursor: default; }
.lb-foot { margin-top: 22px; }
.lb-dialog { padding: 0; border: 0; background: transparent; max-width: min(460px, 100vw - 40px); width: 100%; overflow: visible; }
.lb-dialog::backdrop { background: rgb(20 40 10 / .55); }
.lb-dlg { background: #fff; border-radius: 18px; margin: 13px; padding: 22px; box-shadow: 0 0 0 10px var(--frame), 0 0 0 13px var(--frame-line); }
.lb-dialog[open] .lb-dlg { animation: help-open .32s linear both; }
.lb-dlg-top { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.lb-dlg-top h2 { font-size: 1.6rem; margin: 0 0 2px; overflow-wrap: anywhere; } .lb-dlg-top p { margin: 0; color: var(--ink-2); }
.lb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.lb-stats div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: #f2f2f2; }
.lb-stats span { font-size: .82rem; font-weight: 700; color: var(--ink-2); } .lb-stats strong { font: 700 1.1rem/1.1 var(--display); }
.lb-dlg .cta-row { margin-top: 16px; }
/* The game's close cross (ButtonCancel) on the frame's grey band, top right, like every 2010 pop-up (Mike, 5 Dec 2026:
   "Can this close be the x button on top right"). The buttons are the 2010 pictures (.btn10): Add friend blue like the
   game's Invite, Share rank grey, Play green. */
.lb-dlg { position: relative; }
.lb-x { position: absolute; top: -2px; right: -2px; z-index: 2; width: 40px; height: 46px; border: 0; padding: 0; cursor: pointer;
  background: url(/art/ui/ButtonCancel2010.svg) center / 100% 100% no-repeat; transition: transform 40ms linear; }
.lb-x:hover { transform: scale(1.1); } .lb-x:active { transform: scale(.9); }
.lb-x:focus-visible { outline: 3px solid #2f9ac8; outline-offset: 2px; }
.lb-dlg-top { padding-right: 30px; }
#profileContent:focus { outline: none; }   /* the card opens with focus on its content, not on the X (no ring on a card that opened by itself) */
.lb-acts .btn10 { height: 46px; font-size: 1.08rem; padding: 0 20px 5px 16px; }
.lb-acts .btn10.done:disabled { opacity: 1; cursor: default; }   /* "Friends" / "Request sent": a state, not a click */

/* policies */
.legal-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.legal-tabs a { display: inline-block; padding: .4em .9em; border: 2px solid var(--frame-line); border-radius: 999px; background: #f2f2f2;
  font: 700 .95rem/1.1 var(--display); text-decoration: none; color: var(--ink-strong); }
.legal-tabs a:hover { background: #e8f7cf; }
.legal-tabs a[aria-current="page"] { background: var(--ok); border-color: var(--ok-line); }
.legal .prose-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 1.6em; }
.legal .prose-body h3 { margin-top: 1.2em; }
.legal .prose-body li { margin-bottom: .4em; }
.legal .prose-body code { font-size: .9em; background: #f2f2f2; padding: .1em .35em; border-radius: 6px; }

/* donate */
.don-help { width: min(680px, 100%); }
.don-main { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 48px); align-items: center; }
.don-bag { width: clamp(110px, 16vw, 180px); transform-origin: 50% 90%; }
.rc-js .don-bag { animation: help-open .32s .45s linear both; }
.don-bag:hover { animation: bag-jiggle .5s ease; }
@keyframes bag-jiggle { 25% { rotate: -5deg; } 50% { rotate: 4deg; } 75% { rotate: -2deg; } }
.don-copy h2 { margin-top: 0; }
.don-copy .answer { margin-bottom: 0; }
.don-small { margin: 12px 0 0; font-size: .92rem; color: var(--ink-2); max-width: 58ch; }
.btn.is-off { background: #e6e6e6; box-shadow: inset 0 -5px 0 #cfcfcf, 0 3px 0 var(--ink); cursor: default; transform: none; color: var(--ink-2); }
.don-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.don-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: 14px; background: #f2f2f2; }
.don-list img { width: 56px; height: 56px; object-fit: contain; }
.don-list h3 { margin: 2px 0 4px; } .don-list p { margin: 0; font-size: .96rem; }
.don-fair ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.don-fair li { position: relative; padding-left: 36px; }
.don-fair li::before { content: ''; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 7px; background: var(--ok); border: 2px solid var(--ok-line); }
.don-fair li::after { content: ''; position: absolute; left: 5px; top: calc(.15em + 5px); width: 14px; height: 14px; background: #fff;
  clip-path: polygon(8% 52%, 24% 38%, 40% 56%, 78% 10%, 94% 24%, 40% 88%); }
.don-other p { margin: 0; max-width: 70ch; }
/* who runs it (Mike, 3 Dec 2026: "We're a team of passionate player ... Our goal is make it run/online as long as it can") */
.don-team-head { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-bottom: 12px; }
.don-team-head img { width: 72px; height: 72px; object-fit: contain; }
.don-team-head h2 { margin: 0; } .don-team-intro { margin: 0; max-width: 66ch; }
.don-team .don-list { margin: 20px 0 16px; }
.don-goal { margin: 0; font-weight: 800; color: var(--ink-strong); }
@media (max-width: 480px) { .don-team-head { grid-template-columns: 52px 1fr; gap: 12px; } .don-team-head img { width: 52px; height: 52px; } }
.foot-join .btn img { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .ac-two { grid-template-columns: 1fr; }
  .lb-podium { gap: 8px; }
  .lb-top { padding: 12px 6px 10px; } .lb-top.first { padding-top: 14px; }
  .lb-top.second { margin-top: 20px; } .lb-top.third { margin-top: 34px; }
  /* phone: the name above, the row's tabs in one strip that slides sideways (the page itself never does) */
  .lb-tabrow { grid-template-columns: 1fr; gap: 6px; } .lb-tabhead { padding-top: 0; }
  .lb-tabset { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    margin: 0; padding: 2px 0 4px; }        /* starts on the same line as the row name and the search box */
  .lb-tabset::-webkit-scrollbar { display: none; }
  .lb-tabset .board-tab { flex: none; scroll-snap-align: start; min-height: 44px; font-size: .95rem; }
  .lb-tabset .board-tab img { height: 26px; }
  .lb-top h3 { font-size: .95rem; } .lb-top p { font-size: .8rem; } .lb-top strong { font-size: .95rem; }
  .lb-search { max-width: none; margin-left: 0; }
  .lb-you { grid-template-columns: auto 1fr; } .lb-you-score { grid-column: 2; }
  .lb-dlg-top { grid-template-columns: 84px 1fr; }
  .lb-stats { grid-template-columns: repeat(2, 1fr); }
  .don-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .don-main .cta-row { justify-content: center; }
  .don-small { margin-inline: auto; }
  .don-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rc-js .help:not([data-help]), .rc-js .don-bag, .lb-dialog[open] .lb-dlg { animation: none; } }

/* ---- donate, in more places (Mike, 3 Dec 2026) --------------------------------------------------- */
/* header: the game's coin bag, with the word on wide screens */
.don-top { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 12px 3px 6px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .95rem; color: var(--ink-strong); background: #fff; border: 2px solid var(--frame-line); box-shadow: 0 3px 0 rgb(46 120 18 / .2); }
.don-top img { width: 28px; height: 31px; transition: transform .15s; transform-origin: 50% 90%; }
.don-top:hover img { animation: bag-jiggle .5s ease; }
.don-top:hover, .don-top[aria-current="page"] { border-color: var(--ok-line); }
.don-top:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 1600px) { .don-top-word { display: none; } .don-top { padding: 3px 5px; } }
/* room for the coin: drop the extras a little earlier than before */
@media (max-width: 1520px) { .online-words { display: none; } .online { padding-inline: 9px 11px; gap: 6px; } }
@media (max-width: 1400px) and (min-width: 901px) { .lvl { display: none; } }
@media (max-width: 940px) and (min-width: 901px) { .top-nav ul { gap: 5px; } .top-act .btn { padding-inline: .6em; } .top { gap: 8px; } }
@media (max-width: 1140px) { .online { display: none !important; } }
@media (max-width: 1040px) and (min-width: 901px) { .don-top { border: 0; box-shadow: none; background: none; padding: 0; } .top-act { gap: 8px; } .snd { gap: 2px; } }
@media (max-width: 900px) { .don-top { border: 0; box-shadow: none; background: none; padding: 0; } .don-top img { width: 30px; height: 33px; } }
@media (max-width: 440px) { .don-top img { width: 26px; height: 29px; } }
@media (max-width: 359px) { .don-top { display: none; } }   /* the tiniest phones: no room; the strip lower down still shows it */
/* the strip at the end of pages: a small game window with the coin bag */
.don-band { margin-block: clamp(28px, 5vw, 56px); }
.don-band-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px clamp(16px, 3vw, 32px);
  margin: 13px; padding: 18px clamp(18px, 3vw, 30px); background: #fff; border-radius: 18px;
  box-shadow: 0 0 0 10px var(--frame), 0 0 0 13px var(--frame-line), 0 16px 0 6px rgb(46 120 18 / .16); }   /* same frame and inset as .window, so the edges line up */
.don-band-bag { width: 64px; height: auto; transform-origin: 50% 90%; }
.don-band:hover .don-band-bag { animation: bag-jiggle .5s ease; }
.don-band-copy h2 { margin: 0 0 .2em; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.don-band-copy p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.don-band-go { justify-self: end; }
/* line the strip's edges up with the box above it (that box is the page width minus 13px a side) */
body:not(.pg-home) main > .don-band { width: min(100% - 2 * var(--gutter), var(--wrap) + 26px); }
body:not(.pg-home) main > .prose + .don-band { max-width: 946px; }   /* the article box is 920px wide */
body:not(.pg-home) main > .ac-panel + .don-band { max-width: 786px; }   /* account boxes are 760px; the band's inner box has 13px margins */
body:not(.pg-home) main > .dish + .don-band { width: min(100% - 2 * var(--gutter), var(--wrap)); }   /* recipe boxes sit inside .wrap with 13px margins */
@media (max-width: 640px) {
  .don-band-in { grid-template-columns: auto 1fr; }
  .don-band-bag { width: 52px; }
  .don-band-go { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .don-top:hover img, .don-band:hover .don-band-bag { animation: none; } }

/* ---- your account in the header, and the profile card (Mike, 3 Dec 2026) ------------------------ */
.acct { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 190px; padding: 3px 12px 3px 4px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .95rem; color: var(--ink-strong); background: #fff; border: 2px solid var(--frame-line); box-shadow: 0 3px 0 rgb(46 120 18 / .2); }
.acct img { width: 30px; height: 30px; }
.acct-pic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); border: 2px solid var(--ok-line);
  font: 700 .8rem/1 var(--display); color: #173f06; }
.acct-pic[hidden], .acct img[hidden] { display: none; }
.acct-word { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct:hover, .acct[aria-current="page"] { border-color: var(--ok-line); }
.acct:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (max-width: 1600px) { .acct-word { display: none; } .acct { padding: 3px; } }
@media (max-width: 1040px) and (min-width: 901px) { .acct { border: 0; box-shadow: none; background: none; padding: 0; } }
@media (max-width: 900px) { .acct { border: 0; box-shadow: none; background: none; padding: 0; } }
@media (max-width: 440px) { .acct img, .acct-pic { width: 27px; height: 27px; } .acct-pic { font-size: .72rem; } }
.ac-profile { margin-bottom: 0; }
.ac-prof { display: flex; align-items: center; gap: 14px; }
.ac-pic { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--ok); border: 3px solid var(--ok-line);
  font: 700 1.5rem/1 var(--display); color: #173f06; }
.ac-name { display: block; font: 700 1.35rem/1.2 var(--display); color: var(--ink-strong); }
.ac-rest { display: block; color: var(--ink-2); }
.ac-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the account button needs a little more room in the header */
@media (max-width: 1040px) and (min-width: 901px) { .nav-ico { width: 24px; height: 24px; } .top-nav ul { gap: 7px; } .nav-word { font-size: .9rem; } }
@media (max-width: 340px) { [data-snd-music] { display: none; } }   /* tiniest phones: sound effects stay, music button goes */

/* ---- uploaded profile photos (account page; Mike, 3 Dec 2026) -------------------------------- */
.lb-pic, .lb-mini, .acct-pic, .ac-pic { overflow: hidden; }
.lb-pic img, .lb-mini img, .acct-pic img, .ac-pic img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* the chef snapshot (64 x 122, the whole chef): show the head and shoulders, like the game's face slots */
img.chef { object-fit: cover; object-position: 50% 0; background: #fff; }
.acct.is-in .acct-pic:has(img) { background: #fff; }
.ac-prof { align-items: flex-start; }
.ac-pic { width: 96px; height: 96px; border-radius: 20px; font-size: 2rem; }
.ac-photo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ac-photo .btn { min-height: 0; padding: 7px 14px; font-size: .95rem; cursor: pointer; }
.ac-photo-pick:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.ac-profile .ac-note { margin: 8px 0 0; }
@media (max-width: 440px) { .ac-pic { width: 72px; height: 72px; border-radius: 16px; font-size: 1.5rem; } }

/* ---- edges between the home page's scenes (Mike, 3 Dec 2026: "between section is a straight line").
   Restaurant into Gourmet Street, "like the Lucy page, with motion": the street's blue rises as a dome
   that grows as you leave (site.js sets --bh), then a ribbon of words slides along a curve.
   Street's road into the green page: a kerb, the pink brick pavement, then a bumpy grass edge; the
   footer's pavement gets the same grass edge (Mike liked these two). Art: art/world/SeamGrass*.svg. */
.bulge { position: absolute; left: -5%; right: -5%; bottom: -1px; height: var(--bh, 6vw); z-index: 4; pointer-events: none;
  background: var(--bc); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.bulge-top { bottom: auto; top: 1px; transform: translateY(-100%); height: var(--bh, 5vw); }
.ribbon { position: relative; z-index: 2; margin-top: -1px; height: clamp(130px, 18vw, 260px); background: #bddbdc; overflow: hidden; }
.ribbon-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.ribbon-band { stroke: var(--red); stroke-width: 64; }
.ribbon-rim { stroke: var(--red-deep); stroke-width: 64; }                       /* thick dark rim underneath, like the game's buttons */
.ribbon-shine { stroke: #e87070; stroke-width: 6; stroke-linecap: round; opacity: .8; }
.ribbon-text { font: 400 34px var(--display); fill: #fff; dominant-baseline: middle; letter-spacing: .02em;
  stroke: #5b2227; stroke-width: 7px; stroke-linejoin: round; paint-order: stroke fill; }   /* the game's white outlined titles */
.ribbon-dish { filter: drop-shadow(0 3px 0 rgb(91 34 39 / .35)); }
.rb-cloud { position: absolute; height: auto; pointer-events: none; opacity: .95; will-change: transform; }
.rb-c1 { width: clamp(110px, 13vw, 190px); top: 6%; left: 8%; }
.rb-c2 { width: clamp(60px, 6vw, 96px); top: 66%; left: 46%; }
.rb-c3 { width: clamp(80px, 9vw, 140px); top: 12%; left: 72%; }
/* the dome is 110% wide: trim the sides without trimming the top (clip, unlike hidden, keeps sticky working) */
.pg-home .live { overflow-x: clip; }
.pg-home .street::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 74px; z-index: 3; pointer-events: none;
  background:
    url(/art/world/SeamGrassUp.svg) repeat-x 0 48px / 160px 26px,
    repeating-linear-gradient(90deg, transparent 0 40px, #dbbcbc 40px 66px, transparent 66px 104px) 0 19px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 8px, #dbbcbc 8px 34px, transparent 34px 72px) 0 35px / 100% 4px no-repeat,
    linear-gradient(#e3e1d6 0 7px, #a7a59c 7px 10px, #c9a4a4 10px 62px, transparent 62px); }
.pg-home .intro { padding-top: calc(var(--step) + 56px); }
.foot::after { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 26px; pointer-events: none;
  background: url(/art/world/SeamGrass.svg) repeat-x 0 0 / 160px 26px; }

/* ---- friends page and badge (Mike, 3 Dec 2026) ------------------------------------------------- */
.acct { position: relative; }
.acct-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
  background: #e8412c; color: #fff; font: 700 .72rem/1 var(--display); border: 2px solid #fff; }
.fr-mine-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.fr-code { margin: 0; font: 700 clamp(2.2rem, 6vw, 3.2rem)/1 var(--display); letter-spacing: .06em; color: var(--ink-strong); }
.fr-note { margin: 10px 0 0; color: var(--ink-2); }
.fr-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.fr-share .btn[hidden] { display: none; }
.fr-reset { margin: 14px 0 0; color: var(--ink-2); font-size: .92rem; }
.fr-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--ink-strong); text-decoration: underline; cursor: pointer; }
.fr-qr { margin: 0; width: 170px; text-align: center; }
.fr-qr > div { background: #fff; border: 3px solid var(--frame-line); border-radius: 14px; padding: 6px; }
.fr-qr svg { display: block; width: 100%; height: auto; }
.fr-qr figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink-2); }
.fr-add-form { display: flex; gap: 10px; align-items: end; }
.fr-add-form .ac-field { flex: 1; }
.fr-add-form .btn-ok { min-height: 48px; }
.fr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fr-list li, .fr-person { display: flex; align-items: center; gap: 12px; }
.fr-list li { padding: 10px 12px; border-radius: 14px; background: #f3f3ef; }
.fr-pic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; background: var(--sky); border: 2px solid var(--frame-line);
  font: 700 1rem/1 var(--display); color: var(--ink-strong); }
.fr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-who { flex: 1; min-width: 0; }
.fr-who strong, .fr-person strong { display: block; font: 700 1.1rem/1.2 var(--display); color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; }
.fr-who span, .fr-person span:not(.fr-pic) { display: block; color: var(--ink-2); font-size: .92rem; }
.fr-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: end; }
.fr-acts small { color: var(--ink-2); }
.fr-friends { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.fr-empty { margin: 0; color: var(--ink-2); }
.fr-invite .fr-pic { width: 72px; height: 72px; border-radius: 16px; font-size: 1.4rem; }
.fr-invite-say { font-size: 1.15rem; font-weight: 700; color: var(--ink-strong); }
#addFriend[hidden] { display: none; }
@media (max-width: 640px) {
  .fr-mine-grid { grid-template-columns: 1fr; }
  .fr-qr { width: 150px; }
  .fr-add-form { flex-direction: column; align-items: stretch; }
  .fr-list li { flex-wrap: wrap; }
  .fr-acts { width: 100%; justify-content: start; padding-left: 60px; }
}

/* ---- thank-you trophy badges (leaderboards, account; Mike approved 3 Dec 2026) ----------------- */
.tb-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; margin: 2px 0; }
/* the in-game trophy itself (128x196 renders from design/thank-you-trophies), not a made-up pill */
.tb { display: inline-block; width: auto; height: 34px; margin: 0 2px 0 0; vertical-align: bottom; }
.lb-who .tb { height: 26px; margin: 2px 2px 0 0; }
.lb-top .tb { height: 40px; }
.lb-dlg-top .tb, .tb-row .tb { height: 40px; }

/* ---- smooth scrolling (Lenis; its own lenis.css rules) ------------------------------------------ */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- the opening shutter (Mike, 3 Dec 2026: "an award winning preloader"). The game's shop: a striped
   awning, a rolled-down shutter, the logo, the game's sign board flipping from Closed to Open!, and the
   game's level bar as the progress. Plays once per visit; site.js runs it. -------------------------- */
.rc-intro { display: none; }
html.rc-intro-on { overflow: hidden; }
html.rc-intro-on .rc-intro { display: block; position: fixed; inset: 0; z-index: 1000; cursor: pointer; }
.ri-shutter { position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(180deg, #b9c1c3 0 24px, #a2abae 24px 29px, #cdd4d6 29px 31px);
  transition: transform .85s cubic-bezier(.7, 0, .25, 1); }
.ri-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: #737c7f; box-shadow: inset 0 5px 0 #8a9396; }
.ri-handle { position: absolute; left: 50%; top: 9px; width: 120px; height: 12px; margin-left: -60px; border-radius: 6px; background: #4f5659; }
.ri-awning { position: absolute; left: 0; right: 0; top: 0; height: clamp(64px, 9vw, 104px);
  background: linear-gradient(var(--red-deep) 0 14px, transparent 14px), repeating-linear-gradient(90deg, var(--red) 0 56px, #fff4e2 56px 112px);
  transition: transform .4s cubic-bezier(.6, 0, .3, 1) .7s; }
.ri-awning::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 28px;
  background: radial-gradient(circle at 50% 0, var(--red) 27px, transparent 28px) 0 0 / 112px 28px repeat-x,
              radial-gradient(circle at 50% 0, #fff4e2 27px, transparent 28px) 56px 0 / 112px 28px repeat-x; }
.ri-stage { display: grid; justify-items: center; gap: 10px; margin-top: 40px; }
.ri-logo { width: clamp(220px, 34vw, 380px); height: auto; animation: ri-drop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.ri-sign { perspective: 600px; margin-top: -4px; animation: ri-swing 1.6s ease-in-out .2s both; transform-origin: 50% -30px; }
.ri-card { position: relative; width: clamp(170px, 22vw, 230px); aspect-ratio: 102 / 39; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.ri-card::before, .ri-card::after { content: ''; position: absolute; top: -26px; width: 3px; height: 28px; background: #4c4845; }
.ri-card::before { left: 22%; } .ri-card::after { right: 22%; }
.ri-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden;
  background: url(/art/ui/RestaurantClosedSign-1.svg) center / 100% 100% no-repeat;
  font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--display); letter-spacing: .03em; padding-bottom: 4%; }
.ri-closed { color: #b33a3a; }
.ri-open { color: #3f8a17; transform: rotateY(180deg); }
.rc-intro.is-open .ri-card { transform: rotateY(180deg); }
.ri-load { display: flex; align-items: center; margin-top: 18px; }
.ri-load img { width: 34px; height: 34px; position: relative; z-index: 1; }
.ri-track { width: clamp(150px, 20vw, 220px); height: 15px; margin-left: -9px; background: #fcfaeb; border: 2.5px solid #2b2621; border-radius: 3px; overflow: hidden; }
.ri-fill { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(#c4f25c, #7bc31f); }
.ri-line { margin: 0; font: 700 .95rem var(--text); color: #3d4547; }
.rc-intro.is-up .ri-shutter { transform: translateY(-104%); }
.rc-intro.is-up .ri-awning { transform: translateY(-140%); }
@keyframes ri-drop { from { transform: translateY(-60px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ri-swing { 0% { transform: rotate(9deg); opacity: 0; } 15% { opacity: 1; } 35% { transform: rotate(-6deg); } 60% { transform: rotate(3deg); } 85% { transform: rotate(-1deg); } 100% { transform: none; opacity: 1; } }

/* ---- the header (option A, Mike picked it 3 Dec 2026 and asked to remove B, C and D). Every page has
   html[data-hdr="a"] (layout.mjs); a future header test adds html[data-hdr="<new>"] rules and a button in
   the hidden picker (?picker=1 on a test build). Rules on plain html[data-hdr] are the shared 2010 pieces.
   Built to design/ui-2010/DESIGN_LANGUAGE.md: every button is a 2010 piece used as a stretched SVG
   background (art/ui/ButtonGreen2010 = ButtonAccept, Tile2010 = BaseButton, ButtonGrey2010 = ButtonSkip),
   white Huggable labels outlined in the button's dark colour, brown #6B5943 text, the pop-up frame
   (#536868 rim, #E6E6E6 band, white middle), and 2010 motion: 1.1 on hover, .95 pressed, size only. ---- */
.hdr-drop { display: none; }
html[data-hdr] :is(.top, .hdr-drop) .btn-play, html[data-hdr] :is(.top, .hdr-drop) .acct, html[data-hdr] :is(.top, .hdr-drop) .don-top, .hdr-pick button { transition: transform 40ms linear; }
html[data-hdr] :is(.top, .hdr-drop) .btn-play:hover, html[data-hdr] :is(.top, .hdr-drop) .acct:hover, html[data-hdr] :is(.top, .hdr-drop) .don-top:hover,
html[data-hdr] .top-nav a:hover, .hdr-pick button:hover { transform: scale(1.1); }
html[data-hdr] :is(.top, .hdr-drop) .btn-play:active, html[data-hdr] :is(.top, .hdr-drop) .acct:active, html[data-hdr] :is(.top, .hdr-drop) .don-top:active,
html[data-hdr] .top-nav a:active, .hdr-pick button:active { transform: scale(.95); }
html[data-hdr] .top-nav a { transition: transform 40ms linear; }

html[data-hdr] .top-nav a:hover .nav-ico img, html[data-hdr] .top-nav a[aria-current] .nav-ico img { transform: none; }
/* white Huggable with an outline in --ol (the 2010 label) */
html[data-hdr] :is(.top, .hdr-drop) .btn-play, .hdr-pick button {
  color: #fff; text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
/* Play free = ButtonAccept */
html[data-hdr] :is(.top, .hdr-drop) .btn-play { --ol: #2e7812; height: 46px; min-height: 46px; padding: 0 20px 5px 16px; border: 0; border-radius: 0; box-shadow: none; filter: none;
  background: url(/art/ui/ButtonGreen2010.svg) center / 100% 100% no-repeat; font: 400 1.2rem/1 var(--display); letter-spacing: .03em; display: inline-flex; align-items: center; }
/* Log in, Donate = BaseButton tiles with their icons */
html[data-hdr] :is(.top, .hdr-drop) .acct, html[data-hdr] :is(.top, .hdr-drop) .don-top { width: 50px; height: 48px; min-height: 0; max-width: none; padding: 0 2px 5px 0; gap: 0; justify-content: center; align-items: center;
  border: 0; border-radius: 0; box-shadow: none; background: url(/art/ui/Tile2010.svg) center / 100% 100% no-repeat; display: inline-flex; }
html[data-hdr] :is(.top, .hdr-drop) .acct img, html[data-hdr] :is(.top, .hdr-drop) .don-top img { width: 30px; height: 30px; }
html[data-hdr] :is(.top, .hdr-drop) .acct-word, html[data-hdr] :is(.top, .hdr-drop) .don-top-word { display: none; }
@media (max-width: 440px) {
  html[data-hdr] .top .brand img { width: 84px; }
  html[data-hdr] .top-act { gap: 4px; }
  html[data-hdr] .top .snd { gap: 0; }
  html[data-hdr] .top .snd-btn { width: 32px; height: 32px; } html[data-hdr] .top .snd-btn img { width: 28px; height: 28px; }
  html[data-hdr] :is(.top, .hdr-drop) .btn-play { height: 40px; min-height: 40px; padding: 0 12px 4px 10px; font-size: .98rem; }
  html[data-hdr] :is(.top, .hdr-drop) .acct, html[data-hdr] :is(.top, .hdr-drop) .don-top { width: 40px; height: 38px; padding: 0 1px 4px 0; }
  html[data-hdr] :is(.top, .hdr-drop) .acct img, html[data-hdr] :is(.top, .hdr-drop) .don-top img, html[data-hdr] :is(.top, .hdr-drop) .acct-pic { width: 24px; height: 24px; }
}
html[data-hdr] .top-nav a { white-space: nowrap; border-bottom: 0; color: #6b5943; font: 400 1rem/1 var(--display); letter-spacing: .02em; }
/* the page you're on: a 2010 grey slot behind it (Inbox / friend-request rows) */
html[data-hdr] .top-nav a[aria-current] { background: #e6e6e6; border-radius: 14px 12px 16px 13px / 12px 15px 12px 14px; }
@media (max-width: 1200px) and (min-width: 901px) { html[data-hdr] .top { gap: 10px; } html[data-hdr] .top-nav ul { gap: 4px; } html[data-hdr] .top-act { gap: 8px; } html[data-hdr] .nav-word { font-size: .9rem; } }
/* the 2010 pop-up frame as a bar: #536868 rim, #E6E6E6 band, white middle */
html[data-hdr="a"] .top {
  background: #fff; border: 2px solid #536868; box-shadow: inset 0 0 0 6px #e6e6e6; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* the bar sits over the page, so pages other than home get room at the top */
html[data-hdr="a"] body:not(.pg-home) main { padding-top: var(--hdr-h, 80px); }

/* A · floating frame: hides while you scroll down, comes back when you scroll up */
html[data-hdr="a"] .top { top: 0; width: min(100% - 24px, 1320px); margin: 12px auto calc(-1 * var(--hdr-h, 76px) - 12px); padding: 8px 18px;   /* same room both ends (Mike, 3 Dec: "Is it too close to the side?") */
  border-radius: 16px; transition: transform .35s cubic-bezier(.3, .7, .3, 1); }
html[data-hdr="a"] .top.is-hidden { transform: translateY(calc(-100% - 30px)); }
html[data-hdr="a"] .top .lvl { display: none; }
html[data-hdr="a"] .top-nav a { padding: 8px 10px; }
@media (max-width: 900px) { html[data-hdr="a"] .top { width: calc(100% - 12px); margin-top: 6px; padding: 8px 14px 2px; gap: 8px; } html[data-hdr="a"] .top-nav a { padding: 4px 3px 6px; } }

/* the hanging sign (A once you scroll down, C always): fixed at the top right, hung from the top edge on two
   strings; site.js swings it (rotate) and drops it (translateY). The card under it pops like a 2010 pop-up. */
.hdr-hang { display: none; }
/* A: the Menu sign hangs at the right with "Play now" hanging under it on two short strings, and the logo pops
   in at the top left without strings (Mike, 3 Dec 2026: "the play now can hang below the menu" / "I dont think
   the top left logo needed to be hanged"). C hangs only the Menu sign. */
html[data-hdr="a"] .hdr-hang { display: block; position: fixed; top: 0; left: 0; right: 0; height: 0; z-index: 60; pointer-events: none; }
html[data-hdr="a"] .hdr-hang:not(.is-down) :is(.hdr-sign, .hdr-strings) { visibility: hidden; }

.hdr-sign { --len: 40px; position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 132px; padding: var(--len) 0 0;
  border: 0; background: none; cursor: pointer; text-decoration: none; pointer-events: auto; transform-origin: 50% 0; transform: translateY(-200px); will-change: transform; }
.hdr-sign::before, .hdr-sign::after { content: ''; position: absolute; top: -80px; width: 3px; height: calc(var(--len) + 86px); background: #4c4845; }
.hdr-sign::before { left: 30px; } .hdr-sign::after { right: 30px; }
.hdr-sign-menu { right: calc(var(--gutter) + 4px); z-index: 2; }
/* Play now: shorter strings, a bigger board in the game's green-button colours (PlaySign2010.svg = the Closed sign
   recoloured #A8E621 / #2E7812), so it stands out from Menu (Mike, 3 Dec 2026). */
.hdr-sign-play { --len: 10px; width: 152px; right: calc(var(--gutter) - 6px); z-index: 1; }       /* top is set by site.js: the Menu sign's height */
.hdr-sign-play::before, .hdr-sign-play::after { content: none; }
/* its two strings: site.js draws each one, every frame, from a knot inside the bottom of the Menu board to a knot
   inside the top of the Play board (both boards cover the ends), so they can't come loose. */
.hdr-strings { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 1; pointer-events: none; }
.hdr-strings i { position: absolute; top: 0; left: 0; width: 3px; height: 0; background: #4c4845; transform-origin: 1.5px 0; }
.hdr-knot { position: absolute; width: 0; height: 0; pointer-events: none; }
.hdr-sign-play .hdr-board { --ol: #2e7812; width: 152px; height: 60px; font-size: 1.6rem; background-image: url(/art/ui/PlaySign2010.svg); }
.hdr-logo { display: none; }
html[data-hdr="a"] .hdr-hang.is-logo .hdr-logo { display: block; position: absolute; top: 8px; left: var(--gutter); width: 150px; pointer-events: auto; animation: rc-pop .36s linear both; }
html[data-hdr="a"] .hdr-hang.is-logo-out .hdr-logo { animation: rc-pop-out .36s linear both; }
.hdr-logo img { display: block; width: 100%; height: auto; transition: transform 40ms linear; }
.hdr-logo:hover img { transform: scale(1.1); } .hdr-logo:active img { transform: scale(.95); }
.hdr-logo:focus-visible img { outline: 3px solid #536868; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html[data-hdr="a"] .hdr-hang .hdr-logo { animation: none; } }
.hdr-board { --ol: #6b5943; position: relative; width: 132px; height: 52px; display: grid; place-items: center; padding-bottom: 3px;
  background: url(/art/ui/RestaurantClosedSign-1.svg) center / 100% 100%; color: #fff; font: 400 1.35rem/1 var(--display); letter-spacing: .04em;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol);
  transition: transform 40ms linear; }
.hdr-sign:hover .hdr-board { transform: scale(1.1); }
.hdr-sign:active .hdr-board { transform: scale(.95); }
.hdr-sign:focus-visible .hdr-board { outline: 3px solid #536868; outline-offset: 3px; }
.hdr-drop:not([hidden]) { display: grid; gap: 10px; position: absolute; right: var(--gutter); top: 98px; width: min(360px, 100vw - 2 * var(--gutter)); pointer-events: auto;
  padding: 14px; border-radius: 16px; background: #fff; border: 2px solid #536868; box-shadow: inset 0 0 0 6px #e6e6e6; animation: rc-pop .36s linear both; }
.hdr-drop.is-closing { animation: rc-pop-out .36s linear both; }
.hdr-drop .top-nav { order: 0; flex: none; flex-basis: auto; margin: 0; padding: 0; overflow: visible; }
.hdr-drop .top-nav ul { flex-direction: column; gap: 2px; white-space: normal; }
.hdr-drop .top-nav a { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 10px; font-size: 1.15rem; min-width: 0; transform-origin: 20% 50%; }
.hdr-drop .nav-ico { width: 34px; height: 34px; }
.hdr-drop-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; background: #e6e6e6; border-radius: 14px 12px 16px 13px / 12px 15px 12px 14px; }
.hdr-drop .snd { margin-left: auto; }
@media (min-width: 601px) { html[data-hdr] .hdr-drop .btn-play { order: -1; } }
/* GenericPopupAnim, frame by frame (DESIGN_LANGUAGE.md), and the same frames backwards to close */
@keyframes rc-pop { 0% { transform: scale(.5); } 11% { transform: scale(.76); } 22% { transform: scale(.95); } 33% { transform: scale(1.06); }
  44% { transform: scale(1.1); } 56% { transform: scale(1.04); } 67% { transform: scale(.98); } 78% { transform: scale(.99); } 100% { transform: scale(1); } }
@keyframes rc-pop-out { 0% { transform: scale(1); } 12% { transform: scale(.99); } 25% { transform: scale(.98); } 37% { transform: scale(1.04); }
  50% { transform: scale(1.1); } 62% { transform: scale(1.06); } 75% { transform: scale(.95); } 87% { transform: scale(.76); } 100% { transform: scale(.5); } }
@media (max-width: 900px) { .hdr-sign { width: 104px; } .hdr-board { width: 104px; height: 42px; font-size: 1.1rem; } .hdr-sign::before { left: 22px; } .hdr-sign::after { right: 22px; }
  .hdr-sign-menu { --len: 34px; right: calc(var(--gutter) - 4px); } .hdr-sign-play { --len: 8px; width: 122px; right: calc(var(--gutter) - 13px); }
  .hdr-sign-play .hdr-board { width: 122px; height: 50px; font-size: 1.3rem; }
  html[data-hdr="a"] .hdr-hang.is-logo .hdr-logo { width: 112px; top: 6px; }
  .hdr-drop:not([hidden]) { top: 86px; } }
@media (max-width: 380px) { .hdr-sign, .hdr-board { width: 96px; } .hdr-sign-play, .hdr-sign-play .hdr-board { width: 112px; } .hdr-sign-play { right: calc(var(--gutter) - 12px); } html[data-hdr="a"] .hdr-hang.is-logo .hdr-logo { width: 96px; } }
@media (prefers-reduced-motion: reduce) { .hdr-drop:not([hidden]), .hdr-drop.is-closing { animation: none; } }

/* the card's title band and close cross (GenericPopup: title and ButtonCancel on the grey band) */
.hdr-drop-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 0 4px; }
.hdr-drop-title { --ol: #6b5943; margin: 0; color: #fff; font: 400 1.6rem/1 var(--display); letter-spacing: .03em;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.hdr-x { width: 40px; height: 46px; padding: 0; border: 0; cursor: pointer; background: url(/art/ui/ButtonCancel2010.svg) center / 100% 100% no-repeat; transition: transform 40ms linear; }
.hdr-x:hover { transform: scale(1.1); } .hdr-x:active { transform: scale(.9); }
.hdr-menu-btn { display: none; }

/* phones (A and C): a one-row bar (logo, Play free, the Menu board) and a full-width 2010 pop-up of tiles,
   like the game's Inbox: big BaseButton tiles with white outlined names, Play free across the bottom.
   Mike, 3 Dec 2026: "we need to do a special rearrangement on the menu just for mobile layout". */
@media (max-width: 600px) {
  html[data-hdr="a"] .top :is(.top-nav, .acct, .don-top, .snd) { display: none; }
  html[data-hdr="a"] .top { flex-wrap: nowrap; padding: 6px 12px; }
  html[data-hdr="a"] .top .brand img { width: 96px; }
  html[data-hdr="a"] .top-act { margin-left: auto; gap: 10px; }
  html[data-hdr="a"] .hdr-menu-btn { display: grid; padding: 0 0 2px; border: 0; background: none; cursor: pointer; }
  html[data-hdr="a"] .hdr-menu-btn .hdr-board { width: 92px; height: 40px; font-size: 1.05rem; }
  html[data-hdr="a"] .hdr-menu-btn:hover .hdr-board { transform: scale(1.1); } html[data-hdr="a"] .hdr-menu-btn:active .hdr-board { transform: scale(.95); }
  .hdr-drop:not([hidden]) { position: fixed; left: 10px; right: 10px; top: 80px; width: auto; max-height: calc(100dvh - 92px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    padding: 12px 14px 16px; gap: 12px; }
  /* one 3 x 3 grid of tiles: the five pages, Log in, Donate, Sounds, Music; Play free across the bottom */
  .hdr-drop:not([hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; align-items: start; }
  .hdr-drop :is(.top-nav, .top-nav ul, .top-nav li, .hdr-drop-row, .snd) { display: contents; }
  .hdr-drop-head { grid-column: 1 / -1; justify-self: stretch; }
  .hdr-drop .top-nav a { flex-direction: column; justify-content: flex-start; gap: 0; padding: 6px 0 8px; font-size: 1rem; transform-origin: 50% 50%; }
  .hdr-drop .nav-ico { width: 66px; height: 62px; background: url(/art/ui/Tile2010.svg) center / 100% 100% no-repeat; }
  .hdr-drop .nav-ico img { inset: 12px 15px 18px 13px; width: auto; height: auto; max-width: calc(100% - 28px); max-height: calc(100% - 30px); margin: auto; }
  .hdr-drop .nav-word, .hdr-drop :is(.acct-word, .don-top-word) { --ol: #6b5943; position: relative; margin-top: -8px; color: #fff; font: 400 1rem/1.1 var(--display);
    text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
  .hdr-drop .snd-btn { width: 86px; height: 86px; background: url(/art/ui/Tile2010.svg) top center / 66px 62px no-repeat; transition: transform 40ms linear; }
  .hdr-drop .snd-btn img { inset: 13px auto auto 26px; width: 34px; height: 34px; transform: none !important; }
  .hdr-drop .snd-btn::after { --ol: #6b5943; position: absolute; left: 0; right: 0; top: 53px; color: #fff; font: 400 1rem/1.1 var(--display);
    text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
  .hdr-drop [data-snd-sfx]::after { content: 'Sounds'; } .hdr-drop [data-snd-music]::after { content: 'Music'; }
  .hdr-drop .snd-btn:hover { transform: scale(1.1); } .hdr-drop .snd-btn:active { transform: scale(.95); }
  html[data-hdr] .hdr-drop :is(.acct, .don-top) { width: auto; min-width: 70px; max-width: 100%; height: auto; flex-direction: column; justify-content: flex-start; padding: 0;
    background: url(/art/ui/Tile2010.svg) top center / 66px 62px no-repeat; }
  html[data-hdr] .hdr-drop :is(.acct, .don-top) > :is(img, .acct-pic) { width: 32px; height: 32px; margin: 13px 2px 19px 0; }
  html[data-hdr] .hdr-drop :is(.acct-word, .don-top-word) { display: block; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px 3px; }
  /* Play across the bottom: stretched by the grid, not width 100%, so it never reaches past the card's sides
     (Mike's screenshot 3 Dec: the board ran edge to edge with a sideways scrollbar under it) */
  html[data-hdr] .hdr-drop .btn-play { grid-column: 1 / -1; order: 9; justify-self: stretch; width: auto; max-width: 100%; min-width: 0; height: 54px; justify-content: center; font-size: 1.4rem; margin-top: 4px; }
  html[data-hdr] .hdr-drop .acct-word { order: 0; }
}

/* the header picker itself (test site only, hidden until ?picker=1): the frame, grey ButtonSkip letters, the chosen one green */
html:not(.hdr-picking) .hdr-pick { display: none; }   /* hidden test tool: ?picker=1 shows it (layout.mjs) */
.hdr-pick { position: fixed; left: 12px; bottom: 12px; z-index: 900; display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 14px;
  background: #fff; border: 2px solid #536868; border-radius: 16px; box-shadow: inset 0 0 0 6px #e6e6e6; font: 400 1rem/1 var(--display); color: #6b5943; }
.hdr-pick span { margin-right: 2px; }
.hdr-pick button { --ol: #6f7174; min-width: 46px; height: 36px; padding: 0 10px 4px; border: 0; border-radius: 0; cursor: pointer; font: inherit; font-size: 1.05rem;
  background: url(/art/ui/ButtonGrey2010.svg) center / 100% 100% no-repeat; }
.hdr-pick button[aria-pressed="true"] { --ol: #2e7812; background-image: url(/art/ui/ButtonGreen2010.svg); }

/* very narrow phones (320-360): the header bar's logo, Play free and Menu must fit inside the frame. Kept after
   the phone header block so it wins. */
@media (max-width: 360px) { html[data-hdr="a"] .top .brand img { width: 76px; } html[data-hdr="a"] .top-act { gap: 6px; } html[data-hdr="a"] .hdr-menu-btn .hdr-board { width: 84px; } }

/* ---- the account page's Inbox (rc-inbox.js), drawn like the game's Inbox pop-up: the red mailbox and a red
   "Inbox (n)" title outlined in dark red (sampled from design/ui-2010/ref/game-inbox-phone.png), grey mail
   tiles (MailTile2010 = MailButton) with the game's mail pictures and white outlined names and dates. */
.ib-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 4px; }
.ib-box { width: 52px; height: auto; margin-bottom: -6px; }
.ac-panel .ib-title { --ol: #680028; margin: 0; font: 400 clamp(1.7rem, 3vw, 2.1rem)/1.1 var(--display); color: #f05858;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.ib-grid { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px 10px; }
.ib-tile { --ol: #303030; position: relative; width: 100%; aspect-ratio: 86 / 101; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: end;
  padding: 10px 4px 10px; border: 0; cursor: pointer; background: url(/art/ui/MailTile2010.svg) center / 100% 100% no-repeat; transition: transform 40ms linear; }
.ib-tile:hover { transform: scale(1.1); } .ib-tile:active { transform: scale(.95); }
.ib-tile:focus-visible { outline: 3px solid #536868; outline-offset: 2px; }
.ib-tile.is-open { transform: scale(1.06); }
.ib-ico { width: 64%; height: 56%; object-fit: contain; align-self: center; }
.ib-from, .ib-date { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px 3px; color: #fff; font: 400 .95rem/1.05 var(--display);
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.ib-date { font-size: .78rem; }
.ib-empty { grid-column: 1 / -1; padding: 18px; color: #6b5943; }
.ib-more { margin: 4px 0 0; }
/* a tile opened: the 2010 text box (rim, grey band, white middle), brown text */
.ib-read { margin: 14px 0 4px; padding: 16px 18px; background: #fff; border: 2px solid #536868; border-radius: 14px; box-shadow: inset 0 0 0 6px #e6e6e6; color: #6b5943;
  animation: rc-pop .36s linear both; }
.ib-read-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ib-read-top img { width: 54px; height: 46px; object-fit: contain; }
.ib-read h3 { margin: 0; font: 400 1.25rem/1.1 var(--display); color: #6b5943; }
.ib-read small { color: #6b5943; opacity: .85; }
.ib-read p { margin: 6px 0; }
.ib-text { white-space: pre-line; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 8px; background: repeating-linear-gradient(#fff 0 23px, #e6e6e6 23px 24px); line-height: 24px; }
.ib-item { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.ib-item img { width: 32px; height: 32px; }
.ib-hint { font-size: .92rem; }
@media (max-width: 600px) { .ib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; } .ib-from { font-size: .85rem; } .ib-date { font-size: .7rem; } }
@media (prefers-reduced-motion: reduce) { .ib-read { animation: none; } }

/* ---- Report a bug (Mike, 3 Dec 2026: "It has to be obvious. So people can see it and click immediately") ----
   The floating button is the 2010 red button (ButtonDecline: #D84A4A face, #803B40 under-copies) with a white
   Huggable label outlined in #803B40, a tab on the right edge of every page (layout.mjs). Every few seconds
   it does the 2010 button grow (1.1) and press (.95) once, so the eye finds it; never with reduced motion.
   The page's Send button is ButtonAccept (green), its text fields the 2010 SearchBox field (square, #4C4238
   rim) with the Gift pop-up's ruled lines, and the place choice sits on #E6E6E6 uneven slots. */
.bug-fab { position: fixed; z-index: 55; right: env(safe-area-inset-right); top: 50%; width: 46px; height: 172px; margin-top: -86px;
  text-decoration: none; }
/* Mike, 3 Dec 2026 ("Its blocking"): at the bottom right it covered the history comic's next arrow, so it is
   now a side tab on the right edge, half way down: the 2010 red button turned on its side, reading upwards. */
.bug-fab span { position: absolute; left: 50%; top: 50%; width: 172px; height: 46px; margin: -23px 0 0 -86px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px 5px 0; box-sizing: border-box;
  background: url(/art/ui/ButtonRed2010.svg) center / 100% 100% no-repeat;
  --ol: #803b40; color: #fff; font: 400 1.2rem/1 var(--display); letter-spacing: .03em; white-space: nowrap;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol);
  transform: rotate(-90deg); transition: transform 40ms linear; animation: bug-nudge 7s linear 3s infinite; }
.bug-fab:hover span { transform: rotate(-90deg) scale(1.1); animation: none; }
.bug-fab:active span { transform: rotate(-90deg) scale(.95); }
.bug-fab:focus-visible { outline: 3px solid #2f9ac8; outline-offset: 2px; }
@keyframes bug-nudge { 0%, 90%, 100% { transform: rotate(-90deg) scale(1); } 92% { transform: rotate(-90deg) scale(1.1); } 95% { transform: rotate(-90deg) scale(.95); } 97% { transform: rotate(-90deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .bug-fab span { animation: none; } }
@media (max-width: 600px) {
  .bug-fab { width: 34px; height: 136px; margin-top: -68px; }
  .bug-fab span { width: 136px; height: 34px; margin: -17px 0 0 -68px; font-size: .95rem; padding: 0 3px 4px 0; }
}
html.rc-intro-on .bug-fab { visibility: hidden; }

.bug { max-width: 700px; } .bug-card { color: #6b5943; }
.bug .ac-field { color: #6b5943; }
.bug .ac-field small { font-weight: 600; color: #8a7c6c; }
.bug-where { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.bug-where legend { margin-bottom: 8px; padding: 0; font-weight: 800; color: #6b5943; font-size: .98rem; }
.bug-pick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 11px 12px; background: #e6e6e6; cursor: pointer;
  border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; font-weight: 700; color: #6b5943; transition: transform 40ms linear; }
.bug-pick:hover { transform: scale(1.05); }
.bug-pick:has(input:checked) { background: #a8e621; color: #2e7812; box-shadow: inset -3px -4px 0 #2e7812; }
.bug-pick input { width: 20px; height: 20px; margin: 0; accent-color: #2e7812; }
.bug-text { border: 2px solid #4c4238; border-radius: 0; resize: vertical; min-height: 0; font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 24px; padding: 6px 10px;
  background: repeating-linear-gradient(#fff 0 23px, #e6e6e6 23px 24px) 0 6px / 100% 24px local; color: #4c4238; }
.bug-text:focus { border-color: #2e7812; box-shadow: 0 0 0 3px rgb(168 230 33 / .6); }
.bug-sent { color: #8a7c6c; }
.bug-send { justify-self: start; height: 54px; padding: 0 30px 6px 24px; border: 0; border-radius: 0; cursor: pointer;
  background: url(/art/ui/ButtonGreen2010.svg) center / 100% 100% no-repeat;
  --ol: #2e7812; color: #fff; font: 400 1.35rem/1 var(--display); letter-spacing: .03em;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol);
  transition: transform 40ms linear; }
.bug-send:hover { transform: scale(1.1); }
.bug-send:active { transform: scale(.95); }
.bug-send:disabled { opacity: .7; cursor: progress; transform: none; }
.bug-done { animation: rc-pop .36s linear both; outline: none; }
.bug-row { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 18px 0 0; }
.bug-row .bug-send { display: inline-flex; align-items: center; text-decoration: none; height: 50px; padding: 0 22px 6px 18px; font-size: 1.2rem; }
.bug-send.grey { --ol: #6f7174; background-image: url(/art/ui/ButtonGrey2010.svg); }
.bug-row .bug-send:hover { color: #fff; }
.bug-done h2 { --ol: #6b5943; margin: 0 0 8px; color: #fff; font: 400 clamp(1.8rem, 3.4vw, 2.3rem)/1.1 var(--display);
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.bug-done b { color: #2f9ac8; }
.alpha-note a { font-weight: 800; white-space: nowrap; }
/* the screenshot: a grey ButtonSkip to choose one, the picture on a #E6E6E6 slot, the 2010 close cross to drop it */
.bug-shot { display: grid; gap: 8px; }
.bug-shot-label { font-weight: 800; color: #6b5943; font-size: .98rem; }
.bug-shot-label small { font-weight: 600; color: #8a7c6c; }
.bug-shot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bug-shot-pick { display: inline-flex; align-items: center; height: 46px; padding: 0 20px 5px 16px; font-size: 1.1rem; }
.bug-shot-pick:focus-within { outline: 3px solid #2f9ac8; outline-offset: 3px; }
.bug-shot-view { position: relative; justify-self: start; margin: 4px 0 0; padding: 8px; background: #e6e6e6; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px;
  animation: rc-pop .36s linear both; max-width: 100%; }
.bug-shot-view canvas { display: block; max-width: min(100%, 420px); max-height: 300px; width: auto; height: auto; }
.bug-shot-x { position: absolute; top: -12px; right: -12px; width: 32px; height: 37px; border: 0; padding: 0; cursor: pointer;
  background: url(/art/ui/ButtonCancel2010.svg) center / 100% 100% no-repeat; transition: transform 40ms linear; }
.bug-shot-x:hover { transform: scale(1.1); } .bug-shot-x:active { transform: scale(.9); }
.bug-shot-x:focus-visible { outline: 3px solid #2f9ac8; outline-offset: 2px; }

/* ---- 2010 buttons for new pages (ButtonAccept / ButtonSkip / BuyButton / ButtonDecline pictures, white Huggable
   labels outlined in the button's dark colour, grow 1.1 on hover, .95 when pressed). Use these, not btn-ok. ---- */
.btn10 { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px 6px 18px; border: 0; border-radius: 0;
  cursor: pointer; text-decoration: none; white-space: nowrap; background: url(/art/ui/ButtonGreen2010.svg) center / 100% 100% no-repeat;
  --ol: #2e7812; color: #fff; font: 400 1.2rem/1 var(--display); letter-spacing: .03em;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol);
  transition: transform 40ms linear; }
.btn10:hover, .btn10:focus { color: #fff; transform: scale(1.1); }
.btn10:active { transform: scale(.95); }
.btn10:disabled { opacity: .7; cursor: progress; transform: none; }
.btn10:focus-visible { outline: 3px solid #2f9ac8; outline-offset: 3px; }
.btn10.grey { --ol: #6f7174; background-image: url(/art/ui/ButtonGrey2010.svg); }
.btn10.blue { --ol: #305585; background-image: url(/art/ui/ButtonBlue2010.svg); }
.btn10.red { --ol: #803b40; background-image: url(/art/ui/ButtonRed2010.svg); }
.btn10-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 14px 0 0; }
/* an uneven #E6E6E6 slot, like the Inbox slots and friend-request rows */
.slot10 { background: #e6e6e6; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; }

/* ---- account page: your email (Mike, 3 Dec 2026: "it will just show a unverified tag at the email") ---- */
.ac-email, .ac-email .ac-note { color: #6b5943; }
.em-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; font-size: 1.15rem; }
.em-addr { overflow-wrap: anywhere; }
.em-tag { display: inline-block; padding: 5px 12px 7px; background: #e6e6e6; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px;
  color: #803b40; font-weight: 800; font-size: .9rem; }
.em-tag.ok { background: #a8e621; color: #2e7812; box-shadow: inset -3px -4px 0 #2e7812; }
.em-news { margin-top: 16px; color: #6b5943; }
.em-form .ac-field { max-width: 460px; }
.em-choose { margin: 0 0 14px; padding: 12px 16px; background: #e6e6e6; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; color: #6b5943; animation: rc-pop .36s linear both; }

/* ---- Rewards page (server: server/src/rewards). Mission tiles are #E6E6E6 slots with the icon on the 2010
   BaseButton tile, the cash in the blue cash-button colours, and a 2010 button: Go (green), Claim (blue). ---- */
.pg-rewards .ac-panel { color: #6b5943; }
.rw-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rw-loading { padding: 18px; color: #8a7c6c; font-weight: 700; }
.rw-tile { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; grid-template-areas: "icon copy pay" "icon copy act";
  gap: 4px 16px; align-items: center; padding: 12px 16px; background: #e6e6e6; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; }
.rw-tile:nth-child(2n) { border-radius: 13px 9px 14px 10px / 10px 13px 9px 14px; }
.rw-icon { grid-area: icon; width: 68px; height: 66px; display: grid; place-items: center; background: url(/art/ui/Tile2010.svg) center / 100% 100% no-repeat; }
.rw-icon img { max-width: 42px; max-height: 40px; margin-top: -3px; }
.rw-copy { grid-area: copy; }
.rw-copy h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #6b5943; }
.rw-copy p { margin: 2px 0 0; font-size: .95rem; color: #6b5943; }
.rw-pay { grid-area: pay; justify-self: end; display: inline-flex; align-items: center; gap: 4px; --ol: #305585; color: #fff; font: 400 1.5rem/1 var(--display);
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.rw-pay b { font-weight: 400; }
.rw-act { grid-area: act; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rw-act .btn10 { height: 46px; font-size: 1.1rem; padding: 0 20px 5px 16px; min-width: 96px; }
.rw-done, .rw-wait { display: inline-block; padding: 6px 12px 8px; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; font-weight: 800; font-size: .9rem; }
.rw-done { background: #a8e621; color: #2e7812; box-shadow: inset -3px -4px 0 #2e7812; }
.rw-wait { background: #fff; color: #8a7c6c; }
.rw-again { border: 0; padding: 2px 0; background: none; color: #2f9ac8; font: inherit; font-size: .85rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.rw-prog { position: relative; display: block; height: 20px; max-width: 220px; margin-top: 6px; background: #fff; border: 2px solid #4c4238; }
.rw-prog span { position: absolute; inset: 0 auto 0 0; background: #a8e621; }
.rw-prog b { position: relative; display: block; text-align: center; font-size: .78rem; line-height: 16px; color: #4c4238; }
.rw-note { color: #803b40 !important; font-weight: 700; }
.rw-err { color: #b3261e !important; font-weight: 700; }
.rw-tile.is-paid .rw-icon, .rw-tile.is-paid .rw-copy, .rw-tile.is-paid .rw-pay { opacity: .6; }
.rw-popped { animation: rc-pop .36s linear; }
.rw-float { position: absolute; right: 24px; top: -6px; display: inline-flex; align-items: center; gap: 4px; pointer-events: none; --ol: #305585; color: #fff;
  font: 400 1.7rem/1 var(--display); text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 3px 0 var(--ol);
  animation: rw-float 1.4s linear forwards; }
@keyframes rw-float { 0% { transform: translateY(10px) scale(.5); opacity: 1; } 15% { transform: translateY(0) scale(1.1); } 25% { transform: translateY(-4px) scale(1); }
  75% { opacity: 1; } 100% { transform: translateY(-46px) scale(1); opacity: 0; } }
.rw-deal { font-size: 1.1rem; }
.rw-cash { display: inline-flex; align-items: center; gap: 3px; vertical-align: -4px; --ol: #305585; color: #fff; font: 400 1.3rem/1 var(--display);
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol); }
.rw-link .ac-input { width: 100%; border: 2px solid #4c4238; border-radius: 0; font-size: 1rem; color: #4c4238; background: #fff; }
.rw-sub { margin: 20px 0 8px; font-size: 1.1rem; font-weight: 800; color: #6b5943; }
.rw-invited { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rw-invited li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 14px 10px; background: #e6e6e6;
  border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; }
.rw-invited li span { color: #8a7c6c; font-weight: 700; }
.rw-invited li.is-rewarded span { color: #2e7812; }
/* the proof pop-up: the 2010 pop-up (thin #536868 rim, #E6E6E6 band, white middle), title on the band, close cross */
.rw-dialog { padding: 14px 0 0; border: 0; background: transparent; width: min(540px, 100vw - 26px); max-width: none; max-height: calc(100dvh - 16px); overflow: auto; overscroll-behavior: contain; color: #6b5943; }
.rw-dialog::backdrop { background: rgb(20 40 10 / .55); }
.rw-proof { margin: 0; border: 2px solid #536868; background: #e6e6e6; border-radius: 16px; padding: 0 9px 9px; }
.rw-dialog[open] .rw-proof { animation: rc-pop .36s linear both; }
.rw-dialog.closing .rw-proof { animation: rc-pop-out .28s linear both; }
.rw-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 8px 10px; }
.rw-dlg-head h2 { --ol: #6b5943; margin: 0; color: #fff; font: 400 clamp(1.4rem, 4.6vw, 1.8rem)/1.1 var(--display);
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.rw-x { flex: none; width: 36px; height: 42px; border: 0; padding: 0; cursor: pointer; background: url(/art/ui/ButtonCancel2010.svg) center / 100% 100% no-repeat; transition: transform 40ms linear; }
.rw-x:hover { transform: scale(1.1); } .rw-x:active { transform: scale(.9); }
.rw-dlg-body { display: grid; gap: 12px; padding: 16px 16px 18px; background: #fff; border-radius: 12px; }
.rw-dlg-body > p { margin: 0; }
.rw-dlg-body .ac-input { border: 2px solid #4c4238; border-radius: 0; }
.rw-dlg-body .btn10-row { margin: 0; }
@media (max-width: 600px) {
  .rw-tile { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "icon copy" "pay act"; gap: 8px 12px; padding: 12px; }
  .rw-icon { width: 56px; height: 54px; } .rw-icon img { max-width: 34px; max-height: 32px; }
  .rw-pay { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .rw-popped, .rw-float, .rw-dialog[open] .rw-proof, .em-choose { animation: none; } .rw-float { display: none; } }

/* jumping to #email / #password (account page) stops below the floating header */
.ac-panel[id] { scroll-margin-top: 120px; }

/* ---- Daily streak box (account + Rewards pages; assets/rc-streak.js). The big number is a white Huggable digit
   outlined in brown on the 2010 BaseButton tile; the five days are #E6E6E6 slots, done = green like a ticked
   choice, next = the yellow #FFD536 item-slot ring. ---- */
.st { color: #6b5943; }
.st-top { display: flex; align-items: center; gap: 18px; }
.st-day { flex: none; width: 104px; height: 100px; display: grid; place-content: center; text-align: center; background: url(/art/ui/Tile2010.svg) center / 100% 100% no-repeat; }
.st-num { --ol: #6b5943; display: block; color: #fff; font: 400 2.6rem/1 var(--display); margin-top: -4px;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
.st-lbl { display: block; max-width: 80px; font-size: .72rem; font-weight: 800; color: #fff; line-height: 1.1; text-shadow: 0 1px 0 #4c4c4c, 0 -1px 0 #4c4c4c, 1px 0 0 #4c4c4c, -1px 0 0 #4c4c4c; }
.st-copy h2 { margin: 0 0 4px; }
.st-copy p { margin: 0; font-size: 1.05rem; }
.st-cycle { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.st-slot { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; background: #e6e6e6; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; }
.st-slot:nth-child(2n) { border-radius: 13px 9px 14px 10px / 10px 13px 9px 14px; }
.st-slot img { width: 40px; height: 40px; object-fit: contain; }
.st-slot b { font-size: 1rem; color: #6b5943; }
.st-slot span { font-size: .78rem; font-weight: 800; color: #8a7c6c; white-space: nowrap; }
.st-slot.is-done { background: #a8e621; box-shadow: inset -3px -4px 0 #2e7812; }
.st-slot.is-done b, .st-slot.is-done span { color: #2e7812; }
.st-slot.is-next { background: #fff; box-shadow: inset 0 0 0 4px #ffd536; animation: rc-pop .36s linear both; }
.st-slot.is-next span { color: #6b5943; }
.st-slot.is-later img { opacity: .55; }
.st-bonus { margin: 14px 0 0; font-size: 1rem; }
.st-bonus img { display: inline-block; vertical-align: -5px; margin-right: 4px; }
.st-bonus b { color: #305585; }
@media (max-width: 600px) {
  .st-top { gap: 12px; } .st-day { width: 84px; height: 82px; } .st-num { font-size: 2.1rem; }
  .st-cycle { gap: 6px; } .st-slot { padding: 8px 2px 6px; } .st-slot img { width: 32px; height: 32px; } .st-slot span { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .st-slot.is-next { animation: none; } }

/* ---- Earn Playfish Cash in the top bar and phone menu (a .don-top tile with the game's cash note) ---- */
.cash-top img { object-fit: contain; }
html[data-hdr] :is(.top, .hdr-drop) .cash-top img { width: 30px; height: 30px; }
html[data-hdr] .hdr-drop .cash-top > img { width: 36px; height: 26px; margin: 16px 2px 22px 0; }

/* ---- bar fits: site.js adds fit-1..fit-5 to .top, one at a time, while the bar's contents stick out past its end
   (Mike, 3 Dec 2026: Play poked out of the bar). Each step keeps the ones before it. ---- */
.top.fit-1 .online-words { display: none; }
.top.fit-1 .online { padding-inline: 9px 11px; gap: 6px; }
html .top.fit-2 .top-nav ul { gap: 4px; }
html .top.fit-2 { column-gap: 10px; }
.top.fit-3 .play-free { display: none; }
.top.fit-4 .online { display: none !important; }
html .top.fit-5 .top-act { gap: 3px; }
html .top.fit-5 { column-gap: 6px; }

/* ---- account tabs: Restaurant, Inbox, Settings (Mike, 3 Dec 2026: "I have to scroll very down for setting").
   BaseButton tiles with the game's icons and white outlined names, like the phone menu. Boxes of the other tabs
   are hidden (body[data-ac-tab], assets/rc-ac-tabs.js).
   The open tab is the game's own "selected" tab (game_asset.swf, BuildingItemChooserScene2 > mc_tabShop, frame 4):
   a solid #E6E6E6 folder tab with a thin #536868 rim and a rounded top, open at the bottom, that runs into the
   window's own #E6E6E6 band; the icon is drawn a size up (frame 2's size) and sticks out above the folder's top.
   Mike, 3 Dec 2026, on a grey slot floating on the lawn: "This looks weird". So the tab row sits right on the
   first window (margin-bottom = the window's 52px gap less its 10px band), and the folder (::before) is cut off
   at its bottom edge (clip-path), where it meets the band. Unselected tabs are just the icons, like the game. ---- */
.ac-tabs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px;
  margin: 20px 0 -42px; padding: 0 30px; }
body:not(.pg-home) main > .page-head.ac-head { padding-bottom: 0; margin-bottom: 0; }
.ac-tab { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; min-width: 104px;
  padding: 8px 8px 8px; text-decoration: none; color: #fff; transition: transform 40ms linear; }
.ac-tab:hover { transform: scale(1.1); } .ac-tab:active { transform: scale(.95); }
.ac-tab[aria-selected="true"] { transform: none; }
.ac-tab[aria-selected="true"]::before { content: ""; position: absolute; z-index: -1; inset: 30px 0 0; background: var(--frame);
  border-radius: 16px 16px 0 0; box-shadow: 0 0 0 3px var(--frame-line); clip-path: inset(-3px -3px 0 -3px); }
.ac-tab[aria-selected="true"] .ac-tab-ico { transform: scale(1.1); transform-origin: 50% 70%; }
.ac-tab:focus { outline: none; } .ac-tab:focus-visible { outline: 3px solid #2f9ac8; outline-offset: 2px; }
/* bare icons, no Tile2010 behind them (Mike, 3 Dec 2026: "without the container? It's like two frame now"),
   the size of the game's tab icons */
.ac-tab-ico { width: 72px; height: 62px; display: grid; place-items: center; }
.ac-tab-ico img { width: 58px; height: 58px; object-fit: contain; }
.ac-tab-word { --ol: #6b5943; position: relative; margin-top: -4px; color: #fff; font: 400 1.15rem/1.1 var(--display); white-space: nowrap;
  text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
body[data-ac-tab="restaurant"] main > [data-tab]:not([data-tab="restaurant"]),
body[data-ac-tab="inbox"] main > [data-tab]:not([data-tab="inbox"]),
body[data-ac-tab="settings"] main > [data-tab]:not([data-tab="settings"]) { display: none !important; }
/* switching tabs: the boxes come in with the 2010 mail pop-up's grow (MailClientPopUpAnim, 0.28 s) */
@keyframes ac-pop { 0% { transform: scale(.8); } 17% { transform: scale(.91); } 33% { transform: scale(.99); } 50% { transform: scale(1.03); }
  67% { transform: scale(1.05); } 83% { transform: scale(1.03); } 100% { transform: scale(1); } }
.ac-pop { animation: ac-pop .28s linear; transform-origin: 50% 0; }
.ac-photo .btn10 { height: 42px; padding: 0 16px 5px 13px; font-size: 1rem; }
.ac-out .btn10-row { margin-top: 6px; }
@media (max-width: 440px) {
  /* the open tab's frame reaches 13px past its sides, so the gaps stay wider than that */
  .ac-tabs { flex-wrap: nowrap; justify-content: space-evenly; gap: 16px; padding: 0 4px; }
  .ac-tab { min-width: 0; padding: 6px 3px 8px; }
  .ac-tab-ico { width: 64px; height: 54px; } .ac-tab-ico img { width: 50px; height: 50px; }
  .ac-tab-word { font-size: 1rem; }
}
@media (max-width: 370px) {
  .ac-tabs { gap: 15px; padding: 0; }
  .ac-tab { padding: 5px 1px 7px; }
  .ac-tab-ico { width: 58px; height: 50px; } .ac-tab-ico img { width: 46px; height: 46px; }
  .ac-tab-word { font-size: .88rem; }
}

/* ---- drop-downs on computers (Mike, 3 Dec 2026: "Can we have some drop down or mega menu ... link that used
   frequently?"). Each top link shows its related pages in a small 2010 pop-up (thin #536868 rim, #E6E6E6 band,
   white middle), popping in with the mail pop-up's grow from the top. Rows are brown Huggable; the hovered row and
   the page you're on sit on the uneven #E6E6E6 slot. Phones keep the Menu pop-up of tiles. ---- */
.nav-more, .acct-more { display: none; }
@keyframes drop-pop { 0% { transform: scale(.8); } 17% { transform: scale(.91); } 33% { transform: scale(.99); } 50% { transform: scale(1.03); }
  67% { transform: scale(1.05); } 83% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (min-width: 901px) {
  html[data-hdr] .top .top-nav li.has-more { position: relative; }
  html[data-hdr] .top .nav-more { position: absolute; z-index: 60; top: calc(100% + 12px); left: 50%; margin-left: -112px; width: 224px;
    padding: 12px 12px 14px; border: 2px solid #536868; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 6px #e6e6e6;
    transform-origin: 50% 0; }
  html[data-hdr] .top .nav-more::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* bridge the gap */
  html[data-hdr] .top .top-nav li.has-more:is(:hover, :focus-within) > .nav-more { display: grid; gap: 2px; animation: drop-pop .28s linear; }
  /* Only one list at a time: a menu kept open by focus (clicked earlier) closes when the mouse moves onto another one (Mike, 3 Dec 2026: News and History open together). */
  html[data-hdr] .top .top-nav ul:has(> li.has-more:hover) > li.has-more:not(:hover) > .nav-more { display: none; }
  html[data-hdr] .top .nav-more a { display: block; padding: 8px 12px 9px; border: 0; color: #6b5943; font: 400 1.02rem/1.15 var(--display); white-space: normal;
    text-decoration: none; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; transition: none; }
  html[data-hdr] .top .nav-more a:hover, html[data-hdr] .top .nav-more a:focus-visible, html[data-hdr] .top .nav-more a[aria-current] { background: #e6e6e6; transform: none; outline: none; }
  html[data-hdr] .top .nav-more a:active { transform: scale(.97); }

  /* your chef picture: the player's own pages as BaseButton tiles, and Log out */
  html[data-hdr] .top .acct-more:not([hidden]) { display: block; position: absolute; z-index: 60; top: calc(100% + 10px); width: 330px; padding: 10px 12px 14px;
    border: 2px solid #536868; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 6px #e6e6e6; transform-origin: 85% 0; animation: drop-pop .28s linear; }
  html[data-hdr] .top .acct-more::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .acct-more-title { --ol: #6b5943; margin: 4px 8px 6px; color: #fff; font: 400 1.25rem/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: -2px -2px 0 var(--ol), 2px -2px 0 var(--ol), -2px 2px 0 var(--ol), 2px 2px 0 var(--ol), 0 2px 0 var(--ol), 0 -2px 0 var(--ol), 2px 0 0 var(--ol), -2px 0 0 var(--ol), 0 3px 0 var(--ol); }
  .acct-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .acct-more .ac-tab { min-width: 0; padding: 6px 2px 5px; }
  .acct-more .ac-tab-ico { width: 64px; height: 60px; } .acct-more .ac-tab-ico img { width: 34px; height: 34px; }
  .acct-more .ac-tab-word { font-size: .98rem; }
  .acct-more .ac-tab:hover { background: #e6e6e6; border-radius: 9px 14px 10px 13px / 12px 9px 14px 10px; }
  .acct-more-n { --ol: #803b40; position: absolute; top: 2px; right: 14px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #eb302e;
    color: #fff; font: 400 .85rem/22px var(--display); text-align: center; }
  .acct-more .btn10-row { justify-content: center; margin-top: 8px; }
  .acct-more .btn10 { height: 44px; font-size: 1.05rem; padding: 0 18px 5px 14px; }
}
.hdr-drop :is(.nav-more, .acct-more) { display: none !important; }
@media (prefers-reduced-motion: reduce) { html[data-hdr] .top :is(.nav-more, .acct-more) { animation: none !important; } }

/* FAQ open/close animation (site.js; Mike, 3 Dec 2026). While a card shuts it already looks closed:
   grey row and the + circle. The circle pops like the 2010 mail pop-up (0.28 s). */
.faq details { transition: background-color .2s, box-shadow .2s; }
main .faq details.faq-closing, .pg-home .faq details.faq-closing { background: #f2f2f2; box-shadow: none; }
.faq details.faq-closing summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 3px 12px no-repeat, var(--cream-2); }
.faq summary.faq-pop::after { animation: faq-pop .28s linear; }
@keyframes faq-pop {
  0% { transform: translateY(-50%) scale(.8); } 17% { transform: translateY(-50%) scale(.91); }
  33% { transform: translateY(-50%) scale(.99); } 50% { transform: translateY(-50%) scale(1.03); }
  67% { transform: translateY(-50%) scale(1.05); } 83% { transform: translateY(-50%) scale(1.03); }
  100% { transform: translateY(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .faq summary.faq-pop::after { animation: none; } .faq details { transition: none; } }

/* Medium screens (901-1150 px): the Earn cash tile made the header too wide and pushed Play off the edge.
   The menu words lose their little pictures there, and the gaps close up (3 Dec 2026). */
@media (min-width: 901px) and (max-width: 1150px) {
  .top .top-nav .nav-ico { display: none; }
  .top, .top-nav ul { gap: 10px; }
  .top .top-act { gap: 8px; }
}
@media (min-width: 901px) and (max-width: 1000px) { .top .play-free { display: none; } }

/* ---- Narrow Android phones (Mike, 3 Dec 2026: "very buggy in android, many allignment are off").
   Many Android phones are 360-384 px wide (iPhones 390+), and Android Chrome zooms the whole page when the
   phone's text size is set larger, which can leave 320 px. Checked at 320 and 360 px. ---- */
.alpha-copy { min-width: 0; }
@media (max-width: 480px) {
  /* the donate box: bag beside the heading, the sentence and button full width under them */
  .don-band-in { grid-template-columns: 44px 1fr; row-gap: 10px; }
  .don-band-copy { display: contents; }
  .don-band-bag { grid-row: 1; grid-column: 1; width: 44px; }
  .don-band-copy h2 { grid-row: 1; grid-column: 2; align-self: center; margin: 0; text-wrap: wrap; }
  .don-band-copy p { grid-column: 1 / -1; }
  /* the Report a bug tab: slimmer, so it covers less of the cards' edge */
  .bug-fab { width: 26px; height: 118px; margin-top: -59px; }
  .bug-fab span { width: 118px; height: 26px; margin: -13px 0 0 -59px; font-size: .78rem; padding: 0 2px 3px 0; }
  /* page titles small enough that the longest word fits */
  .page-head h1, main > article.prose .page-head h1 { font-size: clamp(1.7rem, 8.6vw, 2.2rem); }
  /* the big levels table scrolls sideways: no squashed cells, level number stays in view */
  .levels-table.big th, .levels-table.big td { white-space: nowrap; }
  .levels-table.big tr > :first-child { position: sticky; left: 0; z-index: 1; background: #f2f2f2; }
  .levels-table.big thead tr > :first-child { background: #e6e6e6; }
  .levels-table.big tr.mark > :first-child { background: #e8f7cf; }
}
@media (max-width: 480px) { .cta-row .btn-lg.is-off { white-space: nowrap; padding-inline: .9em; font-size: 1.05rem; } }

/* ---- the game's tooltip (game_asset.swf ItemToolTip): a white sheet on a grey #7F7F7F sheet, a little
   pointer, centred Huggable 14 px in #666666, no outline, no animation. Drawn from the exported shapes
   (art/ui/ItemToolTip-box.svg, -tip-up.svg); site.js "the game's tooltip" places it under the button. ---- */
.rc-tip { position: fixed; z-index: 400; pointer-events: none; min-width: 84px; padding: 8px 14px 11px;
  background: url(/art/ui/ItemToolTip-box.svg) 0 0 / 100% 100% no-repeat; color: #666; text-align: center;
  font: 400 15px/1.2 var(--display); white-space: nowrap; }
.rc-tip::before { content: ''; position: absolute; top: -18px; left: calc(50% - 12px + var(--px, 0px)); width: 23px; height: 24px;
  background: url(/art/ui/ItemToolTip-tip-up.svg) 0 0 / 100% 100% no-repeat; }
.rc-tip[hidden] { display: none; }

/* A news post's banner (front matter image:, Original Kopi 5 Dec 2026): the picture itself, under the heading. */
.post-banner { margin: 0 0 1.6em; }
.post-banner img { display: block; width: 100%; height: auto; border-radius: 14px; }
