/* elvynqorinrex.com — a 1955–75 toy-aisle shelf of window-box sets: cream board lids, die-cut
   cellophane windows, gingham trims, rounded lowercase logotypes, yellow shelf tags. */

:root {
  --ink: oklch(0.27 0.035 20);
  --ink-soft: oklch(0.42 0.04 20);
  --board: oklch(0.955 0.028 85);
  --board-shade: oklch(0.915 0.042 80);
  --board-deep: oklch(0.86 0.05 75);
  --berry: oklch(0.50 0.19 5);
  --berry-deep: oklch(0.33 0.11 5);
  --berry-pale: oklch(0.90 0.05 5);
  --meadow: oklch(0.62 0.12 145);
  --meadow-pale: oklch(0.92 0.05 145);
  --sky: oklch(0.74 0.09 235);
  --sky-pale: oklch(0.93 0.035 235);
  --tag: oklch(0.88 0.15 95);
  --white: #fff;

  --disp: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --pad: 16px;
  --inner: 1256px;
  --col: 760px;
  /* Figma notes: snappy micro motion */
  --hover: 200ms cubic-bezier(0.3, 1.3, 0.6, 1);
}
@media (min-width: 900px) { :root { --pad: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--board); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--berry); color: var(--board); padding: 10px 14px; font-weight: 700; border-radius: 99px; }
.skip:focus { top: 12px; }
.only-d { display: none !important; }
@media (min-width: 900px) { .only-d { display: block !important; } .only-m { display: none !important; } }

