/* North Sultan — northsultan.com (studio site: home, game pages for 101 Okey: Sultan + Batak Sultan, support, legal)
   Ornate aged-gold / walnut / emerald kit (9-slice art from the games: assets/img/*.webp; game art in img/101, img/batak).
   Rule: no flat borders, no default inputs, no emoji — every surface is framed art. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/cormorant-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/assets/fonts/cormorant-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --night: #0d0705; --wood-1: #3a2112; --wood-2: #160a04; --wood-3: #241309;
  --gold-1: #fbe7a6; --gold-2: #d9a843; --gold-3: #8a5a17; --gold-l: #f2d27a;
  --emerald: #0e5b45; --emerald-l: #7ee0b0; --burgundy: #6e1423; --burgundy-l: #f0a0ae;
  --ivory: #f3e6c4; --ivory-2: #e3cf9f; --muted: #c9b48a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px; --max: 1120px;
}
* { box-sizing: border-box; font-variant-numeric: lining-nums; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; font: 500 16px/1.6 var(--sans); font-variant-numeric: lining-nums; color: var(--ivory);
  background: radial-gradient(ellipse at 50% 0%, #2a160a 0%, transparent 60%), linear-gradient(180deg, #160a04, var(--night) 40%, #0a0503); background-color: var(--night); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-l); text-underline-offset: 3px; }
a:hover { color: var(--gold-1); }
:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--wood-1); color: var(--gold-1); border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; color: var(--gold-l); margin: 0 0 .4em; }
h2 { font-size: clamp(30px, 6vw, 44px); text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }

/* ── heading ornament: filigree divider under section titles ── */
.orn-title { margin-bottom: 34px; }
.orn-title::after { content: ""; display: block; width: min(340px, 80%); height: 26px; margin: 6px auto 0; background: url(/assets/img/divider.webp) center / contain no-repeat; }
.orn-title + .lede { text-align: center; max-width: 640px; margin: -20px auto 32px; color: var(--ivory-2); }

/* ── header: emblem + carved tulip frieze along the bottom edge ── */
.site-header { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, rgba(30,15,7,.94), rgba(16,7,3,.9));
  transition: background .3s, box-shadow .3s; } /* no backdrop-filter: it would trap the fixed mobile drawer inside the header */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; pointer-events: none;
  background: url(/assets/img/frieze.webp) center / auto 100% repeat-x; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.site-header.scrolled { background: linear-gradient(180deg, rgba(24,11,5,.98), rgba(14,6,2,.97)); box-shadow: 0 10px 28px rgba(0,0,0,.6); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; line-height: 1; margin-right: auto; }
.brand img { width: auto; height: 56px; filter: drop-shadow(0 0 10px rgba(242,210,122,.18)) drop-shadow(0 3px 5px rgba(0,0,0,.7)); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.brand:hover img { transform: translateY(-2px) scale(1.06); }
.brand span { display: flex; flex-direction: column; gap: 1px; }
.brand b { font-size: 23px; letter-spacing: 1px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand em { font-size: 19px; color: var(--emerald-l); text-shadow: 0 0 12px rgba(14,91,69,.9); padding-left: 2px; }
.brand.big img { width: auto; height: 90px; }
.brand.big b { font-size: 30px; } .brand.big em { font-size: 25px; }
.site-nav { display: flex; align-items: center; gap: 4px 22px; }
.site-nav > a:not(.btn) { position: relative; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ivory-2); text-decoration: none; letter-spacing: .5px; padding: 6px 0; }
.site-nav > a:not(.btn)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); transition: left .25s, right .25s; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current="page"] { color: var(--gold-1); }
.site-nav > a:not(.btn):hover::after, .site-nav > a[aria-current="page"]::after { left: 0; right: 0; }
.menu-btn, .menu-close { display: none; width: 46px; height: 46px; padding: 11px; border: 0; cursor: pointer; flex: none;
  background: url(/assets/img/round.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 3px 5px rgba(0,0,0,.6)); }
