/* Osori Studio — "astral" theme. Deep-space violet, nebula glow, gold threads.
   The badger logo's green survives as the one earthly accent. */
:root {
  --bg: #0B0620; --bg-2: #140B33; --bg-3: #1E1147;
  --surface: #221450; --surface-2: #2C1A66; --line: rgba(243,238,255,.14); --line-2: rgba(243,238,255,.28);
  --text: #F3EEFF; --text-2: #CFC4EE; --text-3: #9F91C8; --text-4: #6E619A;
  --violet: #7A3FE0; --violet-2: #4A22A8; --magenta: #E04FB0; --ember: #FF8A3D; --gold: #FFB454; --gold-2: #FFD08A;
  --green: #3DBD86; --green-2: #2E8560;
  --display: "Bricolage Grotesque", "IBM Plex Sans KR", system-ui, sans-serif;
  --body: "IBM Plex Sans KR", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px; --gutter: 16px; --radius: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
p, li, dd { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(30px, 5.2vw, 56px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .85em; letter-spacing: .02em; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow a { text-decoration: none; color: var(--text-3); }
.eyebrow a:hover { color: var(--gold-2); text-decoration: underline; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 56ch; }
.count { display: inline-block; font-size: .55em; vertical-align: middle; background: var(--gold); color: var(--bg); padding: 2px 8px; border-radius: 999px; margin-left: 6px; transform: translateY(-2px); font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--bg); text-decoration: none; padding: 12px 18px; border-radius: 999px; font-weight: 600; border: 1.5px solid var(--gold); transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); box-shadow: 0 0 24px rgba(255,180,84,.35); }
.btn-sm { padding: 7px 12px; font-size: 14px; background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-sm:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-store svg { flex: none; }
.ctl { font: inherit; font-family: var(--mono); font-size: 13px; background: rgba(20,11,51,.6); color: var(--text); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ctl:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ---------- cosmos: fixed backdrop (nebula + stars + astral threads) ---------- */
.cosmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1000px 700px at 12% 8%, rgba(122,63,224,.55), transparent 60%),
    radial-gradient(900px 800px at 88% 28%, rgba(224,79,176,.35), transparent 60%),
    radial-gradient(800px 600px at 55% 100%, rgba(255,138,61,.28), transparent 60%),
    linear-gradient(180deg, #120A2E 0%, var(--bg) 60%, #0A0518 100%); }
.cosmos::before { content: ""; position: absolute; inset: 0; background: url("/static/img/stars.svg") repeat; background-size: 600px; opacity: .8; }
.cosmos::after { content: ""; position: absolute; inset: -12%; background: url("/static/img/astral.svg") center / cover no-repeat; mix-blend-mode: screen; opacity: .8; animation: drift 90s linear infinite; }
@keyframes drift { from { transform: rotate(0deg) scale(1.02); } to { transform: rotate(360deg) scale(1.02); } }
@media (max-width: 860px) { .cosmos::after { animation: none; inset: -4%; opacity: .6; } }

/* ---------- header / footer ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(11,6,32,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 0 1.5px rgba(243,238,255,.9)) drop-shadow(0 0 8px rgba(224,79,176,.45)); }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
.brand-word b { color: var(--gold); font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--text-2); }
.nav a:hover { background: rgba(243,238,255,.08); color: var(--text); }
.nav a[aria-current] { background: var(--gold); color: var(--bg); }
.lang { display: flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; font-family: var(--mono); font-size: 12px; }
.lang a { text-decoration: none; padding: 5px 10px; color: var(--text-2); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }
@media (max-width: 720px) {
  .hdr-in { height: auto; min-height: 56px; gap: 8px; flex-wrap: wrap; padding: 8px 0 0; }
  .brand img { width: 32px; }
  .brand-word { font-size: 17px; }
  .nav { order: 3; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; padding: 6px 12px; white-space: nowrap; }
}
.ftr { margin-top: 96px; background: rgba(8,4,24,.75); border-top: 1px solid var(--line); color: var(--text-2); padding: 56px 0 32px; backdrop-filter: blur(6px); }
.ftr-in { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: 32px; align-items: start; }
.ftr-brand { display: flex; gap: 14px; align-items: center; }
.ftr-brand img { width: 56px; height: auto; filter: drop-shadow(0 0 1.5px rgba(243,238,255,.9)) drop-shadow(0 0 10px rgba(122,63,224,.5)); }
.ftr-brand strong { display: block; font-size: 18px; color: var(--text); }
.ftr-brand p { margin: 4px 0 0; color: var(--text-3); font-size: 14px; }
.ftr-info { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.ftr-info dt { color: var(--text-4); font-size: 12px; font-family: var(--mono); letter-spacing: .04em; }
.ftr-info dd { margin: 0; color: var(--text-2); }
.ftr-nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ftr-nav a { text-decoration: none; color: var(--text-2); }
.ftr-nav a:hover { color: var(--gold-2); text-decoration: underline; }
.ftr-copy { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-4); font-size: 12px; }
@media (max-width: 800px) { .ftr-in { grid-template-columns: 1fr; gap: 24px; } .ftr { margin-top: 64px; padding-top: 40px; } }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-weight: 700; text-shadow: 0 0 40px rgba(122,63,224,.5); font-size: clamp(26px, 3.6vw, 44px); margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 28px; }
.deck-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.deck-tab { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 500; color: var(--text); background: rgba(34,20,80,.55); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.deck-tab img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.deck-tab:hover { border-color: var(--gold); transform: translateY(-1px); }
.deck-tab[aria-selected="true"] { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }
.hero-stage::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; left: 50%; top: 45%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(224,79,176,.35) 0%, rgba(122,63,224,.25) 35%, transparent 65%); filter: blur(10px); pointer-events: none; z-index: -1; }
.deck { position: relative; width: min(340px, 72vw); aspect-ratio: 6 / 7; perspective: 1400px; touch-action: pan-y; }
.deck-slot { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform: translateX(40px) scale(.94); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.deck-slot.is-active { opacity: 1; pointer-events: auto; transform: none; }
.deck-slot.is-active .card { cursor: grab; }
.deck-slot.is-active .card.is-dragging { cursor: grabbing; }
.deck-ctl { display: flex; align-items: center; gap: 10px; }
.hint { font-size: 12px; color: var(--text-3); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 24px; } .deck { width: min(280px, 66vw); } .hero { padding-top: 24px; } .hero h1 { text-align: center; } .deck-nav { justify-content: center; } }

/* ---------- card ---------- */
.card { container-type: inline-size; aspect-ratio: 6 / 7; width: 100%; perspective: 1200px; position: relative; --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%; --holo: 0; --glare: 0; }
.card-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); will-change: transform; }
.card.is-dragging .card-3d, .card.no-anim .card-3d { transition: none; }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 5.2cqw; overflow: hidden; background: var(--bg-2); box-shadow: 0 1cqw 3cqw rgba(0,0,0,.45), 0 10cqw 20cqw -10cqw rgba(122,63,224,.6), 0 0 0 .3cqw rgba(255,180,84,.25); transform: translateZ(0); }
.card-back { transform: rotateY(180deg) translateZ(0); }
.card-frame { position: absolute; inset: 0; padding: 4.2cqw; display: flex; flex-direction: column; gap: 3cqw; border-radius: inherit; }
.card-front .card-frame { background: linear-gradient(160deg, #2B1866 0%, #1A0F45 50%, #120A2E 100%); background-image: url("/static/img/stars.svg"), linear-gradient(160deg, #2B1866 0%, #1A0F45 50%, #120A2E 100%); background-size: 60cqw, auto; }
.card-front .card-frame::before { content: ""; position: absolute; inset: 2.2cqw; border: .45cqw solid rgba(255,180,84,.7); border-radius: 3.6cqw; pointer-events: none; box-shadow: inset 0 0 3cqw rgba(255,180,84,.15); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2cqw; padding: 1.5cqw 2cqw 0; }
.card-name { font-family: var(--display); font-weight: 800; font-size: 7.2cqw; letter-spacing: -.02em; line-height: 1.05; font-variation-settings: "opsz" 96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.card-kind { flex: none; font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .08em; color: var(--gold); }
.card-art { position: relative; margin: 0; aspect-ratio: 1 / .9; border-radius: 3cqw; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--accent2) 80%, white) 0%, var(--accent) 65%, color-mix(in srgb, var(--accent) 60%, black) 100%);
  box-shadow: inset 0 0 0 .5cqw rgba(255,180,84,.35), inset 0 2cqw 6cqw rgba(0,0,0,.25); }