/* ---------- type ---------- */
.logo-t { font-family: var(--disp); font-weight: 700; line-height: 0.96; letter-spacing: -0.02em; color: var(--berry); text-transform: lowercase; }
.logo-t a { text-decoration: none; }
.h2 { font-family: var(--disp); font-weight: 600; font-size: clamp(2.125rem, 1.66rem + 2.06vw, 3.375rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.h2--sec { font-size: clamp(1.75rem, 1.5rem + 1.1vw, 2.375rem); }
.h2--box { font-size: clamp(1.375rem, 1.3rem + 0.4vw, 1.625rem); }
.h2--doc { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.25rem); }
.h2--legal { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.h2--light { color: var(--board); }
.w-820 { max-width: 820px; }
.small { font-family: var(--text); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; color: var(--ink-soft); }
.small--berry { color: var(--berry); }
.small--ink { color: var(--ink); }
.hand { font-family: var(--hand); font-weight: 700; font-size: 21px; line-height: 1.1; color: var(--ink-soft); }
.hand--berry { color: var(--berry); }
.p { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.p--big { font-size: 16px; line-height: 1.5; }
.p--lead { font-size: 17px; line-height: 1.5; max-width: 820px; }
.p--a { font-size: 16px; }
.p--s { font-size: 16px; }
.p--xs { font-size: 14px; line-height: 1.4; }
.soft { color: var(--ink-soft); }
.lead { font-size: 17px; line-height: 1.5; color: var(--ink-soft); max-width: 620px; }
.lead--light { color: var(--board); }
@media (min-width: 900px) { body, .p { font-size: 18px; } .p--big { font-size: 21px; } .p--lead { font-size: 22px; } .p--a { font-size: 19px; } .p--s { font-size: 16px; } .lead { font-size: 20px; } .hand { font-size: 24px; } }
.ulink { font-weight: 700; font-size: 15px; color: var(--berry); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.ulink:hover { color: var(--berry-deep); }
@media (min-width: 900px) { .ulink { font-size: 17px; } }
.p a, .crows a { color: var(--berry); text-underline-offset: 3px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; padding: 14px 20px; border-radius: 999px; background: var(--berry); color: var(--board); border: 2px solid var(--berry); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform var(--hover), background-color var(--hover); }
.pill:hover { background: var(--berry-deep); border-color: var(--berry-deep); transform: translateY(-2px); }
.pill--ghost { background: transparent; color: var(--berry); }
.pill--ghost:hover { background: var(--berry-pale); color: var(--berry-deep); }
@media (min-width: 900px) { .pill { padding: 16px 26px; font-size: 17px; } }

/* ---------- world pieces ---------- */
/* gingham: vertical + horizontal translucent stripes; where they cross the colour doubles */
.ging { --gs: color-mix(in oklch, var(--gc) calc(var(--ga) * 100%), transparent); position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--gs) 50%, transparent 50%) 0 0 / calc(var(--gcell) * 2) 100%,
    linear-gradient(to bottom, var(--gs) 50%, transparent 50%) 0 0 / 100% calc(var(--gcell) * 2),
    var(--gbase, transparent); }
.arch { position: absolute; pointer-events: none; border: var(--asw) solid color-mix(in oklch, var(--ac) calc(var(--aa) * 100%), transparent); background: color-mix(in oklch, var(--af, transparent) calc(var(--afa, 1) * 100%), transparent); }
.shelf-tag { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 12px 8px 10px; background: var(--tag); border-radius: 8px; box-shadow: 0 6px 14px oklch(0.33 0.11 5 / 0.18); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.hole { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--board); border: 1px solid oklch(0.27 0.035 20 / 0.35); }
@media (min-width: 900px) { .shelf-tag { padding: 10px 18px 10px 12px; font-size: 14px; } .hole { width: 10px; height: 10px; } }
.shelf-edge { display: block; height: 14px; border-radius: 4px; background: var(--berry-deep); box-shadow: 0 10px 18px oklch(0.33 0.11 5 / 0.25); }
.shelf-edge--thin { height: 12px; }
@media (min-width: 900px) { .shelf-edge { height: 22px; } .shelf-edge--thin { height: 18px; } }

/* die-cut window with cellophane glare */
.win { position: relative; display: block; overflow: hidden; background: var(--board-shade); border-radius: 18px; isolation: isolate; }
.win--arch { border-radius: 999px 999px 18px 18px / 50% 50% 18px 18px; }
.win .cover { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; object-fit: cover; transform: translateY(-50%); }
.win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 4px 10px oklch(0.33 0.11 5 / 0.35), inset 0 0 0 2px rgb(255 255 255 / 0.7); pointer-events: none; z-index: 3; }
.glare { position: absolute; z-index: 2; left: 58%; top: -40%; width: 16%; height: 200%; background: rgb(255 255 255 / 0.26); rotate: 28deg; pointer-events: none; transition: translate 420ms ease-out, opacity 420ms ease-out; }
.glare--thin { left: 80%; top: -30%; width: 5%; opacity: 0.7; }
@media (min-width: 900px) { .win::after { box-shadow: inset 0 6px 14px oklch(0.33 0.11 5 / 0.35), inset 0 0 0 3px rgb(255 255 255 / 0.7); } }

/* ---------- corner button + lid menu ---------- */
.corner { position: fixed; z-index: 60; right: var(--pad); top: 14px; display: grid; place-content: center; justify-items: center; gap: 4px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--berry); box-shadow: 0 8px 18px oklch(0.33 0.11 5 / 0.3); transition: transform var(--hover); }
.corner i { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--board); transition: transform var(--hover), opacity var(--hover); }
.corner i:nth-child(2) { width: 16px; }
.corner:hover { transform: rotate(-6deg); }
.corner[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.corner[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.corner[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lid-menu { position: fixed; z-index: 59; right: var(--pad); top: 76px; width: min(420px, calc(100vw - 2 * var(--pad))); background: var(--board); border-radius: 26px; overflow: hidden; box-shadow: 0 18px 36px oklch(0.33 0.11 5 / 0.25); transform-origin: top right; animation: lid-open 220ms cubic-bezier(0.3, 1.3, 0.6, 1); }
.lid-menu[hidden] { display: none; }
@keyframes lid-open { from { transform: rotate(-3deg) translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.menu-trim { position: static; display: block; height: 22px; }
.menu-in { display: grid; gap: 6px; padding: 24px 28px; }
.menu-in .logo-t { display: block; font-size: 44px; color: var(--ink); text-decoration: none; }
.menu-in .logo-t.is-on, .menu-in .logo-t:hover { color: var(--berry); }
.menu-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; }
.menu-legal a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.menu-legal a:hover { text-decoration: underline; }
.menu-mail { font-weight: 700; font-size: 15px; color: var(--berry); text-decoration: none; }
@media (min-width: 900px) { .corner { top: 26px; width: 68px; height: 68px; gap: 5px; } .corner i { width: 26px; height: 4px; } .corner i:nth-child(2) { width: 20px; } .lid-menu { top: 104px; } }

.hdr { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 16px var(--pad) 12px; padding-right: calc(var(--pad) + 64px); min-height: 80px; }
.logo { font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--berry); text-decoration: none; }
.hdr-lab { display: none; }
.menu-word { display: none; margin-left: auto; color: var(--berry); font-size: 14px; }
@media (min-width: 900px) { .hdr { min-height: 116px; padding: 28px var(--pad) 20px; padding-right: calc(var(--pad) + 82px); gap: 16px; } .logo { font-size: 30px; } .hdr-lab, .menu-word { display: inline; } .hdr-lab { font-size: 13px; } }

/* ---------- hero: a box lid; the second headline line shows through a die-cut window ---------- */
.hero { position: relative; overflow: hidden; height: 840px; background: var(--sky-pale); }
.box-behind { position: absolute; left: 240px; top: 44px; width: 220px; height: 300px; border-radius: 20px; background: var(--board-shade); rotate: -5deg; overflow: hidden; box-shadow: 0 14px 30px oklch(0.33 0.11 5 / 0.18); transform-origin: top left; }
.bb-trim { bottom: auto; height: 24px; }
.hero-edge { position: absolute; left: -20px; right: -20px; top: 744px; height: 20px; }
.lid { position: absolute; left: var(--pad); right: var(--pad); top: 84px; height: 664px; background: var(--board); border-radius: 22px; overflow: hidden; box-shadow: 0 26px 50px oklch(0.33 0.11 5 / 0.22); transform-origin: 50% 0; animation: lid-lift 900ms ease-out 200ms both; }
/* Figma notes: the lid lifts a little on its hinge */
@keyframes lid-lift { from { transform: none; } to { transform: perspective(1400px) rotateX(3deg) translateY(-4px); } }
.lid-trim { bottom: auto; height: 30px; --gcell: 15px !important; }
.lid-border { position: absolute; left: 10px; right: 10px; top: 40px; bottom: 10px; border: 2px solid oklch(0.50 0.19 5 / 0.28); border-radius: 14px; pointer-events: none; }
.lid-h1 { position: absolute; left: 22px; right: 22px; top: 64px; font-weight: 700; }
.l1 { display: block; font-size: min(250px, calc((100vw - 2 * var(--pad) - 44px) / 4.39)); line-height: 0.88; letter-spacing: -0.04em; white-space: nowrap; }
.lid-row { display: block; margin-top: 16px; }
.hero-win { width: 100%; height: 196px; container-type: inline-size; background: var(--meadow-pale); border-radius: 999px 999px 14px 14px / 142px 142px 14px 14px; }
.win-liner { --gcell: 14px !important; }
.l2 { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1; text-align: center; font-size: calc((100cqw - 40px) / 3.16); line-height: 0.88; letter-spacing: -0.04em; white-space: nowrap; }
.hero-win .glare { opacity: 0.77; }
.standfirst { position: absolute; left: 22px; right: 22px; top: 354px; display: grid; gap: 18px; justify-items: start; }
.legend { display: grid; gap: 6px; width: 100%; padding-top: 12px; border-top: 2px dashed oklch(0.50 0.19 5 / 0.35); }
.hero-tag { position: absolute; right: -1px; top: 68px; rotate: 3deg; z-index: 2; }
/* glare sweeps across the cellophane now and then */
.hero-win .glare { animation: sweep 6s ease-in-out 1.2s infinite; }
@keyframes sweep { 0%, 70% { translate: 0 0; } 85% { translate: -260% 0; opacity: 0.4; } 86% { opacity: 0; translate: 200% 0; } 100% { translate: 0 0; opacity: 0.77; } }
@media (min-width: 900px) {
  .hero { height: 900px; }
  .box-behind { left: auto; right: -220px; top: 58px; width: 520px; height: 420px; border-radius: 30px; rotate: -4deg; }
  .bb-trim { height: 34px; --gcell: 17px !important; }
  .hero-edge { top: 814px; height: 30px; }
  .lid { top: 118px; height: 700px; border-radius: 34px; }
  .lid-trim { height: 46px; --gcell: 23px !important; }
  .lid-border { left: 18px; right: 18px; top: 62px; bottom: 18px; border-radius: 22px; }
  .lid-h1 { left: 64px; right: 64px; top: 82px; }
  .l1 { font-size: min(250px, calc((100vw - 2 * var(--pad) - 128px) / 4.39)); }
  .lid-row { position: absolute; right: 0; top: calc(100% + 26px); width: min(640px, 52%); margin: 0; }
  .hero-win { height: 320px; border-radius: 999px 999px 20px 20px / 320px 320px 20px 20px; }
  .win-liner { --gcell: 22px !important; }
  .l2 { bottom: 40px; font-size: calc((100cqw - 90px) / 3.16); }
  .standfirst { left: 64px; right: auto; top: 336px; width: min(432px, calc(48% - 56px)); gap: 26px; }
  .hero-tag { right: 116px; top: 96px; rotate: 4deg; }
}

/* ---------- bands ---------- */
.band { position: relative; overflow: hidden; padding: 64px var(--pad); background: var(--board); }
.band > .in { position: relative; z-index: 1; max-width: var(--inner); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.band--shade { background: var(--board-shade); }
.band--sky { background: var(--sky-pale); }
.band--berry { background: var(--berry); }
@media (min-width: 900px) { .band { padding: 112px var(--pad); } .band > .in { gap: 40px; } }
.split { display: grid; gap: 12px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 640px) minmax(0, 460px); justify-content: space-between; align-items: end; gap: 40px; } }
.arch-g1 { right: -140px; top: -60px; width: 260px; height: 320px; border-radius: 130px 130px 16px 16px; }
.arch-g2 { left: -90px; top: 520px; width: 160px; height: 200px; border-radius: 80px 80px 16px 16px; }
@media (min-width: 900px) { .arch-g1 { right: -220px; top: -120px; width: 520px; height: 640px; border-radius: 260px 260px 16px 16px; } .arch-g2 { left: -120px; top: 900px; width: 300px; height: 380px; border-radius: 150px 150px 16px 16px; } }

/* ---------- G: shelves of boxes ---------- */
.shelf { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 8px var(--pad) 0; align-items: flex-end; border-bottom: 14px solid var(--berry-deep); scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf-row { display: contents; }
.shelf-row-edge { display: none; }
.box { position: relative; flex: none; width: 256px; scroll-snap-align: start; display: grid; gap: 14px; align-content: start; padding-bottom: 20px; margin-bottom: 0; background: var(--board); border-radius: 22px 22px 0 0; overflow: hidden; box-shadow: 0 14px 30px oklch(0.33 0.11 5 / 0.16); transition: rotate var(--hover), box-shadow var(--hover); transform-origin: 50% 100%; }
.box-trim { position: static; display: block; height: 18px; }
.box-front { display: grid; gap: 12px; padding: 0 20px; }
.box-top { display: flex; justify-content: space-between; align-items: center; }
.box-genre { font-weight: 600; font-size: 13px; color: var(--berry); }
.trim-meadow .box-genre, .trim-sky .box-genre { color: var(--ink); }
.box-win { width: 100%; height: 190px; }
.box-title { font-size: 26px; }
.box-title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.box-one { display: none; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.box-link { font-weight: 700; font-size: 15px; color: var(--berry); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--hover); }
/* tile hover (Figma): the box tilts −2°, glare slides across the cellophane, shadow deepens, link underlined */
.box:hover, .box:focus-within { rotate: 2deg; box-shadow: 0 26px 44px oklch(0.33 0.11 5 / 0.3); }
.box:hover .glare, .box:focus-within .glare { translate: -120px 0; opacity: 0.42; }
.box:hover .box-link, .box:focus-within .box-link { text-decoration-color: currentColor; }
.box:has(a:focus-visible) { outline: 3px solid var(--berry); outline-offset: 4px; }
.box a:focus-visible { outline: none; }
@media (min-width: 900px) {
  .shelf { display: grid; gap: 0; overflow: visible; margin: 0; padding: 0; border: 0; }
  .shelf-row { display: flex; align-items: flex-end; gap: 32px; }
  .shelf-row + .shelf-row-edge + .shelf-row, .shelf-row-edge + .shelf-row { margin-top: 72px; }
  .shelf-row-edge { display: block; }
  .box { width: auto; padding-bottom: 24px; gap: 18px; border-radius: 22px 22px 4px 4px; }
  .box--big { flex: 540 1 0; } .box--w330 { flex: 330 1 0; } .box--w322 { flex: 322 1 0; }
  .box-front { padding: 0 24px; gap: 16px; }
  .box-win { height: 230px; }
  .box--big .box-win { height: 380px; }
  .box-title { font-size: 32px; }
  .box--big .box-title { font-size: 44px; }
  .box-one { display: block; }
  .box-link { font-size: 16px; }
}
.swipe { margin-top: -8px; }

/* ---------- N: update log ---------- */
.edge-ging { right: auto; width: 18px; }
.arch-n { right: -110px; top: 400px; width: 220px; height: 260px; border-radius: 110px 110px 16px 16px; }
.n-row { gap: 28px !important; }
.n-head { display: grid; gap: 18px; align-content: start; }
.log { background: var(--board); border-radius: 22px; padding: 8px 18px; box-shadow: 0 10px 24px oklch(0.33 0.11 5 / 0.12); }
.log li { display: grid; gap: 8px; padding: 16px 0; }
.log li + li { border-top: 1.5px dashed oklch(0.27 0.035 20 / 0.18); }
.stamp { width: fit-content; padding: 6px 12px; border: 2px solid var(--berry); border-radius: 6px; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--berry); }
.log p { font-size: 15px; }
@media (min-width: 900px) {
  .edge-ging { width: 34px; --gcell: 17px !important; }
  .arch-n { right: -160px; top: 260px; width: 420px; height: 520px; border-radius: 210px 210px 16px 16px; }
  .n-row { grid-template-columns: minmax(0, 400px) minmax(0, 1fr) !important; gap: 72px !important; }
  .log { padding: 12px 32px; }
  .log li { grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 28px; padding: 20px 0; }
  .stamp { width: 170px; }
  .log p { font-size: 17px; }
}

/* ---------- X: comparison table ---------- */
.arch-x { left: -110px; top: 20px; width: 200px; height: 240px; border-radius: 100px 100px 16px 16px; }
.tbl { position: relative; background: var(--board); border-radius: 24px; overflow: hidden; border: 2px solid oklch(0.50 0.19 5 / 0.35); box-shadow: 0 12px 26px oklch(0.33 0.11 5 / 0.1); }
.tbl-trim { position: static; display: block; height: 18px; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl thead { display: none; }
.tbl tr { display: grid; gap: 8px; padding: 18px; }
.tbl tbody tr:nth-child(even) { background: var(--board-shade); }
.tbl th[scope="row"] { text-align: left; font-size: 24px; }
.tbl td { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 14px; line-height: 1.4; }
.tbl td::before { content: attr(data-l); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 900px) {
  .arch-x { left: -160px; top: 60px; width: 360px; height: 460px; border-radius: 180px 180px 16px 16px; }
  .tbl table { table-layout: fixed; }
  .tbl thead { display: table-header-group; background: var(--board-shade); }
  .tbl thead th { text-align: left; padding: 16px 8px; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
  .tbl thead th:first-child { padding-left: 28px; width: 210px; } .tbl thead th:nth-child(2) { width: 150px; } .tbl thead th:nth-child(3) { width: 290px; } .tbl thead th:nth-child(4) { width: 190px; } .tbl thead th:nth-child(5) { width: 150px; }
  .tbl tr { display: table-row; padding: 0; }
  .tbl th[scope="row"], .tbl td { display: table-cell; padding: 18px 8px; vertical-align: middle; }
  .tbl th[scope="row"] { padding-left: 28px; font-size: 26px; }
  .tbl td { font-size: 15px; }
  .tbl td::before { content: none; }
}

/* ---------- Q: verdict tags ---------- */
.q-ging { --gcell: 24px !important; }
.vtags { display: grid; gap: 20px; }
.vtag { display: grid; gap: 12px; align-content: start; padding: 18px 20px 20px; background: var(--board); border-radius: 18px; box-shadow: 0 12px 22px oklch(0.33 0.11 5 / 0.35); }
.vt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vt-top .logo-t { font-size: 24px; }
.vt-top i { width: 12px; height: 12px; border-radius: 50%; background: var(--berry); flex: none; }
.vtag .p { font-size: 15px; }
@media (min-width: 900px) {
  .q-ging { --gcell: 40px !important; }
  .vtags { grid-template-columns: repeat(3, minmax(0, 380px)); gap: 40px 32px; }
  .vtag { padding: 22px 26px 26px; rotate: var(--r); }
  .vt-top .logo-t { font-size: 28px; }
  .vtag .p { font-size: 17px; }
}

/* ---------- A: about, next to a gingham box side ---------- */
.a-row { gap: 28px !important; align-items: center; }
.box-side { position: relative; overflow: hidden; height: 220px; border-radius: 26px; background: var(--meadow-pale); }
.box-side .ging { --gcell: 22px !important; }
.side-mark { position: absolute; left: -6px; top: 140px; font-size: 62px; color: var(--board); }
.side-tag { position: absolute; left: 20px; top: 26px; rotate: 4deg; }
.a-text { display: grid; gap: 20px; }
@media (min-width: 900px) { .a-row { grid-template-columns: 480px minmax(0, 1fr) !important; gap: 72px !important; } .box-side { height: 380px; } .box-side .ging { --gcell: 30px !important; } .side-mark { left: -10px; top: 250px; font-size: 92px; } .side-tag { left: 36px; top: 40px; } }

/* ---------- F: box flaps ---------- */
.arch-faq { right: -110px; top: 30px; width: 260px; height: 320px; border-radius: 130px 130px 16px 16px; }
.flaps { display: grid; gap: 12px; max-width: 900px; }
.flap { background: var(--board); border-radius: 18px; padding: 16px 18px; box-shadow: 0 6px 14px oklch(0.33 0.11 5 / 0.08); }
.flap summary { display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
.flap summary::-webkit-details-marker { display: none; }
.flap-q { flex: 1; font-family: var(--disp); font-weight: 600; font-size: 18px; line-height: 1.25; }
.plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--berry-pale); transition: background-color var(--hover), rotate var(--hover); }
.plus::before, .plus::after { content: ""; position: absolute; border-radius: 2px; background: var(--berry); }
.plus::before { left: 9px; top: 13.5px; width: 12px; height: 3px; }
.plus::after { left: 13.5px; top: 9px; width: 3px; height: 12px; }
.flap[open] .plus { background: var(--berry); }
.flap[open] .plus::before { background: var(--board); }
.flap[open] .plus::after { display: none; }
.flap .p { margin-top: 10px; font-size: 15px; }
.band--col > .in { max-width: var(--col); }
@media (min-width: 900px) { .arch-faq { right: -140px; top: 80px; width: 560px; height: 700px; border-radius: 280px 280px 16px 16px; } .flap { padding: 22px 28px; } .flap-q { font-size: 22px; } .flap .p { font-size: 17px; } }

/* ---------- K: contact tag ---------- */
.band--k { padding-top: 56px; padding-bottom: 72px; }
.k-row { gap: 28px !important; align-items: center; }
.k-text { display: grid; gap: 16px; max-width: 560px; }
.mail-tag { display: inline-flex; align-items: center; gap: 18px; width: fit-content; max-width: 100%; padding: 18px 20px; background: var(--tag); border-radius: 18px; box-shadow: 0 14px 28px oklch(0.33 0.11 5 / 0.2); font-family: var(--disp); font-weight: 600; font-size: 19px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; transition: rotate var(--hover); }
.mail-tag .hole { width: 16px; height: 16px; }
.mail-tag:hover { rotate: -2deg; }
@media (min-width: 900px) { .band--k { padding-top: 96px; padding-bottom: 120px; } .k-row { grid-template-columns: minmax(0, 560px) auto !important; justify-content: space-between; gap: 64px !important; } .mail-tag { padding: 28px 36px; font-size: 34px; rotate: 3deg; } .mail-tag:hover { rotate: 0deg; } }

/* ---------- footer: shelf edge with a giant wordmark ---------- */
.footer { position: relative; overflow: hidden; display: grid; gap: 28px; padding-bottom: 20px; background: var(--berry-deep); color: var(--board); }
.f-trim { position: static; display: block; height: 20px; --gcell: 10px !important; }
.f-top { display: grid; gap: 24px; padding: 0 var(--pad); max-width: calc(var(--inner) + 2 * var(--pad)); margin-inline: auto; width: 100%; }
.f-about { display: grid; gap: 12px; max-width: 420px; font-size: 15px; }
.f-mail { font-weight: 700; color: var(--tag); text-decoration: none; }
.f-mail:hover { text-decoration: underline; }
.f-cols { display: flex; flex-wrap: wrap; gap: 24px 28px; }
.f-cols > div { display: grid; gap: 8px; align-content: start; }
.f-cols .small { color: var(--tag); }
.f-cols ul { display: grid; gap: 8px; font-size: 15px; }
.f-cols a, .linkish { text-decoration: none; font-size: 15px; color: var(--board); }
.f-cols a:hover, .linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkish { background: none; border: 0; padding: 0; text-align: left; }
.wordmark { padding: 0 var(--pad); font-family: var(--disp); font-weight: 700; font-size: calc((100vw - 2 * var(--pad)) / 5.9); line-height: 0.88; letter-spacing: -0.03em; color: var(--board); white-space: nowrap; }
.f-base { display: grid; gap: 8px; padding: 0 var(--pad); font-size: 13px; opacity: 0.85; max-width: calc(var(--inner) + 2 * var(--pad)); margin-inline: auto; width: 100%; }
@media (min-width: 900px) {
  .footer { gap: 40px; padding-bottom: 28px; }
  .f-trim { height: 28px; --gcell: 14px !important; }
  .f-top { grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; gap: 48px; }
  .f-about { font-size: 17px; }
  .f-cols { flex-wrap: nowrap; gap: 56px; }
  .f-cols ul, .f-cols a, .linkish { font-size: 16px; }
  .wordmark { padding: 0 40px; font-size: min(260px, calc((100vw - 84px) / 5.9)); }
  .f-base { display: flex; justify-content: space-between; gap: 24px; }
  .f-base p:last-child { max-width: 620px; text-align: right; }
}

/* ---------- inner tops (games, guide, about, legal) ---------- */
.top { position: relative; overflow: hidden; padding-bottom: 44px; background: var(--sky-pale); }
.top--berry { background: var(--berry-pale); }
.top--meadow { background: var(--meadow-pale); }
.top--sky { background: var(--sky-pale); }
.top-ging { z-index: 0; }
.top-in { position: relative; z-index: 1; display: grid; gap: 14px; padding: 16px var(--pad) 0; max-width: calc(var(--inner) + 2 * var(--pad)); margin-inline: auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--berry); text-decoration: underline; }
.top-h1 { font-size: clamp(52px, 9.5vw, 130px); line-height: 0.92; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.top-h1--game { font-size: clamp(52px, 11vw, 160px); letter-spacing: -0.04em; }
.arch-top { right: -110px; top: 120px; width: 180px; height: 220px; border-radius: 90px 90px 16px 16px; }
@media (min-width: 900px) { .top { padding-bottom: 64px; } .top-in { gap: 20px; padding-top: 40px; } .arch-top { right: -80px; top: 60px; width: 380px; height: 460px; border-radius: 190px 190px 16px 16px; } }

/* games: one long box per shelf */
.band--rows { padding-top: 40px; }
.arch-rows { right: -130px; top: 1200px; width: 240px; height: 300px; border-radius: 120px 120px 16px 16px; }
.rows { display: grid; gap: 20px; }
.row { display: grid; gap: 20px; }
.row-box { position: relative; display: grid; overflow: hidden; background: var(--board); border-radius: 26px; box-shadow: 0 14px 30px oklch(0.33 0.11 5 / 0.15); border: 2px solid color-mix(in oklch, var(--tr) 30%, transparent); }
.trim-berry { --tr: var(--berry); } .trim-meadow { --tr: var(--meadow); } .trim-sky { --tr: var(--sky); }
.row-trim { position: static; display: block; height: 16px; --gcell: 8px !important; }
.row-win { padding: 16px 16px 0; }
.row-win .win { width: 100%; height: 230px; }
.row-mid { display: grid; gap: 12px; align-content: start; padding: 20px 16px 8px; }
.row-title { font-size: 34px; }
.row-title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.row-facts { display: flex; flex-wrap: wrap; gap: 12px 14px; padding-top: 8px; }
.row-facts > div { display: grid; gap: 2px; width: 136px; }
.row-facts dd { font-size: 14px; line-height: 1.4; }
.row-side { display: grid; gap: 18px; align-content: space-between; padding: 18px 16px; background: var(--board-shade); }
.contents { display: grid; gap: 2px; }
.contents li { font-family: var(--hand); font-size: 20px; line-height: 1.18; }
.row:hover .row-box, .row:focus-within .row-box { box-shadow: 0 22px 40px oklch(0.33 0.11 5 / 0.25); }
.row:hover .glare, .row:focus-within .glare { translate: -120px 0; opacity: 0.42; }
.row:hover .box-link, .row:focus-within .box-link { text-decoration-color: currentColor; }
.row:has(a:focus-visible) .row-box { outline: 3px solid var(--berry); outline-offset: 4px; }
.row a:focus-visible { outline: none; }
.row-box { transition: box-shadow var(--hover); }
@media (min-width: 900px) {
  .band--rows { padding-top: 80px; }
  .arch-rows { right: -260px; top: 900px; width: 520px; height: 640px; border-radius: 260px 260px 16px 16px; }
  .rows { gap: 28px; }
  .row { gap: 28px; }
  .row-box { grid-template-columns: 22px 396px minmax(0, 1fr) 290px; }
  .row-trim { height: auto; }
  .row-trim.ging { background:
      linear-gradient(to right, var(--gs) 50%, transparent 50%) 0 0 / 22px 100%,
      linear-gradient(to bottom, var(--gs) 50%, transparent 50%) 0 0 / 100% 22px, var(--gbase); }
  .row-win { padding: 28px 0 28px 28px; }
  .row-win .win { width: 340px; height: 300px; }
  .row-mid { padding: 32px 16px 32px 12px; }
  .row-title { font-size: 52px; }
  .row-facts { gap: 12px 28px; }
  .row-facts > div { width: 170px; }
  .row-facts > div:nth-child(2) { width: 250px; }
  .row-side { padding: 32px 28px; }
  .contents li { font-size: 22px; }
}

/* game page */
.facts { position: relative; background: var(--board); }
.facts-trim { position: static; display: block; height: 16px; }
.fcells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 var(--pad); max-width: calc(var(--inner) + 2 * var(--pad)); margin-inline: auto; }
.fcell { display: grid; gap: 4px; align-content: start; padding: 14px 10px; border-bottom: 1px dashed oklch(0.27 0.035 20 / 0.16); }
.fcell dd { font-size: 14px; font-weight: 500; line-height: 1.4; }
@media (min-width: 900px) {
  .fcells { display: flex; justify-content: space-between; padding: 0 36px; }
  .fcell { flex: 1 1 150px; padding: 22px 20px; border-bottom: 0; border-right: 1px dashed oklch(0.27 0.035 20 / 0.16); }
  .fcell:last-child { border-right: 0; }
  .fcell--w { flex-basis: 190px; }
  .fcell dd { font-size: 15px; }
}
.gbody { position: relative; overflow: hidden; background: var(--board); padding: 40px var(--pad) 56px; }
.margin-ging { right: auto; width: 10px; --gcell: 5px !important; }
.margin-ging--r { left: auto; right: 0; width: 30px; --gcell: 15px !important; }
.arch-guide { right: -110px; top: 900px; width: 300px; height: 380px; border-radius: 150px 150px 16px 16px; }
.arch-about { right: -120px; top: 240px; width: 320px; height: 400px; border-radius: 160px 160px 16px 16px; }
.gcol { position: relative; z-index: 1; display: grid; gap: 44px; max-width: var(--col); margin-inline: auto; }
.gcol--doc { gap: 40px; }
@media (min-width: 900px) { .gbody { padding: 72px var(--pad) 96px; } .margin-ging { width: 30px; --gcell: 15px !important; } .gcol { gap: 64px; } .gcol--doc { gap: 56px; } }
.view { display: grid; gap: 20px; }
.view-win { width: 100%; height: 260px; }
@media (min-width: 900px) { .view { grid-template-columns: 460px 260px; align-items: end; gap: 40px; } .view-win { height: 380px; } }
.gsec { display: grid; gap: 16px; }
.keys { display: grid; gap: 12px; }
.krow { display: flex; align-items: center; gap: 16px; }
.keycap { flex: none; padding: 8px 14px; border-radius: 10px; background: var(--board-shade); border: 1.5px solid oklch(0.27 0.035 20 / 0.25); box-shadow: 0 3px 0 oklch(0.33 0.11 5 / 0.18); font-family: var(--disp); font-weight: 600; font-size: 17px; }
.tips { display: grid; gap: 14px; }
.tips li { display: flex; gap: 14px; }
.gdot { flex: none; width: 14px; height: 14px; margin-top: 7px; border-radius: 3px; background: var(--gp);
  background: linear-gradient(to right, color-mix(in oklch, var(--tr) 70%, transparent) 50%, transparent 50%) 0 0 / 8px 100%, linear-gradient(to bottom, color-mix(in oklch, var(--tr) 70%, transparent) 50%, transparent 50%) 0 0 / 100% 8px, color-mix(in oklch, var(--tr) 20%, var(--board)); }
.two { display: grid; gap: 24px; }
.tbox { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 20px; }
.tbox--meadow { background: var(--meadow-pale); } .tbox--berry { background: var(--berry-pale); }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 32px; } }
.sims { display: grid; gap: 20px; }
.simc { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--board); border-radius: 18px; border: 2px solid color-mix(in oklch, var(--tr) 40%, transparent); }
.sim-win { flex: none; width: 88px; height: 88px; border-radius: 10px; }
.simc > div { display: grid; gap: 4px; }
.sim-t { font-size: 22px; }
.sim-t::after { content: ""; position: absolute; inset: 0; }
.simc:hover .glare { translate: -40px 0; opacity: 0.42; }
@media (min-width: 900px) { .sims { grid-template-columns: 1fr 1fr; } }
.where { display: grid; gap: 12px; justify-items: start; padding: 20px; background: var(--board-shade); border-radius: 22px; }
.where .pill { padding: 10px 18px; font-size: 15px; }
@media (min-width: 900px) { .where { padding: 28px 32px; } }
.cbox { display: grid; gap: 14px; padding: 20px; background: var(--tag); border-radius: 22px; box-shadow: 0 12px 24px oklch(0.33 0.11 5 / 0.16); }
.cbox .hand { color: var(--ink); }
.crows > div { display: grid; gap: 2px; padding-top: 10px; }
.crows dd { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .cbox { padding: 32px 36px; } .crows > div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; } .crows dd { font-size: 17px; } }
.sum { display: grid; gap: 8px; padding: 18px; background: var(--sky-pale); border-radius: 20px; }
.gsec--legal { gap: 10px; }
.gsec--legal .p { font-size: 15px; }
@media (min-width: 900px) { .sum { padding: 24px 28px; } .gsec--legal .p { font-size: 17px; } }

