/* The game world (Admin › Settings › Look of the site › Game world). Loaded after site.css, only on world pages.
   Sections: settings packs (colours), frame and on-screen controls, the map, a place and its doorways, the mission card,
   panels, the welcome card, motion, phones. A new settings pack adds a "wp-<id>" block of colours (and its place drawing). */

/* ---------- settings packs ---------- */
.wp-islands {
  --wd-sea: #2B97B0; --wd-sea-deep: #1F7FA0; --wd-wave: rgba(255, 255, 255, .34);
  --wd-shallow: #8EDBE5; --wd-sand: #F5E2B0; --wd-grass: #7ACB8A; --wd-tree: #4FA86A;
  --wd-ground: #CFEFF3; --wd-ground-2: #BDE7EE;
}

/* ---------- frame ---------- */
.wd-html { --wd-ink: #26305E; --wd-ink-2: #4A5480; --wd-paper: #FFFDF7; --wd-gold: #FFC24B; --wd-gold-deep: #D69A1E; --wd-shadow: 0 4px 0 rgba(38, 48, 94, .2);
  --wd-d: Grandstander, "Trebuchet MS", system-ui, sans-serif; --wd-b: Lexend, "Segoe UI", system-ui, sans-serif;
  height: 100%; background: var(--wd-sea); }
.wd-html body { height: 100%; margin: 0; overflow: hidden; background: var(--wd-sea); color: var(--wd-ink); font-family: var(--wd-b); font-size: 1rem; line-height: 1.45; padding: 0; }
.wd-html *, .wd-html *::before, .wd-html *::after { box-sizing: border-box; }
.wd-html :focus-visible { outline: 3px solid var(--wd-gold); outline-offset: 3px; }
:where(.wd-html) button { font: inherit; color: inherit; cursor: pointer; }   /* no extra weight, so each button's own colours and fonts win */
.wd-html h1, .wd-html h2, .wd-html h3 { font-family: var(--wd-d); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: 0; }
.wd-html p { margin: 0; }
/* <main> makes no layer of its own: the scene sits under the on-screen controls, the mission card and welcome card above them */
.wd-main { position: static; outline: 0; }
.wd-scene { position: fixed; inset: 0; z-index: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: 0; }
.wd-barred .wd-scene { top: 34px; }
.wd-pvbar { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; background: var(--wd-ink); color: #fff; font-size: .85rem; white-space: nowrap; overflow: hidden; }
.wd-pvbar a { color: var(--wd-gold); font-weight: 700; }

/* top bar */
.wd-top { position: fixed; left: 14px; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 30; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.wd-barred .wd-top { top: 46px; }
.wd-top > * { pointer-events: auto; }
.wd-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 5px 16px 5px 8px; border-radius: 999px; border: 0; background: var(--wd-paper); color: var(--wd-ink); box-shadow: var(--wd-shadow); font-weight: 600; text-decoration: none; white-space: nowrap; }
.wd-chip:hover { color: var(--wd-ink); background: #fff; }
.wd-chip[hidden] { display: none; }
.wd-brand { font-family: var(--wd-d); font-weight: 800; font-size: 1.15rem; padding-left: 6px; }
.wd-brand .mascot { flex: none; }
.wd-back svg { margin-left: 4px; }
.wd-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--wd-gold); display: grid; place-items: center; font-family: var(--emoji); font-size: 1.25rem; }
.wd-me-y { background: #EEF2F7; border-radius: 999px; padding: 2px 8px; font-size: .8rem; }
.wd-sp { flex: 1; }
.wd-home { background: #FFE27A; color: var(--wd-ink); padding-left: 12px; font-weight: 700; }   /* README 260 */
.wd-home:hover { background: #FFD84D; }
.wd-home svg { flex: none; }
.wd-home-s { display: none; }
/* README 260b: on phones the bar has room for everything: "Home" instead of "Home page", the back chip as an arrow, and no
   second settings button (the avatar chip opens the same settings); on the narrowest phones the house alone */
@media (max-width: 700px) {
  .wd-home { gap: 6px; padding: 5px 12px 5px 10px; }
  .wd-home-l { display: none; }
  .wd-home-s { display: inline; }
  .wd-top:has(.wd-home) .wd-back span { display: none; }
  .wd-top:has(.wd-home) .wd-back { padding: 5px 12px 5px 8px; }
  .wd-top:has(.wd-home) .wd-round[data-wd-open="set"] { display: none; }
}
@media (max-width: 359px) {
  .wd-home { padding: 5px 12px; }
  .wd-home-s { display: none; }
}
.wd-round { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--wd-paper); color: var(--wd-ink); display: grid; place-items: center; box-shadow: var(--wd-shadow); text-decoration: none; }
.wd-round .wd-on { display: none; }
.wd-sound .wd-round .wd-on { display: inline; }
.wd-sound .wd-round .wd-off { display: none; }

/* bottom bar */
.wd-dock { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); transform: translateX(-50%); z-index: 30; display: flex; gap: 6px; padding: 6px; border-radius: 24px; background: var(--wd-paper); box-shadow: 0 6px 0 rgba(38, 48, 94, .22); }
.wd-dk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 92px; min-height: 60px; padding: 0 8px; border: 0; border-radius: 18px; background: transparent; color: var(--wd-ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
.wd-dk:hover { background: #E4F4F7; color: var(--wd-ink); }
.wd-dk[aria-current="page"], .wd-dk[aria-expanded="true"] { background: var(--wd-ink); color: #fff; }

/* Flip */
.wd-flip { position: fixed; left: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 29; display: flex; align-items: flex-end; gap: 2px; max-width: min(360px, calc(50vw - 230px)); pointer-events: none; }
.wd-flip[hidden], .wd-briefing .wd-flip, body:has(dialog[open]) .wd-flip { display: none; }
.wd-flip.is-resting { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.wd-flip .mascot { flex: none; width: 88px; height: 88px; }
.wd-say { background: var(--wd-paper); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: .92rem; box-shadow: var(--wd-shadow); margin-bottom: 44px; }
@media (max-width: 1000px) { .wd-flip { display: none; } }

/* shared bits */
.wd-kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3E4874; }
.wd-lead { font-size: 1.1rem; max-width: 560px; }
.wd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--wd-paper); box-shadow: var(--wd-shadow); font-weight: 600; font-size: .95rem; }
.wd-h3 { font-family: var(--wd-b) !important; font-size: .8rem !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .06em !important; color: var(--wd-ink-2); margin: 10px 0 0 !important; }
.wd-small { font-size: .9rem; color: var(--wd-ink-2); }
.wd-note { display: flex; gap: 10px; align-items: flex-start; background: #FFF3D1; border-radius: 16px; padding: 12px 14px; }
.wd-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.wd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--wd-gold); color: var(--wd-ink); font-family: var(--wd-d); font-weight: 800; font-size: 1.2rem; box-shadow: 0 5px 0 var(--wd-gold-deep); text-decoration: none; }
.wd-btn:hover { color: var(--wd-ink); filter: brightness(1.04); }
.wd-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--wd-gold-deep); }
.wd-btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 0; background: #E4F4F7; color: var(--wd-ink); font-weight: 600; box-shadow: 0 4px 0 #B3DCE3; text-decoration: none; }
.wd-btn2:hover { color: var(--wd-ink); background: #D7EFF3; }
.wd-link { display: inline-block; background: none; border: 0; padding: 8px 0; min-height: 44px; color: #1D5F8C; text-decoration: underline; font-size: .95rem; text-align: left; }
.wd-chipl { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #C3CEE0; background: #fff; color: var(--wd-ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.wd-chipl span { font-family: var(--emoji); }
.wd-chipl:hover { border-color: var(--wd-ink); color: var(--wd-ink); }
.wd-chipl[aria-current="page"] { background: var(--wd-ink); border-color: var(--wd-ink); color: #fff; }
.wd-emoji { font-family: var(--emoji); font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .15)); }

/* ---------- the map ---------- */
.wd-scene-map { background: var(--wd-sea); }
.wd-map { min-height: 100%; padding: 92px 22px 170px; transform-origin: 50% 50%; transition: transform .85s cubic-bezier(.65, .05, .3, 1), opacity .3s;
  background-color: var(--wd-sea);
  background-image: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cg fill='none' stroke='white' stroke-opacity='.34' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 30q10-9 20 0t20 0'/%3E%3Cpath d='M150 70q10-9 20 0t20 0'/%3E%3Cpath d='M60 125q10-9 20 0t20 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 240px 160px; }
.wd-barred .wd-map { padding-top: 110px; }
.wd-places { list-style: none; margin: 0 auto; padding: 0 0 60px; max-width: 1180px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 28px; }
.wd-places li { display: flex; justify-content: center; }
.wd-places li:nth-child(even) { transform: translateY(54px); }
.wd-place { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 240px; color: var(--wd-ink); text-decoration: none; transition: transform .25s; }
.wd-place:hover { transform: scale(1.05); color: var(--wd-ink); }
.wd-place:focus-visible { outline-offset: 6px; border-radius: 24px; }
.wd-land { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(16, 60, 90, .2)); }
.wd-shallow { fill: var(--wd-shallow); } .wd-sand { fill: var(--wd-sand); } .wd-grass { fill: var(--wd-grass); } .wd-tree { fill: var(--wd-tree); }
.wd-mark { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--c); border: 4px solid var(--wd-paper); box-shadow: 0 4px 0 rgba(38, 48, 94, .25); font-family: var(--emoji); font-size: 1.7rem; line-height: 1; }
.wd-tag { position: relative; margin-top: -16px; display: flex; flex-direction: column; align-items: center; min-width: 140px; max-width: 100%; padding: 6px 16px 7px; border-radius: 16px; background: var(--wd-paper); box-shadow: var(--wd-shadow); text-align: center; }
.wd-tag b { font-family: var(--wd-d); font-size: 1.15rem; line-height: 1.15; }
.wd-tag small { font-size: .78rem; color: var(--wd-ink-2); }
.wd-place.is-here .wd-tag { outline: 4px solid var(--wd-gold); }
.wd-place.is-here::before { content: ""; position: absolute; left: 50%; top: 40%; width: 112%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 4px dashed rgba(255, 243, 201, .9); border-radius: 50%; animation: wdSpin 16s linear infinite; pointer-events: none; }
@keyframes wdSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.wd-empty-map { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: var(--wd-paper); padding: 16px 22px; border-radius: 18px; text-align: center; }

