/* Kuru's Game Room (/games/): hero with Kuru and the Standard picker, today's three tickets, the felt island (felt pictures of the
   seven places as links, see the end of this file), the shelf of game cards, the grown-ups
   strip and a small footer. Markup: web/games/index.html; behaviour: js/games/hub.js, js/games/campus.js.
   Paper pieces move on twos (stepped) and stop under reduced motion; UI uses the site's settle curve. */
/* 15 Nov: while the web fonts load, the hub's text is set in a local font sized to match them (size-adjust and the
   ascent and descent of Baloo 2 and Nunito Sans, measured against Arial), so lines do not rewrap and the page does not jump
   when the fonts arrive (a tablet on slow 4G moved 0.21 to 0.51). Same Latin range as the web fonts, and last in the list
   before system-ui, so once the fonts are loaded nothing looks different. */
@font-face { font-family: "Naalai Body Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto"), local("Liberation Sans"); font-weight: 200 600;
  size-adjust: 100.5%; ascent-override: 100.5%; descent-override: 34.8%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Naalai Body Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Roboto Bold"), local("Liberation Sans Bold"); font-weight: 601 1000;
  size-adjust: 97.5%; ascent-override: 103.6%; descent-override: 35.9%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Naalai Display Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Roboto Bold"), local("Liberation Sans Bold"); font-weight: 400 1000;
  size-adjust: 93%; ascent-override: 116%; descent-override: 56%; line-gap-override: 0%; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --font-display: "Baloo 2", "Nunito Sans", "Naalai Rupee", "Naalai Display Fallback", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Naalai Rupee", "Naalai Body Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.hb { background-color: var(--paper); }
.hb-h2 { font: 800 clamp(28px, 3.4vw, 46px)/1.08 var(--font-display); color: var(--ink); letter-spacing: -.012em; }

/* ---------- the world: one sky behind the title and the campus. A grid, so on phones today's three can sit in the
   sky above the map while keyboards on wide screens keep the order hero, map, today. */
.hb-world { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: clip; isolation: isolate;
  --hero-ink: var(--ink); --hero-ink-2: var(--ink-2); --hero-accent: var(--blue); }