/* ---------- cookie ---------- */
.cookie { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 500px; overflow: hidden; background: var(--board); border-radius: 24px; box-shadow: 0 18px 40px oklch(0.33 0.11 5 / 0.28); }
.cookie[hidden] { display: none; }
.ck-trim { position: static; display: block; height: 22px; --gcell: 11px !important; }
.ck-body { position: relative; display: grid; gap: 14px; padding: 20px 20px 22px; font-size: 15px; line-height: 1.55; }
.ck-body > *:not(.arch) { position: relative; }
.ck-arch { right: -30px; top: 20px; width: 150px; height: 180px; border-radius: 75px 75px 16px 16px; }
.ck-title { font-size: 28px; max-width: 80%; }
.ck-acts { display: grid; gap: 12px; padding-top: 8px; }
.ck-acts .pill { width: 100%; font-size: 15px; }
.ck-manage { display: grid; gap: 10px; padding: 12px; background: var(--board-shade); border-radius: 14px; }
.ck-manage[hidden] { display: none; }
.ck-opt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.ck-opt input { width: 18px; height: 18px; accent-color: var(--berry); }
.ck-manage .pill { width: fit-content; padding: 10px 18px; font-size: 14px; }
@media (min-width: 560px) { .ck-acts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cookie { left: 24px; right: auto; bottom: 24px; width: 500px; } .ck-body { padding: 28px 32px 32px; } .ck-title { font-size: 34px; } }

/* ---------- reduced motion (Figma notes): the glare stays still, no tilt ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .box:hover, .box:focus-within { rotate: none; }
  .box:hover .glare, .box:focus-within .glare, .row:hover .glare, .row:focus-within .glare, .simc:hover .glare { translate: none; }
}

.tbl th a { text-decoration: none; }
.tbl th a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.f-cols .f-social { display: flex; gap: 14px; }
.f-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; }
.f-social a:hover { text-decoration: none; opacity: .75; }