.card-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-35deg, transparent 0 1.6cqw, rgba(255,255,255,.05) 1.6cqw 3.2cqw); pointer-events: none; }
.card-art img { width: 56%; height: auto; border-radius: 12%; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.4), 0 0 0 .6cqw rgba(255,255,255,.35); transform: translateZ(0); }
.card-art .card-art-mark { width: 64%; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2cqw 4cqw rgba(0,0,0,.35)); }
.card-ribbon { position: absolute; top: 5cqw; right: -9cqw; transform: rotate(35deg); white-space: nowrap; word-break: normal; overflow-wrap: normal; background: var(--gold); color: var(--bg); font-family: var(--mono); font-size: 3.2cqw; letter-spacing: .12em; text-transform: uppercase; padding: .8cqw 12cqw; box-shadow: 0 .5cqw 1.5cqw rgba(0,0,0,.35); font-weight: 500; }
.card-text { margin: 0; padding: 0 2cqw .5cqw; font-size: 4.4cqw; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-shine { position: absolute; inset: 0; pointer-events: none; opacity: var(--holo); mix-blend-mode: color-dodge; transition: opacity .35s;
  background: linear-gradient(115deg, transparent 20%, rgba(255,120,200,.5) 36%, rgba(120,255,220,.45) 46%, rgba(255,210,120,.5) 56%, rgba(140,150,255,.45) 66%, transparent 80%);
  background-size: 260% 260%; background-position: var(--px) var(--py); }
.card-shine::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(110deg, rgba(255,255,255,0) 0 .8cqw, rgba(255,255,255,.16) .8cqw 1.2cqw); mix-blend-mode: overlay; opacity: .7; }
.card-glare { position: absolute; inset: 0; pointer-events: none; opacity: var(--glare); mix-blend-mode: soft-light; transition: opacity .35s;
  background: radial-gradient(circle at var(--px) var(--py), rgba(255,255,255,.9) 0%, rgba(255,255,255,.35) 25%, transparent 60%); }