.menu-btn svg, .menu-close svg { width: 100%; height: 100%; fill: none; stroke: var(--gold-1); stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 899px) {
  .menu-btn, .menu-close { display: block; }
  .site-nav { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); flex-direction: column; align-items: stretch; gap: 6px;
    padding: 30px 0 0; background: #1a0d06 url(/assets/img/drawer-wood.webp) center top / 330px auto repeat-y;
    border: solid transparent; border-width: 52px; border-image: url(/assets/img/drawer-frame.webp) 96 / 52px stretch; /* 9-slice: carved corners keep their aspect, the plain rule runs along the edges */
    box-shadow: -20px 0 50px rgba(0,0,0,.7); transform: translateX(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s; }
  .site-nav > a:not(.btn) { font-size: 24px; padding: 12px 6px; text-align: center; }
  .site-nav > a:not(.btn) + a:not(.btn) { background: url(/assets/img/divider.webp) top center / 140px auto no-repeat; padding-top: 22px; }
  .site-nav .lang-switch { margin-top: 18px; align-self: center; }
  .menu-close { position: absolute; top: -26px; right: -26px; }
  .nav-open .site-nav { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .nav-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(5,2,1,.6); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .nav-open .site-header { z-index: 50; } /* the drawer lives in the header's stacking context; keep it above the scrim */
  .nav-open { overflow: hidden; }
}

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px 2px; transform: rotate(45deg); background: var(--gold-2); box-shadow: 0 0 6px rgba(217,168,67,.6); }
.crumbs a { color: var(--ivory-2); text-decoration: none; } .crumbs a:hover { color: var(--gold-1); text-decoration: underline; }
.crumbs [aria-current] { color: var(--gold-l); }

/* ── ornate buttons (btn2-* 9-slice: carved ends, plain molding) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 6px;
  border: solid transparent; border-width: 14px 22px; border-image: url(/assets/img/btn-gold.webp) 30% 13% fill / 16px 22px stretch;
  background: none; color: #3b1e04; font: 700 20px/1 var(--serif); letter-spacing: 1px; text-decoration: none; cursor: pointer;
  text-shadow: 0 1px 0 rgba(255,244,210,.9); filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); transition: transform .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)) brightness(1.06); color: #2a1503; }
.btn:active { transform: translateY(1px); }
.btn.emerald { border-image-source: url(/assets/img/btn-emerald.webp); color: #fff1c9; text-shadow: 0 2px 2px rgba(0,0,0,.75); }
.btn.walnut { border-image-source: url(/assets/img/btn-walnut.webp); color: #fff1c9; text-shadow: 0 2px 2px rgba(0,0,0,.85); }
.btn.burgundy { border-image-source: url(/assets/img/btn-burgundy.webp); color: #ffe9de; text-shadow: 0 2px 2px rgba(0,0,0,.75); }
.btn.small { min-height: 40px; font-size: 16px; border-width: 10px 16px; border-image-width: 12px 16px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: default; filter: grayscale(.4) brightness(.8) drop-shadow(0 4px 8px rgba(0,0,0,.5)); transform: none; }
.lang-switch { white-space: nowrap; }

/* store badges (placeholders until the store links are known) */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { min-width: 210px; min-height: 64px; justify-content: flex-start; gap: 12px; padding: 0 8px; }
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.store small { font: 700 11px/1.2 var(--sans); letter-spacing: .6px; text-transform: uppercase; opacity: .85; text-shadow: none; }
.store .soon { margin-left: auto; font: 800 10px/1 var(--sans); font-style: normal; letter-spacing: 1.2px; padding: 8px 13px 7px; color: var(--gold-1); text-shadow: 0 1px 2px #000;
  border: 0 solid transparent; border-image: url(/assets/img/pill.webp) 0 40 fill / 0 12.5px stretch; } /* pill = 9-slice: round caps keep their aspect */
.store[data-live="true"] .soon { display: none; }

