@font-face{font-family:Manrope;src:url(/assets/manrope-cyr.woff2) format("woff2");font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url(/assets/manrope-lat.woff2) format("woff2");font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20A0-20CF}
@font-face{font-family:Unbounded;src:url(/assets/unbounded-cyr.woff2) format("woff2");font-style:normal;font-weight:500 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Unbounded;src:url(/assets/unbounded-lat.woff2) format("woff2");font-style:normal;font-weight:500 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}

/* ==========================================================================
   PonchikSMP — a deck on a card table.
   Ground is dark violet felt; content lives on cream card stock.
   Frame colour = rarity: common slate, rare blue (Ponchik+), epic pink (Ponchik++),
   legendary gold (Ponchik+++ and the server card), sapphire violet, green.
   ========================================================================== */
:root {
  --felt: #17121f;
  --felt-2: #1f1829;
  --felt-3: #2b2238;
  --felt-deep: #100c16;
  --cream: #f4ede1;
  --cream-2: #eae1d1;
  --cream-3: #ddd0bb;
  --ink: #1d1724;
  --ink-2: #463d50;
  --ink-3: #6a6074;

  --on-felt: #f4ede1;
  --on-felt-2: #c9bdd3;
  --on-felt-3: #9a8fa6;

  --pink: #e8508a;
  --pink-deep: #b8255f;
  --gold: #f2b632;
  --gold-deep: #b97c0e;
  --blue: #3b7bf0;
  --violet: #8b3ff0;
  --green: #3fae5c;
  --red: #d8434c;

  --display: Unbounded, Manrope, system-ui, sans-serif;
  --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mast-h: 68px;
  --shell: 1180px;
  --gutter: 24px;

  /* Context tokens: felt by default, swapped on card stock. */
  --text: var(--on-felt);
  --text-2: var(--on-felt-2);
  --text-3: var(--on-felt-3);
  --line: #ffffff17;
  --panel: #ffffff08;
  --focus: var(--gold);
  --code-bg: #ffffff12;
  --code-fg: #ffd98a;

  --noise: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* Rarity frames. --r frame, --r-hi highlight, --r-deep shade, --r-tint art ground. */
.rarity-common, .card, .panel, .profile-head { --r: #8f8a99; --r-hi: #c4c0cc; --r-deep: #57525f; --r-tint: #ded7e6; }
.rarity-plus { --r: #3b7bf0; --r-hi: #9cc0ff; --r-deep: #1d47a8; --r-tint: #cfe0ff; }
.rarity-plus2 { --r: #e8508a; --r-hi: #ffadc9; --r-deep: #a4215a; --r-tint: #ffd6e5; }
.rarity-plus3, .rarity-legend { --r: #f2b632; --r-hi: #ffe7a3; --r-deep: #a86a08; --r-tint: #ffe9b8; }
.rarity-sapphire { --r: #8b3ff0; --r-hi: #cfa8ff; --r-deep: #521ca3; --r-tint: #e6d6ff; }
.rarity-green { --r: #3fae5c; --r-hi: #9de3ae; --r-deep: #1e6e35; --r-tint: #d3f0da; }

/* Card stock context. */
.face, .card, .panel, .insert, .document-body, .profile-head {
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--ink-3);
  --line: #1d172424;
  --panel: #1d17240b;
  --focus: var(--pink-deep);
  --code-bg: #1d172412;
  --code-fg: #5b23b0;
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mast-h) + 16px); -webkit-text-size-adjust: 100%; scrollbar-color: #3d3249 var(--felt-deep); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--noise) 0 0 / 160px 160px, radial-gradient(120% 70% at 20% -10%, #2c2140 0%, transparent 60%), radial-gradient(80% 60% at 100% 30%, #23182f 0%, transparent 70%), var(--felt);
  background-blend-mode: soft-light, normal, normal, normal;
  color: var(--text);
  font: 500 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--pink);
}
main { flex: 1; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code {
  font-family: var(--mono); font-size: .86em; font-weight: 600;
  color: var(--code-fg); background: var(--code-bg); padding: .12em .42em; border-radius: 5px; overflow-wrap: anywhere;
}
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.ui-icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.17em; }
.muted { color: var(--text-3); }
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mc-green { color: var(--green); }
.mc-red { color: var(--red); }

.skip-link {
  position: absolute; z-index: 50; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px;
  background: var(--gold); color: var(--ink); font-weight: 800; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--felt-3);
  --btn-fg: var(--on-felt);
  --btn-edge: #00000066;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px 2px; border: 0; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 800 14px/1 var(--body); letter-spacing: .005em;
  cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -3px 0 var(--btn-edge), 0 6px 14px -8px #000a;
  transition: transform .18s var(--ease), filter .16s ease, box-shadow .18s var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--btn-edge), 0 2px 6px -4px #000a; }
.btn.lg { min-height: 52px; padding: 0 24px 3px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.primary { --btn-bg: var(--pink); --btn-fg: #1d0a13; --btn-edge: var(--pink-deep); }
.btn.ghost { --btn-bg: transparent; --btn-edge: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--text); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--text-3); filter: none; }
.btn .ui-icon { transition: transform .2s var(--ease); }
.btn:hover .ui-icon { transform: translateX(2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 800; font-size: 14px; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.link-arrow:hover { color: var(--pink); }
.face .link-arrow:hover, .card .link-arrow:hover, .panel .link-arrow:hover { color: var(--pink-deep); }
.link-arrow .ui-icon { transition: transform .2s var(--ease); }
.link-arrow:hover .ui-icon { transform: translateX(3px); }

/* ---------- Header: the table edge ---------- */
.mast {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--felt-deep) 86%, transparent);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 #ffffff10, 0 10px 24px -18px #000;
}
.mast-in { height: var(--mast-h); display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 17px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; color: var(--on-felt); }
.mark { width: 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 3px 4px #0008); }
.mast-nav { display: flex; gap: 4px; }
.mast-nav a { position: relative; padding: 10px 12px; color: var(--on-felt-2); font-size: 14px; font-weight: 700; border-radius: 8px; transition: color .15s, background-color .15s; }
.mast-nav a:hover { color: var(--on-felt); background: #ffffff0b; }
.mast-nav a[aria-current] { color: var(--on-felt); }
.mast-nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--gold); }
.account {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 10px; max-width: 220px; border-radius: 10px;
  background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 800;
  box-shadow: 0 0 0 3px #8f8a99, 0 8px 16px -10px #000;
  transition: transform .18s var(--ease), box-shadow .18s;
}
.account:hover, .account[aria-current="page"] { transform: translateY(-1px) rotate(-1deg); box-shadow: 0 0 0 3px var(--gold), 0 10px 18px -10px #000; }
.account.is-user { padding-left: 5px; }
.account .ui-icon { color: var(--ink-3); }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 7px;
  background: var(--pink); color: #1d0a13; font: 800 13px/1 var(--display); text-transform: uppercase;
}

/* ==========================================================================
   The card
   ========================================================================== */
.tcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --foil: 0;
  position: relative; isolation: isolate; display: flex;
  padding: 8px; border-radius: 18px;
  background: linear-gradient(155deg, var(--r-hi) 0%, var(--r) 28%, var(--r) 62%, var(--r-deep) 100%);
  box-shadow: inset 0 1px 0 #ffffff70, inset 0 -2px 0 #00000040, 0 2px 4px -1px #0008, 0 24px 44px -20px #000d;
  list-style: none;
}
.face {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 11px;
  background: var(--noise) 0 0 / 140px 140px, linear-gradient(180deg, #f8f2e8, var(--cream) 40%, #efe6d6);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px #00000014, inset 0 2px 0 #ffffffb0;
}
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.tc-name { font: 800 20px/1.05 var(--display); letter-spacing: -.02em; color: var(--ink); }
.tc-cost { width: 40px; height: 40px; flex: none; image-rendering: pixelated; filter: drop-shadow(0 2px 2px #0005); }
.tc-badge, .tc-cost-price {
  flex: none; padding: 5px 10px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 800 12px/1 var(--body); letter-spacing: .02em;
}
.tc-cost-price { padding: 7px 12px; font: 800 15px/1 var(--display); letter-spacing: -.01em; background: var(--r-deep); color: #fff; box-shadow: inset 0 1px 0 #ffffff50; font-variant-numeric: tabular-nums; }
.tc-art {
  position: relative; display: block; overflow: hidden; border-radius: 7px;
  background: radial-gradient(70% 70% at 50% 45%, #fff 0%, var(--r-tint) 70%);
  box-shadow: 0 0 0 2px var(--r-deep), inset 0 0 0 1px #0000001a;
}
.tc-art img { width: 100%; height: 100%; object-fit: cover; }
.tc-type {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 6px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--r) 20%, var(--cream));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r-deep) 35%, transparent);
  color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.3;
}
.tc-type span + span { color: var(--ink-2); font-weight: 700; }
.tc-text { color: var(--ink-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.tc-text p + p { margin-top: 6px; }
.tc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tc-stats > div { display: grid; gap: 1px; padding: 7px 9px 8px; border-radius: 7px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.tc-stats dt { color: var(--ink-3); font-size: 11.5px; font-weight: 700; }
.tc-stats dd { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc-stats .is-on dd, .tc-stats .is-online dd { color: #1f7a3a; }
.tc-stats .is-off dd, .tc-stats .is-offline dd { color: #b02a35; }
.tc-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .02em; }

/* Holographic foil on rare and above: follows the pointer, rests as a faint sheen. */
.tcard:is(.rarity-plus, .rarity-plus2, .rarity-plus3, .rarity-legend)::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), #ffffffa0 0%, #ffffff00 38%),
    linear-gradient(115deg, #0000 20%, #ff7bd5 34%, #7bf2ff 44%, #fff27b 54%, #9b7bff 64%, #0000 78%) calc(var(--mx) * 1.2 - 10%) 50% / 220% 220%;
  mix-blend-mode: soft-light;
  opacity: calc(.42 + var(--foil) * .45);
  transition: opacity .3s ease;
}

/* Resting holo band on rare+ art windows: rarity reads in a still frame too. */
.tcard:is(.rarity-plus, .rarity-plus2, .rarity-plus3, .rarity-legend) .tc-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, #0000 28%, #ffffff55 40%, #ff9bdc40 46%, #8fe9ff40 52%, #fff39040 58%, #0000 70%);
  mix-blend-mode: screen;
}
.checkout-foot { margin-top: 14px; }

/* Pointer tilt (set by site.js on [data-tilt]). */
[data-tilt] { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); will-change: transform; }
[data-tilt].is-tilting { transition: transform .08s linear; }

/* ---------- Hero: the server card on the table ---------- */
.table-hero { padding-block: 36px 88px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.tcard-hero { flex-direction: column; padding: 10px; border-radius: 22px; transform-origin: 50% 80%; }
.tcard-hero { rotate: -2deg; }
.tcard-hero .face { gap: 10px; padding: 14px; border-radius: 13px; }
.tcard-hero .tc-name { font-size: clamp(30px, 3.4vw, 42px); }
.tcard-hero .tc-cost { width: 46px; height: 46px; }
.tcard-hero .tc-art { aspect-ratio: 16 / 8.2; }
.tcard-hero .tc-art img { object-position: 60% 55%; }
.tc-lead { color: var(--ink); font: 800 17px/1.25 var(--display); letter-spacing: -.01em; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

.ip-strip {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  width: 100%; min-height: 64px; padding: 9px 9px 11px 16px; border: 0; border-radius: 12px; text-align: left;
  background: linear-gradient(180deg, #ffd463, var(--gold) 55%, #e8a51c);
  color: var(--ink); font: inherit; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff6, inset 0 -4px 0 var(--gold-deep), 0 8px 18px -10px #a86a08;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .15s;
}
.ip-strip:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ip-strip:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff6, inset 0 -1px 0 var(--gold-deep), 0 3px 8px -6px #a86a08; }
.ip-label { grid-column: 1; font-size: 12px; font-weight: 800; color: #5a3c05; line-height: 1.2; }
.ip-value { grid-column: 1; font: 800 clamp(15px, 4.2vw, 21px)/1.25 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.ip-action {
  grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 12px; border-radius: 9px;
  background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 800;
  transition: background-color .2s;
}
.ip-icon { display: grid; }
.ip-icon .ui-icon { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .18s ease, transform .25s var(--ease); }
.ip-icon .ui-icon:last-child { opacity: 0; transform: scale(.5); }
.ip-strip.copied .ip-action { background: #1f7a3a; }
.ip-strip.copied .ip-icon .ui-icon:first-child { opacity: 0; transform: scale(.5); }
.ip-strip.copied .ip-icon .ui-icon:last-child { opacity: 1; transform: none; }
.copy-result { position: absolute; left: 0; right: 0; top: calc(100% + 12px); min-height: 22px; color: var(--on-felt); font-size: 14px; font-weight: 700; text-align: center; }

.hero-side { display: grid; justify-items: start; align-content: center; }
.hero-claim { font: 800 clamp(32px, 4.2vw, 58px)/1.02 var(--display); letter-spacing: -.035em; color: var(--on-felt); text-wrap: balance; max-width: 14ch; }
.hero-desc { margin-top: 20px; max-width: 44ch; color: var(--on-felt-2); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.hand { position: relative; display: flex; height: 262px; width: 400px; max-width: 100%; margin-top: 36px; }
.hand-card {
  position: absolute; bottom: 0; left: calc(var(--i) * 104px + 10px); width: 168px; height: 232px;
  display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 2px;
  padding: 10px 8px 12px; border-radius: 12px;
  background: linear-gradient(180deg, #f8f2e8, var(--cream)) padding-box, linear-gradient(155deg, var(--r-hi), var(--r) 40%, var(--r-deep)) border-box;
  border: 6px solid transparent;
  box-shadow: 0 16px 28px -14px #000e;
  transform-origin: 50% 130%; rotate: calc((var(--i) - 1) * 12deg); translate: 0 var(--lift, 0px);
  transition: rotate .4s var(--ease), translate .4s var(--ease);
}
.hand-card:nth-child(1) { --i: 0; --lift: 10px; }
.hand-card:nth-child(2) { --i: 1; z-index: 1; }
.hand-card:nth-child(3) { --i: 2; z-index: 2; --lift: 10px; }
.hand-card img { align-self: center; width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 6px #0004); }
.hand-card b { color: var(--ink); font: 800 16px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.hand-card b i { font-style: normal; color: var(--r-deep); }
.hand-card em { font-style: normal; color: var(--ink-2); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hand:hover .hand-card, .hand:focus-visible .hand-card { rotate: calc((var(--i) - 1) * 17deg); translate: calc((var(--i) - 1) * 18px) -14px; }
.hero-side .link-arrow { margin-top: 28px; }

/* The deal: one authored entrance. The server card turns over, then the hand fans out. */
@media (prefers-reduced-motion: no-preference) {
  .tcard-hero { animation: deal-flip 1s var(--ease) .05s backwards; }
  .hand-card { animation: deal-fan .7s var(--ease) backwards; animation-delay: calc(.55s + var(--i) * .09s); }
  .hero-side > :not(.hand) { animation: deal-rise .7s var(--ease) .35s backwards; }
}
@keyframes deal-flip { from { opacity: 0; transform: perspective(1100px) translateY(40px) rotateY(-70deg) rotateZ(-8deg); } }
@keyframes deal-fan { from { opacity: 0; rotate: 0deg; translate: calc((1 - var(--i)) * 104px) 40px; } }
@keyframes deal-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section-intro h1, .section-intro h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.035em; color: var(--on-felt); }
.section-lead { margin-top: 14px; max-width: 56ch; color: var(--on-felt-2); font-size: 17px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }

/* How to join: the rules insert from a booster box. */
.connect { padding-top: 8px; }
.insert {
  position: relative; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 28px 32px; border-radius: 16px;
  background: var(--noise) 0 0 / 140px 140px, var(--cream);
  background-blend-mode: soft-light, normal;
  box-shadow: 0 2px 4px -1px #0008, 0 26px 50px -26px #000;
  rotate: -.4deg;
}
.insert h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); letter-spacing: -.03em; }
.insert-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insert-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-content: start; padding: 4px 22px; }
.insert-steps li + li { border-left: 2px dashed #1d172430; }
.insert-steps strong { align-self: center; font-size: 16px; line-height: 1.25; color: var(--ink); }
.insert-steps li > span:last-child { grid-column: 2; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.insert-steps code { white-space: nowrap; }
.insert-steps a { color: var(--pink-deep); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.step-n {
  grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font: 800 14px/1 var(--display);
}

/* What awaits: a location card and a hand of command cards. */
.about { padding-top: 120px; }
.about .section-intro { margin-bottom: 40px; }
.about-table { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.tcard-wide { margin: 0; rotate: -1deg; }
.tcard-wide .tc-art { aspect-ratio: 16 / 9; }
.tcard-wide .tc-name { font-size: 22px; }
.command-hand { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tcard-cmd { transition: transform .3s var(--ease), rotate .3s var(--ease); }
.tcard-cmd:nth-child(1) { rotate: 1.5deg; }
.tcard-cmd:nth-child(2) { rotate: -1deg; }
.tcard-cmd:nth-child(3) { rotate: -1.5deg; }
.tcard-cmd:nth-child(4) { rotate: 1deg; }
.tcard-cmd .face { gap: 8px; padding: 10px; }
.tcard-cmd .tc-head { min-height: 0; }
.tcard-cmd .tc-name { font-size: 17px; }
.tc-glyph {
  display: grid; place-items: center; height: 78px; color: var(--r-deep);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--r) 30%, transparent) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(70% 90% at 50% 50%, #fff 0%, var(--r-tint) 75%);
}
.tc-sprite { display: grid; place-items: center; height: 78px; }
.tc-sprite img { width: 60px; height: 60px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 4px #0004); }
.tc-crop { height: 78px; }
.tc-crop-ah img { object-position: 38% 62%; transform: scale(1.6); }
.tc-crop-rtp img { object-position: 70% 40%; transform: scale(1.4); }
.tc-glyph .ui-icon { width: 38px; height: 38px; stroke-width: 1.8; filter: drop-shadow(0 2px 0 #fff); }
.tcard-cmd .tc-type { padding: 4px 8px; }
.tcard-cmd .tc-type code { background: none; padding: 0; color: var(--r-deep); font-size: 14px; font-weight: 800; }
.tcard-cmd .tc-text { font-size: 13.5px; }
@media (hover: hover) {
  .tcard-cmd:hover { rotate: 0deg; transform: translateY(-6px); z-index: 1; }
}

/* ---------- Shop ---------- */
.shop { padding-block: 128px 112px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--felt-deep); box-shadow: inset 0 0 0 1px #ffffff12; }
.tabs a { padding: 9px 16px; border-radius: 8px; color: var(--on-felt-2); font-size: 14px; font-weight: 700; transition: color .15s, background-color .15s; }
.tabs a:hover { color: var(--on-felt); background: var(--felt-3); }
.shop-block + .shop-block { margin-top: 80px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.block-head :is(h2, h3) { font-size: clamp(22px, 2.4vw, 28px); color: var(--on-felt); letter-spacing: -.03em; }
.block-head p { color: var(--on-felt-2); font-size: 15px; max-width: 62ch; }

.rank-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tcard-rank .face { gap: 12px; padding: 14px; }
.rank-name { font-size: clamp(22px, 2.3vw, 28px); }
.rank-name span { color: var(--r-deep); }
.tcard-rank .tc-art { display: grid; place-items: center; aspect-ratio: 16 / 10; }
.tcard-rank .tc-art img { width: 58%; height: auto; max-height: 86%; object-fit: contain; filter: drop-shadow(0 10px 12px #0005); transition: transform .4s var(--ease); }
.tc-stats-big dd { font: 800 26px/1.1 var(--display); letter-spacing: -.03em; }
.tc-stats-big dt { order: 2; }
.tc-stats-big > div { padding: 10px 10px 9px; text-align: left; }
.tcard-rank .btn { margin-top: auto; min-height: 48px; font-size: 15px; }
@media (hover: hover) {
  .tcard-rank:hover .tc-art img { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
}

/* Sapphire booster packs: crimped foil packets. */
.pack-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.pack {
  --crimp: 9px;
  position: relative; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 6px;
  min-height: 210px; padding: calc(var(--crimp) + 16px) 12px calc(var(--crimp) + 14px);
  background:
    linear-gradient(115deg, #0000 30%, #ffffff38 45%, #0000 60%) 0 0 / 260% 100%,
    repeating-linear-gradient(90deg, #ffffff0a 0 2px, #0000 2px 7px),
    linear-gradient(165deg, #b98bff 0%, #7b37e0 38%, #5a1fb8 72%, #3e1385 100%);
  color: #fff; text-align: center;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 51% repeat-x;
  filter: drop-shadow(0 16px 16px #0009);
  transition: transform .35s var(--ease), background-position .7s var(--ease);
}
.pack::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--crimp) + 4px); height: 2px; background: #ffffff40; }
.pack::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--crimp) + 4px); height: 2px; background: #00000030; }
.pack-art { align-self: center; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle, #ffffff55, #ffffff00 70%); }
.pack-art img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 6px #0006); transition: transform .4s var(--ease); }
.pack-name { font: 800 14px/1.2 var(--display); letter-spacing: -.02em; text-shadow: 0 2px 0 #2c0b66; text-wrap: balance; }
.pack-price { padding: 6px 12px; border-radius: 8px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 3px 0 #2c0b66; rotate: -2deg; }
@media (hover: hover) {
  .pack:hover { transform: translateY(-8px) rotate(-1.5deg); background-position: 100% 0, 0 0, 0 0; }
  .pack:hover .pack-art img { transform: scale(1.12) rotate(8deg); }
}
.pack:focus-visible { outline: none; filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 3px var(--gold)) drop-shadow(0 16px 16px #0009); }

/* Unmute / unban: tokens. */
.token-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.token {
  --r: #e8508a; --r-deep: #a4215a;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 78px; padding: 10px 12px 10px 10px; border-radius: 16px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 0 0 6px var(--r), 0 0 0 7px var(--r-deep), 0 20px 30px -18px #000;
  margin: 7px; transition: transform .3s var(--ease);
}
.token-art { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffd6e5 80%); box-shadow: inset 0 0 0 2px var(--r-deep); color: var(--r-deep); }
.token-art .ui-icon { width: 22px; height: 22px; }
.token-name { font: 800 16px/1.15 var(--display); letter-spacing: -.02em; }
.token-price { padding: 7px 12px; border-radius: 999px; background: var(--r-deep); color: #fff; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .token:hover { transform: translateY(-4px) rotate(-1deg); } }

/* ==========================================================================
   Stock cards for tasks: login, checkout, captcha, errors, cabinet.
   ========================================================================== */
.center { display: grid; place-items: center; padding-block: 56px 104px; }
.card, .panel, .profile-head {
  position: relative; width: 100%;
  background: var(--noise) 0 0 / 140px 140px, var(--cream);
  background-blend-mode: soft-light, normal;
  border-radius: 16px;
  box-shadow: 0 0 0 8px var(--r), 0 0 0 9px var(--r-deep), 0 30px 60px -30px #000;
}
.card { padding: 28px; }
.form-card, .captcha-card { max-width: 448px; }
.card-head { text-align: center; margin-bottom: 22px; }
.card-mark { width: 60px; height: 60px; margin: 0 auto 14px; image-rendering: pixelated; filter: drop-shadow(0 3px 3px #0004); }
.card-head h1 { font-size: 30px; color: var(--ink); letter-spacing: -.03em; }
.card-head p { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.card-foot { margin-top: 18px; text-align: center; color: var(--ink-3); font-size: 13px; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.field input {
  width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 10px;
  background: #fffaf2; color: var(--ink); font: 700 16px var(--body);
  box-shadow: inset 0 0 0 2px #cdbfa8, inset 0 3px 0 #0000000d;
  transition: box-shadow .15s ease;
}
.field input:hover { box-shadow: inset 0 0 0 2px #a99a84, inset 0 3px 0 #0000000d; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--pink-deep), 0 0 0 4px #e8508a33; }
.field input:user-invalid { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px #d8434c26; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pink-deep); }
.fine { display: block; color: var(--text-3); font-size: 12.5px; text-align: center; }
.fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: .2em; }
.fine a:hover { color: var(--text); }

.notice {
  display: flex; gap: 10px; align-items: flex-start; margin-block: 16px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--pink) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 45%, transparent);
  color: var(--text); font-size: 14px; font-weight: 600;
}
.notice::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--pink); color: #1d0a13; font-size: 12px; font-weight: 800; line-height: 1; }

.help { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.help strong { display: block; font-size: 14px; }
.help p { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.help a { color: var(--pink-deep); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }

/* Checkout */
.checkout .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--ink-3); font-size: 14px; font-weight: 700; }
.checkout .back:hover { color: var(--ink); }
.checkout-item { display: flex; align-items: center; gap: 16px; }
.checkout-item h1 { font-size: clamp(24px, 5vw, 30px); color: var(--ink); letter-spacing: -.03em; }
.checkout-item .tc-type { margin-top: 8px; display: inline-flex; padding: 4px 10px; font-size: 12.5px; }
.checkout-art { display: grid; place-items: center; flex: none; width: 80px; height: 80px; border-radius: 10px; background: radial-gradient(70% 70% at 50% 45%, #fff 0%, var(--r-tint) 75%); box-shadow: 0 0 0 2px var(--r-deep); color: var(--r-deep); }
.checkout-art img { max-width: 64px; max-height: 64px; object-fit: contain; filter: drop-shadow(0 4px 5px #0004); }
.checkout-art .ui-icon { width: 30px; height: 30px; }
.summary { display: grid; margin-block: 20px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
.summary div + div { border-top: 1px dashed var(--line); }
.summary dt { color: var(--text-3); }
.summary dd { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.summary a { color: var(--pink-deep); text-decoration: underline; }
.summary .total dd { font: 800 20px/1.1 var(--display); letter-spacing: -.02em; }
.checkout > .btn { margin-top: 8px; }
.checkout > .fine { margin-top: 12px; }

/* Rank change window */
.modal { max-width: min(460px, calc(100vw - 48px)); margin: auto; padding: 26px; border: 0; overflow: visible; --r: #f2b632; --r-hi: #ffe7a3; --r-deep: #a86a08; --r-tint: #ffe9b8; }
.modal:not(:modal) { position: static; margin: 24px 0 16px; }
.modal::backdrop { background: #0b0810d9; backdrop-filter: blur(3px); }
.modal h2 { font-size: 21px; letter-spacing: -.03em; }
.modal > p { margin-top: 10px; color: var(--ink-2); font-size: 14px; text-wrap: pretty; }
.modal .summary { margin-block: 16px 12px; }
.modal .fine { text-align: left; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1 1 140px; }

/* Captcha */
.captcha-card { text-align: center; }
#captcha-widget:not([hidden]) { display: grid; justify-content: center; min-height: 65px; margin-top: 20px; }
#captcha-widget iframe { display: block; }
#captcha-retry { margin-top: 16px; }
.feedback { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; text-wrap: pretty; }
#captcha-status:empty { display: none; }
.feedback[data-state="error"] { color: #8f1c26; background: #d8434c14; box-shadow: inset 0 0 0 1px #d8434c66; }
.feedback[data-state="success"] { color: #17602d; background: #3fae5c1a; box-shadow: inset 0 0 0 1px #3fae5c80; }
.captcha-diagnostics { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); text-align: left; }
.captcha-diagnostics summary { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-3); font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; border-radius: 6px; }
.captcha-diagnostics summary::-webkit-details-marker { display: none; }
.captcha-diagnostics summary:hover { color: var(--ink); }
.captcha-diagnostics summary .ui-icon { transition: transform .25s var(--ease); }
.captcha-diagnostics[open] summary .ui-icon { transform: rotate(180deg); }
.captcha-diagnostics[open] summary { margin-bottom: 8px; }
.captcha-ip { display: block; width: fit-content; max-width: 100%; margin-top: 6px; padding: 4px 10px; font-size: 15px; }

.ipcheck { --tone: var(--ink-3); margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ipcheck.inline { margin-top: 4px; }
.ipcheck[data-state="match"] { --tone: #1f7a3a; }
.ipcheck[data-state="account"] { --tone: #8a5a00; }
.ipcheck[data-state="mismatch"], .ipcheck[data-state="expired"], .ipcheck[data-state="error"] { --tone: #b02a35; }
.ipcheck-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.ipcheck-side { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 10px; background: #fffaf2; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.ipcheck-side strong { font-size: 14px; }
.ipcheck-side span { color: var(--ink-3); font-size: 12px; }
.ipcheck-side .captcha-ip { margin: 0; padding: 2px 6px; font-size: 12px; }
.ipcheck-icon, .ipfix svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ipcheck-icon { color: var(--pink-deep); }
.ipcheck-link { position: relative; display: grid; place-items: center; height: 100%; }
.ipcheck-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed var(--tone); }
.ipcheck-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 3px var(--tone); color: var(--tone); font-size: 20px; font-weight: 800; line-height: 1; }
.ipcheck-mark::after { content: "…"; }
.ipcheck[data-state="match"] .ipcheck-mark::after, .ipcheck[data-state="account"] .ipcheck-mark::after { content: "✓"; }
.ipcheck[data-state="mismatch"] .ipcheck-mark::after, .ipcheck[data-state="expired"] .ipcheck-mark::after { content: "✕"; }
.ipcheck[data-state="error"] .ipcheck-mark::after, .ipcheck[data-state="nolink"] .ipcheck-mark::after { content: "?"; }
.ipcheck[data-state="loading"] .ipcheck-mark, .ipcheck[data-state="idle"] .ipcheck-mark { animation: ipcheck-pulse 1s infinite ease-in-out; }
@keyframes ipcheck-pulse { 50% { opacity: .4; } }
.ipcheck-title { margin-top: 14px; color: var(--tone); font-size: 15px; font-weight: 800; text-align: center; text-wrap: balance; }
.ipcheck [data-for] { display: none; }
.ipcheck[data-state="idle"] [data-for~="idle"], .ipcheck[data-state="loading"] [data-for~="loading"],
.ipcheck[data-state="match"] [data-for~="match"], .ipcheck[data-state="account"] [data-for~="account"],
.ipcheck[data-state="mismatch"] [data-for~="mismatch"], .ipcheck[data-state="expired"] [data-for~="expired"],
.ipcheck[data-state="nolink"] [data-for~="nolink"], .ipcheck[data-state="error"] [data-for~="error"] { display: block; }
.ipcheck-note { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #f2b63226; box-shadow: inset 0 0 0 1px #f2b63280; color: var(--ink-2); font-size: 13px; }
.ipfix { list-style: none; counter-reset: fix; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ipfix li { counter-increment: fix; position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 6px 10px; border-radius: 10px; background: #fffaf2; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; }
.ipfix li::before { content: counter(fix); position: absolute; top: 5px; left: 8px; color: var(--pink-deep); font-size: 12px; font-weight: 800; }
.ipfix svg { color: var(--pink-deep); }
.ipcheck-or { margin: 10px 0 8px; color: var(--ink-3); font-size: 12px; font-weight: 800; text-align: center; }
.ipcheck-hint { margin-top: 8px; color: var(--ink-3); font-size: 13px; text-align: center; text-wrap: pretty; }

/* Captcha walkthrough: a looping mock of the widget being clicked, then the game. */
#captcha-intro { --demo-t: 7s; }
.demo { position: relative; height: 160px; margin-top: 4px; overflow: hidden; border-radius: 10px; background: #1b1622; box-shadow: 0 0 0 2px var(--r-deep), inset 0 2px 8px #0008; text-align: left; }
.demo-browser, .demo-game { position: absolute; inset: 10px; display: flex; flex-direction: column; overflow: hidden; border-radius: 7px; background: #1b1b1f; box-shadow: 0 0 0 1px #00000080, 0 10px 24px -10px #000; }
.demo-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; background: #2c2c33; color: #a5a5b0; font-size: 11px; font-weight: 700; }
.demo-bar i { width: 7px; height: 7px; border-radius: 50%; background: #55555f; }
.demo-bar span { margin-left: 8px; padding: 1px 10px; background: #1b1b1f; border-radius: 9px; white-space: nowrap; overflow: hidden; }
.demo-page { flex: 1; display: grid; place-items: center; }
.demo-widget { position: relative; display: flex; align-items: center; gap: 12px; width: min(260px, 100% - 24px); height: 58px; padding: 0 14px; border-radius: 4px; background: #232323; box-shadow: inset 0 0 0 1px #4a4a4a; color: #e8e8e8; font-size: 13px; }
.demo-box { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 3px; background: #2c2c2c; box-shadow: inset 0 0 0 2px #c8c8c8; animation: demo-box var(--demo-t) infinite; }
.demo-box svg { width: 20px; height: 20px; fill: none; stroke: #2fd06f; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; animation: demo-check var(--demo-t) infinite; }
.demo-label { display: grid; }
.demo-label > span { grid-area: 1 / 1; }
.demo-ok { color: #2fd06f; font-weight: 800; opacity: 0; animation: demo-ok var(--demo-t) infinite; }
.demo-ask { animation: demo-ask var(--demo-t) infinite; }
.demo-cursor { position: absolute; left: 30px; top: 30px; width: 20px; height: 24px; fill: #fff; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(1px 2px 1px #0008); animation: demo-cursor var(--demo-t) infinite var(--ease); }
.demo-ripple { position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold); opacity: 0; animation: demo-ripple var(--demo-t) infinite; }
.demo-game { transform: translateX(110%); animation: demo-game var(--demo-t) infinite var(--ease); }
.demo-world { position: relative; flex: 1; overflow: hidden; background: linear-gradient(#6fa8ff, #a9cbff 70%); }
.demo-sun { position: absolute; right: 16%; top: 12px; width: 22px; height: 22px; background: #fff6b0; box-shadow: 0 0 0 4px #fff6b055; }
.demo-ground { position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(#5dab3a 0 9px, #7a5534 9px); box-shadow: inset 0 3px 0 #79c84f; }
.demo-ground::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 17px, #00000022 17px 18px); }
.demo-chat { position: absolute; left: 8px; bottom: 8px; display: grid; gap: 1px; padding: 5px 8px; background: #000000a8; color: #fff; font: 700 12px/1.3 var(--mono); text-shadow: 1px 1px 0 #3f3f3f; }
.demo-chat b { color: #55ff55; text-shadow: 1px 1px 0 #153f15; }
.demo-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.demo-steps li { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 6px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; animation: demo-step var(--demo-t) infinite; }
.demo-steps .step-n { grid-row: auto; width: 26px; height: 26px; font-size: 12px; }
.demo-steps li:nth-child(2) { animation-name: demo-step-2; }
.demo-steps li:nth-child(3) { animation-name: demo-step-3; }

@keyframes demo-cursor { 0% { transform: translate(150px, 50px); } 20%, 26% { transform: translate(0, 0); } 23% { transform: translate(0, 0) scale(.86); } 40%, 100% { transform: translate(40px, 34px); opacity: 1; } }
@keyframes demo-ripple { 0%, 22% { opacity: 0; transform: scale(.6); } 23% { opacity: 1; } 32%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes demo-box { 0%, 23% { box-shadow: inset 0 0 0 2px #c8c8c8; } 24%, 100% { box-shadow: inset 0 0 0 2px #2fd06f; } }
@keyframes demo-check { 0%, 26% { stroke-dashoffset: 24; } 34%, 100% { stroke-dashoffset: 0; } }
@keyframes demo-ask { 0%, 31% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes demo-ok { 0%, 31% { opacity: 0; } 32%, 100% { opacity: 1; } }
@keyframes demo-game { 0%, 50% { transform: translateX(110%); } 58%, 94% { transform: none; } 100% { transform: translateX(110%); } }
@keyframes demo-step { 0%, 30% { background: #f2b63233; box-shadow: inset 0 0 0 2px var(--gold); } 34%, 100% { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); } }
@keyframes demo-step-2 { 0%, 30%, 56%, 100% { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); } 34%, 52% { background: #f2b63233; box-shadow: inset 0 0 0 2px var(--gold); } }
@keyframes demo-step-3 { 0%, 52% { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); } 56%, 96% { background: #f2b63233; box-shadow: inset 0 0 0 2px var(--gold); } }

/* Points at the real widget once it is on screen. */
#captcha-widget:not([hidden])::before { content: "Нажми на квадратик ниже"; justify-self: center; margin-bottom: 8px; padding: 5px 12px; border-radius: 8px; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 800; animation: demo-nudge 1.2s infinite ease-in-out; }
@keyframes demo-nudge { 50% { transform: translateY(4px); } }

.demo.done { height: auto; margin-top: 16px; padding: 10px; }
.demo.done .demo-game { position: relative; inset: auto; height: 150px; transform: none; animation: none; }
.demo.done figcaption { margin-top: 10px; color: var(--cream); font-size: 14px; font-weight: 700; text-align: center; }
kbd { padding: 1px 7px; border-radius: 5px; background: var(--cream); color: var(--ink); box-shadow: inset 0 -2px 0 #0003, inset 0 0 0 1px #0002; font: 800 12px/1.6 var(--body); }

/* Error / empty state */
.empty-state { max-width: 460px; text-align: center; }
.empty-state .big-code { display: grid; place-items: center; margin-bottom: 18px; font: 900 84px/1 var(--display); letter-spacing: -.05em; color: var(--pink-deep); }
.big-code .ui-icon { width: 56px; height: 56px; }
.empty-state h1 { font-size: 26px; color: var(--ink); letter-spacing: -.03em; }
.empty-state p { margin-top: 8px; color: var(--ink-3); }
.empty-state .btn { margin-top: 22px; }

/* ---------- Cabinet ---------- */
.cabinet { padding-block: 48px 104px; }
.profile-head { --r: #e8508a; --r-hi: #ffadc9; --r-deep: #a4215a; --r-tint: #ffd6e5; display: flex; align-items: center; gap: 22px; padding: 22px; }
.profile-avatar {
  display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 12px;
  background: radial-gradient(70% 70% at 50% 40%, #fff, var(--r-tint) 75%); box-shadow: 0 0 0 2px var(--r-deep);
  color: var(--r-deep); font: 900 38px/1 var(--display); text-transform: uppercase;
}
.profile-identity { min-width: 0; display: grid; gap: 8px; justify-items: start; }
.profile-head h1 { font-size: clamp(28px, 4.6vw, 46px); color: var(--ink); overflow-wrap: anywhere; letter-spacing: -.035em; }
.profile-identity .tc-type { gap: 14px; }
.profile-head form { margin-left: auto; }

.cabinet-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: start; margin-top: 36px; }
.panel { padding: 22px; }
.panel > h2 { font-size: 19px; letter-spacing: -.03em; margin-bottom: 16px; color: var(--ink); }
.panel > .link-arrow { margin-top: 20px; }
.status-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.status-card img { width: 60px; height: 60px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 5px #0004); }
.status-card strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.status-card span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 14px; }
.status-card .rank-name { font: 800 22px/1.1 var(--display); }
.status-card .rank-name span { display: inline; margin: 0; font-size: inherit; color: var(--r-deep); }
.status-card[data-state="active"] { background: radial-gradient(90% 120% at 0% 50%, #fff, var(--r-tint) 80%); box-shadow: 0 0 0 2px var(--r-deep); }
.status-card.tier-plus { --r: #3b7bf0; --r-deep: #1d47a8; --r-tint: #cfe0ff; }
.status-card.tier-plus2 { --r: #e8508a; --r-deep: #a4215a; --r-tint: #ffd6e5; }
.status-card.tier-plus3 { --r: #f2b632; --r-deep: #a86a08; --r-tint: #ffe9b8; }
.renewal { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.renewal h3 { font-size: 15px; letter-spacing: -.02em; }
.renewal .summary { margin-block: 12px; }
.renewal .muted { margin-top: 8px; font-size: 14px; }
.renewal form { margin: 0; }

.purchase-list { list-style: none; display: grid; }
.purchase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 4px; }
.purchase + .purchase { border-top: 1px dashed var(--line); }
.purchase-main strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.purchase-main small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.purchase-price { font: 800 16px/1.3 var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.purchase-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.purchase-tags .link-arrow { margin-left: auto; font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--panel); color: var(--ink-3); font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag:is([data-payment="paid"], [data-delivery="done"], [data-payment="refunded"]) { color: #17602d; background: #3fae5c1f; box-shadow: inset 0 0 0 1px #3fae5c66; }
.tag:is([data-payment="pending"], [data-payment="creating"], [data-delivery="queued"], [data-payment="refund_pending"]) { color: #7a4f00; background: #f2b6322e; box-shadow: inset 0 0 0 1px #f2b63280; }
.tag:is([data-payment="canceled"], [data-delivery="unavailable"], [data-payment="review"], [data-delivery="review"]) { color: #8f1c26; background: #d8434c1a; box-shadow: inset 0 0 0 1px #d8434c66; }
.empty { display: grid; justify-items: start; gap: 6px; padding: 20px; border-radius: 12px; border: 2px dashed var(--line); }
.empty .btn { margin-top: 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Documents: the rulebook ---------- */
.document { padding-block: 48px 104px; }
.document > h1 { max-width: 20ch; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.035em; color: var(--on-felt); }
.document > p { margin-top: 12px; max-width: 70ch; color: var(--on-felt-2); font-size: 17px; }
.document > p a { color: var(--gold); }
.document-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 36px; }
.document-nav { position: sticky; top: calc(var(--mast-h) + 20px); }
.document-nav ul { list-style: none; display: grid; gap: 2px; }
.document-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--on-felt-2); font-size: 14px; font-weight: 700; line-height: 1.35; transition: color .15s, background-color .15s; }
.document-nav a:hover { color: var(--on-felt); background: #ffffff0d; }
.document-body {
  max-width: 78ch; padding: clamp(24px, 4vw, 52px); border-radius: 16px;
  background: var(--noise) 0 0 / 140px 140px, var(--cream); background-blend-mode: soft-light, normal;
  box-shadow: 0 2px 4px -1px #0008, 0 30px 60px -30px #000;
  line-height: 1.75; color: var(--ink-2); font-size: 16.5px;
}
.document-body > :first-child { margin-top: 0; }
.document-body h1 { font-size: clamp(24px, 3vw, 34px); color: var(--ink); letter-spacing: -.03em; }
.document-body h2 { margin: 44px 0 12px; padding-top: 28px; border-top: 2px dashed var(--line); font-size: clamp(20px, 2.4vw, 25px); color: var(--ink); line-height: 1.2; letter-spacing: -.03em; }
.document-body > h2:first-child { padding-top: 0; border: 0; }
.document-body h2:target { color: var(--pink-deep); }
.document-body h3 { margin: 24px 0 8px; font-size: 17px; color: var(--ink); }
.document-body p, .document-body ul, .document-body ol { margin-block: 12px; }
.document-body ul, .document-body ol { padding-left: 1.3em; }
.document-body li { margin-block: 6px; }
.document-body li::marker { color: var(--pink-deep); font-weight: 800; }
.document-body strong { color: var(--ink); }
.document-body a { color: var(--pink-deep); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Footer ---------- */
.foot { margin-top: auto; background: var(--felt-deep); box-shadow: 0 -1px 0 #ffffff10; color: var(--on-felt-2); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 32px; padding-block: 52px; align-items: start; }
.foot-brand .brand { font-size: 16px; }
.foot-brand p { margin-top: 12px; font-size: 13px; }
.foot-brand .foot-note { margin-top: 6px; color: var(--on-felt-3); font-size: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a { transition: color .15s; }
.foot-links a:hover { color: var(--on-felt); text-decoration: underline; text-underline-offset: .25em; }
.foot-links a[aria-current] { color: var(--on-felt); }
.foot-legal { padding-block: 18px 28px; border-top: 1px solid #ffffff10; color: var(--on-felt-3); font-size: 12.5px; line-height: 1.6; }
.foot-legal a { color: var(--on-felt-2); }
.foot-legal a:hover { color: var(--on-felt); text-decoration: underline; text-underline-offset: .2em; }
.requisites { display: grid; margin-block: 16px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.requisites div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding: 10px 14px; font-size: 15px; }
.requisites div + div { border-top: 1px dashed var(--line); }
.requisites dt { color: var(--ink-3); font-weight: 700; }
.requisites dd { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 480px) { .requisites div { grid-template-columns: 1fr; gap: 2px; } }
.checkout-desc { margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.checkout .form .fine { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .insert { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 1080px) {
  .pack-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rank-row { gap: 22px; }
  .about-table { grid-template-columns: 1fr; }
  .tcard-wide { max-width: 640px; }
  .command-hand { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-links { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .tcard-hero { max-width: 520px; width: 100%; justify-self: center; }
  .hero-side { justify-items: center; text-align: center; }
  .hero-claim { max-width: 18ch; }
  .rank-row { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .token-row { grid-template-columns: 1fr 1fr; }
  .insert { grid-template-columns: 1fr; gap: 18px; }
  .insert-steps { grid-template-columns: 1fr; gap: 14px; }
  .insert-steps li { padding: 0; }
  .insert-steps li + li { border-left: 0; border-top: 2px dashed #1d172430; padding-top: 14px; }
  .command-hand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cabinet-grid { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: 1fr; gap: 24px; }
  .document-nav { position: static; }
  .document-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --mast-h: 108px; }
  .mast-in { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-block: 12px 6px; }
  .mast-nav { grid-column: 1 / -1; grid-row: 2; margin-inline: -12px; overflow-x: auto; scrollbar-width: none; }
  .mast-nav a { padding-inline: 10px; white-space: nowrap; }
  .account { max-width: 46vw; height: 38px; }
  .table-hero { padding-block: 24px 64px; }
  .tcard-hero { padding: 7px; border-radius: 18px; }
  .tcard-hero .face { padding: 10px; gap: 9px; }
  .tcard-hero .tc-art { aspect-ratio: 16 / 9.5; }
  .tc-stats > div { padding: 6px 7px 7px; }
  .tc-stats dd { font-size: 13px; }
  .ip-strip { padding-left: 12px; }
  .ip-verb { display: none; }
  .ip-action { padding: 0 13px; }
  .hero-desc { font-size: 16px; }
  .hand { width: 300px; height: 196px; }
  .hand-card { width: 120px; height: 168px; left: calc(var(--i) * 84px + 6px); }
  .tcard-hero { rotate: -1deg; width: calc(100% - 8px); }
  .hand-card img { width: 58px; height: 58px; }
  .hand-card b { font-size: 12.5px; }
  .insert { padding: 22px 20px; rotate: 0deg; }
  .about { padding-top: 88px; }
  .command-hand { gap: 14px; }
  .tcard-cmd .tc-text { font-size: 13px; }
  .tc-glyph, .tc-sprite, .tc-crop { height: 64px; }
  .shop { padding-block: 96px 80px; }
  .section-head { flex-direction: column; align-items: stretch; margin-bottom: 24px; }
  .tabs { width: 100%; }
  .tabs a { flex: 1; text-align: center; padding-inline: 8px; }
  .shop-block + .shop-block { margin-top: 56px; }
  .pack-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pack { min-height: 196px; }
  .token-row { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .center { padding-block: 32px 72px; }
  .profile-head { flex-wrap: wrap; padding: 18px; gap: 16px; }
  .profile-avatar { width: 64px; height: 64px; font-size: 28px; }
  .profile-head form { margin-left: 0; width: 100%; }
  .profile-head .btn { width: 100%; }
  .panel { padding: 18px; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; padding-block: 36px; }
  .foot-links { grid-row: auto; flex-direction: column; }
  .document-nav ul { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .brand { font-size: 15px; }
  .mark { width: 28px; height: 28px; }
  .command-hand { grid-template-columns: 1fr; }
  .tc-stats dt { font-size: 11px; }
  .mast-nav a { padding-inline: 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-tilt] { transform: none !important; }
  .demo-cursor { transform: translate(6px, 6px); }
  .demo-ask { opacity: 0; }
  .demo-ok { opacity: 1; }
}