.card-back .card-frame { background: #0E0724; color: var(--text-2); background-image: url("/static/img/astral.svg"), url("/static/img/stars.svg"), radial-gradient(70% 55% at 50% 30%, color-mix(in srgb, var(--accent2) 35%, transparent), transparent 70%); background-size: 260% auto, 60cqw, auto; background-position: center, 0 0, 0 0; }
.card-back .card-frame::before { content: ""; position: absolute; inset: 2.2cqw; border: .45cqw solid rgba(255,180,84,.55); border-radius: 3.6cqw; pointer-events: none; }
.card-back-mark { display: grid; place-items: center; padding: 3cqw 0 0; }
.card-back-mark img { width: 34%; height: auto; filter: drop-shadow(0 0 .5cqw rgba(243,238,255,.95)) drop-shadow(0 0 3cqw rgba(224,79,176,.6)); }
.card-back-body { flex: 1; display: flex; flex-direction: column; gap: 2cqw; padding: 0 3cqw 2cqw; min-height: 0; }
.card-back-name { font-family: var(--display); font-weight: 800; font-size: 6.4cqw; color: var(--text); letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
.card-back-desc { margin: 0; font-size: 3.6cqw; line-height: 1.5; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.card-back-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.card-back-links a, .card-back-soon { font-size: 3.6cqw; text-decoration: none; padding: 1.6cqw 3.2cqw; border-radius: 999px; border: .4cqw solid var(--gold); color: var(--gold-2); background: rgba(11,6,32,.5); }
.card-back-links a:hover { background: var(--gold); color: var(--bg); }
.card-back-links .card-back-more { border-color: transparent; background: transparent; text-decoration: underline; padding-inline: 1cqw; }
.card-back-soon { border-style: dashed; color: var(--text-3); border-color: var(--line-2); }
.card-back .card-back .card-shine { opacity: calc(var(--holo) * .6); }
.is-facedown .card-3d { transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)); }
.is-facedown .card-back-links { display: none; }
.is-facedown .card-back-body { align-items: center; justify-content: center; text-align: center; }
.is-facedown .card-back-name { font-size: 5cqw; color: var(--gold); }
.is-facedown .card-back-desc { font-size: 3.8cqw; color: var(--text-2); }
.is-facedown .card-back-mark img { opacity: .8; }
.is-soon .card-art img { filter: saturate(.9); }
@container (max-width: 230px) {
  .card-stats { display: none; }
  .card-name { font-size: 8cqw; }
  .card-text { font-size: 5.4cqw; -webkit-line-clamp: 3; }
    .card-back-desc { font-size: 4.4cqw; -webkit-line-clamp: 5; }
  .card-back-links a, .card-back-soon { font-size: 4.2cqw; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(12px, 2vw, 24px); }
.grid-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 600px) { .grid, .grid-lg, .group-web .grid, .group-game .grid, .group-video .grid { grid-template-columns: repeat(2, 1fr); } }
.card-link { text-decoration: none; display: block; }
.card-link:hover .card-face, .card-link:focus-visible .card-face { box-shadow: 0 1cqw 3cqw rgba(0,0,0,.5), 0 16cqw 28cqw -12cqw rgba(224,79,176,.7), 0 0 0 .3cqw rgba(255,180,84,.6); }
.card-link:focus-visible { outline-offset: 6px; }

/* ---------- rows: tile + text list ---------- */
.rows { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.row { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: var(--radius); background: rgba(34,20,80,.42); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, transform .2s var(--ease); }
.row:hover { border-color: rgba(255,180,84,.55); }
.row-tile { display: block; text-decoration: none; }
.row-body { min-width: 0; }
.row-kind { margin: 0 0 4px; font-size: 12px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.row-name { margin: 0 0 6px; font-size: 20px; font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.02em; }
.row-name a { text-decoration: none; }
.row-name a:hover { color: var(--gold-2); text-decoration: underline; }
.row-tagline { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-more { font-size: 14px; color: var(--gold-2); text-decoration: none; padding: 6px 4px; }
.row-more:hover { text-decoration: underline; }
.row-soon-tag { font-size: 13px; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: 999px; padding: 6px 12px; }
.row-soon .row-tile { opacity: .85; }
@media (max-width: 480px) { .row { grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; } .row-name { font-size: 18px; } .row-tagline { font-size: 14px; } }
/* compact tile: art only */
.card-compact { aspect-ratio: 1 / 1; }
.card-compact .card-face { border-radius: 14%; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.45), 0 0 0 .8cqw rgba(255,180,84,.3); }
.card-compact .card-art { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.card-compact .card-art img { width: 62%; }
.card-compact .card-art .card-art-mark { width: 70%; }
.card-compact.is-facedown .card-3d { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.card-compact.is-facedown .card-art { background: radial-gradient(120% 90% at 30% 20%, #3A2478 0%, #1E1147 65%, #120A2E 100%); }
.card-compact.is-facedown .card-art-mark { opacity: .55; filter: grayscale(.4) drop-shadow(0 0 2cqw rgba(243,238,255,.5)); }
.card-compact .card-ribbon { font-size: 7cqw; top: 8cqw; right: -24cqw; padding: 1.5cqw 26cqw; }

/* ---------- sections ---------- */
.collection { padding-top: clamp(24px, 4vw, 48px); }
.sec-head { margin-bottom: 28px; }
.sec-head p { color: var(--text-3); }
.sec-title { margin: clamp(40px, 6vw, 72px) 0 20px; }
.group { padding: 32px 0 8px; border-top: 1px solid var(--line); }
.group-head { margin-bottom: 18px; }
.group-head h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); }
.group-head h2 a { text-decoration: none; }
.group-head h2 a:hover { color: var(--gold-2); text-decoration: underline; }
.group-head p { margin: 0; color: var(--text-3); font-size: 15px; }
.panel, .legal-strip-in, .legal-list li, .what a, .empty-card { background: rgba(34,20,80,.45); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.legal-strip { margin-top: clamp(40px, 6vw, 80px); }
.legal-strip-in { border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal-strip h2 { font-size: 20px; margin-bottom: 4px; }
.legal-strip p { margin: 0; color: var(--text-3); }
.page-head { padding: clamp(28px, 5vw, 64px) 0 28px; }
.notfound { min-height: 50vh; }

/* item page */
.item { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 5vw, 72px); padding-top: clamp(24px, 4vw, 56px); align-items: start; }
.item-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; position: sticky; top: 88px; }
.item-body h1 { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 96; letter-spacing: -.03em; }
.get { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; }
.soon-note { margin: 0; color: var(--text-3); font-size: 14px; border-left: 3px solid var(--gold); padding-left: 12px; }
.item-desc { font-size: 17px; max-width: 60ch; color: var(--text-2); }
.features { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; }
.features li { padding-left: 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); transform: rotate(45deg) scale(.7); box-shadow: 0 0 8px var(--gold); }
.specs { margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.specs > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 15px; }
.specs dt { color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding-top: 3px; }
.specs dd { margin: 0; }
@media (max-width: 860px) { .item { grid-template-columns: 1fr; } .item-stage { position: static; } .specs > div { grid-template-columns: 110px 1fr; } }
.shots-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots-row img { flex: none; width: min(260px, 70vw); height: auto; border-radius: 18px; scroll-snap-align: start; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6), 0 0 0 1px var(--line); }
.empty { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; padding: 24px 0; }
.empty-card { background: none; border: 0; backdrop-filter: none; }
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--text-3); }
@media (max-width: 640px) { .empty { grid-template-columns: 1fr; } .empty-card { width: 200px; } }

/* legal */
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legal-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-radius: var(--radius); padding: 14px 18px; }
.legal-item-head { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.legal-item-head img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.legal-item-head img[src$=".svg"], .deck-tab img[src$=".svg"] { filter: drop-shadow(0 0 1.5px rgba(243,238,255,.9)) drop-shadow(0 0 6px rgba(224,79,176,.5)); }
.legal-item-head span { display: flex; flex-direction: column; }
.legal-item-head small { color: var(--text-3); font-size: 13px; }
.legal-links { display: flex; gap: 8px; flex-wrap: wrap; }
.legal-contact { margin-top: 24px; color: var(--text-3); font-size: 14px; }
.legal-page { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: clamp(24px, 4vw, 56px); align-items: start; }
.legal-aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.legal-toc a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.legal-toc a:hover { background: rgba(243,238,255,.08); }
.legal-toc a[aria-current] { background: var(--gold); color: var(--bg); border-color: var(--gold); }
@media (max-width: 800px) { .legal-page { grid-template-columns: 1fr; gap: 24px; } .legal-aside { position: static; } }
.prose { max-width: 72ch; font-size: 16px; color: var(--text-2); }
.prose h1, .prose h2, .prose h3, .prose strong { color: var(--text); }
.prose h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 24px; }
.prose h2 { font-size: 20px; margin-top: 2em; }
.prose h3 { font-size: 17px; margin-top: 1.6em; }
.prose a { color: var(--gold-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; word-break: keep-all; overflow-wrap: normal; white-space: pre-line; }
.prose th { white-space: nowrap; }
.prose th { background: rgba(243,238,255,.06); color: var(--text); }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: rgba(34,20,80,.45); }
.notice { background: rgba(255,180,84,.15); border: 1px solid rgba(255,180,84,.4); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-3d, .deck-slot, .btn, .deck-tab { transition: none !important; }
  .cosmos::after { animation: none; }
}
