/* YOINK! Sky Duel — site styles. The world is the game's own (src/head.html): toy sky, Lilita One with a
   navy stroke, Nunito, candy buttons with a navy rim and lip. The scroll travels through the worlds' skies. */
:root {
  --line: #1d2342;
  --ink: #1d2342;
  --ink-soft: #2f3a6b;
  --paper: #ffffff;
  --sun: #ffd23f;
  --sun-d: #f29a12;
  --blue: #2f86ff;
  --blue-d: #1747a8;
  --red: #ff4a5c;
  --leaf: #6bd65a;
  --panel: rgba(29, 35, 66, .86);
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 800 18px/1.55 var(--body); color: var(--ink); background: #120c33; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--line); }
html { scrollbar-color: var(--line) transparent; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; border-radius: 10px; }
.night :focus-visible, .foot :focus-visible { outline-color: var(--sun); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--sun); color: var(--line); font-weight: 900; text-decoration: none; border: 3px solid var(--line); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.h2 { font: 400 clamp(40px, 6.2vw, 76px)/.98 var(--display); color: #fff; letter-spacing: .3px;
  -webkit-text-stroke: .16em var(--line); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--line); text-wrap: balance; }
.h2.big { font-size: clamp(52px, 9vw, 112px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; margin-top: 18px; color: var(--ink-soft); }
h3 { font: 400 clamp(24px, 2.4vw, 30px)/1.05 var(--display); letter-spacing: .2px; }

/* ---------- candy buttons (the game's .btn) ---------- */
.btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 400 24px/1 var(--display); color: #fff; text-decoration: none; letter-spacing: .5px; padding: 14px 30px 15px; border-radius: 18px;
  border: 3px solid var(--line); background: linear-gradient(#ffe56b, #ffb21c);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .55), 0 6px 0 var(--line), 0 14px 24px rgba(29, 35, 66, .25);
  -webkit-text-stroke: 4px var(--line); paint-order: stroke fill; transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s; cursor: pointer; }
.btn:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-2px); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14), inset 0 3px 0 rgba(255, 255, 255, .55), 0 8px 0 var(--line), 0 18px 28px rgba(29, 35, 66, .28); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 2px 0 var(--line), 0 6px 12px rgba(29, 35, 66, .2); }
.btn small { font: 900 13px/1.2 var(--body); -webkit-text-stroke: 0; color: var(--line); letter-spacing: .2px; opacity: .85; }
.btn-xl { font-size: clamp(34px, 4vw, 44px); padding: 16px clamp(34px, 5vw, 58px) 14px; border-radius: 24px; }
.btn-sm { font-size: 18px; padding: 8px 18px 9px; border-radius: 14px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--line); -webkit-text-stroke: 3px var(--line); }
.btn-sm:hover { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .5), 0 6px 0 var(--line); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px var(--gut);
  padding-top: max(10px, env(safe-area-inset-top)); transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(29, 35, 66, .92); box-shadow: 0 6px 20px rgba(10, 14, 40, .25); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--line); }
.nav-word { font: 400 26px/1 var(--display); color: var(--sun); -webkit-text-stroke: 5px var(--line); paint-order: stroke fill; transform: rotate(-3deg); }
.nav-links { display: none; gap: 6px; margin-left: 12px; }
.nav-links a { font: 900 16px/1 var(--body); color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 12px; text-shadow: 0 2px 0 var(--line), 0 0 8px rgba(29, 35, 66, .6); }
.nav-links a:hover { background: rgba(255, 255, 255, .16); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 3px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(29, 35, 66, .55); }
.lang button { font: 900 14px/1 var(--body); color: #fff; background: none; border: 0; padding: 8px 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--blue); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* ---------- hero: the live game behind the wordmark ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; padding: 120px 0 clamp(96px, 12vh, 150px); overflow: hidden; isolation: isolate; background: #7fc8f2; }
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-live { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-live.on { opacity: 1; }
.hero-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(29, 35, 66, .35) 0, rgba(29, 35, 66, 0) 22%),
  linear-gradient(0deg, rgba(14, 24, 70, .62) 0, rgba(14, 24, 70, .18) 38%, rgba(14, 24, 70, 0) 60%); }