/* ── framed surfaces ── */
.panel { position: relative; border: solid transparent; border-width: 30px 26px; border-image: url(/assets/img/frame-panel.webp) 27% 20% / 64px 64px stretch; border-image-outset: 4px;
  background: radial-gradient(ellipse at 50% 0%, rgba(58,33,18,.95), rgba(22,10,4,.97) 70%) center / calc(100% - 10px) calc(100% - 10px) no-repeat border-box; padding: 18px 14px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
/* card-tile.webp: corners + a tileable molding (see tools/prepare_art.py) — tiled, not stretched, so wide cards stay sharp. */
.card { border: solid transparent; border-width: 22px 24px; border-image: url(/assets/img/card-tile.webp) 75 72 fill / 26px 30px round stretch; padding: 6px 4px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
/* The frame art is a thin gold rule with corner ornaments, so it is laid OVER the picture: the image
   runs out to the rule (inset by --fi, the rule's middle) and the ornaments sit on top of it. */
.framed { --fw: 44px; --fi: calc(var(--fw) * .07); position: relative; background: #120803; }
.framed img { display: block; position: absolute; inset: var(--fi); width: calc(100% - 2 * var(--fi)); height: calc(100% - 2 * var(--fi)); object-fit: cover; }
.framed::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: solid transparent; border-width: var(--fw); border-image: url(/assets/img/frame-card.webp) 16% 22% / var(--fw) stretch; }
.plaque { display: inline-block; border: solid transparent; border-width: 12px 24px; border-image: url(/assets/img/plaque.webp) 24% 11% fill / 14px 26px stretch;
  padding: 0 6px; font: 700 20px/1.1 var(--serif); color: #fff1c9; text-shadow: 0 2px 2px #000; filter: drop-shadow(0 5px 8px rgba(0,0,0,.5)); }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 56px 0 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent);
  background: linear-gradient(180deg, rgba(13,7,5,.55), rgba(13,7,5,.72) 55%, var(--night)), url(/assets/img/hero-960.webp) center / cover no-repeat; }
@media (min-width: 961px) { .hero { background-image: linear-gradient(180deg, rgba(13,7,5,.45), rgba(13,7,5,.7) 60%, var(--night)), url(/assets/img/hero-1920.webp); } }
.hero .wrap { display: grid; gap: 34px; align-items: center; }
.logo { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; line-height: .9; text-shadow: none; }
.logo b { display: block; font-size: clamp(54px, 13vw, 92px); letter-spacing: 3px; background: linear-gradient(180deg, #fff6d0, var(--gold-2) 50%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.9)); }
.logo em { display: block; margin-top: 2px; font-size: clamp(40px, 9vw, 64px); color: var(--emerald-l); letter-spacing: 2px; text-shadow: 0 2px 6px rgba(0,0,0,.9), 0 0 18px rgba(14,91,69,.9); }
.logo::after { content: ""; display: block; width: min(320px, 90%); height: 24px; margin-top: 10px; background: url(/assets/img/divider.webp) left center / contain no-repeat; }
.tagline { font: 700 clamp(22px, 4.6vw, 30px)/1.2 var(--serif); color: #fff1c9; text-shadow: 0 2px 4px #000; margin-bottom: 10px; }
.hero p.sub { max-width: 560px; color: var(--ivory); text-shadow: 0 1px 3px #000; }
.hero .stores { margin: 24px 0 18px; }
.trust span:last-child { flex: 1 1 220px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; color: var(--ivory-2); }
.age { display: inline-grid; place-items: center; width: 54px; height: 54px; flex: none; background: url(/assets/img/round.webp) center / 100% 100% no-repeat;
  font: 700 19px/1 var(--serif); color: var(--gold-1); text-shadow: 0 1px 2px #000; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.hero-art { margin: 0; justify-self: center; width: min(340px, 80vw); }
.hero-art .framed { aspect-ratio: 3 / 4; --fw: 56px; }
.hero-art .plaque { display: block; width: max-content; max-width: 100%; margin: -26px auto 0; position: relative; text-align: center; }
@media (min-width: 860px) { .hero { padding: 84px 0 140px; } .hero .wrap { grid-template-columns: 1.3fr 1fr; } }
.game-batak .logo em { color: var(--burgundy-l); text-shadow: 0 2px 6px rgba(0,0,0,.9), 0 0 18px rgba(150,24,44,.95); }
.kicker { margin: 0 0 12px; font: 800 12.5px/1.2 var(--sans); letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold-2); text-shadow: 0 1px 2px #000; }
.hero .crumbs ol { justify-content: flex-start; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 20px; }
/* studio home: the North Sultan emblem stands free in candle-light instead of a framed portrait */
.hero-emblem { margin: 0; justify-self: center; width: min(300px, 62vw); }
.hero-emblem img { width: 100%; height: auto; filter: drop-shadow(0 0 42px rgba(242,210,122,.28)) drop-shadow(0 18px 26px rgba(0,0,0,.75)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 859px) { .hero-home .hero-emblem { order: -1; width: min(170px, 44vw); } .hero-home { padding-top: 34px; } }

/* ── sections: each scene paints a backdrop that fades in and out (mask), so sections melt into each other ── */
section { padding: 60px 0; }
.hero + section { padding-top: 8px; }
.scene { position: relative; isolation: isolate; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.scene-glow::before { background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(120,70,28,.22), transparent 70%); }
.scene-divan::before { background: radial-gradient(ellipse at 50% 50%, rgba(13,7,5,.55), rgba(13,7,5,.88) 75%), url(/assets/img/scene-divan.webp) center / cover no-repeat; opacity: .9; }
.scene-felt::before { background: radial-gradient(ellipse at 50% 45%, rgba(13,7,5,.35), rgba(13,7,5,.9) 72%), url(/assets/img/felt-emerald.webp) center 40% / cover no-repeat; }
.scene-burgundy::before { background: radial-gradient(ellipse at 50% 50%, rgba(13,7,5,.15), rgba(13,7,5,.78) 75%), url(/assets/img/felt-burgundy.webp) center / cover no-repeat; }
.scene-lobby::before { background: linear-gradient(90deg, rgba(13,7,5,.92), rgba(13,7,5,.55) 60%, rgba(13,7,5,.8)), url(/assets/img/hero-1920.webp) center 30% / cover no-repeat; }
/* carved frieze band between the hero and the page / above the footer */
.frieze { height: 22px; background: url(/assets/img/frieze.webp) center / auto 100% repeat-x; filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }

/* reveal on scroll (classes added by site.js only, so no-JS shows everything) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* features */
.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.feature .art { width: 76px; height: 86px; display: grid; place-items: center; }
.feature .art img { max-height: 86px; width: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.feature .art.portrait img { width: 70px; height: 70px; border-radius: 50%; padding: 3px; object-fit: cover;
  background: conic-gradient(from 200deg, var(--gold-1), var(--gold-3), #fff1c2, var(--gold-3), var(--gold-1)); }
.feature h3 { font-size: 23px; margin-bottom: 4px; }
.feature p { margin: 0; font-size: 15px; color: var(--ivory-2); }

/* salons rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; scrollbar-color: var(--gold-3) transparent; }
.rail > * { scroll-snap-align: start; }
.salon { margin: 0; text-align: center; }
.salon .framed { aspect-ratio: 3 / 4; }
.salon .plaque { margin-top: -22px; position: relative; font-size: 18px; }
.salon p { margin: 8px 6px 0; font-size: 14px; color: var(--ivory-2); }

/* screenshots gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; scrollbar-color: var(--gold-3) transparent; }
@media (min-width: 860px) { .gallery { grid-auto-columns: calc((100% - 18px) / 2); } }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .framed { --fw: 34px; }
.gallery figure.portrait { max-width: 300px; }
.gallery figcaption { margin-top: 8px; text-align: center; font: 700 17px/1.2 var(--serif); color: var(--gold-l); }
.gallery .ph .framed, .gallery .landscape .framed { aspect-ratio: 16 / 9; }
.gallery .portrait .framed { aspect-ratio: 9 / 16; }
.gallery .ph img { filter: saturate(.9) brightness(.85); }

/* court cards showcase ("Kartlar"): the three Batak portraits, each in the frame-card overlay (gold rule over the
   picture edge, corners fixed — the same .framed construction as the salons, never a stretched picture) */
.courts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 74%); gap: 22px; overflow-x: auto; padding: 14px 4px 26px;
  scroll-snap-type: x mandatory; scrollbar-color: var(--gold-3) transparent; }
@media (min-width: 760px) { .courts { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 34px; max-width: 980px; margin: 0 auto; padding-top: 6px; } }
.court { margin: 0; text-align: center; scroll-snap-align: center; }
.court .framed { aspect-ratio: 3 / 4; --fw: 54px; box-shadow: 0 22px 40px rgba(0,0,0,.6); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 760px) {
  .court:nth-child(1) .framed { transform: rotate(-3deg) translateY(18px); }
  .court:nth-child(3) .framed { transform: rotate(3deg) translateY(18px); }
  .court:hover .framed { transform: translateY(-6px); }
  .court:nth-child(1) figcaption, .court:nth-child(3) figcaption { margin-top: 18px; }
}
.court .plaque { margin-top: -24px; position: relative; font-size: 22px; }
.court p { margin: 10px 8px 0; font-size: 15px; color: var(--ivory-2); }
.court p b { display: block; font: 700 19px/1.2 var(--serif); color: var(--gold-l); margin-bottom: 2px; }

/* table modes (İhaleli / Koz Maça / Eşli) */
.modes { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { display: flex; flex-direction: column; text-align: center; }
.mode .badge { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 8px; background: url(/assets/img/round.webp) center / 100% 100% no-repeat;
  font: 800 17px/1 var(--sans); letter-spacing: .5px; color: var(--gold-1); text-shadow: 0 1px 2px #000; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.mode .badge svg { width: 26px; height: 26px; fill: var(--gold-1); filter: drop-shadow(0 1px 1px #000); }
.mode h3 { font-size: 24px; margin-bottom: 6px; }
.mode p { font-size: 15px; color: var(--ivory-2); margin: 0 0 10px; }
.mode p.score { margin: auto 0 0; padding-top: 34px; font: 700 14.5px/1.4 var(--sans); color: #fff1c9;
  background: url(/assets/img/divider.webp) top 4px center / 150px auto no-repeat; }
.feature .art.cardback img { width: 56px; height: auto; border-radius: 6px; transform: rotate(-6deg); }

/* ── studio home: story chapters ── */
.chapters { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 18px; max-width: 1000px; }
@media (min-width: 760px) { .chapters { grid-template-columns: 1fr 1fr; gap: 22px; } }
.chapter { display: grid; grid-template-columns: 58px 1fr; column-gap: 14px; align-items: start; }
.chapter .num { grid-row: span 2; display: grid; place-items: center; width: 58px; height: 58px; background: url(/assets/img/round.webp) center / 100% 100% no-repeat;
  font: 700 22px/1 var(--serif); letter-spacing: .5px; color: var(--gold-1); text-shadow: 0 1px 2px #000; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.chapter h3 { font-size: 24px; margin: 6px 0 6px; }
.chapter p { margin: 0; font-size: 15.5px; color: var(--ivory-2); }

/* ── studio home: the games as numbered halls of the palace ── */
.halls { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1040px) { .halls { grid-template-columns: repeat(4, 1fr); } }
.hall { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.hall-art { position: relative; display: block; width: 100%; max-width: 270px; aspect-ratio: 3 / 4; }
.hall-art .framed { position: absolute; inset: 0; --fw: 48px; box-shadow: 0 20px 36px rgba(0,0,0,.55); transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s; }
a.hall-art:hover .framed { transform: translateY(-5px); filter: brightness(1.08); }
.hall-art .seal { position: absolute; z-index: 2; left: 50%; bottom: -30px; width: 84px; height: 84px; transform: translateX(-50%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }
/* closed halls: the carved arch is the hall's door (kit art, drawn whole), the medal hangs on its velvet */
.hall.soon .hall-art .door { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0,0,0,.6)) saturate(.85) brightness(.9); }
.hall.soon .hall-art .seal.medal { width: 25%; height: auto; top: 50%; bottom: auto; transform: translate(-50%, -54%); }
.hall-body { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; width: 100%; padding-top: 42px; }

.hall-body .plaque { font-size: 17px; }
.hall-body h3 { font-size: 27px; margin: 2px 0 0; }
.hall-body h3 a { color: inherit; text-decoration: none; } .hall-body h3 a:hover { color: var(--gold-1); }
.hall-body p { margin: 0 0 6px; font-size: 15px; color: var(--ivory-2); }
.hall-body > .btn, .hall-body > .tag { margin-top: auto; }
.tag { display: inline-block; padding: 10px 18px 9px; font: 800 11px/1 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-1); text-shadow: 0 1px 2px #000;
  border: 0 solid transparent; border-image: url(/assets/img/pill.webp) 0 40 fill / 0 15px stretch; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
@media (max-width: 599px) {
  .halls { grid-template-columns: 1fr; gap: 30px; }
  .hall { display: grid; grid-template-columns: 118px 1fr; column-gap: 18px; align-items: start; text-align: left; }
  .hall-art .framed { --fw: 30px; }
  .hall-art .seal { width: 54px; height: 54px; bottom: -16px; }
  .hall-body { align-items: flex-start; padding-top: 0; gap: 6px; }
  .hall.soon .hall-body { padding-top: 0; }
  .hall-body .plaque { font-size: 15px; border-width: 9px 18px; }
  .hall-body h3 { font-size: 23px; }
  .hall-body > .btn, .hall-body > .tag { margin-top: 4px; }
}

/* ── studio home: one key (2 × 2 features) and the house rules ── */
@media (min-width: 620px) { .features.four { grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 0 auto; } }
.principles-panel { max-width: 1000px; margin: 0 auto; text-align: center; }
.principles-panel .medal { width: 64px; height: auto; margin: -6px auto 6px; }
.principles-panel .intro { color: var(--ivory); max-width: 640px; margin-inline: auto; }
.principles { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; gap: 20px 40px; text-align: left; }
@media (min-width: 720px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { position: relative; padding-left: 44px; }
.principles li::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: url(/assets/img/round.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.principles li::after { content: ""; position: absolute; left: 11px; top: 11px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold-1); box-shadow: 0 0 6px rgba(242,210,122,.7); }
.principles h3 { font-size: 22px; margin: 2px 0 4px; }
.principles p { margin: 0; font-size: 15px; color: var(--ivory-2); }

/* how / steps */
.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding-top: 10px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 6px; background: url(/assets/img/round.webp) center / 100% 100% no-repeat;
  font: 700 24px/1 var(--serif); color: var(--gold-1); text-shadow: 0 1px 2px #000; }
.steps h3 { text-align: center; font-size: 21px; }
.steps p { text-align: center; font-size: 15px; color: var(--ivory-2); margin: 0; }

/* utilities */
.rounded { border-radius: 8px; }
.h-sm { font-size: 32px; }
.more { text-align: center; margin-top: 26px; }
.center { text-align: center; }

/* fair-play note */
.note { max-width: 860px; margin: 0 auto; text-align: center; }
.note .medal { width: 64px; height: auto; margin: -6px auto 6px; }
.note p { color: var(--ivory); }

/* FAQ */
/* frame-row's gold line sits ~5px inside the border box; the fill runs under it so no dark gap shows. */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: solid transparent; border-width: 14px 18px; border-image: url(/assets/img/frame-row.webp) 28% 11% / 24px 30px stretch;
  background: linear-gradient(180deg, rgba(58,33,18,.92), rgba(22,10,4,.95)) center / calc(100% - 10px) calc(100% - 8px) no-repeat border-box; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 4px 6px; font: 700 20px/1.25 var(--serif); color: #fff1c9; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; margin-left: auto; width: 30px; height: 30px; transition: transform .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23fbe7a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat, url(/assets/img/round.webp) center / 100% 100% no-repeat; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .a { padding: 6px 8px 8px; color: var(--ivory-2); font-size: 15.5px; }
.faq .a p:last-child, .faq .a ul:last-child, .faq .a ol:last-child { margin-bottom: 0; }
.faq .a li { margin: 4px 0; }
.faq-group { margin: 36px auto 14px; max-width: 860px; font-size: 26px; text-align: left; }

/* page head (inner pages): palace backdrop that dissolves into the page */
.page-head { position: relative; isolation: isolate; padding: 56px 0 40px; text-align: center; }
.page-head::before { content: ""; position: absolute; inset: 0 0 -60px; z-index: -1;
  background: linear-gradient(180deg, rgba(13,7,5,.5), rgba(13,7,5,.82) 70%), url(/assets/img/hero-1920.webp) center 35% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.pg-legal .page-head::before { background: linear-gradient(180deg, rgba(13,7,5,.6), rgba(13,7,5,.86) 70%), url(/assets/img/scene-divan.webp) center 40% / cover no-repeat; }
.page-head h1 { font-size: clamp(36px, 8vw, 56px); text-shadow: 0 3px 10px rgba(0,0,0,.9); }
.page-head h1::after { content: ""; display: block; width: min(340px, 80%); height: 26px; margin: 10px auto 0; background: url(/assets/img/divider.webp) center / contain no-repeat; }
.page-head p { max-width: 680px; margin: 0 auto; color: var(--ivory-2); text-shadow: 0 1px 3px #000; }
.page-head p.meta { font-style: italic; color: var(--muted); font-size: 15px; }
.pg-inner main > .wrap, .pg-inner main > section { padding-top: 10px; }
.pg-inner main > .wrap { padding-bottom: 40px; }

.prose { width: 100%; max-width: 860px; margin: 0 auto; } /* width: auto margins would shrink a grid item to its content */
.prose h2 { text-align: left; font-size: 30px; margin-top: 8px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.stack { display: grid; gap: 26px; }

/* contact card */
.contact { display: grid; gap: 18px; align-items: center; text-align: center; max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) { .contact { grid-template-columns: auto 1fr auto; text-align: left; } }
.contact img { width: 120px; margin: 0 auto; }
.contact h2 { text-align: inherit; font-size: 30px; }
.contact p { margin: 0; color: var(--ivory-2); }

/* tables in prose */
.tw { overflow-x: auto; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15px; }
.prose th { text-align: left; font: 700 17px var(--serif); color: var(--gold-l); padding: 4px 10px; }
.prose td { padding: 10px; vertical-align: top; background: rgba(0,0,0,.28); }
.prose td:first-child { border-radius: 10px 0 0 10px; color: #fff1c9; } .prose td:last-child { border-radius: 0 10px 10px 0; }

/* ── form (deletion request) ── */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font: 700 19px/1.2 var(--serif); color: var(--gold-l); }
.field small { color: var(--muted); font-size: 13px; }
.input { width: 100%; min-height: 52px; border: solid transparent; border-width: 12px 20px; border-image: url(/assets/img/btn-walnut.webp) 30% 13% fill / 14px 20px stretch;
  background: none; color: #fff8e6; font: 600 17px/1.3 var(--sans); padding: 2px 4px; outline: none; -webkit-appearance: none; appearance: none; border-radius: 0; }
.input::placeholder { color: rgba(243,226,181,.55); }
textarea.input { min-height: 120px; resize: vertical; border-image-source: url(/assets/img/card-tile.webp); border-image-slice: 75 72 fill; border-image-repeat: round stretch; border-image-width: 22px 26px; border-width: 18px 22px; }
.input:focus-visible { outline: none; filter: drop-shadow(0 0 6px rgba(242,210,122,.8)); }
.input.code { text-transform: uppercase; letter-spacing: 6px; font: 700 22px/1 var(--serif); max-width: 260px; }
.input[aria-invalid="true"] { filter: drop-shadow(0 0 6px rgba(255,120,100,.85)); }
.consent { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; padding: 8px 4px; font-size: 15px; color: var(--ivory); }
.sw { position: relative; flex: none; width: 76px; height: 40px; border: 0 solid transparent; border-image: url(/assets/img/pill.webp) 0 40 fill / 0 20px stretch; transition: filter .2s; }
.sw i { position: absolute; top: 3px; left: 4px; width: 34px; height: 34px; background: url(/assets/img/round.webp) center / 100% 100% no-repeat; box-shadow: 0 3px 6px rgba(0,0,0,.6); border-radius: 50%; transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.consent input:checked + .sw { filter: drop-shadow(0 0 8px rgba(74,222,128,.75)); }
.consent input:checked + .sw i { transform: translateX(34px); }
.consent input:focus-visible + .sw { outline: 3px solid var(--gold-1); outline-offset: 3px; border-radius: 22px; }
.form-msg { display: none; }
.form-msg.show { display: block; }
.msg { border: solid transparent; border-width: 14px 22px; border-image: url(/assets/img/frame-row.webp) 28% 11% / 24px 30px stretch; padding: 6px 8px;
  background: linear-gradient(180deg, rgba(14,91,69,.85), rgba(8,55,42,.92)) center / calc(100% - 10px) calc(100% - 8px) no-repeat border-box; color: #fff1c9; }
.msg.err { background: linear-gradient(180deg, rgba(110,20,35,.9), rgba(60,10,18,.94)) center / calc(100% - 10px) calc(100% - 8px) no-repeat border-box; }
.msg b { font-family: var(--serif); font-size: 20px; }
.hp { display: none; }

/* ── closing call to action (every page) ── */
.cta { padding: 90px 0 80px; }
.cta-in { display: grid; gap: 28px; align-items: center; max-width: 980px; margin: 0 auto; }
.cta-art { margin: 0 auto; width: min(200px, 50vw); }
.cta-art img { width: 100%; height: auto; filter: drop-shadow(0 0 28px rgba(242,210,122,.35)) drop-shadow(0 14px 22px rgba(0,0,0,.7)); }
.cta h2 { text-align: left; font-size: clamp(30px, 5vw, 42px); }
.cta p { color: var(--ivory); text-shadow: 0 1px 3px #000; max-width: 520px; }
.cta .stores { margin-top: 18px; }
.cta-studio .cta-art { width: min(150px, 38vw); }
.cta-games { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 0; }
@media (max-width: 719px) { .cta-in { text-align: center; } .cta h2 { text-align: center; } .cta p { margin-inline: auto; } .cta .stores, .cta-games { justify-content: center; } }
@media (min-width: 720px) { .cta-in { grid-template-columns: auto 1fr; gap: 44px; } }

/* ── footer: frieze top, walnut ground ── */
.site-footer { position: relative; padding: 56px 0 30px; font-size: 14px; color: var(--muted);
  background: linear-gradient(180deg, rgba(22,10,4,.9), rgba(10,5,3,.97)), url(/assets/img/walnut.webp) center / 512px repeat; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 22px; background: url(/assets/img/frieze.webp) center / auto 100% repeat-x; filter: drop-shadow(0 -4px 8px rgba(0,0,0,.6)); }
.foot { display: grid; gap: 30px; }
@media (min-width: 640px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot { grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr; } }
.foot-brand p { margin: 14px 0 0; color: var(--ivory-2); max-width: 320px; }
.foot-brand p.motto { margin-top: 18px; font: italic 700 21px/1.3 var(--serif); color: var(--gold-l); }
.foot address { margin-top: 14px; }
.foot-brand .brand { margin: 0; }
.age-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.age-row .age { width: 46px; height: 46px; font-size: 16px; }
.foot h2 { font-size: 21px; text-align: left; margin-bottom: 12px; text-shadow: none; }
.foot h2::after { content: ""; display: block; width: 90px; height: 12px; margin-top: 6px; background: url(/assets/img/divider.webp) left center / contain no-repeat; opacity: .8; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--ivory-2); text-decoration: none; } .foot a:hover { color: var(--gold-1); text-decoration: underline; }
.foot address { font-style: normal; line-height: 1.7; }
.fineprint { margin-top: 34px; padding-top: 16px; text-align: center; font-size: 13px; position: relative; }
.fineprint::before { content: ""; display: block; width: 220px; height: 16px; margin: 0 auto 12px; background: url(/assets/img/divider.webp) center / contain no-repeat; opacity: .6; }

/* ── legal documents: sidebar of documents + framed reading column ── */
.legal { display: grid; gap: 26px; padding-bottom: 50px; align-items: start; }
@media (min-width: 960px) { .legal { grid-template-columns: 270px minmax(0, 1fr); gap: 34px; } .legal-side { position: sticky; top: 96px; } }
.legal-nav { border: solid transparent; border-width: 14px 18px; border-image: url(/assets/img/frame-row.webp) 28% 11% / 24px 30px stretch;
  background: linear-gradient(180deg, rgba(58,33,18,.94), rgba(22,10,4,.96)) center / calc(100% - 10px) calc(100% - 8px) no-repeat border-box; padding: 4px 6px; }
.legal-nav summary { list-style: none; cursor: pointer; font: 700 20px/1.2 var(--serif); color: var(--gold-l); padding: 4px 2px 8px; }
.legal-nav summary::-webkit-details-marker { display: none; }
.legal-nav summary { display: flex; align-items: center; justify-content: space-between; }
.legal-nav summary::after { content: ""; width: 28px; height: 28px; flex: none; transition: transform .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23fbe7a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat, url(/assets/img/round.webp) center / 100% 100% no-repeat; }
.legal-nav[open] summary::after { transform: rotate(180deg); }
@media (min-width: 960px) { .legal-nav summary { pointer-events: none; } .legal-nav summary::after { display: none; } }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav li a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ivory-2); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.legal-nav li a:hover { color: var(--gold-1); background: rgba(217,168,67,.08); }
.legal-nav li a[aria-current] { color: #2a1503; font-weight: 700; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 6px rgba(0,0,0,.5); }
.legal-nav p { margin: 14px 0 4px; text-align: center; }
.doc { min-width: 0; padding: 34px clamp(18px, 4vw, 48px); position: relative;
  border: solid transparent; border-width: 26px 30px; border-image: url(/assets/img/frame-row.webp) 28% 11% / 40px 50px stretch;
  background: radial-gradient(ellipse at 50% 0%, rgba(58,33,18,.6), transparent 60%) center / calc(100% - 16px) calc(100% - 12px) no-repeat border-box,
              linear-gradient(180deg, rgba(36,19,9,.95), rgba(18,8,3,.97)) center / calc(100% - 16px) calc(100% - 12px) no-repeat border-box;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.55)); font-size: 16px; line-height: 1.75; color: var(--ivory); }
@media (max-width: 639px) { .doc { border-width: 18px 16px; border-image-width: 28px 30px; padding: 20px 8px; font-size: 15.5px; background-size: calc(100% - 8px) calc(100% - 8px); } }
.doc > :first-child { margin-top: 0; }
.doc h2 { text-align: left; font-size: clamp(24px, 3.4vw, 30px); margin: 1.8em 0 .6em; text-shadow: none; }
.doc h2::after { content: ""; display: block; width: 150px; height: 16px; margin-top: 8px; background: url(/assets/img/divider.webp) left center / contain no-repeat; }
.doc h3 { font-size: 21px; margin: 1.4em 0 .4em; color: var(--gold-1); }
.doc a { color: var(--gold-l); }
.doc ul, .doc ol { padding-left: 24px; } .doc li { margin: 6px 0; } .doc li::marker { color: var(--gold-2); }
.doc .tw, .doc table { margin: 16px 0; }
.doc .tw { overflow-x: auto; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.5; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(217,168,67,.35), 0 6px 16px rgba(0,0,0,.4); }
.doc th { text-align: left; font: 700 16px/1.3 var(--serif); color: #2a1503; padding: 10px 12px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); }
.doc td { padding: 10px 12px; vertical-align: top; background: rgba(0,0,0,.22); border-top: 1px solid rgba(217,168,67,.16); }
.doc tr:nth-child(even) td { background: rgba(217,168,67,.05); }
.doc blockquote { margin: 18px 0; padding: 14px 18px; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, rgba(14,91,69,.35), rgba(14,91,69,.08)); box-shadow: inset 3px 0 0 var(--gold-2); font-style: italic; }
.doc code { background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.doc .ph { color: #ffcfc0; background: rgba(110,20,35,.6); padding: 0 4px; border-radius: 3px; }
.doc .meta { color: var(--muted); font-style: italic; }
@media (min-width: 960px) { .legal.legal-index { grid-template-columns: minmax(0, 860px); justify-content: center; } }
.legal-index .legal-side { display: none; }
.legal-index .doc ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.legal-index .doc li { margin: 0; }
.legal-index .doc li a { display: block; padding: 14px 18px; font: 700 20px/1.25 var(--serif); text-decoration: none; color: #fff1c9;
  border: solid transparent; border-width: 12px 16px; border-image: url(/assets/img/frame-row.webp) 28% 11% / 22px 28px stretch;
  background: linear-gradient(180deg, rgba(58,33,18,.9), rgba(22,10,4,.95)) center / calc(100% - 10px) calc(100% - 8px) no-repeat border-box; transition: filter .2s, transform .2s; }
.legal-index .doc li a:hover { filter: brightness(1.15); transform: translateX(4px); }
.legal-index .doc li .meta { display: none; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost img { width: 220px; margin: 0 auto 12px; }
.lost .stores { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.h-lg { font-size: clamp(40px, 9vw, 60px); }

/* The `font` shorthand resets font-variant-numeric: keep lining figures everywhere ("101", not old-style "ıoı"). */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }
/* Game pages: store name "North Sultan: <game>" — studio line above the game's wordmark */
.logo.game-name em { margin: 0 0 6px; font-size: clamp(26px, 5.4vw, 40px); letter-spacing: 3px; }