/* ---------- a place and its doorways ---------- */
.wd-scene-place, .wd-scene-search { background: linear-gradient(180deg, var(--wd-ground) 0, var(--wd-ground) 70%, var(--wd-ground-2) 100%); background-attachment: local; }
.wd-wrap { max-width: 1180px; margin: 0 auto; padding: 86px 24px 150px; }
.wd-barred .wd-wrap { padding-top: 104px; }
.wd-phead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 30px; }
.wd-big { position: relative; width: min(300px, 70vw); flex: none; }
.wd-big .wd-mark { width: 76px; height: 76px; font-size: 2.3rem; }
.wd-ptitle { flex: 1 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wd-h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); outline: 0; }
.wd-sub { color: var(--wd-ink-2); }
.wd-h2 { font-size: 1.75rem; }
.wd-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.wd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-note-s { margin-top: 8px; color: var(--wd-ink-2); }
.wd-doors { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.wd-door { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--wd-paper); border-radius: 24px; color: var(--wd-ink); text-decoration: none; box-shadow: 0 6px 0 rgba(38, 48, 94, .16); transition: transform .2s; }
.wd-door:hover { transform: translateY(-4px); color: var(--wd-ink); }
.wd-arch { position: relative; margin: 12px 12px 0; aspect-ratio: 16 / 11; border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; overflow: hidden; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .75); }
.wd-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd-arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .75); pointer-events: none; }
.wd-tg { position: absolute; left: 10px; bottom: 10px; z-index: 1; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--wd-paper); color: #1F6B3A; }
.wd-tg.is-mem { background: var(--wd-ink); color: #fff; }
.wd-st { position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--wd-gold); color: var(--wd-ink); }
.wd-st.is-done { background: #2E8F57; color: #fff; }
.wd-dbody { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 16px; }
.wd-dbody b { font-family: var(--wd-d); font-size: 1.15rem; line-height: 1.15; }
.wd-dbody small { font-size: .82rem; color: var(--wd-ink-2); }
.wd-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; padding: 20px 24px; border-radius: 22px; background: var(--wd-paper); }
.wd-empty > div { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* a place's path (the year's roadmap for this subject): stepping stones joined by a dotted trail, scrolling sideways */
.wd-pathbox { margin-top: 26px; padding: 4px 0 0; }
.wd-pathbox .wd-bar { margin-top: 0; }
.wd-path { list-style: none; display: flex; margin: 14px -24px 0; padding: 8px 24px 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
.wd-stone { position: relative; flex: 0 0 148px; scroll-snap-align: center; }
.wd-stone + .wd-stone::before { content: ""; position: absolute; z-index: 0; top: 37px; right: calc(50% + 36px); width: calc(100% - 72px); border-top: 6px dotted rgba(38, 48, 94, .32); }
.wd-stone.is-done + .wd-stone::before { border-top-color: #2E8F57; }
.wd-stn { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 6px 0; color: var(--wd-ink); text-decoration: none; text-align: center; border-radius: 22px; }
a.wd-stn:hover { color: var(--wd-ink); }
a.wd-stn:hover .wd-dot { transform: translateY(-3px); }
.wd-dot { width: 68px; height: 68px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--wd-paper); border: 5px solid var(--c); box-shadow: 0 5px 0 rgba(38, 48, 94, .2); font-family: var(--wd-d); font-weight: 800; font-size: 1.5rem; transition: transform .2s; }
.wd-sl { display: flex; flex-direction: column; gap: 2px; max-width: 100%; }
.wd-sl b { font-weight: 600; font-size: .92rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wd-sl small { font-size: .76rem; color: var(--wd-ink-2); font-weight: 600; }
.wd-stone.is-done .wd-dot { background: #2E8F57; border-color: #2E8F57; color: #fff; }
.wd-stone.is-done .wd-sl small { color: #1F6B3A; }
.wd-stone.is-doing .wd-dot { background: conic-gradient(var(--wd-gold) 0 50%, var(--wd-paper) 0); }
.wd-stone.is-soon .wd-dot { border-style: dashed; border-color: #9AA6BF; color: #8792AD; background: rgba(255, 253, 247, .6); box-shadow: none; }
.wd-stone.is-soon .wd-sl { opacity: .75; }
.wd-stone.is-next .wd-dot { width: 80px; height: 80px; margin-top: -6px; background: var(--wd-gold); border-color: var(--wd-ink); font-size: 1.7rem; animation: wdGlow 1.8s ease-in-out infinite; }
.wd-stone.is-next.is-doing .wd-dot { background: conic-gradient(var(--wd-gold) 0 50%, #FFE6A6 0); }
.wd-stone.is-next .wd-sl b { font-weight: 700; }
.wd-nexttag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 2px 10px; border-radius: 999px; background: var(--wd-ink); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
@keyframes wdGlow { 0%, 100% { box-shadow: 0 5px 0 rgba(38, 48, 94, .2), 0 0 0 0 rgba(255, 194, 75, .7); } 50% { box-shadow: 0 5px 0 rgba(38, 48, 94, .2), 0 0 0 12px rgba(255, 194, 75, 0); } }
.a11y-calm .wd-stone.is-next .wd-dot { animation: none; }
.wd-onpath { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: #FFF1CC; color: var(--wd-ink); font-size: .86rem; font-weight: 600; }
.wd-empty h3 { font-size: 1.5rem; }
.wd-shead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.wd-shead > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- the mission card ---------- */
.wd-brief-layer { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; }
.wd-barred .wd-brief-layer { top: 34px; }
.wd-brief-shade { position: absolute; inset: 0; background: rgba(16, 22, 61, .55); animation: wdFade .3s ease-out; }
.wd-brief { position: relative; width: min(820px, 100%); max-height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 28px; background: var(--wd-paper); box-shadow: 0 14px 0 rgba(16, 22, 61, .3); animation: wdPop .45s cubic-bezier(.2, 1.3, .4, 1); }
.wd-brief-layer.is-closing { animation: wdFadeOut .22s ease-in forwards; }
.wd-cover { position: relative; height: clamp(170px, 30vh, 280px); display: grid; place-items: center; background: var(--c); overflow: hidden; }   /* the cover runs across the top, on every screen */
.wd-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd-cbadge { position: absolute; left: 16px; top: 16px; background: var(--wd-paper); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; }
.wd-bbody { position: relative; padding: 26px 28px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.wd-x { position: absolute; top: 16px; right: 16px; background: #EEF2F7; box-shadow: none; }
.wd-btitle { font-size: clamp(1.8rem, 3.4vw, 2.4rem); padding-right: 56px; outline: 0; }
.wd-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wd-skills li { background: #E4F4F7; border-radius: 14px; padding: 5px 12px; font-size: .9rem; }
.wd-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.wd-chapters li { display: flex; align-items: center; gap: 10px; }
.wd-chapters em { font-style: normal; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--wd-gold); margin-left: 4px; }
.wd-chapters em.is-free { background: #DDF2E3; color: #1F6B3A; }
.wd-cn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: #E6EBF2; }
.wd-chapters .is-done .wd-cn { background: #2E8F57; color: #fff; }
.wd-chapters .is-now .wd-cn { background: var(--wd-gold); }
.wd-save[aria-pressed="true"] { background: #FFE3EA; box-shadow: 0 4px 0 #F2B8C6; }
.wd-more { width: 100%; margin-top: 8px; border-top: 2px solid #EEF2F7; padding-top: 10px; font-size: .92rem; }
.wd-more summary { cursor: pointer; font-weight: 600; color: #1D5F8C; min-height: 40px; display: flex; align-items: center; }
.wd-more h3 { font-family: var(--wd-b); font-size: .95rem; margin: 12px 0 2px; }
.wd-more p { margin: 6px 0; }

/* ---------- panels ---------- */
.wd-panel { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100%); height: 100%; max-height: none; max-width: none; border: 0; padding: 20px 22px 28px; background: var(--wd-paper); color: var(--wd-ink); overflow-y: auto; }
.wd-panel[open] { display: flex; flex-direction: column; gap: 12px; animation: wdSlide .32s cubic-bezier(.2, .8, .2, 1); }
.wd-panel::backdrop { background: rgba(16, 22, 61, .45); }
.wd-dhead { display: flex; align-items: center; gap: 12px; }
.wd-dhead h2 { flex: 1; font-size: 1.7rem; }
.wd-dhead .mascot { flex: none; width: 60px; height: 60px; }
.wd-dhead .wd-x { position: static; }
.wd-field { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 560px; border: 3px solid var(--wd-ink); border-radius: 18px; padding: 3px 4px 3px 14px; background: #fff; }
.wd-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; min-height: 46px; color: var(--wd-ink); }
.wd-go { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--wd-gold); display: grid; place-items: center; flex: none; }
.wd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-pills form { margin: 0; }
.wd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wd-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 12px; border-radius: 16px; background: #F1F6F8; color: var(--wd-ink); text-decoration: none; text-align: left; }
.wd-row:hover { background: #E4F4F7; color: var(--wd-ink); }
button.wd-row.wd-away { border: 0; font: inherit; cursor: pointer; background: #FFF6DA; }   /* README 204: results on other islands or for other years (a grown-up opens them) */
button.wd-row.wd-away:hover { background: #FFEDB8; }
.wd-rt { flex: 1; min-width: 0; }
.wd-rt b { display: block; font-weight: 600; }
.wd-rt small { display: block; color: var(--wd-ink-2); font-size: .82rem; }
.wd-sw { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c, #E6EBF2); font-family: var(--emoji); font-size: 1.3rem; }
.wd-mtag { flex: none; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #DDF2E3; color: #1F6B3A; }
.wd-mtag.is-mem { background: var(--wd-ink); color: #fff; }
.wd-mtag:empty { display: none; }
.wd-years { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-yr { min-width: 70px; min-height: 56px; padding: 4px 10px; border-radius: 16px; border: 2px solid #C3CEE0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.wd-yr b { font-family: var(--wd-d); font-size: 1rem; }
.wd-yr small { font-size: .7rem; color: var(--wd-ink-2); }
.wd-yr[aria-pressed="true"] { background: var(--wd-ink); border-color: var(--wd-ink); color: #fff; }
.wd-yr[aria-pressed="true"] small { color: #D8E0F5; }
.wd-who { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid #C3CEE0; background: #fff; font-weight: 600; }
.wd-who span { font-family: var(--emoji); font-size: 1.3rem; }
.wd-who[aria-pressed="true"] { background: var(--wd-ink); border-color: var(--wd-ink); color: #fff; }
.wd-tog { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 12px 14px; border: 0; border-radius: 16px; background: #F1F6F8; text-align: left; cursor: pointer; }
.wd-tog b { display: block; }
.wd-tog small { display: block; font-size: .82rem; color: var(--wd-ink-2); }
.wd-tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wd-tog:has(input:focus-visible) { outline: 3px solid var(--wd-gold); outline-offset: 2px; }
.wd-sw2 { position: relative; flex: none; width: 54px; height: 32px; border-radius: 999px; background: #B9C4D8; transition: background .2s; }
.wd-sw2 i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.wd-tog[aria-pressed="true"] .wd-sw2, .wd-tog input:checked ~ .wd-sw2 { background: #2E8F57; }
.wd-tog[aria-pressed="true"] .wd-sw2 i, .wd-tog input:checked ~ .wd-sw2 i { left: 26px; }
.wd-hold { position: relative; overflow: hidden; width: 100%; min-height: 66px; border: 0; border-radius: 20px; background: var(--wd-ink); color: #fff; font-family: var(--wd-d); font-weight: 800; font-size: 1.2rem; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.wd-hold i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #2E8FA3; }
.wd-hold span { position: relative; }
.wd-pill[hidden], [data-wd-q][hidden], [data-wd-office][hidden], [data-wd-gate][hidden] { display: none; }

/* ---------- welcome card (new visitors) ---------- */
.wd-welcome { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(16, 22, 61, .5); }
.wd-seen .wd-welcome { display: none; }
.wd-wcard { width: min(780px, 100%); max-height: 100%; overflow: auto; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 24px; padding: 26px 28px; border-radius: 28px; background: var(--wd-paper); box-shadow: 0 14px 0 rgba(16, 22, 61, .3); animation: wdPop .45s cubic-bezier(.2, 1.3, .4, 1); }
.wd-wcard .mascot { width: 150px; height: 150px; }
.wd-wbody { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wd-wbody h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.wd-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.wd-points li { position: relative; padding-left: 28px; }
.wd-points li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--wd-grass, #7ACB8A); }

/* ---------- the games player inside the world ---------- */
.wd-html .player { z-index: 60; }
.wd-html .player.opening { animation: wdZoomIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.wd-html .toast { z-index: 80; }
/* the cookie notice sits under the top bar, so the bottom bar and the welcome card's buttons stay free */
.wd-html .an-bar { z-index: 75; top: calc(env(safe-area-inset-top, 0px) + 70px); bottom: auto; }
.wd-barred .an-bar { top: 104px; }
.wd-html body.an-open .wd-flip { display: none; }

/* ---------- motion ---------- */
.wd-enter { animation: wdIn .5s ease-out; }
.wd-leave { animation: wdFadeOut .25s ease-in forwards; }
@keyframes wdIn { from { opacity: 0; transform: scale(1.05); } }
@keyframes wdPop { from { opacity: 0; transform: scale(.75); } }
@keyframes wdFade { from { opacity: 0; } }
@keyframes wdFadeOut { to { opacity: 0; } }
@keyframes wdSlide { from { opacity: 0; transform: translateX(40px); } }
@keyframes wdZoomIn { from { opacity: 0; transform: scale(.5); border-radius: 48px; } }
@media (prefers-reduced-motion: reduce) {
  .wd-map { transition: opacity .3s; }
  .wd-enter, .wd-brief, .wd-panel[open], .wd-wcard, .wd-html .player.opening { animation: wdFade .25s ease-out both; }
  .wd-place.is-here::before { animation: none; }
  .wd-stone.is-next .wd-dot { animation: none; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1000px) {
  .wd-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-places li:nth-child(even) { transform: none; }
  .wd-places li:nth-child(3n+2) { transform: translateY(54px); }
}
@media (max-width: 700px) {
  .wd-top { left: 8px; right: 8px; top: calc(env(safe-area-inset-top, 0px) + 8px); gap: 6px; }
  .wd-barred .wd-top { top: 42px; }
  .wd-brand span, .wd-me-n { display: none; }
  .wd-brand { padding: 5px; }
  .wd-chip { padding-right: 12px; }
  .wd-me { padding-right: 10px; }
  .wd-dock { left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); transform: none; gap: 2px; }
  .wd-dk { flex: 1; min-width: 0; font-size: .72rem; white-space: nowrap; padding: 0 2px; }
  .wd-map { padding: 76px 10px 140px; }
  .wd-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .wd-places li:nth-child(3n+2) { transform: none; }
  .wd-places li:nth-child(even) { transform: translateY(64px); }
  .wd-place { max-width: 190px; }
  .wd-mark { width: 50px; height: 50px; font-size: 1.45rem; }
  .wd-tag { min-width: 0; width: 92%; padding: 5px 8px 6px; }
  .wd-tag b { font-size: 1rem; }
  .wd-wrap { padding: 72px 14px 130px; }
  .wd-phead { flex-wrap: nowrap; align-items: center; gap: 10px; }
  .wd-big { width: 118px; }
  .wd-big .wd-mark { width: 50px; height: 50px; font-size: 1.5rem; }
  .wd-ptitle { flex: 1 1 auto; min-width: 0; gap: 6px; }
  .wd-h1 { font-size: 2rem; }
  .wd-lead { font-size: .98rem; }
  .wd-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wd-path { margin: 10px -14px 0; padding: 8px 14px 16px; }
  .wd-stone { flex-basis: 118px; }
  .wd-dot { width: 58px; height: 58px; font-size: 1.3rem; }
  .wd-stone.is-next .wd-dot { width: 68px; height: 68px; font-size: 1.45rem; }
  .wd-stone + .wd-stone::before { top: 32px; right: calc(50% + 31px); width: calc(100% - 62px); }
  .wd-h2 { font-size: 1.45rem; }
  .wd-arch { margin: 8px 8px 0; }
  .wd-dbody { padding: 10px 12px 12px; }
  .wd-dbody b { font-size: 1rem; }
  .wd-tg, .wd-st { font-size: .66rem; padding: 2px 7px; bottom: 7px; }
  .wd-tg { left: 7px; } .wd-st { right: 7px; }
  .wd-brief-layer { padding: 8px; align-items: end; }
  .wd-brief { grid-template-columns: minmax(0, 1fr); max-height: calc(100% - 8px); border-radius: 26px; }
  .wd-cover { min-height: 140px; height: 140px; }
  .wd-bbody { padding: 20px 18px 22px; }
  .wd-panel { inset: auto 0 0 0; width: 100%; height: 88%; border-radius: 26px 26px 0 0; }
  .wd-panel[open] { animation-name: wdUp; }
  .wd-wcard { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .wd-wcard .mascot { display: none; }
}
@keyframes wdUp { from { transform: translateY(40px); opacity: 0; } }

/* the mission card's Start button stays in view while the card scrolls */
.wd-brief .wd-acts { position: sticky; bottom: 0; z-index: 2; width: calc(100% + 16px); margin: 8px -8px 0; padding: 16px 8px 6px; background: linear-gradient(rgba(255, 253, 247, 0), var(--wd-paper) 34%); }
.wd-field:focus-within { box-shadow: 0 0 0 3px var(--wd-gold); }
.wd-field input:focus-visible { outline: 0; }

/* Ask Flip results (app/lib/ask.php): section headings, "coming soon" ideas with a vote button, saving a question */
[data-wd-askres] .wd-h3 { margin-top: 14px; }
[data-wd-askres] .wd-h3:first-child { margin-top: 4px; }
.wd-trow { cursor: default; }
.wd-trow:hover { background: #F1F6F8; }
.wd-vote { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--wd-paper); color: var(--wd-ink); font: inherit; font-size: .85rem; font-weight: 700; box-shadow: inset 0 0 0 2px var(--wd-ink); cursor: pointer; }
.wd-vote[aria-pressed="true"] { background: var(--wd-ink); color: #fff; }
.wd-asksave { margin-top: 10px; padding: 14px 16px; border-radius: 18px; background: #FFF4D6; display: grid; gap: 8px; justify-items: start; }
.wd-asksave p { margin: 0; }
.wd-btn { min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--wd-gold); color: var(--wd-ink); font: inherit; font-weight: 700; box-shadow: 0 3px 0 var(--wd-gold-deep); cursor: pointer; }
.wd-btn:disabled { opacity: .6; }
.wd-asksaved { font-weight: 600; }
.wd-asked { background: #FFF4D6; align-items: flex-start; }
.wd-chapters li.is-asked { outline: 3px solid var(--wd-gold); outline-offset: 2px; border-radius: 12px; }

/* Backpack: a main screen of buttons, each opening its own list with a Back button */
.wd-pv { display: flex; flex-direction: column; gap: 12px; }
.wd-pv[hidden], .wd-menu li[hidden], .wd-count[hidden] { display: none; }
.wd-menu { gap: 10px; }
.wd-mbtn { border: 0; font: inherit; cursor: pointer; min-height: 70px; padding: 12px 14px; background: #fff; box-shadow: 0 0 0 2px #E3EAF0 inset; }
.wd-mbtn:hover { background: #F4FAFB; box-shadow: 0 0 0 2px #BFE3EA inset; }
.wd-mbtn:focus-visible { outline: 3px solid var(--wd-ink); outline-offset: 2px; }
.wd-mbtn .wd-rt b { font-size: 1.08rem; }
.wd-mbtn .wd-sw { width: 46px; height: 46px; font-size: 1.4rem; }
.wd-count { flex: none; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; background: var(--wd-ink); color: #fff; font-weight: 700; font-size: .9rem; }
.wd-chev { flex: none; display: grid; place-items: center; color: var(--wd-ink-2); }
.wd-pvhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wd-pvback { min-height: 44px; padding: 4px 16px 4px 10px; background: #F1F6F8; box-shadow: none; cursor: pointer; font: inherit; font-weight: 600; }
.wd-pvback:hover { background: #E4F4F7; }
.wd-pvt { margin: 0; font-size: 1.3rem; }

/* README 242: the Backpack's worksheets, for grown-ups (after the Grown-ups check) */
.wd-wsbtn { box-shadow: 0 0 0 2px #C9B8FF inset; background: #FBF9FF; }
.wd-wsbtn:hover { background: #F4F0FF; box-shadow: 0 0 0 2px #A992F5 inset; }
.wd-wsbtn .wd-sw { color: #4B3BA8; }
.wd-gpill { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #EEE9FF; color: #3D2F94; font-size: .75rem; font-weight: 700; }
.wd-wsh { margin: 4px 0 -4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4B3BA8; }
.wd-wsh.is-done { color: var(--wd-ink-2); }
.wd-wsh[hidden], .wd-wsmore[hidden], .wd-ws [hidden] { display: none; }
.wd-wslist { gap: 8px; }
.wd-wsit { border-radius: 18px; }
.wd-wsit.is-open { background: #FBF9FF; box-shadow: 0 0 0 2px #C9B8FF inset; padding-bottom: 12px; }
.wd-wsrow { border: 0; font: inherit; cursor: pointer; }
.wd-wsit.is-open .wd-wsrow { background: transparent; }
.wd-wsit.is-open .wd-wsthumb { display: none; }
.wd-wsit.is-done .wd-wsrow { color: var(--wd-ink-2); }
.wd-wsit.is-done .wd-rt b { color: var(--wd-ink); }
.wd-wsthumb { flex: none; width: 44px; height: 62px; object-fit: cover; object-position: top; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.wd-wstag { flex: none; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #EEE9FF; color: #4B3BA8; }
.wd-wstag.is-free { background: #DDF2E3; color: #1F6B3A; }
.wd-wstick { flex: none; color: #1F6B3A; font-weight: 800; font-size: 1.1rem; }
.wd-wsopen { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.wd-wsbig { width: 100%; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.18); }
.wd-wsacts { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-wsprint { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--wd-gold); box-shadow: 0 3px 0 var(--wd-gold-deep); color: var(--wd-ink); font-weight: 700; text-decoration: none; }
.wd-wssoft { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px #D5DCEE; color: var(--wd-ink); font-weight: 700; text-decoration: none; }
.wd-wsprint:hover, .wd-wssoft:hover { color: var(--wd-ink); filter: brightness(.97); }
.wd-wsmore { margin: 0; padding: 10px 12px; border-radius: 14px; background: #FFF6DA; font-size: .9rem; }
.wd-wsmore a { color: #1D5F8C; font-weight: 700; }

/* ---------- README 201: the Year Map (app/views/world/ymap.php) ---------- */
.is-ym .wd-me-n { display: inline !important; }
.is-ym .wd-me { padding-right: 16px; }
.wd-scene-ymap { display: flex; flex-direction: column; overflow: hidden; padding-top: 72px; background: var(--wd-sea); }
.wd-barred .wd-scene-ymap { padding-top: 106px; }
.wd-scene-ymap::before { content: ""; position: absolute; inset: 0 0 auto; height: 380px; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 12% 30%, rgba(255,255,255,.22) 0 2px, transparent 3px) 0 0 / 46px 38px, radial-gradient(circle at 70% 60%, rgba(255,255,255,.16) 0 2px, transparent 3px) 0 0 / 61px 47px; }
.ym-top { position: relative; flex: none; display: flex; flex-direction: column; }
.ym-today { margin: 0 10px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 rgba(22, 27, 71, .16); display: flex; flex-direction: column; gap: 10px;
  max-height: 260px; overflow: hidden; transition: max-height .28s ease, opacity .2s ease, padding .28s ease, margin .28s ease; }
.ym-mission { display: flex; align-items: center; gap: 12px; }
.ym-mart { width: 58px; height: 58px; flex: none; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 35%, #fff); }
.ym-mart img { width: 100%; height: 100%; object-fit: cover; }
.ym-mart .ym-emo { font-size: 1.9rem; }
.ym-mtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ym-kick { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #157272; }
.ym-mission.is-done .ym-kick { color: #1E7A4C; }
.ym-mtxt b { font-size: 1.05rem; line-height: 1.2; }
.ym-mtxt small { font-size: .8rem; color: var(--wd-ink-2); }
.ym-play { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--wd-gold); box-shadow: 0 4px 0 var(--wd-gold-deep); display: grid; place-items: center; color: #3A2A00; }
.ym-play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--wd-gold-deep); }
.ym-more-go, .ym-rgo { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; background: #EAE5FF; color: #3B2690; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; text-decoration: none; }
.ym-more-go { background: #FFF0C2; color: #5A4500; }
.ym-review { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #E8ECF6; }
.ym-mission + .ym-review { margin-top: 0; }
.ym-today > .ym-review:first-child { padding-top: 0; border-top: 0; }
.ym-rico { width: 34px; height: 34px; flex: none; border-radius: 10px; background: #EAE5FF; color: #5B3FD6; display: grid; place-items: center; }
.ym-rtxt { flex: 1; min-width: 0; font-size: .92rem; }
.ym-rtxt small { color: var(--wd-ink-2); font-size: .85rem; }
.ym-say { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: #F1F4FA; color: var(--wd-ink); display: grid; place-items: center; cursor: pointer; }
.ym-say:hover { background: #E4EAF6; }

.ym-strip { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 8px 10px 10px; transition: padding .28s ease; }
.ym-strip::-webkit-scrollbar { display: none; }
.ym-strip ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; width: max-content; }
.ym-isle-li { position: relative; display: flex; flex-direction: column; align-items: center; }
.ym-isle { width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--wd-ink); font: inherit; cursor: pointer; }
.ym-isle .ym-land { width: 84px; height: 70px; transition: transform .2s ease, width .28s ease, height .28s ease; }
.ym-shadow { opacity: 0; transition: opacity .2s; }
.ym-isle[aria-pressed="true"] .ym-land { transform: translateY(-5px) scale(1.06); }
.ym-isle[aria-pressed="true"] .ym-shadow { opacity: .9; }
.ym-iname { padding: 3px 10px; border-radius: 999px; background: #fff; border: 3px solid transparent; font-weight: 700; font-size: .82rem; white-space: nowrap; box-shadow: 0 2px 0 rgba(22, 27, 71, .15); }
.ym-isle[aria-pressed="true"] .ym-iname { border-color: var(--wd-gold); }
.ym-icount { font-size: .7rem; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 3px; text-shadow: 0 1px 0 rgba(22, 27, 71, .3); }
.ym-say-isle { position: absolute; right: 0; top: 0; width: 30px; height: 30px; box-shadow: 0 2px 0 rgba(22, 27, 71, .18); }
.ym-boat .ym-land { transform: none !important; }

.ym-panel.ym-fits { overflow-y: hidden; touch-action: pan-x pinch-zoom; }   /* nothing to scroll: the panel stays still (world.js ymFit) */
.ym-panel { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #FFF8EC; border-radius: 28px 28px 0 0;
  padding: 16px 12px calc(env(safe-area-inset-bottom, 0px) + 110px); outline: 0; }
.ym-ph { display: flex; align-items: baseline; gap: 10px; padding: 0 4px; }
.ym-ph h2 { flex: 1; font-size: 1.5rem; }
.ym-count { font-size: .82rem; font-weight: 600; color: var(--wd-ink-2); white-space: nowrap; }
.ym-bar { height: 8px; margin: 8px 4px 12px; border-radius: 999px; background: #EDE3CF; overflow: hidden; }
.ym-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: #3FAE6A; transition: width .3s; }
.ym-years { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 999px; background: #EDE3CF; }
.ym-years[hidden] { display: none; }
.ym-years button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--wd-ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.ym-years button small { font-size: .72rem; color: var(--wd-ink-2); }
.ym-years button[aria-checked="true"] { background: var(--wd-ink); color: #fff; }
.ym-years button[aria-checked="true"] small { color: #C9D0F2; }
.ym-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.ym-chips::-webkit-scrollbar { display: none; }
.ym-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 15px; border: 2px solid #E3D8C2; border-radius: 999px; background: #fff; color: var(--wd-ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.ym-chip[aria-pressed="true"] { background: var(--wd-ink); border-color: var(--wd-ink); color: #fff; }
.ym-chip-lock { border-style: dashed; border-color: #C9BBA0; background: transparent; color: var(--wd-ink-2); }
.ym-chip-lock.is-open { border-style: solid; background: #fff; color: var(--wd-ink); }
.ym-chip-lock[aria-pressed="true"] { background: #EAE5FF; border-color: #5B3FD6; color: #3B2690; }
.ym-jl { margin: 12px 4px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8A6D3B; }
.ym-note { margin: 0 4px 10px; padding: 9px 12px; border-radius: 14px; background: #EAE5FF; color: #3B2690; font-size: .84rem; }
.ym-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.ym-grid[hidden] { display: none; }
.ym-card { position: relative; min-width: 0; }
.ym-card[hidden] { display: none; }
.ym-go { display: block; height: 100%; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 #EADFC9; overflow: hidden; color: var(--wd-ink); text-decoration: none; }
.ym-go:hover { color: var(--wd-ink); transform: translateY(-2px); }
.ym-go:active { transform: translateY(2px); box-shadow: 0 2px 0 #EADFC9; }
.ym-art { position: relative; display: block; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--c) 30%, #fff); }
.ym-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ym-emo { display: grid; place-items: center; height: 100%; font-size: 2.6rem; font-family: var(--emoji, inherit); }
.ym-tag { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 46px); padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--wd-ink); font-size: .7rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ym-tag.is-done { background: #2F8F57; color: #fff; }
.ym-tag.is-go { background: var(--wd-gold); color: #3A2A00; }
.ym-tag.is-mem { background: var(--wd-ink); color: #fff; }
.ym-num { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--wd-ink); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.ym-cb { display: block; padding: 8px 10px 11px; }
.ym-cb b { display: block; font-size: .92rem; line-height: 1.25; }
.ym-cb small { font-size: .76rem; color: var(--wd-ink-2); }
.ym-say-card { position: absolute; right: 8px; top: 40px; width: 32px; height: 32px; background: #fff; box-shadow: 0 2px 0 rgba(22, 27, 71, .15); }
.ym-none { display: flex; align-items: center; gap: 12px; padding: 18px 8px; color: var(--wd-ink-2); }
.ym-none[hidden] { display: none; }

/* phones: only the games scroll; the Today card slides away and the strip slims down (and both come back at the top) */
@media (max-width: 899px) {
  .is-scrolled .ym-today { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: -4px; margin-bottom: 0; box-shadow: none; }
  .is-scrolled .ym-strip { padding: 2px 10px 8px; }
  .is-scrolled .ym-isle .ym-land, .is-scrolled .ym-icount, .is-scrolled .ym-say-isle { display: none; }
  .is-scrolled .ym-isle { width: auto; }
  .is-scrolled .ym-iname { padding: 7px 14px; font-size: .86rem; }
  .is-scrolled .ym-isle[aria-pressed="true"] .ym-iname { background: var(--wd-ink); color: #fff; border-color: var(--wd-ink); }
}
/* computers and tablets on their side: the map on the left, the island's games on the right */
@media (min-width: 900px) {
  .wd-scene-ymap { display: grid; grid-template-columns: minmax(400px, 46%) 1fr; padding-top: 0; }
  .wd-barred .wd-scene-ymap { padding-top: 0; }
  .ym-top { overflow-y: auto; padding: 84px 22px 120px; scrollbar-width: none; }
  .ym-today { margin: 0; }
  .ym-strip { overflow: visible; padding: 26px 0 0; }
  .ym-strip ul { width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
  .ym-isle-li:nth-child(even) { transform: translateY(54px); }
  .ym-isle { width: 100%; }
  .ym-isle .ym-land { width: min(190px, 100%); height: 150px; }
  .ym-iname { font-size: 1rem; padding: 4px 14px; }
  .ym-icount { font-size: .82rem; }
  .ym-say-isle { right: 12%; top: 10px; }
  .ym-panel { border-radius: 32px 0 0 32px; padding: 86px 28px 120px; }
  .ym-ph h2 { font-size: 2rem; }
  .ym-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .ym-cb b { font-size: 1rem; }
}
@media (min-width: 1400px) { .ym-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the sheets: Topics, the grown-up check, More islands */
.ym-sheet { width: 100%; max-width: 520px; margin: auto auto 0; max-height: 88vh; overflow-y: auto; border: 0; border-radius: 28px 28px 0 0; padding: 18px 18px 26px; background: #fff; color: var(--wd-ink); box-shadow: 0 -10px 30px rgba(22, 27, 71, .25); }
.ym-sheet::backdrop { background: rgba(22, 27, 71, .55); }
.ym-sheet-more { background: #E9F7FB; }
@media (min-width: 700px) { .ym-sheet { margin: auto; border-radius: 28px; } }
.ym-sh { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ym-sh h2 { flex: 1; font-size: 1.5rem; }
.ym-sh > div { flex: 1; }
.ym-x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #F1F4FA; color: var(--wd-ink); display: grid; place-items: center; cursor: pointer; }
.ym-sub { color: var(--wd-ink-2); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.ym-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ym-topic { min-height: 64px; padding: 10px 12px; border: 2px solid #E3E8F3; border-radius: 18px; background: #fff; color: var(--wd-ink); font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.ym-topic b { font-size: .95rem; }
.ym-topic small { font-size: .76rem; color: var(--wd-ink-2); }
.ym-topic[aria-pressed="true"] { border: 3px solid var(--wd-ink); background: #F1F4FA; }
.ym-gico { width: 64px; flex: none; }
.ym-gico .ym-land { width: 64px; height: 54px; }
.ym-gico.is-years { width: 56px; height: 56px; border-radius: 18px; background: #EAE5FF; color: #5B3FD6; display: grid; place-items: center; }
.ym-gico[hidden] { display: none; }
.ym-gate { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; padding: 16px; border-radius: 20px; background: #F6F8FD; font-size: .95rem; line-height: 1.5; }
.ym-gk { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #157272; }
.ym-gate label { color: var(--wd-ink-2); }
.ym-grow { display: flex; gap: 10px; }
.ym-grow input { width: 116px; height: 52px; border: 2px solid #D5DCEE; border-radius: 14px; font: inherit; font-size: 1.25rem; font-weight: 700; text-align: center; color: var(--wd-ink); }
.ym-gbtn { flex: 1; min-height: 52px; border: 0; border-radius: 999px; background: var(--wd-gold); box-shadow: 0 4px 0 var(--wd-gold-deep); color: #3A2A00; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.ym-gerr { color: #B3261E; font-weight: 600; }
.ym-tick { display: flex; align-items: flex-start; gap: 10px; color: var(--wd-ink) !important; cursor: pointer; }
.ym-tick input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--wd-ink); }
.ym-tick small { display: block; color: var(--wd-ink-2); font-size: .8rem; }
.ym-link { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--wd-ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ym-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 14px 0 0; padding: 0; }
.ym-misle { width: 100%; border: 0; border-radius: 22px; background: var(--wd-sea); padding: 6px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--wd-ink); font: inherit; cursor: pointer; }
.ym-misle .ym-land { width: 100%; max-width: 150px; height: 104px; }
.ym-misle small { color: #fff; font-weight: 700; font-size: .78rem; }
.ym-mnote { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; color: var(--wd-ink-2); font-size: .86rem; }
.ym-lk { display: inline-flex; }
.a11y-calm .ym-today, .a11y-calm .ym-isle .ym-land, .a11y-calm .ym-strip { transition: none; }
.ym-today, .ym-strip { flex: none; }
.is-ym .wd-flip { display: none; }   /* the Year Map says it all; Flip's bubble covered the islands */
.ym-isle { width: auto; min-width: 84px; max-width: 124px; }
.ym-iname { white-space: normal; text-align: center; line-height: 1.15; font-size: .78rem; padding: 3px 9px; }
@media (min-width: 900px) { .ym-isle { max-width: none; } .ym-iname { font-size: 1rem; } }
/* README 214: "Change the year plan" in the Grown-ups panel */
button.wd-row.wd-fb { border: 0; font: inherit; cursor: pointer; }   /* README 461: the Parents Board rows (forms) */
button.wd-row[data-wd-plan] { border: 0; font: inherit; cursor: pointer; background: #E5F5EC; }
button.wd-row[data-wd-plan]:hover { background: #D4EEDF; }
.wd-planbox { display: flex; flex-direction: column; gap: 12px; }
.wd-planbox[hidden] { display: none; }
.wd-planback { align-self: flex-start; }
.wd-planslot .plan { margin: 0; box-shadow: none; padding: 0; border: 0; background: transparent; }
.wd-planslot .plan-path, .wd-planslot .plan-free { display: none; }
.wd-planbox .wd-btn { align-self: center; min-width: 160px; }

/* README 231: "Recently played" on the map, for visitors sent from the members panel */
.wd-recent { max-width: 1180px; margin: 0 auto 34px; padding: 14px 16px 16px; border-radius: 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 0 rgba(16, 60, 90, .16); }
.wd-recent h2 { margin: 0 0 10px; font-family: var(--wd-d); font-size: 1.2rem; color: var(--wd-ink); }
.wd-recent .wd-list { flex-direction: row; flex-wrap: wrap; }
.wd-recent .wd-list li { flex: 1 1 220px; max-width: 320px; }
@media (max-width: 640px) { .wd-recent { margin-bottom: 22px; padding: 12px; } .wd-recent .wd-list li { flex-basis: 100%; max-width: none; } }
/* README 231: "Recently played" in the Year Map's top card, for visitors sent from the members panel */
.ym-recent { display: flex; flex-direction: column; gap: 6px; }
.ym-recent .wd-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.ym-recent .wd-list li { flex: 1 1 200px; min-width: 0; }
.ym-recent .wd-row { min-height: 48px; padding: 6px 10px; }
.ym-recent .wd-sw { width: 34px; height: 34px; }
.ym-recent .wd-rt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ym-today > .ym-recent + .ym-mission, .ym-today > .ym-recent + .ym-review { padding-top: 10px; border-top: 1px solid rgba(22, 27, 71, .1); }

/* README 252: Ask Flip is looking (an answer taking more than a quarter of a second) */
.wd-field.is-busy .wd-go svg { animation: wdLook .9s ease-in-out infinite; }
@keyframes wdLook { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(14deg) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .wd-field.is-busy .wd-go svg { animation: none; opacity: .55; } }
[data-wd-askres][aria-busy="true"] { opacity: .6; transition: opacity .2s; }

/* README 253: Ask Flip's subjects in one row that scrolls sideways (they took several rows and pushed the results down) */
#wdAsk .wd-pills { flex: none; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -6px; padding: 2px 6px 6px; scroll-padding-inline: 6px; scroll-snap-type: x proximity; }
#wdAsk .wd-pills::-webkit-scrollbar { display: none; }
#wdAsk .wd-pills .wd-chipl { flex: none; min-height: 40px; scroll-snap-align: start; white-space: nowrap; }
/* README 254: the subjects row fades at a side with more to see; arrows on a computer */
.wd-pillrow { position: relative; flex: none; min-width: 0; }
.wd-pillrow.is-more-r .wd-pills { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.wd-pillrow.is-more-l .wd-pills { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.wd-pillrow.is-more-l.is-more-r .wd-pills { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wd-pillarr { display: none; }
@media (hover: hover) and (pointer: fine) {
  .wd-pillarr:not([hidden]) { display: grid; place-items: center; position: absolute; top: 2px; z-index: 2; width: 40px; height: 40px; border-radius: 999px; border: 2px solid #C3CEE0; background: #fff; color: var(--wd-ink); cursor: pointer; box-shadow: 0 3px 10px rgba(38, 48, 94, .14); }
  .wd-pillarr.is-l { left: -4px; } .wd-pillarr.is-r { right: -4px; }
  .wd-pillarr:hover { border-color: var(--wd-ink); }
}

/* README 272: the phone top bar (switch "Games world: tidy top bar on phones"): "Year 4" instead of "Year 4 Map", round Home and
   back buttons, and one Settings button (Sound effects is in Settings). Computers unchanged. */
.wd-me-s { display: none; }
@media (max-width: 700px) {
  .wd-ph2 .wd-top .wd-round[data-wd-sound] { display: none; }
  .wd-ph2 .wd-top .wd-round[data-wd-open="set"] { display: grid !important; }
  .wd-ph2 .wd-home { width: 48px; padding: 0; justify-content: center; }
  .wd-ph2 .wd-home .wd-home-s, .wd-ph2 .wd-home .wd-home-l { display: none; }
  .wd-ph2 .wd-back span { display: none; }
  .wd-ph2 .wd-back { padding: 5px 12px 5px 8px; }
  .wd-ph2 .wd-me:has(.wd-me-s) .wd-me-n { display: none !important; }
  .wd-ph2 .wd-me .wd-me-s { display: inline; }
  .wd-ph2.wd-html .wd-top .wd-chip, .wd-ph2 .wd-top .wd-round { flex: none; }
}

/* README 272: the Play Room */
.pr-keys { gap: 6px; padding: 5px 16px 5px 14px; background: #FFD84D; color: var(--wd-ink); font-family: var(--wd-d); font-size: 1.1rem; font-weight: 800; box-shadow: 0 4px 0 #E3A322; }
.pr-keys:hover { background: #FFE27A; }
.pr-keys .pr-kw { font-family: var(--wd-b); font-size: .9rem; font-weight: 700; }
@media (max-width: 700px) { .pr-keys { padding: 5px 14px; } .pr-keys .pr-kw { display: none; } }
.pr-dk { position: relative; }
.pr-dk-i { font-family: var(--emoji); font-size: 1.45rem; line-height: 1; }
.pr-badge { position: absolute; top: 2px; right: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #FFD84D; color: var(--wd-ink); font: 800 .78rem/20px var(--wd-b); font-style: normal; text-align: center; box-shadow: 0 2px 0 #E3A322; }
.pr-scene { position: absolute; inset: 0; overflow-y: auto; padding: 84px 16px 120px; background: var(--wd-sea); }
.pr-panel { max-width: 1060px; margin: 0 auto; padding: 22px 22px 28px; border-radius: 30px; background: #FFF8EA; box-shadow: 0 8px 0 rgba(38, 48, 94, .18); }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pr-head h1 { font-size: 2.3rem; color: var(--wd-ink); }
.pr-have { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #FFD84D; font-weight: 700; box-shadow: 0 3px 0 #E3A322; }
.pr-have b { font-family: var(--wd-d); font-size: 1.2rem; }
.pr-lead { margin: 0 0 12px; color: var(--wd-ink-2); font-weight: 600; }
.pr-earn { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pr-earn li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 2px solid #EADFC3; font-weight: 600; font-size: .9rem; }
.pr-earn b { color: #9A6A00; }
.pr-empty { padding: 26px 20px; border-radius: 22px; background: #fff; text-align: center; color: var(--wd-ink-2); }
.pr-empty p { margin: 0 0 4px; } .pr-empty b { color: var(--wd-ink); font-size: 1.15rem; }
.pr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pr-card { border-radius: 22px; background: #fff; box-shadow: 0 6px 0 rgba(38, 48, 94, .10); overflow: hidden; }
.pr-go { position: relative; display: block; color: var(--wd-ink); text-decoration: none; }
.pr-go:hover { color: var(--wd-ink); }
.pr-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--c, #3FB4C6), color-mix(in srgb, var(--c, #3FB4C6) 55%, #fff)); }
.pr-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-emoji { font-family: var(--emoji); font-size: 3.4rem; line-height: 1; }
.pr-card.is-locked .pr-art::after { content: ""; position: absolute; inset: 0; background: rgba(38, 48, 94, .28); }
.pr-state { position: absolute; z-index: 2; left: 50%; top: 31%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px; background: #fff; font-weight: 800; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); white-space: nowrap; }
.pr-state.is-open { left: 12px; top: 12px; transform: none; background: #E9F8F1; color: #14684F; font-size: .85rem; padding: 5px 10px; }
.pr-cb { display: block; padding: 10px 14px 14px; }
.pr-cb b { display: block; font-family: var(--wd-d); font-size: 1.15rem; line-height: 1.15; }
.pr-cb small { display: block; margin-top: 3px; color: var(--wd-ink-2); font-size: .86rem; }
.pr-prac { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #EEF3FB; color: var(--wd-ink); font-weight: 700; font-size: .8rem; }
.pr-layer { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pr-shade { position: absolute; inset: 0; background: rgba(20, 26, 60, .45); }
.pr-sheet { position: relative; width: 100%; max-width: 540px; max-height: calc(100% - 20px); overflow-y: auto; border-radius: 28px; background: #FFFCF3; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.pr-x { position: absolute; z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--wd-ink); font-weight: 800; text-decoration: none; box-shadow: var(--wd-shadow); }
.pr-cover { aspect-ratio: 16 / 9; }
.pr-cover .pr-emoji { font-size: 4.4rem; }
.pr-body { padding: 16px 20px 20px; }
.pr-kick { margin: 0 0 4px; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wd-ink-2); }
.pr-body h2 { font-size: 1.8rem; color: var(--wd-ink); margin-bottom: 6px !important; }
.pr-desc { margin: 0 0 8px; color: var(--wd-ink-2); }
.pr-body h3 { margin: 12px 0 4px !important; font-family: var(--wd-b) !important; font-size: .8rem !important; text-transform: uppercase; letter-spacing: .06em; color: var(--wd-ink-2); }
.pr-how { margin: 0 0 6px; padding-left: 20px; font-weight: 600; line-height: 1.6; }
.pr-acts { margin-top: 14px; }
.pr-btn { display: flex; width: 100%; justify-content: center; align-items: center; gap: 6px; min-height: 56px; border: 0; border-radius: 999px; background: #FFD84D; color: var(--wd-ink); font: 800 1.12rem var(--wd-b); box-shadow: 0 5px 0 #E3A322; text-decoration: none; cursor: pointer; }
.pr-btn:hover { background: #FFE27A; color: var(--wd-ink); }
.pr-btn:disabled { opacity: .6; }
.pr-btn2 { display: flex; width: 100%; justify-content: center; align-items: center; min-height: 50px; margin-top: 10px; border-radius: 999px; border: 2px solid #C9D6EA; background: #fff; color: var(--wd-ink); font-weight: 700; text-decoration: none; }
.pr-note { margin: 8px 0 0; text-align: center; color: var(--wd-ink-2); font-weight: 600; font-size: .92rem; }
.pr-acts > .pr-note:first-child { margin: 0 0 10px; text-align: left; }
.pr-err { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: #FFF0F0; color: #A32121; font-weight: 700; }
.pr-err[hidden] { display: none; }
.pr-player { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #10163A; }
.pr-pbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px; color: #fff; }
.pr-pbar b { font-family: var(--wd-d); font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-done { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--wd-ink); font-weight: 800; cursor: pointer; }
.pr-player iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.pr-timeup { flex: 1; display: grid; place-content: center; text-align: center; color: #fff; font-size: 1.2rem; }
.pr-timeup p { margin: 4px 0; }
html.pr-playing .wd-dock, html.pr-playing .wd-top { visibility: hidden; }
@media (max-width: 860px) { .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 700px) {
  .pr-scene { padding: 72px 10px 110px; }
  .pr-panel { padding: 16px 12px 20px; border-radius: 24px; }
  .pr-head h1 { font-size: 1.8rem; }
  .pr-emoji { font-size: 2.6rem; }
  .pr-cb b { font-size: 1rem; }
  .pr-layer { align-items: flex-end; padding: 0; }
  .pr-sheet { border-radius: 28px 28px 0 0; max-height: 92%; }
}
.pr-body h2:focus { outline: none; }

/* README 303: 2-Minute Lessons in the games world */
.qkw-yr { padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--wd-ink); font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 rgba(38, 48, 94, .12); }
.qkw-h { margin: 22px 0 10px; font-size: 1.35rem; color: var(--wd-ink); }
.qkw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.qkw-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; border-radius: 20px; background: #fff; color: var(--wd-ink); text-decoration: none; box-shadow: 0 5px 0 rgba(38, 48, 94, .10); }
.qkw-card:hover { transform: translateY(-2px); }
.qkw-stk { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #FFE08A; font-size: 1.3rem; color: var(--wd-ink); font-family: var(--emoji); }
.qkw-stk svg { width: 52px; height: 52px; }
.qkw-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qkw-t b { line-height: 1.2; }
.qkw-t small { color: var(--wd-ink-2); font-weight: 600; }
.qkw-done { position: absolute; top: 8px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #E5F5EC; color: #1E6B44; font-weight: 800; font-size: .75rem; }
.qk-dk-i { font-family: var(--emoji); font-size: 1.45rem; line-height: 1; }
/* README 305: the room's tools, the lesson card, and the sticker book in the Backpack */
.qkw-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qkw-bookbtn { border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.qkw-bookbtn b { min-width: 24px; padding: 0 7px; border-radius: 999px; background: #FFD84D; color: var(--wd-ink); font-size: .85rem; line-height: 22px; text-align: center; }
.qkw-time { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: #FFF1C2; color: #6B4A00; font-weight: 600; }
.qkw-card.is-locked .qkw-stk { background: #EEE9FF; }
.qkw-cover { display: grid; place-items: center; min-height: 150px; background: linear-gradient(135deg, #FFE9A8, #A9E1F4); border-radius: 22px 22px 0 0; }
.qkw-bigstk svg { width: 120px; height: 120px; display: block; filter: drop-shadow(0 6px 0 rgba(38, 48, 94, .15)); }
.qkb-grid { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.qkb-slot a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 18px; background: #fff; color: var(--wd-ink); text-decoration: none; text-align: center; box-shadow: 0 4px 0 rgba(38, 48, 94, .08); height: 100%; }
.qkb-slot b { font-size: .78rem; line-height: 1.2; }
.qkb-stk { width: 64px; height: 64px; display: grid; place-items: center; }
.qkb-stk svg { width: 64px; height: 64px; }
.qkb-empty { border-radius: 50%; border: 3px dashed #C9D3E6; color: #9AA6C2; font-weight: 800; font-size: 1.4rem; }
.qkb-slot:not(.is-got) b { color: var(--wd-ink-2); font-weight: 600; }
.team-only { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #EDE8FF; color: #3B2690; font-weight: 700; font-size: .92rem; }
/* README 308: a game's card in the Play Room (and a 2-Minute Lesson's card): the buttons stay in view at the bottom of the card while
   the rest scrolls, and the note under the main button ("Uses 1 Play Key · you have 1") has room below the button's shadow. */
.pr-sheet .pr-acts { position: sticky; bottom: 0; z-index: 2; margin: 14px -20px -20px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: #FFFCF3; box-shadow: 0 -10px 16px -12px rgba(38, 48, 94, .28); border-top: 1px solid #EFE6CF; }
.pr-btn + .pr-note { margin-top: 14px; }
/* README 309: a Play Room game's card: the cover and screenshots side by side to swipe, shorter, so the words and buttons fit */
.pr-media { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 64px 4px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pr-media::-webkit-scrollbar { display: none; }
.pr-mi { flex: 0 0 auto; height: clamp(120px, 22vh, 190px); padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #EEF2F8; scroll-snap-align: start; cursor: zoom-in; box-shadow: 0 3px 0 rgba(38, 48, 94, .08); }
.pr-mi img { height: 100%; width: auto; display: block; }
.pr-mi .pr-art.pr-cover { height: 100%; width: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.pr-mi .pr-art.pr-cover img { width: 100%; height: 100%; object-fit: cover; }
.pr-media.is-one { padding-right: 16px; }
.pr-media.is-one .pr-mi { width: 100%; }
.pr-media.is-one .pr-art.pr-cover { width: 100%; aspect-ratio: auto; }
.pr-mi:focus-visible { outline: 3px solid #3FB4C6; outline-offset: 2px; }
.pr-zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(15, 20, 45, .88); padding: 56px 12px 40px; }
.pr-zoom[hidden] { display: none; }
.pr-zimg { max-width: min(96vw, 1100px); max-height: 100%; display: grid; place-items: center; }
.pr-zimg img, .pr-zimg .pr-art { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 16px; display: block; }
.pr-zimg .pr-art { width: min(90vw, 720px); aspect-ratio: 16 / 9; }
.pr-zx { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--wd-ink); font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.pr-zarrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--wd-ink); font-size: 1.8rem; font-weight: 800; line-height: 1; cursor: pointer; }
.pr-zarrow[hidden] { display: none; }
.pr-zprev { left: 10px; } .pr-znext { right: 10px; }
.pr-zn { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; margin: 0; }
.pr-media { scroll-padding-inline: 16px; }
.pr-mi { height: clamp(108px, 20vh, 190px); }
@media (max-height: 640px) { .pr-sheet .pr-acts { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } .pr-sheet .pr-btn { min-height: 50px; } .pr-sheet .pr-btn2 { min-height: 44px; margin-top: 8px; } .pr-body { padding-top: 12px; } }
.pr-zoom { background: rgba(12, 16, 38, .95); }
.pr-zn { bottom: 12px; left: 50%; right: auto; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.pr-zn:empty { display: none; }
/* README 310: ‹ › on the row of pictures */
.pr-mwrap { position: relative; }
.pr-mscroll { position: absolute; z-index: 2; top: calc(14px + clamp(108px, 20vh, 190px) / 2 - 22px); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--wd-ink); font: 800 1.6rem/1 var(--wd-b); box-shadow: 0 4px 12px rgba(38, 48, 94, .25); cursor: pointer; }
.pr-mscroll[hidden] { display: none; }
.pr-mscroll:hover { background: #FFF4CC; }
.pr-mleft { left: 8px; } .pr-mright { right: 8px; }
@media (hover: none) { .pr-mscroll { display: none !important; } }   /* phones and tablets swipe */
.pr-mscroll { top: calc(14px + clamp(108px, 20vh, 190px) / 2 - 8px); }   /* a little lower, clear of the ✕ */

/* README 315: phones (and phones with bigger text, which act like a narrower screen) */
/* the ways to earn a key: small chips with a picture each, in one row that swipes on phones */
.pr-earnrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.pr-earnh { flex: none; margin: 0; font-weight: 700; font-size: .88rem; color: var(--wd-ink-2); white-space: nowrap; }
.pr-earnh b { color: #9A6A00; }
.pr-earnrow .pr-earn { flex: 1 1 auto; min-width: 0; margin: 0; gap: 6px; }
.pr-earnrow .pr-earn li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-width: 1.5px; font-size: .82rem; line-height: 1.2; white-space: nowrap; }
.pr-earnrow .pr-earn li span { font-family: var(--emoji); font-size: .95rem; }
@media (max-width: 700px) {
  .pr-earnrow { margin: 0 -12px 14px 0; }
  .pr-earnrow .pr-earn { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 12px 2px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .pr-earnrow .pr-earn::-webkit-scrollbar { display: none; }
  .pr-earnrow .pr-earn li { flex: none; }
  .pr-lead { margin-bottom: 8px; font-size: .95rem; }
}
/* a game's card (and a lesson's): a small "‹ Back" beside the main button, one row instead of two big ones */
.pr-sheet .pr-acts { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "top top" "back main" "note note" "err err"; column-gap: 10px; row-gap: 0; align-items: stretch;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); margin: 14px -20px -20px; }
.pr-sheet .pr-acts > * { grid-column: 1 / -1; }
.pr-sheet .pr-acts > .pr-note:first-child { grid-area: top; margin: 0 0 10px; }
.pr-sheet .pr-acts > .pr-btn { grid-area: main; min-height: 52px; padding: 6px 14px; font-size: 1.05rem; line-height: 1.15; text-align: center; box-shadow: 0 4px 0 #E3A322; }
.pr-sheet .pr-acts > .pr-btn2 { grid-area: back; width: auto; min-height: 52px; margin: 0; padding: 0 16px; gap: 2px; font-size: .95rem; white-space: nowrap; }
.pr-sheet .pr-acts > .pr-btn2 span { font-size: 1.4rem; line-height: 1; margin-top: -3px; }
.pr-sheet .pr-acts > .pr-btn + .pr-note, .pr-sheet .pr-acts > .pr-note:not(:first-child) { grid-area: note; margin: 8px 0 0; font-size: .85rem; }
.pr-sheet .pr-acts > .pr-err { grid-area: err; }
@media (max-height: 640px) { .pr-sheet .pr-acts { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } .pr-sheet .pr-acts > .pr-btn, .pr-sheet .pr-acts > .pr-btn2 { min-height: 46px; } }
/* the padlock pill sits in the middle of the picture, whatever the card's height (it slid over the name on narrow phones) */
.pr-go { container-type: inline-size; }
.pr-card .pr-state:not(.is-open) { top: 31.25cqw; }
/* README 315: narrow phones: while the back button shows, it does the logo's job (back to the map), so the logo makes room
   and the top bar's last button (Grown-ups or Settings) stays on screen */
@media (max-width: 399px) { .wd-top:has(.wd-back:not([hidden])) .wd-brand { display: none; } }
.pr-shelf { margin: 18px 0 10px; font-family: var(--wd-d); font-size: 1.25rem; color: var(--wd-ink); }   /* README 376 */
.pr-shelf:first-of-type { margin-top: 4px; }
.pr-grid + .pr-shelf { margin-top: 28px; }