.hero-copy { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; position: relative; }
.wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.wm-yoink { font: 400 clamp(92px, 21vw, 220px)/.86 var(--display); color: var(--sun); letter-spacing: 1px;
  -webkit-text-stroke: .1em var(--line); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--line), 0 .14em .2em rgba(14, 24, 70, .35);
  transform: rotate(-4deg); transform-origin: 20% 80%; }
.wm-ribbon { margin: 6px 0 0 clamp(14px, 3vw, 40px); font: 400 clamp(22px, 3.4vw, 36px)/1 var(--display); color: #fff; letter-spacing: 2px;
  padding: 9px 22px 10px; border-radius: 14px; border: 3px solid var(--line); background: linear-gradient(#8fd0ff, var(--blue));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15), inset 0 3px 0 rgba(255, 255, 255, .4), 0 5px 0 var(--line); -webkit-text-stroke: 5px var(--line); paint-order: stroke fill; transform: rotate(-2deg); }
.hero-pitch { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.7vw, 20px); color: #fff; background: var(--panel); border: 2px solid rgba(255, 255, 255, .22); border-radius: 18px; padding: 12px 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 26px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 9px 16px 10px 12px; border-radius: 14px; background: var(--line); color: #fff; text-decoration: none; border: 2px solid rgba(255, 255, 255, .28); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font: 900 17px/1.1 var(--body); }
.store small { font-size: 11px; font-weight: 800; opacity: .8; }
.store[aria-disabled="true"] { cursor: default; opacity: .9; }
.store:not([aria-disabled="true"]):hover { background: #2a3366; }
.online { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 6px 14px; border-radius: 99px; background: var(--panel); color: #fff; font-size: 15px; }
.online i { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(107, 214, 90, .3); }
.hero-cloud { position: absolute; left: -5%; right: -5%; bottom: -2px; height: 90px; z-index: 1; pointer-events: none;
  background: radial-gradient(60px 46px at 6% 100%, #9ad6ff 98%, #0000), radial-gradient(90px 60px at 18% 100%, #9ad6ff 98%, #0000),
  radial-gradient(70px 50px at 31% 100%, #9ad6ff 98%, #0000), radial-gradient(110px 70px at 46% 100%, #9ad6ff 98%, #0000),
  radial-gradient(80px 54px at 61% 100%, #9ad6ff 98%, #0000), radial-gradient(120px 76px at 77% 100%, #9ad6ff 98%, #0000),
  radial-gradient(76px 52px at 92% 100%, #9ad6ff 98%, #0000), linear-gradient(#0000 70%, #9ad6ff 70%); }
@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 120px; }
  .hero-scrim { background: linear-gradient(90deg, rgba(14, 24, 70, .5) 0, rgba(14, 24, 70, .22) 36%, rgba(14, 24, 70, 0) 58%), linear-gradient(180deg, rgba(29, 35, 66, .3) 0, rgba(29, 35, 66, 0) 20%); }
  .hero-poster { object-position: 70% 40%; }
}
/* the one authored motion: the wordmark lands */
@media (prefers-reduced-motion: no-preference) {
  .wm-yoink { animation: land .9s var(--ease) both .1s; }
  .wm-ribbon { animation: ribbon .7s var(--ease) both .55s; }
}
@keyframes land { 0% { opacity: 0; transform: translateY(-60px) rotate(-12deg) scale(1.25); } 60% { opacity: 1; transform: translateY(6px) rotate(-3deg) scale(.97); } 100% { transform: rotate(-4deg); } }
@keyframes ribbon { 0% { opacity: 0; transform: translateX(-30px) rotate(-8deg); } 100% { opacity: 1; transform: rotate(-2deg); } }

/* ---------- the sky journey: each section continues the colour the last one ended on ---------- */
.how { background: linear-gradient(#9ad6ff, #c8ecff); }
.worlds { background: linear-gradient(#c8ecff 0, #e7f6ff 30%, #ffe0f1 100%); }
.friends { background: linear-gradient(#ffe0f1, #ffbfe2); }
.more { background: linear-gradient(#ffbfe2, #ffd3a1); }
.board { background: #ffd3a1; }
.gallery { background: linear-gradient(#ffd3a1 0, #ff9a66 30%, #8a55d8 100%); }
.faq { background: linear-gradient(#8a55d8, #2c1e70); }
.close { background: linear-gradient(#2c1e70, #120c33); }
.how, .worlds, .friends, .more, .board, .gallery, .faq, .close { padding: var(--sec) 0; position: relative; }
main > section + section { margin-top: -1px; }
.gallery, .faq, .close { color: #eef0ff; }
.gallery .lead, .faq .lead, .close .lead { color: #e2e5ff; }

/* ---------- how to play ---------- */
.how-grid { display: grid; gap: 48px; align-items: center; }
.steps { margin-top: 34px; display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; counter-increment: s; }
.steps img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(29, 35, 66, .18)); }
.steps h3 { color: var(--line); }
.steps h3::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; vertical-align: 3px;
  border-radius: 50%; background: var(--blue); color: #fff; font: 400 20px/1 var(--display); border: 3px solid var(--line); -webkit-text-stroke: 0; }
.steps p { margin-top: 6px; color: var(--ink-soft); max-width: 30em; }
.toy { justify-self: center; width: min(100%, 440px); }
.toy-frame { position: relative; border-radius: 30px; border: 4px solid var(--line); background: #7fc8f2; overflow: hidden;
  box-shadow: 0 8px 0 var(--line), 0 26px 50px rgba(29, 35, 66, .28); }
.toy canvas { display: block; width: 100%; height: auto; aspect-ratio: 420 / 540; touch-action: pan-y; cursor: crosshair; }
.toy canvas.live { touch-action: none; }
.toy-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.toy-start:hover { transform: translate(-50%, calc(-50% - 2px)); }
.toy-start:active { transform: translate(-50%, calc(-50% + 4px)); }
.toy-score { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.toy-score > span { font: 400 20px/1 var(--display); color: #fff; -webkit-text-stroke: 4px var(--line); paint-order: stroke fill; padding: 7px 12px; border-radius: 14px; background: rgba(29, 35, 66, .6); }
.toy-score b { font-weight: 400; color: var(--sun); }
.toy-score .rival b { color: #ffb1ba; }
.toy-reset { position: absolute; right: 12px; bottom: 12px; font: 900 14px/1 var(--body); color: #fff; background: rgba(29, 35, 66, .7); border: 2px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.toy-reset:hover { background: var(--line); }
.toy figcaption { margin-top: 16px; font-size: 15px; color: var(--ink-soft); text-align: center; text-wrap: balance; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; } }

/* ---------- worlds: one row per sky ---------- */
.world-list { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 56px auto 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.world { display: grid; gap: 22px; align-items: center; --w: #9be87a; --wd: #2f9a3a; }
.w-candy { --w: #ffb8e0; --wd: #d9469b; } .w-frost { --w: #c6eeff; --wd: #3c8fd6; } .w-lava { --w: #ffbb6b; --wd: #d2381c; } .w-cosmic { --w: #cfb0ff; --wd: #5b2fc0; }
.world-shot { width: min(80%, 320px); justify-self: center; aspect-ratio: 430 / 560; object-fit: cover; border-radius: 34px; border: 4px solid var(--line);
  background: var(--w); box-shadow: 0 6px 0 var(--line), 0 0 0 9px var(--w), 0 6px 0 12px var(--wd), 0 24px 40px rgba(29, 35, 66, .25); transform: rotate(-2.5deg); margin-bottom: 18px; }
.world:nth-child(even) .world-shot { transform: rotate(2.5deg); }
.world-n { font: 900 15px/1 var(--body); color: var(--wd); letter-spacing: .5px; }
.world h3 { font-size: clamp(38px, 5vw, 60px); color: var(--w); -webkit-text-stroke: .15em var(--line); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--line); margin-top: 8px; }
.world-copy > p:not(.world-n):not(.boss) { margin-top: 14px; max-width: 28em; color: var(--ink-soft); font-size: 19px; }
.boss { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 14px 7px 9px; border-radius: 14px; background: var(--line); color: #fff; font-size: 16px; }
.boss img { width: 28px; height: 28px; }
@media (min-width: 900px) {
  .world { grid-template-columns: 420px 1fr; gap: 64px; }
  .world-shot { width: min(100%, 360px); margin-bottom: 0; box-shadow: 0 8px 0 var(--line), 0 0 0 14px var(--w), 0 8px 0 18px var(--wd), 0 30px 50px rgba(29, 35, 66, .25); }
  .world:nth-child(even) { grid-template-columns: 1fr 420px; }
  .world:nth-child(even) .world-shot { order: 2; }
}

/* ---------- friends ---------- */
.friends-grid { display: grid; gap: 48px; align-items: center; }
.ticks { margin-top: 28px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 40px; color: var(--ink-soft); max-width: 32em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line);
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d2342' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.mock { position: relative; justify-self: center; width: min(100%, 400px); padding-bottom: 40px; }
.mock-card, .mock-list { background: var(--panel); border: 3px solid var(--line); border-radius: 22px; color: #fff; box-shadow: 0 6px 0 var(--line), 0 24px 40px rgba(29, 35, 66, .28); }
.mock-card { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; transform: rotate(-1.5deg); }
.mock-label { grid-column: 1; font: 900 12px/1 var(--body); color: var(--sun); letter-spacing: 1px; }
.mock-code { grid-column: 1; white-space: nowrap; font: 400 clamp(30px, 8vw, 40px)/1 var(--display); letter-spacing: 3px; -webkit-text-stroke: 6px var(--line); paint-order: stroke fill; }
.mock-btns { grid-column: 2; grid-row: 1 / 3; display: grid; gap: 8px; }
.mbtn { display: inline-block; font: 400 16px/1 var(--display); color: #fff; padding: 8px 14px; border-radius: 12px; border: 3px solid var(--line); -webkit-text-stroke: 3px var(--line); paint-order: stroke fill;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 3px 0 var(--line); text-align: center; }
.mbtn.blue { background: linear-gradient(#8fd0ff, var(--blue)); } .mbtn.green { background: linear-gradient(#a6f08a, #3fb53a); } .mbtn.yellow { background: linear-gradient(#ffe56b, #ffb21c); }
.mbtn.off { filter: grayscale(.7) brightness(.85); }
.mock-list { margin-top: 16px; padding: 8px 12px; transform: rotate(1deg); }
.mock-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; }
.mock-list li + li { border-top: 2px solid rgba(255, 255, 255, .12); }
.mock-list img { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a8d4ff, var(--blue) 60%, var(--blue-d)); border: 2px solid var(--line); padding: 3px; object-fit: contain; }
.who { display: flex; flex-direction: column; } .who b { font-weight: 900; font-size: 17px; }
.who small { font-size: 13px; color: #b9c0e6; display: inline-flex; align-items: center; gap: 6px; }
.who small::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #8a93c0; }
.who small.on::before { background: var(--leaf); box-shadow: 0 0 0 3px rgba(107, 214, 90, .3); } .who small.busy::before { background: var(--sun); }
.mock-toast { position: absolute; left: -6%; right: 8%; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px;
  background: linear-gradient(#ffe56b, #ffb21c); border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line), 0 20px 30px rgba(29, 35, 66, .3); color: var(--line); font-size: 16px; transform: rotate(-2deg); }
.mock-toast img { width: 44px; height: 44px; }
@media (min-width: 900px) { .friends-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- more ---------- */
.more-grid { margin-top: 48px; display: grid; gap: 40px; }
.more-wardrobe { padding: 26px clamp(18px, 3vw, 34px) 30px; border-radius: 28px; background: rgba(255, 255, 255, .55); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line); overflow: hidden; }
.parade { display: flex; gap: 8px; overflow: hidden; mask-image: linear-gradient(90deg, #0000, #000 8%, #000 92%, #0000); }
.parade img { flex: none; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(29, 35, 66, .2)); }
.parade.claws { margin: 8px 0 18px 30px; }
.parade.claws img { width: 76px; height: 76px; }
.more-wardrobe h3 { color: var(--line); }
.more-wardrobe p { margin-top: 8px; color: var(--ink-soft); max-width: 34em; }
.more-list { display: grid; gap: 26px; }
.more-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.more-list img, .more-list .duo { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(29, 35, 66, .18)); }
.more-list h3 { color: var(--line); font-size: 26px; }
.more-list p { margin-top: 4px; color: var(--ink-soft); }
@media (min-width: 900px) { .more-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; } }

/* ---------- leaderboard ---------- */
.board-grid { display: grid; gap: 36px; align-items: center; }
.board .btn { margin-top: 26px; }
.board-list { background: var(--panel); border: 3px solid var(--line); border-radius: 24px; padding: 8px 14px; color: #fff; box-shadow: 0 6px 0 var(--line); counter-reset: r; }
.board-list li { display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 12px; padding: 9px 2px; counter-increment: r; }
.board-list li + li { border-top: 2px solid rgba(255, 255, 255, .1); }
.board-list li::before { content: counter(r); font: 400 22px/1 var(--display); color: #c9cff2; text-align: center; }
.board-list li:nth-child(1)::before { color: var(--sun); } .board-list li:nth-child(2)::before { color: #dfe7f5; } .board-list li:nth-child(3)::before { color: #f0a46b; }
.board-list img { width: 40px; height: 40px; object-fit: contain; }
.board-list .nm { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .tr { display: inline-flex; align-items: center; gap: 6px; font: 400 20px/1 var(--display); color: var(--sun); font-variant-numeric: tabular-nums; }
.board-list .tr img { width: 24px; height: 24px; }
@media (min-width: 900px) { .board-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- gallery ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gallery-nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; border: 3px solid var(--line); color: var(--line); cursor: pointer;
  background: linear-gradient(#ffe56b, #ffb21c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 4px 0 var(--line); }
.round:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.round svg { width: 24px; height: 24px; }
.gallery-strip { margin-top: 40px; display: flex; gap: clamp(16px, 2.5vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gut), (100% - var(--wrap)) / 2) 30px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .6) transparent; }
.gallery-strip li { flex: none; width: clamp(220px, 62vw, 300px); scroll-snap-align: center; }
.gallery-strip img { border-radius: 30px; border: 4px solid var(--line); box-shadow: 0 8px 0 var(--line), 0 24px 40px rgba(20, 10, 60, .35); background: #5aa9de; }

/* ---------- faq ---------- */
.faq details { max-width: 820px; }
.faq details { margin-top: 14px; border-radius: 20px; background: rgba(18, 12, 51, .45); border: 2px solid rgba(255, 255, 255, .2); }
.faq details:first-of-type { margin-top: 34px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 900 19px/1.3 var(--body); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%231d2342' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; border: 2px solid var(--line); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: #dfe3ff; max-width: 40em; font-size: 17px; }

/* ---------- close ---------- */
.close { overflow: hidden; text-align: center; }
.stars { position: absolute; inset: 0; opacity: .9; background:
  radial-gradient(2px 2px at 8% 20%, #fff 50%, #0000), radial-gradient(1.5px 1.5px at 22% 64%, #fff 50%, #0000), radial-gradient(2px 2px at 37% 12%, #fff 50%, #0000),
  radial-gradient(1.5px 1.5px at 51% 80%, #fff 50%, #0000), radial-gradient(2.5px 2.5px at 66% 30%, #ffe9a8 50%, #0000), radial-gradient(1.5px 1.5px at 79% 70%, #fff 50%, #0000),
  radial-gradient(2px 2px at 91% 16%, #fff 50%, #0000), radial-gradient(1.5px 1.5px at 14% 88%, #fff 50%, #0000), radial-gradient(2px 2px at 58% 52%, #cdb8ff 50%, #0000),
  radial-gradient(1.5px 1.5px at 85% 92%, #fff 50%, #0000), radial-gradient(1.5px 1.5px at 30% 40%, #fff 50%, #0000), radial-gradient(2px 2px at 72% 8%, #fff 50%, #0000); }
.close-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.close-icon { width: 120px; height: 120px; border-radius: 30px; border: 4px solid var(--line); box-shadow: 0 6px 0 #05031a, 0 0 0 10px rgba(255, 255, 255, .08); margin-bottom: 26px; }
.close .lead { margin: 18px auto 34px; text-align: center; }

/* ---------- footer ---------- */
.foot { background: #120c33; color: #c9cdf0; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 2px solid rgba(255, 255, 255, .08); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: #fff; font-weight: 900; }
.foot .fine { width: 100%; font-size: 14px; color: #a9aed8; }
.foot .nav-brand img { width: 36px; height: 36px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* on the night sky the navy outline would vanish: a sun-yellow title with a dusk-violet rim */
.close .h2 { color: var(--sun); -webkit-text-stroke-color: #4a36a8; text-shadow: 0 .08em 0 #05031a, 0 .2em .5em rgba(5, 3, 26, .6); }
