/* The Yard store. Built the way big server stores are (Pika, Jartex, ManaCube): slim top bar, a featured banner
   with the mascot, large coloured category tiles, product cards that glow in their own colour, and the server
   address in a band at the bottom. Same warm look as theyard.gg's new design: colours from the logo and its thick
   dark outline on everything you can press. Pictures are the owner's media pack (/root/theyard/media). */
:root {
  color-scheme: dark;
  --bg: #22110a; --surface: #321a0f; --raise: #47271a; --bar: #1a0c06; --line: #120602; --soft: rgba(255,226,190,.12);
  --ink: #fff1df; --muted: #d2b098; --gold: #ffbe14; --gold2: #f58f00; --orange: #f0560c; --diamond: #5ee8e0;
  --display: "Lilita One", "Arial Rounded MT Bold", "Arial Black", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 500 16px/1.55 var(--body); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(1100px 560px at 50% -60px, #66290a 0%, transparent 72%) no-repeat, var(--bg); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bar); z-index: 25; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--diamond); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
svg { width: 20px; height: 20px; flex: none; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 60; background: var(--gold); color: #1b1300; padding: 8px 12px; border-radius: 8px; }

/* colour per category */
[data-cat] { --c: #ffbe14; --c1: #ffb11a; --c2: #8a4a00; }
[data-cat="ranks"] { --c: #ff8a3d; --c1: #ff7a2e; --c2: #8f2205; }
[data-cat="gems"] { --c: #4fe3ec; --c1: #1fb6d6; --c2: #0a3f74; }
[data-cat="subscriptions"] { --c: #b58aff; --c1: #9153fb; --c2: #2f1673; }
[data-cat="season"] { --c: #ff6f9c; --c1: #ee3f77; --c2: #6d0b3b; }
[data-cat="gear"] { --c: #ffc93c; --c1: #eda40c; --c2: #6b3800; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-top: 10px; }
.bar-in { display: flex; align-items: center; gap: 18px; min-height: 74px; width: min(1204px, calc(100% - 24px)); padding: 0 14px; border-radius: 22px; background: rgba(26,12,6,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 2px solid var(--line); box-shadow: 0 0 0 1px rgba(255,226,190,.13) inset, 0 12px 28px rgba(0,0,0,.35); }
.brand { flex: none; }
.brand img { height: 56px; width: auto; }
.cats { position: relative; display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 30px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.cats a img { width: 28px; height: 28px; }
.cats a:hover { color: var(--ink); background: rgba(255,226,190,.09); }
.cats a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.bar-end { display: flex; align-items: center; gap: 10px; flex: none; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--raise); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); color: #b9c0ff; }
.round:hover { filter: brightness(1.15); }
.who { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 5px; border-radius: 13px; background: var(--raise); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); cursor: pointer; font-weight: 800; font-size: .93rem; max-width: 190px; }
.who:hover { filter: brightness(1.12); }
.who img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 15px; border: 2px solid var(--line); border-radius: 13px; cursor: pointer; font-weight: 900; color: #2a1300; background: linear-gradient(180deg, var(--gold), var(--gold2)); box-shadow: 0 3px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.cart:hover { filter: brightness(1.07); }
.cart i { position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 20px; background: var(--orange); color: #fff; font-style: normal; font-size: .76rem; display: grid; place-items: center; border: 2px solid var(--line); }

main { min-height: 55vh; padding-top: 26px; padding-bottom: 20px; }
.loading { color: var(--muted); text-align: center; padding: 80px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 3px solid var(--line); cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 900 1rem/1 var(--body); color: #2a1300; background: linear-gradient(180deg, var(--gold), var(--gold2)); box-shadow: 0 4px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.55); transition: transform .1s, filter .1s, box-shadow .1s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 5px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.55); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.wide { width: 100%; }
.btn.plain { color: var(--ink); background: var(--raise); box-shadow: 0 4px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.12); }
.btn.discord { color: #fff; background: linear-gradient(180deg, #6b77ff, #4752c4); box-shadow: 0 4px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.28); }

/* ---------- featured banner ---------- */
.feature { position: relative; isolation: isolate; display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: center; min-height: 290px; margin-top: 16px; border-radius: 28px; border: 3px solid var(--line); box-shadow: 0 7px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.35);
  background: radial-gradient(90% 150% at 18% 70%, #ff9a1f, #e4520a 45%, #8a2a06 100%) center / cover no-repeat; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: repeating-linear-gradient(115deg, rgba(255,255,255,.09) 0 26px, transparent 26px 64px); -webkit-mask: linear-gradient(250deg, #000, transparent 75%); mask: linear-gradient(250deg, #000, transparent 75%); }
.feature.pic { background-image: var(--wide); background-position: center 24%; }
.feature.pic::before { background: linear-gradient(90deg, rgba(30,10,10,.84), rgba(30,10,10,.52) 52%, rgba(30,10,10,0) 88%); -webkit-mask: none; mask: none; }
.feature-art { align-self: end; justify-self: center; width: 296px; margin-top: -36px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); animation: float 5s ease-in-out infinite; }
.feature-text { display: grid; gap: 14px; justify-items: start; padding: 34px 34px 34px 6px; }
.feature h1 { font: 400 clamp(2.3rem, 5vw, 4rem)/1 var(--display); text-shadow: 0 4px 0 var(--line), 2px 2px 0 var(--line), -2px 2px 0 var(--line); }
.feature h1 em { font-style: normal; color: var(--gold); }
.feature p { color: #fff1df; font-size: 1.1rem; font-weight: 700; max-width: 42ch; text-shadow: 0 2px 0 rgba(18,6,2,.55); }
.feature .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tile { position: relative; isolation: isolate; overflow: hidden; grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 196px; padding: 20px 22px; border-radius: 22px; text-decoration: none;
  background: radial-gradient(120% 130% at 80% 20%, var(--c1), var(--c2) 80%); border: 3px solid var(--line); box-shadow: 0 7px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.38); transition: transform .16s, filter .16s; }
.tile:nth-child(-n+2) { grid-column: span 3; min-height: 250px; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -2; background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 22px, transparent 22px 52px); -webkit-mask: linear-gradient(200deg, #000, transparent 70%); mask: linear-gradient(200deg, #000, transparent 70%); }
.tile:hover { transform: translateY(-4px); filter: brightness(1.08); }
.tile::before { content: "\203A"; position: absolute; top: 14px; left: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding-bottom: 4px; border-radius: 50%; background: var(--line); font: 900 1.7rem/1 var(--body); transition: transform .18s, background .18s, color .18s; }
.tile:hover::before { transform: translateX(5px); background: var(--gold); color: #2a1300; }
.tile img { position: absolute; right: 1%; top: 7%; height: 84%; width: auto; z-index: -1; filter: drop-shadow(0 14px 16px rgba(0,0,0,.42)); transition: transform .18s; }
.tile:hover img { transform: scale(1.07) rotate(-2deg); }
.tile h2 { font: 400 2.1rem/1 var(--display); text-shadow: 0 3px 0 var(--line), 2px 2px 0 var(--line), -2px 2px 0 var(--line); }
.tile:nth-child(-n+2) h2 { font-size: 3rem; }
.tile:nth-child(-n+2) img { top: 3%; height: 94%; }
.tile:nth-child(n+3) h2 { font-size: 1.85rem; }
.tile i { font-style: normal; }
.tile span { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 30px; background: var(--line); font-weight: 900; font-size: .9rem; white-space: nowrap; }

/* ---------- section titles ---------- */
.sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 46px 0 22px; }
.sec h2 { font: 400 1.9rem/1 var(--display); }
.sec a { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--diamond); text-decoration: none; }
.sec a svg { width: 16px; height: 16px; }

/* ---------- product art ---------- */
.art { position: relative; display: block; width: var(--s, 96px); height: var(--s, 96px); flex: none; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); }

/* ---------- cards ---------- */
.grid { --cols: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.grid.n5 { --cols: 5; }
.grid.many { --cols: 4; }
.grid.row6 { --cols: 6; }
.card { position: relative; display: flex; flex-direction: column; gap: 11px; flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); min-width: 0; padding: 0 13px 13px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, #ffbe14) 22%, var(--surface)) 0%, var(--surface) 48%); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line); transition: transform .16s, box-shadow .16s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 0 var(--line), 0 18px 34px color-mix(in srgb, var(--c, #ffbe14) 30%, transparent); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat; }
.card:hover::after { background-position: -30% 0; transition: background-position .7s; }
.card .top { display: grid; justify-items: center; gap: 8px; text-decoration: none; }
.card .stage { display: grid; place-items: center; width: 100%; padding: 18px 0 6px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #ffbe14) 46%, transparent), transparent); }
.card .art { --s: 140px; transition: transform .18s; }
.card .art img { transition: transform .22s; }
.card:hover .art img { transform: scale(1.1) rotate(-3deg); }
.grid.many .card .art { --s: 128px; }
.grid.row6 .card .art { --s: 116px; }
.card h3 { font: 400 1.45rem/1.1 var(--display); color: var(--c, var(--ink)); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 1; padding: 3px 13px; border-radius: 30px; border: 2px solid var(--line); background: linear-gradient(180deg, #ff7a2e, #e23a05); font-weight: 900; font-size: .78rem; white-space: nowrap; box-shadow: 0 3px 0 var(--line); }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; font: 900 1.4rem/1.2 var(--body); font-variant-numeric: tabular-nums; }
.price s { color: #ff7171; font-weight: 700; font-size: 1rem; }
.price small { color: var(--muted); font-weight: 700; font-size: .84rem; }
.your-price { display: block; color: var(--diamond); font-size: .82rem; font-weight: 700; }
.chat { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .38em; padding: 7px 8px; border-radius: 11px; background: #160904; border: 2px solid var(--line); font: 800 .8rem/1.45 var(--body); min-width: 0; overflow-wrap: anywhere; }
.chat .dim { color: #9d8b80; }
.list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; align-content: start; text-align: left; font-size: .93rem; }
.list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ink); }
.list svg { width: 14px; height: 14px; margin-top: 4px; color: var(--c, var(--diamond)); }
.card-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-foot .btn { flex: 1; min-width: 0; min-height: 46px; padding: 0 8px; font-size: .94rem; }
.owned { flex: 1; color: var(--muted); font-size: .86rem; align-self: center; }

/* ---------- rank multipliers ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stats div { display: grid; padding: 8px 4px 7px; border-radius: 13px; background: color-mix(in srgb, var(--c, #ffbe14) 17%, #1d0e07); border: 2px solid var(--line); }
.stats b { font: 400 1.6rem/1 var(--display); color: var(--c, var(--gold)); }
.stats span { color: var(--muted); font-weight: 700; font-size: .8rem; }
.more { display: inline-flex; align-items: center; justify-content: center; gap: 2px; margin-top: auto; padding-top: 2px; color: var(--muted); font-weight: 800; font-size: .86rem; text-decoration: none; }
.more:hover { color: var(--diamond); }
.more svg { width: 14px; height: 14px; }
.more + .card-foot { margin-top: 0; }

/* ---------- Gem cards: the pack, then the extra Gems in green ---------- */
.gemcard { --c: #4fe3ec; background: linear-gradient(180deg, color-mix(in srgb, #1fb6d6 calc(18% + var(--step, 0) * 5%), var(--surface)) 0%, var(--surface) 72%); }
.gemcard .top { gap: 0; }
.gemcard .stage { position: relative; padding: 28px 0 8px; background: radial-gradient(closest-side, color-mix(in srgb, #5ee8e0 calc(34% + var(--step, 0) * 6%), transparent), transparent); }
.gemcard .art { animation: float 4.6s ease-in-out calc(var(--step, 0) * -.7s) infinite; }
.spark { position: absolute; width: 9px; height: 9px; background: #dffffd; transform: rotate(45deg) scale(.2); opacity: 0; animation: twinkle 2.8s ease-in-out infinite; box-shadow: 0 0 10px 2px rgba(94,232,224,.8); }
.spark:nth-child(1) { left: 16%; top: 30%; }
.spark:nth-child(2) { right: 15%; top: 18%; animation-delay: -.9s; }
.spark:nth-child(3) { right: 21%; bottom: 14%; animation-delay: -1.8s; }
@keyframes twinkle { 50% { opacity: 1; transform: rotate(45deg) scale(1); } }
.gemcard h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 7px; font-size: 2.35rem; line-height: 1; color: var(--ink); text-shadow: 0 3px 0 var(--line); }
.gemcard h3.long { font-size: 1.95rem; }
.gemcard h3 em { font-style: normal; font-size: .8em; color: #7dff8f; }
.gemcard small { margin-top: 6px; color: var(--diamond); font-weight: 900; font-size: .9rem; letter-spacing: .01em; }
.ribbon { position: absolute; top: 9px; right: -7px; z-index: 1; padding: 3px 11px; border-radius: 30px; border: 2px solid var(--line); background: linear-gradient(180deg, #8dff9c, #2fce5f); color: #052a10; font-weight: 900; font-size: .82rem; white-space: nowrap; transform: rotate(7deg); box-shadow: 0 3px 0 var(--line); }
.gemcard .card-foot { padding-top: 2px; }
.card-foot .price-btn { min-height: 52px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price-btn s { font-size: .85rem; opacity: .65; }
.grid.gems { --cols: 4; row-gap: 24px; }
.grid.gems .card { justify-content: space-between; }
.grid.gems .card:nth-child(n+5) { flex-basis: calc((100% - 32px) / 3); }
.grid.gems .card .art { --s: 158px; }
.grid.gems .card:nth-child(n+5) .art { --s: 196px; }
.grid.gems .card:nth-child(n+5) h3 { font-size: 2.8rem; }
.grid.row6 .gemcard h3 { font-size: 1.75rem; }
.grid.row6 .gemcard h3.long { font-size: 1.45rem; }
.grid.row6 .card-foot .price-btn { font-size: 1.02rem; }
.grid.row6 .price-btn svg { display: none; }
.card.gemcard.best { background: linear-gradient(180deg, color-mix(in srgb, #ffbe14 42%, var(--surface)) 0%, var(--surface) 72%); box-shadow: 0 0 0 3px var(--gold), 0 6px 0 3px var(--line), 0 0 34px rgba(255,190,20,.4); }
.card.gemcard.best::after { animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 12px; border-radius: 30px; background: rgba(18,6,2,.62); border: 1px solid rgba(255,255,255,.16); font-weight: 800; font-size: .85rem; white-space: nowrap; }

/* ---------- things arrive one after another ---------- */
#content > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) backwards; }
#content > *:nth-child(2) { animation-delay: .06s; }
#content > *:nth-child(3) { animation-delay: .12s; }
#content > *:nth-child(n+4) { animation-delay: .18s; }
.grid > .card { animation: rise .45s cubic-bezier(.2,.7,.2,1) backwards; }
.grid > .card:nth-child(2) { animation-delay: .05s; }
.grid > .card:nth-child(3) { animation-delay: .1s; }
.grid > .card:nth-child(4) { animation-delay: .15s; }
.grid > .card:nth-child(5) { animation-delay: .2s; }
.grid > .card:nth-child(n+6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- category header ---------- */
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--diamond); text-decoration: none; }
.cathead { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 168px; padding: 24px 32px; margin-bottom: 30px; border-radius: 24px;
  background: radial-gradient(120% 160% at 85% 30%, var(--c1), var(--c2) 75%); border: 3px solid var(--line); box-shadow: 0 7px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.35); }
.cathead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 22px, transparent 22px 52px); -webkit-mask: linear-gradient(200deg, #000, transparent 75%); mask: linear-gradient(200deg, #000, transparent 75%); }
.cathead h1 { font: 400 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); text-shadow: 0 3px 0 var(--line), 2px 2px 0 var(--line), -2px 2px 0 var(--line); }
.cathead p { margin-top: 8px; max-width: 58ch; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.cathead img { height: 150px; width: auto; filter: drop-shadow(0 14px 16px rgba(0,0,0,.42)); }
.note-line { color: var(--muted); }
.grid-note { margin: -14px 0 28px; text-align: center; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--diamond); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- one package ---------- */
.detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.detail-art { position: sticky; top: calc(104px + env(safe-area-inset-top, 0px)); display: grid; justify-items: center; gap: 18px; padding: 30px 22px 22px; border-radius: 24px; border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line);
  background: radial-gradient(closest-side at 50% 42%, color-mix(in srgb, var(--c, #ffbe14) 50%, transparent), transparent), linear-gradient(180deg, color-mix(in srgb, var(--c, #ffbe14) 16%, var(--surface)), var(--surface)); }
.detail-art .art { width: min(290px, 100%); height: auto; aspect-ratio: 1; animation: float 5s ease-in-out infinite; }
.detail-art .chat { width: 100%; font-size: .95rem; }
.detail-body { display: grid; gap: 18px; padding: 26px 28px; border-radius: 24px; background: var(--surface); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line); min-width: 0; }
.detail .name { font: 400 clamp(2.1rem, 4.4vw, 2.9rem)/1.05 var(--display); color: var(--c, var(--ink)); }
.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; padding: 16px 18px; border-radius: 18px; background: #1d0e07; border: 3px solid var(--line); }
.buy .price { justify-content: flex-start; font-size: 2rem; }
.buy-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.buy > .input, .buy > .err { flex-basis: 100%; }
.detail .list { font-size: 1rem; gap: 9px; }
.after { display: grid; gap: 4px; color: var(--muted); }
.gift { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.gift input { width: 18px; height: 18px; accent-color: var(--gold); }

/* ---------- forms, basket, name ---------- */
.input { width: 100%; min-height: 48px; padding: 0 15px; border-radius: 12px; background: var(--bar); border: 2px solid var(--line); box-shadow: inset 0 0 0 1px var(--soft); color: var(--ink); font: 700 1rem var(--body); }
.err { color: #ff8f8f; font-weight: 700; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--line); cursor: pointer; background: var(--raise); }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(14,5,2,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(430px, 100%); display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-left: 3px solid var(--line); transform: translateX(104%); visibility: hidden; transition: transform .22s, visibility .22s; }
.drawer.open { transform: none; visibility: visible; box-shadow: -30px 0 60px rgba(0,0,0,.5); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: max(18px, env(safe-area-inset-top, 0px)) 18px 14px; border-bottom: 3px solid var(--line); }
.drawer-head h2 { font: 400 1.7rem/1 var(--display); }
.drawer-body { overflow-y: auto; padding: 16px 18px max(22px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; align-content: start; }
.line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--raise); border: 2px solid var(--line); }
.line .art { --s: 56px; }
.line b { display: block; }
.line small { color: var(--muted); }
.line-end { display: grid; justify-items: end; gap: 2px; font-weight: 900; }
.line-end s { color: #ff7171; font-weight: 700; margin-right: 6px; }
.code-row { display: flex; gap: 8px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 8px; background: var(--raise); font-size: .88rem; }
.tag button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.tag svg { width: 14px; height: 14px; }
.sum { display: flex; justify-content: space-between; font: 900 1.3rem var(--body); border-top: 2px solid var(--soft); padding-top: 14px; }
.small { color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.modal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 18px; background: rgba(14,5,2,.74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-box { position: relative; width: min(430px, 100%); max-height: 100%; overflow-y: auto; padding: 28px; border-radius: 22px; background: var(--surface); border: 3px solid var(--line); display: grid; gap: 14px; box-shadow: 0 8px 0 var(--line); }
.modal-box > .icon-btn { position: absolute; right: 14px; top: 14px; }
.modal-box h2 { font: 400 1.8rem/1.1 var(--display); padding-right: 40px; }
.modal-box form { display: grid; gap: 14px; margin-top: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bar); border: 2px solid var(--line); }
.seg button { min-height: 42px; border: 0; border-radius: 10px; background: none; cursor: pointer; font-weight: 800; color: var(--muted); }
.seg button.on { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #2a1300; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 55; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  padding: 13px 18px; border-radius: 14px; background: var(--diamond); color: #052421; font-weight: 800; box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.toast.bad { background: #ffb0a6; color: #3a0a04; }

/* ---------- questions, support, policies ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq details { border-radius: 16px; background: var(--surface); border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer; padding: 17px 18px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--muted); width: 16px; height: 16px; transition: transform .15s; }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); }
.info { max-width: 760px; display: grid; gap: 24px; padding: 30px; border-radius: 24px; background: var(--surface); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line); }
.info h1 { font: 400 clamp(2rem, 5vw, 2.6rem)/1.05 var(--display); }
.info section { display: grid; gap: 8px; }
.info h2 { font: 400 1.45rem/1.15 var(--display); color: var(--gold); }
.info p, .info li { color: var(--ink); }
.info ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.info a { color: var(--diamond); }

/* ---------- join band and footer ---------- */
.join { position: relative; isolation: isolate; display: flex; align-items: center; gap: 22px; margin-top: 66px; }
.join::before { content: ""; position: absolute; z-index: -1; inset: 0 max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px)); border-radius: 24px; border: 3px solid var(--line); background: linear-gradient(100deg, #ff7a18, #d2420a 55%, #84260a); box-shadow: 0 7px 0 var(--line), inset 0 2px 0 rgba(255,255,255,.35); }
.join > img { width: 150px; height: auto; margin: -32px 0 0 22px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.ip { display: grid; gap: 4px; justify-items: start; flex: 1; min-width: 0; background: none; border: 0; padding: 22px 0; cursor: pointer; text-align: left; }
.ip b { font: 400 clamp(1.6rem, 4vw, 2.4rem)/1.05 var(--display); text-shadow: 0 3px 0 rgba(0,0,0,.28); }
.ip span { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #ffe3d2; }
.ip span svg { width: 16px; height: 16px; }
.join > .btn { margin-right: 26px; }
footer { padding-block: 34px; color: var(--muted); font-size: .93rem; }
.foot { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.foot nav a:hover { color: var(--gold); }
.foot small { color: #a3836d; max-width: 74ch; }

.dock { display: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .grid.n5, .grid.row6 { --cols: 3; }
  .cats a img { display: none; }
}
@media (max-width: 940px) {
  .bar-in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding: 8px 10px 0; width: calc(100% - 16px); }
  .brand img { height: 46px; }
  .bar-end { margin-left: auto; }
  .cats { order: 3; flex: 1 0 100%; padding: 6px 0 8px; }
  .cats a img { display: block; }
  .grid, .grid.n5, .grid.many, .grid.row6 { --cols: 2; }
  .grid.row6 { --cols: 3; }
  .grid.gems .card:nth-child(n+5) { flex-basis: calc((100% - 16px) / 2); }
  .grid.gems .card:last-child:nth-child(odd) { flex-basis: 100%; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-art { position: static; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile, .tile:nth-child(-n+2) { grid-column: span 1; min-height: 190px; }
  .tile:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .who span { display: none; }
  .who { padding: 0 6px; }
  .cart { padding: 0 13px; }
  .cart span { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; margin-top: 50px; }
  .feature.pic { background-image: var(--tall); background-position: center top; }
  .feature.pic::before { background: linear-gradient(180deg, rgba(30,10,10,0) 18%, rgba(30,10,10,.72) 54%, rgba(30,10,10,.88)); }
  .feature-art { width: 196px; margin-top: -52px; }
  .feature-text { justify-items: center; padding: 6px 20px 26px; }
  .feature .acts { justify-content: center; }
  .grid, .grid.n5 { --cols: 1; }
  .grid.many, .grid.row6 { --cols: 2; gap: 12px; row-gap: 20px; }
  .grid.many .card, .grid.row6 .card { flex-basis: calc((100% - 12px) / 2); padding: 0 9px 9px; }
  .grid.many .card .art, .grid.row6 .card .art { --s: 96px; }
  .grid.gems { --cols: 2; gap: 12px; row-gap: 22px; }
  .grid.gems .card:nth-child(n+5) { flex-basis: calc((100% - 12px) / 2); }
  .grid.gems .card:last-child:nth-child(odd) { flex-basis: 100%; }
  .grid.gems .card .art, .grid.gems .card:nth-child(n+5) .art, .grid.row6 .card .art { --s: 104px; }
  .grid.gems .card:last-child:nth-child(odd) .art { --s: 180px; }
  .grid .gemcard h3, .grid .gemcard h3.long, .grid.gems .card:nth-child(n+5) h3 { font-size: 1.55rem; column-gap: 5px; }
  .grid .gemcard h3.long, .grid.gems .card:nth-child(n+5) h3.long { font-size: 1.28rem; column-gap: 4px; }
  .grid.gems .card:last-child:nth-child(odd) h3 { font-size: 2.4rem; }
  .gemcard small { font-size: .8rem; }
  .grid.many .stats { gap: 4px; }
  .grid.many .stats b { font-size: 1.15rem; }
  .grid.many .stats span { font-size: .72rem; }
  .ribbon { right: -4px; font-size: .72rem; padding: 2px 8px; }
  .price-btn svg { display: none; }
  .dock { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 24; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px)); min-height: 60px; padding: 0 18px; border-radius: 18px; border: 3px solid var(--line); cursor: pointer; font: 900 1rem var(--body); color: #2a1300; background: linear-gradient(180deg, var(--gold), var(--gold2)); box-shadow: 0 4px 0 var(--line), 0 14px 30px rgba(0,0,0,.5); font-variant-numeric: tabular-nums; animation: rise .3s backwards; }
  .dock b { display: inline-flex; align-items: center; gap: 4px; }
  .dock svg { width: 16px; height: 16px; }
  .has-dock footer { padding-bottom: 106px; }
  .has-dock .toast { bottom: 90px; }
  .tile, .tile:nth-child(-n+2) { min-height: 174px; padding: 13px; }
  .tile h2, .tile:nth-child(n+2) h2 { font-size: 1.35rem; }
  .tile img, .tile:nth-child(-n+2) img { height: 58%; top: 4%; right: 4%; }
  .tile i { display: none; }
  .tile:first-child h2 { font-size: 2.4rem; }
  .tile:first-child img { height: 94%; top: 3%; right: 1%; }
  .cathead { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 22px 20px 24px; }
  .cathead img { display: none; }
  .detail-body { padding: 22px 18px; }
  .buy-acts, .buy .btn { width: 100%; }
  .join { flex-direction: column; gap: 4px; text-align: center; padding-bottom: 24px; margin-top: 76px; }
  .join > img { width: 128px; margin: -38px 0 0; }
  .ip { justify-items: center; text-align: center; padding: 4px 30px 12px; }
  .join > .btn { margin: 0; }
  .info { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