.hb-world[data-sky="dusk"] { --hero-ink-2: var(--ink); --hero-accent: #1A35A0; }
.hb-world[data-sky="night"] { --hero-ink: #FFFFFF; --hero-ink-2: #E3E9FF; --hero-accent: #FFD766; }
.hb-world[data-sky="night"] :focus-visible { outline-color: var(--lemon); }
.hb-sky { grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#B9E1F8, #DDF1FC 58%, #EFF9FD); }
.hb-sky__dusk, .hb-sky__night { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms steps(9, end); }
.hb-sky__dusk { background: linear-gradient(#F4A173, #FFCFA0 52%, #FFE9C9); }
.hb-sky__night { background: linear-gradient(#111A47, #1D2860 52%, #2C3A78); }
.hb-world[data-sky="dusk"] .hb-sky__dusk, .hb-world[data-sky="night"] .hb-sky__night { opacity: 1; }
.hb-stars { position: absolute; left: 0; top: 0; width: 100%; height: 300px; opacity: 0; transition: opacity 900ms steps(9, end); }
.hb-world[data-sky="night"] .hb-stars { opacity: 1; }
.hb-cloud { position: absolute; width: clamp(110px, 15vw, 210px); transition: opacity 900ms steps(9, end); }
.hb-cloud--1 { left: 42%; top: 26px; }
.hb-cloud--2 { left: 72%; top: 118px; width: clamp(90px, 12vw, 170px); }
.hb-cloud--3 { left: 8%; top: 230px; width: clamp(80px, 10vw, 150px); }
.hb-world[data-sky="night"] .hb-cloud { opacity: .14; }
.hb-kite { position: absolute; display: block; width: clamp(38px, 4.4vw, 62px); transform-box: fill-box; transform-origin: 50% 0; }
.hb-kite__art { display: block; width: 100%; height: auto; overflow: visible; }
.hb-kite--a { left: 57%; top: 12px; }
.hb-kite--b { left: 86%; top: 196px; }
.hb-world[data-sky="night"] .hb-kite { opacity: .5; }

/* ---------- the hero: the words in the sky; Kuru stands on the hill */
.hb-hero__in { grid-column: 1; grid-row: 1; position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, .62fr); gap: clamp(20px, 3vw, 44px); align-items: start;
  padding-top: clamp(20px, 2.8vw, 40px); }
.hb-kicker { gap: 10px; color: var(--hero-ink-2); }
.hb-kicker__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sun-deep); box-shadow: 0 1px 0 rgba(90, 42, 0, .25); }
.hb-titlerow { display: flex; align-items: flex-start; gap: clamp(10px, 2vw, 28px); margin-top: 8px; }
.hb-title { flex: 0 1 auto; min-width: 0; }
.hb-title__1 { display: block; font-size: clamp(44px, 5vw, 76px); line-height: 1.02; color: var(--hero-ink); letter-spacing: .002em; white-space: nowrap; }
.hb-title__2 { display: block; margin-top: 8px; font: 800 clamp(22px, 2.3vw, 34px)/1.12 var(--font-display); color: var(--hero-accent); letter-spacing: -.01em; }
.hb-lead { margin-top: 10px; font: 700 clamp(18px, 1.4vw, 20px)/1.4 var(--font-body); color: var(--hero-ink); }
.hb-lead b { font-weight: 800; }
.hb-stdbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(12px, 1.6vw, 20px); }
.hb-stdbox__t { font: 800 17px/1.2 var(--font-body); color: var(--hero-ink); }
.hb-std { display: flex; flex-wrap: wrap; gap: 8px; }
/* the Standard buttons are written by hub.js: hold their row open so the hero does not jump when they arrive (CLS) */
html.js .hb-std:empty { min-height: 48px; min-width: min(100%, 440px); }
.hb-chip { appearance: none; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 0 16px; cursor: pointer;
  border-radius: 14px 16px 13px 15px / 15px 13px 16px 14px; background: var(--card); color: var(--ink); font: 800 17px/1 var(--font-body);
  box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .1), 0 1px 0 rgba(255, 255, 255, .9), 0 4px 8px -6px rgba(90, 42, 0, .4); transition: translate 160ms var(--m-settle, ease); }
.hb-chip:active { translate: 0 1px; }
@media (hover: hover) and (pointer: fine) { .hb-chip:hover { translate: 0 -2px; } }
.hb-chip--std { min-width: 52px; font: 800 20px/1 var(--font-display); }
.hb-chip--std:first-child { font: 800 16px/1 var(--font-body); }
.hb-chip[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 1px 1px rgba(11, 26, 85, .3), 0 8px 14px -8px rgba(11, 26, 85, .5); }
@media (max-width: 520px) {
  .hb-std { flex-wrap: nowrap; gap: 3px; width: 100%; }
  .hb-std .hb-chip--std { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0; font-size: 19px; }
  .hb-std .hb-chip--std:first-child { flex: 0 0 46px; font-size: 15px; }
  html.js .hb-std:empty { min-height: 46px; }
}

/* the sun and the moon: tap one and the other comes up */
.hb-orb { position: relative; flex: none; width: clamp(68px, 8vw, 112px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hb-orb img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 900ms steps(9, end), opacity 500ms steps(5, end); filter: drop-shadow(0 3px 2px rgba(90, 42, 0, .24)); }
.hb-orb__moon { transform: translateY(44%) rotate(-24deg); opacity: 0; }
.hb-world[data-sky="night"] .hb-orb__sun { transform: translateY(58%) rotate(40deg); opacity: 0; }
.hb-world[data-sky="night"] .hb-orb__moon { transform: none; opacity: 1; }
.hb-orb::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; }
.hb-orb:focus-visible { outline-color: var(--hero-ink); outline-offset: 5px; }

.hb-hero__kuru { position: relative; z-index: 2; display: grid; justify-items: center; gap: 8px; }
.hb-say { --pk-bub: var(--card); max-width: 22em; min-height: 3.2em; display: grid; place-items: center; font: 700 18px/1.3 var(--font-body); text-align: center; border-radius: 1.2em 1.3em 1.25em 1.15em / 1.25em 1.15em 1.3em 1.2em; padding: .55em 1em; }
.hb-say::after { left: 50%; bottom: -.7em; translate: -50% 0; width: 1.2em; height: .8em; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 0; }
.hb-kuru { appearance: none; border: 0; padding: 0; margin: -6px 0 -62px; background: none; cursor: pointer; border-radius: 30px; }
.hb-kuru__fig { display: block; width: clamp(140px, 15vw, 214px); min-height: clamp(154px, 16.5vw, 236px); }
.hb-kuru:focus-visible { outline-offset: 6px; }
.hb-me { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; padding: 2px 6px 2px 16px; border-radius: 999px; background: var(--card);
  box-shadow: var(--pk-edge-light, inset 0 1px 0 #fff), 0 1px 1px rgba(90, 42, 0, .2), 0 8px 16px -10px rgba(90, 42, 0, .4); font: 700 16px/1.3 var(--font-body); color: var(--ink-2); }
.hb-me:empty { min-width: 240px; min-height: 48px; visibility: hidden; }
.hb-me__stat { display: inline-flex; align-items: center; gap: 6px; }
.hb-me__stat b { font: 800 20px/1 var(--font-display); color: var(--ink); }
.hb-me__star, .hb-card__star { width: 18px; height: 18px; flex: none; background: #F2A516; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 80% 100%, 50% 79%, 20% 100%, 29% 61%, 0 38%, 37% 35%); }
.hb-me__stk { width: 18px; height: 18px; border-radius: 6px; background: var(--pink); box-shadow: inset 0 0 0 2.5px #fff, 0 1px 1px rgba(90, 42, 0, .3); rotate: -8deg; }
.hb-me__album { display: inline-flex; align-items: center; min-height: 44px; font: 800 16px/1 var(--font-body); color: var(--blue); }
.hb-me__who { flex-basis: 100%; text-align: center; font-size: 15px; padding-bottom: 8px; }
.hb-me__short { display: none; }
@media (max-width: 1199px) { .hb-me__long { display: none; } .hb-me__short { display: inline; } }
.hb-sound { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.hb-sound svg { width: 24px; height: 24px; }
.hb-sound[aria-pressed="false"] { color: var(--ink-3); }

/* ---------- the island: see the felt island block at the end of this file */
html.js .hb-today:empty { min-height: 120px; }
html.js .hb-list:empty { min-height: 80vh; }
html.js .hb-places:empty { min-height: 48px; }

/* moving paper bits on the map (12 drawings a second); everything stops off screen and under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .hb-cloud--1 { animation: hb-cloud 110s steps(660, end) -40s infinite; }
  html:not(.rm) .hb-cloud--2 { animation: hb-cloud 150s steps(900, end) -120s infinite; }
  html:not(.rm) .hb-cloud--3 { animation: hb-cloud 130s steps(780, end) -8s infinite; }
  html:not(.rm) .hb-kite { animation: hb-kite 2.6s steps(8, end) infinite alternate; }
  html:not(.rm) .hb-kite--b { animation-duration: 3.3s; animation-delay: -1.6s; }
  html:not(.rm) .hb-star--0 { animation: hb-twinkle 1.4s steps(2, jump-none) infinite alternate; }
  html:not(.rm) .hb-star--1 { animation: hb-twinkle 2.1s steps(2, jump-none) -.7s infinite alternate; }
  html:not(.rm) .hb-fly { animation: hb-twinkle 1.2s steps(3, jump-none) infinite alternate; }
  html:not(.rm) .hb-fly--1 { animation-delay: -.5s; animation-duration: 1.7s; }
  html:not(.rm) .hb-fly--2 { animation-delay: -.9s; animation-duration: 1.4s; }
  html:not(.rm) .hb-lamp { animation: hb-beam 4s steps(24, end) infinite alternate; }
  html:not(.rm) .hb-orb:not(.is-known)::after { animation: hb-ring 2.4s steps(10, end) infinite; }
  html:not(.rm) .hb-orb:not(.is-known) .hb-orb__sun { animation: hb-nudge 2.4s steps(6, end) infinite; }
}
.hb-world.is-away :is(.hb-cloud, .hb-kite, .hb-star--0, .hb-star--1, .hb-fly, .hb-lamp, .fi__img, .fi__kuru) { animation-play-state: paused; }
/* translate and rotate (not transform), so a kite keeps its place */
@keyframes hb-kite { from { translate: 0 0; rotate: -4deg; } to { translate: 0 10px; rotate: 5deg; } }
@keyframes hb-cloud { from { translate: -60vw 0; } to { translate: 60vw 0; } }
@keyframes hb-twinkle { from { opacity: 1; } to { opacity: .3; } }
@keyframes hb-ring { 0% { opacity: .9; transform: scale(.9); } 60%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes hb-nudge { 0%, 70%, 100% { rotate: 0deg; } 80% { rotate: -6deg; } 90% { rotate: 5deg; } }
@keyframes hb-beam { from { rotate: -10deg; } to { rotate: 12deg; } }

/* the note that slides up with a fact */
.hb-note { position: fixed; z-index: 55; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); pointer-events: none; display: flex; align-items: center; gap: 12px; width: min(460px, calc(100% - 24px)); translate: -50% 0; padding: 12px 18px;
  border-radius: 18px 22px 17px 21px / 21px 17px 22px 18px; background: var(--card); box-shadow: inset 0 0 0 3px var(--sun), var(--sh-paper-lift); }
.hb-note[hidden] { display: none; }
.hb-note__art { flex: none; width: 74px; }
.hb-note__art[hidden] { display: none; }
.hb-note__t { font: 800 18px/1.3 var(--font-body); color: var(--ink); }
.hb-note__n { margin-top: 2px; font: 800 15px/1.25 var(--font-body); color: var(--ink-2); }
.hb-note__n[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .hb-note.is-in { animation: hb-note 420ms var(--g-spring) both; } }
@keyframes hb-note { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* under the campus: what to do, and the ten secrets */
.hb-legend { grid-column: 1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 18px; }
.hb-legend__t, .hb-legend__s { font: 700 17px/1.4 var(--font-body); color: var(--ink-2); }
.hb-legend__s { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ink); }

/* today's three: paper tickets with a number stamp, and the spinning top */
.hb-todaybox { grid-column: 1; grid-row: 4; position: relative; z-index: 2; margin-top: clamp(20px, 3vw, 36px); padding: clamp(16px, 2.4vw, 28px); border-radius: var(--pk-cut, 26px); background: var(--lemon);
  box-shadow: var(--pk-edge-light, inset 0 1px 0 #fff), var(--sh-paper); }
.hb-todaybox__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.hb-todaybox__sub { font: 700 17px/1.4 var(--font-body); color: var(--ink-on-sun); }
.hb-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); margin-top: 14px; counter-reset: t; }
.hb-ticket-wrap { display: grid; }
.hb-ticket { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; min-height: 120px; padding: 16px 18px 16px 16px;
  border-radius: 18px 22px 17px 21px / 21px 17px 22px 18px; background: var(--card); color: var(--ink); text-decoration: none; isolation: isolate;
  box-shadow: inset 0 0 0 3px var(--pl-bg), var(--g-sh); transition: translate 200ms var(--m-settle, ease); }
.hb-ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 11px; border-radius: 18px 0 0 21px; background: var(--pl-c); z-index: -1; }
@media (hover: hover) and (pointer: fine) { .hb-ticket:hover { translate: 0 -3px; box-shadow: inset 0 0 0 3px var(--pl-bg), var(--g-sh-lift); } }
.hb-ticket:active { translate: 0 1px; }
.hb-ticket__no { position: absolute; left: -10px; top: -12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--ink);
  font: 800 18px/1 var(--font-display); box-shadow: 0 1px 1px rgba(90, 42, 0, .35); rotate: -8deg; }
.hb-ticket__art { width: clamp(70px, 7vw, 92px); margin-left: 6px; }
.hb-ticket__body { display: grid; gap: 4px; min-width: 0; }
.hb-ticket__title { font: 800 clamp(19px, 1.7vw, 23px)/1.15 var(--font-display); color: var(--ink); text-wrap: balance; }
.hb-ticket__place { font: 800 15px/1.2 var(--font-body); color: var(--pl-ink); }
.hb-ticket__go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 36px; padding: 0 16px 0 12px; border-radius: 99px; background: var(--blue); color: #fff; font: 800 15px/1 var(--font-body); }
.hb-ticket__go::before { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.hb-ticket__stamp { position: absolute; right: 10px; top: 8px; padding: 3px 9px 2px; rotate: 9deg; border: 2.5px solid #2F7D45; border-radius: 8px; color: #2F7D45; font: 800 15px/1.1 var(--font-display); background: rgba(255, 255, 255, .7); }
.hb-spinbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.hb-spin { appearance: none; border: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 22px 0 10px; border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer;
  font: 800 18px/1 var(--font-display); box-shadow: var(--g-edge), var(--g-sh); touch-action: manipulation; transition: translate 160ms var(--m-settle, ease); }
.hb-spin:active { translate: 0 1px; }
@media (hover: hover) and (pointer: fine) { .hb-spin:hover { translate: 0 -2px; } }
.hb-spin__top { display: block; width: 44px; }
.hb-spinbox__t { font: 700 17px/1.3 var(--font-body); color: var(--ink-on-sun); }
.hb-got { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 4px 16px 4px 8px; border-radius: 16px 19px 15px 18px / 18px 15px 19px 16px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--g-sh); }
.hb-got[hidden] { display: none; }
.hb-got__art { width: 46px; flex: none; }
.hb-got__t { font: 800 18px/1.15 var(--font-display); }
.hb-got__go { padding: 7px 14px; border-radius: 99px; background: var(--blue); color: #fff; font: 800 15px/1 var(--font-body); }
.hb-spinbox:has(.hb-got:not([hidden])) .hb-spinbox__t { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .hb-spinbox.is-spinning .hb-spin__top { animation: hb-topspin 166ms steps(2, jump-none) infinite; }
  html:not(.rm) .hb-got.is-done { animation: g-pop 380ms var(--g-spring) both; }
}
@keyframes hb-topspin { from { transform: rotate(-9deg) scaleX(1); } to { transform: rotate(9deg) scaleX(-1); } }

@media (max-width: 859px) {
  .hb-hero__in { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hb-titlerow { display: block; position: relative; }
  .hb-title__1 { font-size: clamp(46px, 9vw, 64px); }
  .hb-orb { position: absolute; right: 0; top: -28px; width: clamp(70px, 12vw, 96px); }
  .hb-hero__kuru { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "kuru say" "kuru me"; align-items: center; justify-items: start; gap: 8px 14px; }
  .hb-kuru { grid-area: kuru; margin: 0; }
  .hb-kuru__fig { width: clamp(84px, 24vw, 130px); min-height: clamp(92px, 26vw, 143px); }
  html.js .hb-today:empty { min-height: 140px; }
  .hb-say { grid-area: say; display: block; min-height: 0; text-align: left; font-size: 17px; border-radius: 1.1em 1.25em 1.15em .35em / 1.2em 1.1em 1.25em .35em; }
  .hb-say::after { left: -.55em; bottom: .6em; translate: none; width: .85em; height: .9em; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
  .hb-me { grid-area: me; justify-self: start; column-gap: 12px; }
  /* phones: today's three stay near the top, in the sky, as three small tickets; the campus trail follows */
  .hb-sky { grid-row: 1 / span 3; }
  .hb-todaybox { grid-row: 2; z-index: 2; margin-top: 16px; padding: 12px; }
  .hb-map { grid-row: 3; margin-top: 14px; }
  .hb-legend { grid-row: 4; }
  .hb-today { gap: 8px; margin-top: 12px; }
  .hb-ticket { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; min-height: 0; height: 100%; padding: 12px 8px 10px; text-align: center; align-content: start; }
  .hb-ticket::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 9px; border-radius: 18px 22px 0 0; }
  .hb-ticket__no { left: -5px; top: -9px; width: 28px; height: 28px; font-size: 15px; }
  .hb-ticket__art { width: clamp(52px, 16vw, 76px); margin: 0; }
  .hb-ticket__body { justify-items: center; }
  .hb-ticket__title { font-size: clamp(15.5px, 4.3vw, 19px); }
  .hb-ticket__place { display: none; }
  .hb-ticket__go { display: none; }
  .hb-ticket__stamp { right: 2px; top: 10px; font-size: 15px; padding-inline: 6px; }
  .hb-spinbox { margin-top: 10px; }
  .hb-spinbox__t { flex: 1 1 130px; }
}
.hb-br { display: none; }
@media (max-width: 599px) { .hb-br { display: inline; } .hb-title__1 { white-space: normal; } }
@media (max-width: 699px) { .hb-kite, .hb-cloud--1 { display: none; } .hb-cloud--2 { top: 150px; left: 66%; } .hb-cloud--3 { top: 400px; } }

/* ---------- the shelf */
.hb-shelf { position: relative; padding: clamp(40px, 5vw, 80px) 0 clamp(50px, 6vw, 96px); } /* base.css keeps room for the nav when scrolling here */
.hb-shelf__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.hb-count { font: 800 17px/1.3 var(--font-body); color: var(--ink-2); }
.hb-filters { display: grid; gap: 14px; margin-top: 18px; padding: clamp(14px, 2vw, 20px); border-radius: var(--pk-cut, 24px); background: var(--paper-deep);
  box-shadow: inset 0 2px 6px rgba(90, 42, 0, .14); }
.hb-places { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.hb-places::-webkit-scrollbar { display: none; }
.hb-chip--place { flex: none; font-size: 16px; }
.hb-chip--place i { width: 12px; height: 12px; border-radius: 50%; background: var(--pl-c); }
.hb-chip--place[aria-pressed="true"] { background: var(--pl-ink, var(--blue)); color: #fff; }
.hb-chip--place[aria-pressed="true"] i { background: #fff; }
.hb-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hb-search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.hb-search input { width: 100%; min-height: 52px; padding: 0 16px 0 48px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); font: 700 17px/1 var(--font-body);
  box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .14); }
.hb-search input::placeholder { color: var(--ink-3); opacity: 1; }
.hb-search input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hb-search__icon { position: absolute; left: 16px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--ink-2); pointer-events: none; }
.hb-search__icon::after { content: ""; position: absolute; right: -6px; bottom: -4px; width: 9px; height: 3px; border-radius: 2px; background: var(--ink-2); rotate: 45deg; }
.hb-stdmini { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hb-stdmini__t { font: 800 16px/1 var(--font-body); color: var(--ink-2); }
.hb-std--mini .hb-chip { min-width: 46px; min-height: 46px; padding: 0 12px; }
@media (max-width: 520px) { .hb-std--mini { gap: 5px; } .hb-std--mini .hb-chip { min-width: 40px; padding: 0 6px; } .hb-std--mini .hb-chip--std:first-child { padding: 0 9px; } }

/* ---------- the list: one section for each place (felt picture, name, count, progress), then its game cards */
.hb-list { display: grid; gap: clamp(28px, 3.4vw, 48px); margin-top: clamp(22px, 3vw, 34px); }
.hb-group { position: relative; padding: clamp(14px, 2vw, 22px); border-radius: 30px; background: color-mix(in srgb, var(--pl-bg) 55%, var(--paper)); box-shadow: inset 0 0 0 2.5px var(--pl-bg); scroll-margin-top: 90px; }
.hb-group__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(10px, 2vw, 24px); }
.hb-group__art { display: block; width: clamp(84px, 9vw, 128px); height: auto; aspect-ratio: 1; margin: -6px 0 -10px; }
.hb-group__title { font: 800 clamp(24px, 2.4vw, 34px)/1.1 var(--font-display); color: var(--ink); }
.hb-group__title:focus { outline: none; }
.hb-group__title:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.hb-group__line { margin-top: 4px; font: 650 17px/1.4 var(--font-body); color: var(--ink-2); }
.hb-group__stats { display: grid; justify-items: end; gap: 6px; min-width: 0; text-align: right; }
.hb-group__n { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--pl-c); color: #fff; font: 800 15px/1.4 var(--font-body); }
.hb-group__prog { display: grid; gap: 3px; justify-items: end; }
.hb-group__bar { display: block; width: 150px; height: 8px; border-radius: 4px; background: rgba(30, 42, 90, .14); overflow: hidden; }
.hb-group__bar i { display: block; width: 100%; height: 100%; border-radius: 4px; background: var(--pl-c); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.hb-group__pt { font: 800 15px/1.2 var(--font-body); color: var(--pl-ink); }
.hb-group__open { display: inline-flex; align-items: center; gap: 6px; font: 700 14.5px/1.25 var(--font-body); color: var(--ink-2); }
.hb-group__open::before { content: ""; flex: none; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--hb-lock) center / contain no-repeat; mask: var(--hb-lock) center / contain no-repeat; }
.hb-group__open.is-open { color: #1F6B3A; }
.hb-group__open.is-open::before { -webkit-mask-image: var(--hb-tick); mask-image: var(--hb-tick); }
.hb-group.is-only .hb-group__art { width: clamp(110px, 13vw, 180px); }
.hb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 1.4vw, 16px); margin-top: 16px; }
.hb-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art body" "key key"; align-items: start; gap: 8px 14px; height: 100%; padding: 14px 14px 12px; overflow: hidden; color: var(--ink); text-decoration: none; isolation: isolate;
  border-radius: 20px 24px 19px 23px / 23px 19px 24px 20px; background: var(--card); box-shadow: var(--pk-edge-light, inset 0 1px 0 #fff), var(--g-sh);
  transition: translate 200ms var(--m-settle, ease); }
@media (hover: hover) and (pointer: fine) { .hb-card:hover { translate: 0 -4px; box-shadow: var(--pk-edge-light, inset 0 1px 0 #fff), var(--g-sh-lift); } }
.hb-card:active { translate: 0 1px; }
.hb-card:focus-visible { outline-offset: 3px; }
.hb-card__art { grid-area: art; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 18px; background: var(--pl-bg); }
.hb-card__art .g-art { width: 58px; }
.hb-card__art .g-art--note { width: 66px; }
.hb-card__body { grid-area: body; display: grid; align-content: start; gap: 6px; min-width: 0; padding-right: 30px; }
.hb-card__title { font: 800 19px/1.18 var(--font-display); color: var(--ink); text-wrap: balance; }
.hb-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.hb-tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: rgba(30, 42, 90, .08); color: var(--ink-2); font: 800 13.5px/1.35 var(--font-body); }
.hb-tag--skill { background: var(--pl-bg); color: var(--pl-ink); text-transform: capitalize; }
.hb-card__state { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font: 800 14.5px/1.2 var(--font-body); color: var(--ink); }
.hb-card__state.is-new { color: var(--ink-3); font-weight: 700; }
.hb-card__state.is-done { color: #1F6B3A; }
.hb-card__star--off { background: rgba(30, 42, 90, .22); }
.hb-card__sticker { position: absolute; right: 8px; top: 8px; width: 40px; rotate: 10deg; }
/* the Play key: a small keycap, so a whole card reads as one thing you press */
.hb-key { grid-area: key; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 12px; background: var(--blue); color: #fff; font: 800 16px/1 var(--font-body);
  box-shadow: 0 4px 0 var(--blue-deep, #1A35A0), 0 8px 12px -8px rgba(11, 26, 85, .5); transition: translate 140ms var(--m-settle, ease), box-shadow 140ms var(--m-settle, ease); }
.hb-key__ic { display: grid; width: 18px; height: 18px; }
.hb-key__ic svg { width: 100%; height: 100%; }
.hb-card:active .hb-key { translate: 0 3px; box-shadow: 0 1px 0 var(--blue-deep, #1A35A0); }
.hb-key--free { background: #2F7D45; box-shadow: 0 4px 0 #1F5A31, 0 8px 12px -8px rgba(20, 70, 35, .5); }
.hb-card:active .hb-key--free { box-shadow: 0 1px 0 #1F5A31; }
.hb-key--lock { background: var(--paper-deep); color: #7A4A10; box-shadow: inset 0 0 0 2px rgba(122, 74, 16, .3), 0 4px 0 rgba(122, 74, 16, .22); }
.hb-card:active .hb-key--lock { box-shadow: inset 0 0 0 2px rgba(122, 74, 16, .3), 0 1px 0 rgba(122, 74, 16, .22); }
.hb-card.is-locked .hb-card__art { filter: saturate(.7); }
@media (max-width: 699px) {
  .hb-group__head { grid-template-columns: auto minmax(0, 1fr); }
  .hb-group__stats { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; justify-items: start; text-align: left; gap: 6px 12px; }
  .hb-group__n { grid-row: 1; }
  .hb-group__prog { grid-row: 1; grid-column: 2; grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 4px 10px; }
  .hb-group__bar { width: 90px; }
  .hb-group__open { grid-column: 1 / -1; }
  .hb-cards { grid-template-columns: minmax(0, 1fr); }
  .hb-card { padding: 12px; gap: 8px 12px; }
  .hb-card__art { width: 60px; height: 60px; border-radius: 15px; }
  .hb-card__art .g-art { width: 46px; }
  .hb-card__body { padding-right: 0; }
}
.hb-empty { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--card); font: 700 18px/1.4 var(--font-body); color: var(--ink); box-shadow: var(--g-sh); }
.hb-empty[hidden] { display: none; }

/* ---------- grown-ups */
.hb-promise { padding: clamp(40px, 5vw, 80px) 0 clamp(54px, 7vw, 100px); background: var(--paper-deep); }
.hb-promise__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); margin-top: 20px; }
.hb-promise__list .pk-card { display: grid; gap: 6px; align-content: start; }
.hb-promise__list b { font: 800 20px/1.2 var(--font-display); color: var(--ink); }
.hb-promise__list span { font: 600 17px/1.45 var(--font-body); color: var(--ink-2); }
.hb-promise__more { margin-top: 22px; font: 700 18px/1.45 var(--font-body); color: var(--ink); }
@media (max-width: 959px) { .hb-promise__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hb-promise__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer */
.hb-foot { padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); background: var(--night); color: #E3E9FF; }
.hb-foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hb-foot__logo { display: block; padding: 6px 10px; border-radius: 12px; background: var(--paper); }
.hb-foot__logo img { width: 130px; height: auto; }
.hb-foot__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hb-foot__nav a { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; font: 700 16px/1.2 var(--font-body); text-underline-offset: .2em; }
.hb-foot__note { flex-basis: 100%; font: 600 15px/1.45 var(--font-body); color: #D3DBF7; }
.hb-foot :focus-visible { outline-color: var(--lemon); }

@media (prefers-contrast: more) { .hb-card, .hb-ticket, .hb-chip { box-shadow: inset 0 0 0 2px var(--ink); } }
@media (forced-colors: active) { .hb-card, .hb-ticket, .hb-chip { border: 2px solid CanvasText; } .hb-chip[aria-pressed="true"] { outline: 3px solid Highlight; } }

/* Free trial line under the game count (js/games/hub.js drawTrial) */
.hb-trial { margin-top: 6px; font: 700 clamp(16px, 1.2vw, 18px)/1.4 var(--font-body); color: var(--hero-ink); }
.hb-trial b { font-weight: 800; }
.hb-trial a { color: inherit; text-underline-offset: .18em; display: inline-block; padding: 6px 0; }

/* ---------- the felt island (list view): a green wool felt slab with a stitched cream rim, the places standing on it as felt
   pictures with a label pill each, Kuru by the school, and dotted stitches for paths. Markup: games/index.html. The places
   rise in once, bob a little, and lift 4 px on hover: only transform, translate and opacity move, and nothing moves under
   reduced motion. Pictures: assets/games/places (Google Flow, keyed); felt: assets/games/felt-*.webp (Google Flow). */
.hb {
  --hb-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.4 10.2V7.6a4.6 4.6 0 0 1 9.2 0v2.6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3Crect x='4.6' y='10' width='14.8' height='10.6' rx='2.6'/%3E%3C/svg%3E");
  --hb-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.8l5 5L19.5 7' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --felt-green: #8FCB78; --felt-cream: #F6EBD2; --felt-stitch: rgba(255, 252, 240, .85);
}
.hb-anchor { position: absolute; top: -90px; }
.fi { grid-column: 1; grid-row: 2; position: relative; z-index: 1; justify-self: center; width: min(1320px, calc(100% - 2 * var(--gutter))); margin-top: clamp(44px, 6vw, 88px); aspect-ratio: 1600 / 900; }
.fi__ground { position: absolute; inset: 0; border-radius: 9% 9% 9% 9% / 15% 15% 15% 15%; background: var(--felt-green) url(/assets/games/felt-green.webp) 0 0 / 420px 420px; isolation: isolate;
  box-shadow: 0 2px 0 rgba(30, 80, 30, .3), 0 30px 34px -22px rgba(30, 70, 40, .6); transition: filter 900ms ease; }
.fi::before { content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: calc(9% + 16px) / calc(15% + 16px); background: var(--felt-cream) url(/assets/games/felt-cream.webp) 0 0 / 420px 420px; box-shadow: 0 2px 0 rgba(120, 90, 40, .25); }
.fi__ground::after { content: ""; position: absolute; inset: 12px; border-radius: inherit; border: 3px dashed var(--felt-stitch); pointer-events: none; }
/* felt confetti: little round and star scraps sewn on the grass */
.fi__ground > .fi__scraps { position: absolute; inset: 0; border-radius: inherit; opacity: .9;
  background:
    radial-gradient(circle at 7% 52%, #FFD1DC 0 7px, transparent 8px), radial-gradient(circle at 26% 57%, #FFE28A 0 6px, transparent 7px), radial-gradient(circle at 38% 8%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 62% 56%, #FFD1DC 0 6px, transparent 7px), radial-gradient(circle at 91% 52%, #FFE28A 0 7px, transparent 8px), radial-gradient(circle at 76% 94%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 12% 90%, #fff 0 6px, transparent 7px), radial-gradient(circle at 53% 91%, #FFD1DC 0 6px, transparent 7px), radial-gradient(circle at 96% 20%, #fff 0 5px, transparent 6px); }
.fi__stitch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fi__stitch path { fill: none; stroke: var(--felt-cream); stroke-width: 7; stroke-linecap: round; stroke-dasharray: .1 15; vector-effect: non-scaling-stroke; opacity: .95; }

.fi__places { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; }
.fi__spot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); margin-left: calc(var(--w) * -.5%); }
.fi__spot[data-spot="mango-grove"] { --x: 12; --y: 3; --w: 18; }
.fi__spot[data-spot="garden"] { --x: 31; --y: 3; --w: 18; }
.fi__spot[data-spot="school"] { --x: 50; --y: 1; --w: 24; }
.fi__spot[data-spot="wild"] { --x: 69; --y: 5; --w: 20; }
.fi__spot[data-spot="lighthouse"] { --x: 88; --y: 3; --w: 18; }
.fi__spot[data-spot="market"] { --x: 20; --y: 49; --w: 20; }
.fi__spot[data-spot="well"] { --x: 50; --y: 54; --w: 18; }
.fi__spot[data-spot="pond"] { --x: 80; --y: 49; --w: 20; }
.hb-place { position: relative; display: grid; justify-items: center; color: var(--ink); text-decoration: none; border-radius: 22px; transition: translate 260ms var(--m-settle, ease); }
.fi__img { display: block; width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 8px rgba(30, 70, 30, .28)); transition: filter 900ms ease; }
.hb-place__flag { position: relative; display: grid; justify-items: center; gap: 2px; width: max-content; min-width: 70%; max-width: 118%; margin-top: -7%; padding: 7px 14px 9px; text-align: center;
  border-radius: 14px 16px 13px 15px / 15px 13px 16px 14px; background: var(--card);
  box-shadow: inset 0 -4px 0 var(--pl-c, #E8780F), 0 1px 1px rgba(90, 42, 0, .25), 0 10px 14px -8px rgba(40, 70, 30, .6); }
.hb-place--school .hb-place__flag { --pl-c: #E5483D; --pl-ink: #8A2440; }
.hb-place__name { font: 800 clamp(14px, 1.3vw, 18px)/1.12 var(--font-display); color: var(--ink); text-wrap: balance; }
.hb-place__n { font: 800 clamp(13px, 1.05vw, 14.5px)/1.2 var(--font-body); color: var(--pl-ink, var(--ink)); }
.hb-place__p { font: 700 clamp(12.5px, 1vw, 14px)/1.2 var(--font-body); color: var(--ink-2); }
.hb-place--school .hb-place__p, .hb-place--school .hb-place__bar, .hb-place--school .hb-place__lock { display: none; }
.hb-place__bar { display: block; width: 100%; height: 6px; margin-top: 2px; border-radius: 3px; background: rgba(30, 42, 90, .14); overflow: hidden; }
.hb-place__bar i { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--pl-c); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.hb-place__lock { display: inline-flex; align-items: center; gap: 5px; font: 700 clamp(12.5px, 1vw, 13.5px)/1.2 var(--font-body); color: var(--ink-2); }
.hb-place__lock:empty { display: none; }
.hb-place__lock::before { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--hb-lock) center / contain no-repeat; mask: var(--hb-lock) center / contain no-repeat; }
.hb-place__lock.is-open { color: #1F6B3A; }
.hb-place__lock.is-open::before { -webkit-mask-image: var(--hb-tick); mask-image: var(--hb-tick); }
.hb-place.is-empty { opacity: .6; }
.hb-place:focus-visible { outline-offset: 4px; }
.hb-place:active { translate: 0 1px; }
@media (hover: hover) and (pointer: fine) { .hb-place:hover { translate: 0 -4px; } }
.fi__kuru { position: absolute; z-index: 2; left: 0; top: 0; width: 9.6%; height: auto; pointer-events: none; transition: translate 600ms steps(8, end); filter: drop-shadow(0 8px 6px rgba(30, 70, 30, .35)); transform-origin: 50% 100%; }
/* the sky changes the island's light too */
.hb-world[data-sky="dusk"] :is(.fi__ground, .fi__img, .fi__kuru) { filter: sepia(.2) saturate(1.1) brightness(.97); }
.hb-world[data-sky="night"] :is(.fi__ground, .fi__img, .fi__kuru) { filter: brightness(.55) saturate(.8); }

@media (prefers-reduced-motion: no-preference) {
  /* rise: each place stands up out of the felt once, a little spring at the end (80 ms apart, at most six steps) */
  html.js:not(.rm) .fi__spot { animation: fi-rise 760ms cubic-bezier(.2, 1.2, .4, 1) calc(min(var(--i, 0), 6) * 80ms + 60ms) backwards; }
  html:not(.rm) .fi__kuru { animation: fi-rise 760ms cubic-bezier(.2, 1.2, .4, 1) 640ms backwards, fi-breathe 4.2s ease-in-out 1.4s infinite; }
  /* bob: a slow, small float, each place on its own beat */
  html:not(.rm) .fi__img { animation: fi-bob 4.4s ease-in-out calc(var(--i, 0) * -.7s) infinite alternate; }
}
.fi__spot:nth-child(1) { --i: 0; } .fi__spot:nth-child(2) { --i: 1; } .fi__spot:nth-child(3) { --i: 2; } .fi__spot:nth-child(4) { --i: 3; }
.fi__spot:nth-child(5) { --i: 4; } .fi__spot:nth-child(6) { --i: 5; } .fi__spot:nth-child(7) { --i: 6; } .fi__spot:nth-child(8) { --i: 7; }
@keyframes fi-rise { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fi-bob { from { translate: 0 0; } to { translate: 0 -5px; } }
@keyframes fi-breathe { from { scale: 1 1; } to { scale: 1.015 .985; } }

/* phones and narrow windows: the island stacks, two places across, the school on top with Kuru beside it */
@media (max-width: 899px) {
  .fi { grid-row: 3; margin-top: 30px; aspect-ratio: auto; width: calc(100% - 2 * var(--gutter)); padding: 22px 12px 26px; }
  .fi__ground { border-radius: 40px; }
  .fi__stitch { display: none; }
  .fi__places { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 6px; align-items: start; }
  .fi__spot { position: relative; left: auto; top: auto; width: auto; margin: 0; --w: 100; }
  .fi__spot[data-spot="school"] { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(62%, 300px); }
  .fi__spot[data-spot="mango-grove"], .fi__spot[data-spot="garden"], .fi__spot[data-spot="wild"], .fi__spot[data-spot="lighthouse"], .fi__spot[data-spot="market"], .fi__spot[data-spot="well"], .fi__spot[data-spot="pond"] { padding: 0 2px; }
  .fi__spot[data-spot="wild"] { grid-column: 1 / -1; width: min(70%, 320px); justify-self: center; }
  .fi__spot[data-spot="wild"] { order: 7; }
  .hb-place__flag { width: auto; min-width: 0; max-width: 100%; margin-top: -9%; }
  .hb-place__name { font-size: clamp(14px, 3.8vw, 17px); }
  .fi__kuru { width: clamp(70px, 22vw, 120px); }
  .hb-place:hover { translate: none; }
}
@media (max-width: 899px) and (min-width: 600px) { .fi__spot { padding: 0 6px !important; } }

@media (forced-colors: active) { .hb-place__flag { border: 2px solid CanvasText; } }

/* the secrets: invisible hotspots over the pictures (44 px at least), a felt star puff when one is found */
.fi__toys { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; z-index: 2; pointer-events: none; }
.hb-toy { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fi__toys .hb-toy { position: absolute; left: calc(var(--tx) * 1%); top: calc(var(--ty) * 1%); width: max(44px, 16%); aspect-ratio: 1; translate: -50% -50%; pointer-events: auto; }
.hb-toy:focus-visible { outline: 3.5px solid var(--blue); outline-offset: 2px; background: rgba(255, 255, 255, .25); }
.hb-world[data-sky="night"] .hb-toy:focus-visible { outline-color: var(--lemon); }
.fi__puff { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.fi__puff i { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; background: #FFC83D; box-shadow: 0 0 0 2px #fff; opacity: 0; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 80% 100%, 50% 79%, 20% 100%, 29% 61%, 0 38%, 37% 35%); }
.fi__puff i:nth-child(2n) { background: #FF8FB1; }
.fi__puff i:nth-child(3n) { background: #fff; box-shadow: none; }
.fi__puff i:nth-child(1) { --dx: -38px; --dy: -34px; } .fi__puff i:nth-child(2) { --dx: 0px; --dy: -50px; } .fi__puff i:nth-child(3) { --dx: 38px; --dy: -34px; }
.fi__puff i:nth-child(4) { --dx: -26px; --dy: 10px; } .fi__puff i:nth-child(5) { --dx: 26px; --dy: 10px; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .fi__puff i { animation: fi-puff 800ms cubic-bezier(.2, .9, .3, 1) both; } }
html.rm .fi__puff i:nth-child(2), .fi__puff i:nth-child(2) { opacity: 1; }
@keyframes fi-puff { 0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(80deg); } }
.hb-secrets { display: inline-flex; gap: 4px; }
.hb-secrets i { width: 17px; height: 17px; background: rgba(30, 42, 90, .16); clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 80% 100%, 50% 79%, 20% 100%, 29% 61%, 0 38%, 37% 35%); }
.hb-secrets i.is-on { background: #F2A516; }
.hb-legend { grid-column: 1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 18px; }
.hb-legend__t, .hb-legend__s { font: 700 17px/1.4 var(--font-body); color: var(--ink-2); }
.hb-legend__s { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ink); }
.fi__kuru.is-jump { transition: none; }
html.rm .fi__kuru { transition: none; }
@media (prefers-reduced-motion: no-preference) { html:not(.rm) .fi__kuru.is-walk { animation: fi-step 150ms steps(2, jump-none) 4 alternate; } }
@keyframes fi-step { from { rotate: -6deg; } to { rotate: 6deg; } }

/* a long signed-in name must not push the phone nav's Menu button off the screen (the shared nav does not clip it) */
@media (max-width: 520px) { .hb .nv__ctas { min-width: 0; max-width: calc(100% - 250px); } .hb .nv__login { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
