:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#faf9f5;color:#141413}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* layout: one homepage - a slim header, a hero that holds only the name, the IP and one picture,
   four big doors (shop / Discord / guide / leaderboard), the three worlds in one row, a quiet footer.
   light = the clean white look, dark = the near-black look. With no choice made the page follows the
   device setting; the sun/moon button sets data-mode and is remembered. */
:root {
  --bg: #f5f6f2; --surface: #ffffff; --surface-2: #eef0ea; --line: #e2e5dc;
  --fg: #171a16; --dim: #5a6157; --faint: #858b81;
  --primary: #2f7d3b; --on-primary: #ffffff;
  --t-shop: #c77a12; --t-discord: #5865f2; --t-guide: #1f8fb8; --t-rank: #2f7d3b;
  --online: #2f9a45;
  --shadow: 0 1px 2px rgba(23, 26, 22, .06), 0 8px 24px -12px rgba(23, 26, 22, .18);
  --radius: 16px; --radius-lg: 22px;
  --font: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  --display-weight: 600;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-mode="light"]) {
    --bg: #0b0c0e; --surface: #15171b; --surface-2: #1c1f24; --line: #26292f;
    --fg: #f2f3f5; --dim: #9ba1a9; --faint: #6f757e;
    --primary: #7fd68f; --on-primary: #0b0c0e;
    --t-shop: #ffb547; --t-discord: #7c87ff; --t-guide: #5cc8f0; --t-rank: #7fd68f;
    --online: #7fd68f; --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]:not([data-mode="light"]), :root[data-mode="dark"] {
  --bg: #0b0c0e; --surface: #15171b; --surface-2: #1c1f24; --line: #26292f;
  --fg: #f2f3f5; --dim: #9ba1a9; --faint: #6f757e;
  --primary: #7fd68f; --on-primary: #0b0c0e;
  --t-shop: #ffb547; --t-discord: #7c87ff; --t-guide: #5cc8f0; --t-rank: #7fd68f;
  --online: #7fd68f; --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* site background: a Minecraft-style scene - day sky, square sun, flat blocky clouds, hazy far range, stone mountains with snow caps,
   and a low grass/dirt block strip with oak trees (night version in dark mode). Everything sits on a 16px block grid. */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(#6d9eff 0%, #8fb6ff 45%, #b9d2ff 78%, #d7e6ff 100%); }
.scene .sun { position: absolute; top: 190px; right: 4%; width: 64px; height: 64px; background: #fffbe0; box-shadow: 0 0 0 10px rgba(255, 246, 190, .45), 0 0 60px 20px rgba(255, 240, 170, .35); }
.scene .stars { position: absolute; inset: 0 0 40% 0; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22600%22%20height%3D%22400%22%20shape-rendering%3D%22crispEdges%22%3E%3Cg%20fill%3D%22%23fff%22%20fill-opacity%3D%22.7%22%3E%3Crect%20x%3D%22474%22%20y%3D%22313%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22141%22%20y%3D%2295%22%20width%3D%223%22%20height%3D%222%22/%3E%3Crect%20x%3D%22346%22%20y%3D%22257%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%2282%22%20y%3D%22171%22%20width%3D%223%22%20height%3D%223%22/%3E%3Crect%20x%3D%2241%22%20y%3D%22372%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22462%22%20y%3D%22371%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22172%22%20y%3D%22121%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22135%22%20y%3D%22259%22%20width%3D%223%22%20height%3D%222%22/%3E%3Crect%20x%3D%22392%22%20y%3D%22382%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22209%22%20y%3D%22345%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%22431%22%20y%3D%2244%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22406%22%20y%3D%22143%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22204%22%20y%3D%22362%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%2256%22%20y%3D%22193%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%2224%22%20y%3D%22121%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%22114%22%20y%3D%22305%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22592%22%20y%3D%22101%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%228%22%20y%3D%2242%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%2217%22%20y%3D%22256%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%22508%22%20y%3D%22275%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%2270%22%20y%3D%22203%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%2295%22%20y%3D%22358%22%20width%3D%223%22%20height%3D%222%22/%3E%3Crect%20x%3D%22176%22%20y%3D%22311%22%20width%3D%223%22%20height%3D%222%22/%3E%3Crect%20x%3D%2255%22%20y%3D%22138%22%20width%3D%223%22%20height%3D%223%22/%3E%3Crect%20x%3D%22152%22%20y%3D%22381%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%22589%22%20y%3D%2217%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%22412%22%20y%3D%22121%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%22517%22%20y%3D%2222%22%20width%3D%223%22%20height%3D%222%22/%3E%3Crect%20x%3D%22534%22%20y%3D%22302%22%20width%3D%223%22%20height%3D%223%22/%3E%3Crect%20x%3D%2288%22%20y%3D%22177%22%20width%3D%222%22%20height%3D%223%22/%3E%3Crect%20x%3D%22374%22%20y%3D%22231%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22203%22%20y%3D%22294%22%20width%3D%223%22%20height%3D%222%22/%3E%3Crect%20x%3D%22388%22%20y%3D%22311%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22443%22%20y%3D%2257%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22454%22%20y%3D%22138%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22314%22%20y%3D%22322%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22529%22%20y%3D%2228%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22573%22%20y%3D%22219%22%20width%3D%222%22%20height%3D%222%22/%3E%3Crect%20x%3D%22254%22%20y%3D%22289%22%20width%3D%223%22%20height%3D%222%22/%3E%3Crect%20x%3D%22435%22%20y%3D%22331%22%20width%3D%222%22%20height%3D%222%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 600px 400px; display: none; }
.scene .clouds { position: absolute; left: 0; right: 0; top: 160px; height: 110px; background: url("/assets/img/32e58e9721.svg") 0 0 / 1600px 110px repeat-x; animation: clouds 200s linear infinite; }
.land .far, .land .mtn, .land .ground { position: absolute; left: 0; right: 0; background-repeat: repeat-x; background-position: 0 100%; }
.land .far { height: 144px; bottom: 40px; background-image: url("/assets/img/10bda51401.svg"); background-size: 640px 144px; }
.land .mtn { height: 160px; bottom: 24px; background-image: url("/assets/img/9cb5b8ef0d.svg"); background-size: 768px 160px; }
.land .ground { height: 256px; bottom: 0; left: 0 !important; right: 0 !important; }
.scene::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 25%, transparent); }
.land .far, .land .mtn, .land .ground { left: -400px; right: -400px; }

.land .mob { position: absolute; left: 0; bottom: 0; overflow: visible; will-change: transform; }
.land .mob.walking .la, .land .mob.walking .lb { animation: mob-leg .45s steps(1) infinite; }
.land .mob .lb { animation-delay: -.22s !important; }
.land .mob .hd { transform-box: fill-box; transform-origin: 0 100%; transition: transform .35s ease; }
.land .mob.graze .hd { transform: translate(2px, 6px); }
.land .mob-chicken.graze .hd { animation: mob-peck .9s steps(2) infinite; transform: none; }
.land .fx { position: absolute; width: 4px; height: 4px; left: 0; bottom: 0; animation: fx-pop .6s ease-out forwards; }
@keyframes fx-pop { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.land .placed { position: absolute; width: 16px; height: 16px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 3px 0 rgba(255,255,255,.18); animation: placed-in .15s ease-out; transition: opacity .6s; }
@keyframes placed-in { from { transform: scale(.6); } }
.land .mob .arm { transform-box: fill-box; transform-origin: 50% 8%; }
.land .mob.act .arm { animation: arm-swing .35s ease-in-out infinite; }
@keyframes arm-swing { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(-110deg); } }
.land .mob.walking .arm { animation: arm-walk .45s steps(1) infinite; }
@keyframes arm-walk { 0% { transform: rotate(-18deg); } 50% { transform: rotate(18deg); } }
.land .tag, .land .bubble { position: absolute; left: 0; bottom: 0; white-space: nowrap; font: 600 11px/1 var(--font); pointer-events: none; }
.land .tag { color: #fff; background: rgba(0,0,0,.45); padding: 3px 5px 2px; border-radius: 0; }
.land .bubble { color: #1a1a1a; background: #fff; padding: 5px 8px 4px; box-shadow: 0 2px 0 rgba(0,0,0,.2); transform-origin: 12px 100%; animation: bubble-in .28s cubic-bezier(.2, 1.4, .4, 1); }
.land .bubble.out { animation: bubble-out .2s ease-in forwards; }
.land .bubble::after { content: ""; position: absolute; left: 8px; bottom: -4px; width: 6px; height: 4px; background: #fff; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(.2); } }
@keyframes bubble-out { to { opacity: 0; transform: translateY(6px) scale(.6); } }
.land .heart { position: absolute; left: 0; bottom: 0; width: 8px; height: 7px; animation: heart-up 1s ease-out forwards;
  background: linear-gradient(#e33 0 0) 1px 0/2px 1px no-repeat, linear-gradient(#e33 0 0) 5px 0/2px 1px no-repeat, linear-gradient(#e33 0 0) 0 1px/8px 3px no-repeat, linear-gradient(#e33 0 0) 1px 4px/6px 1px no-repeat, linear-gradient(#e33 0 0) 2px 5px/4px 1px no-repeat, linear-gradient(#e33 0 0) 3px 6px/2px 1px no-repeat; }
@keyframes heart-up { to { transform: translate(var(--hx), var(--hy)); opacity: 0; } }
.land .mob.hurt { filter: drop-shadow(0 0 0 #f00) sepia(1) saturate(6) hue-rotate(-30deg); }
.land .mob.swell { animation: swell .2s steps(2) infinite; }
@keyframes swell { 50% { filter: brightness(2.2); } }
.land .egg { position: absolute; left: 0; bottom: 0; width: 5px; height: 6px; background: #f3ead7; border-radius: 40%; transition: opacity .6s; }
.land .terrain { position: absolute; left: 0; bottom: 0; image-rendering: pixelated; }
.land .drop { position: absolute; left: 0; bottom: 0; width: 6px; height: 6px; box-shadow: inset -1px -1px 0 rgba(0,0,0,.25); }
.land .arrow { position: absolute; left: 0; bottom: 0; width: 12px; height: 2px; background: linear-gradient(90deg, #ddd 0 3px, #7a5a36 3px 10px, #bbb 10px); transform-origin: 50% 50%; }
.land .mob.spawn { animation: mob-spawn .35s ease-out; }
@keyframes mob-spawn { from { opacity: 0; } }
.land .mob { transition: opacity .3s; }
.land .mob.burning { filter: sepia(.6) saturate(2.5) brightness(1.1); }
@keyframes mob-leg { 0% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes mob-peck { 0% { transform: translate(0, 0); } 50% { transform: translate(2px, 6px); } }
:root[data-dark] .land .mob, :root[data-dark] .land .placed { filter: brightness(.55) saturate(.8); }
/* the landscape sits at the very bottom of every page (after the footer), so content never floats over it */
.land { position: relative; height: 230px; overflow: hidden; margin-top: -40px; pointer-events: none; }
.land .far, .land .mtn, .land .ground { position: absolute; left: 0; right: 0; background-repeat: repeat-x; background-position: 0 100%; }
.land::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 22%, transparent); pointer-events: none; }
.land .ground { z-index: 1; }
footer { position: relative; z-index: 1; }
@keyframes clouds { to { background-position: -1600px 0; } }
:root[data-dark] .scene { background: linear-gradient(#04060f 0%, #0a1128 60%, #121c3c 100%); }
:root[data-dark] .scene .sun { width: 44px; height: 44px; background: #e8ecf5; box-shadow: inset -10px -8px 0 rgba(0,0,0,.12), 0 0 40px 10px rgba(200, 215, 255, .18); }
:root[data-dark] .scene .stars { display: block; }
:root[data-dark] .scene .clouds { opacity: .1; }
:root[data-dark] .land .far { background-image: url("/assets/img/dd15e7d1c9.svg"); }
:root[data-dark] .land .mtn { background-image: url("/assets/img/4b26135b1c.svg"); }
:root[data-dark] .land .ground .terrain { filter: brightness(.45) saturate(.75); }
:root[data-dark] .scene::after { background: color-mix(in srgb, var(--bg) 20%, transparent); }
@media (max-width: 860px) { .scene .sun { top: 150px; right: 8%; width: 40px; height: 40px; }
  .land .far { background-size: 384px 86px; height: 86px; bottom: 24px; } .land .mtn { background-size: 461px 96px; height: 96px; bottom: 14px; } }
body { position: relative; isolation: isolate; margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* mockup note - not part of the design */
.mock { position: relative; z-index: 20; background: #2b2b2b; color: #eee; font: 13px/1.4 system-ui, sans-serif; }
.mock .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-block: 8px; }
.mock b { font-weight: 600; }
.mock .note { color: #aaa; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: transform .25s ease; }
/* header slides away while scrolling down and comes back as soon as you scroll up */
.top.away { transform: translateY(-100%); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-weight: var(--display-weight); font-size: 22px; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.brand i { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); display: inline-block; box-shadow: inset -6px -6px 0 rgba(0,0,0,.18); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--dim); font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); background: var(--surface-2); }
.mode { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); padding: 0; }
.mode svg { width: 20px; height: 20px; }
.mode .moon { display: none; }
:root[data-dark] .mode .sun { display: none; }
:root[data-dark] .mode .moon { display: block; }
.login { padding: 9px 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); font-size: 15px; }
.menu-btn { display: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 8px 12px; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 64px 48px; }
.hero-text { min-width: 0; display: grid; gap: 18px; justify-items: start; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px color-mix(in srgb, var(--online) 22%, transparent); }
h1 { margin: 0; font-size: clamp(44px, 7vw, 72px); line-height: 1.02; font-weight: var(--display-weight); letter-spacing: -.5px; text-wrap: balance; }
.lead { margin: 0; color: var(--dim); font-size: 18px; max-width: 34ch; text-wrap: pretty; }
.ip { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 100%; }
.ip .addr { padding: 12px 18px; display: grid; min-width: 0; }
.ip .addr small { color: var(--faint); font-size: 12px; letter-spacing: .4px; }
.ip .addr span { font-size: 20px; font-weight: 500; letter-spacing: .3px; }
.ip button { border: 0; background: var(--primary); color: var(--on-primary); padding: 0 20px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.versions { color: var(--faint); font-size: 14px; }
.hero-img { margin: 0; order: 2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 570 / 321; max-width: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* doors */
.doors .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 8px 40px; }
.door { --c: var(--fg); display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; min-width: 0; }
.door:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.door .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.door .ico svg { width: 22px; height: 22px; }
.door b { font-size: 18px; font-weight: 600; }
.door span { color: var(--dim); font-size: 14px; line-height: 1.5; }
.door.shop { --c: var(--t-shop); } .door.discord { --c: var(--t-discord); } .door.guide { --c: var(--t-guide); } .door.rank { --c: var(--t-rank); }

/* worlds */
.worlds .wrap { padding-block: 8px 64px; display: grid; gap: 16px; }
.world-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.world { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); min-width: 0; }
.world .blk { grid-row: span 2; width: 36px; height: 36px; border-radius: 8px; }
.world b { font-weight: 600; }
.world span { color: var(--dim); font-size: 14px; }
.blk.build { background: linear-gradient(#7fbf4d 0 35%, #8a5a33 35%); }
.blk.res { background: repeating-linear-gradient(45deg, #7d7d7d 0 6px, #6c6c6c 6px 12px); box-shadow: inset 0 0 0 9px #7d7d7d, inset 0 0 0 13px #4fd6d0; }
.blk.spawn { background: linear-gradient(135deg, #e7c46a, #b98a2e); }

/* join page */
.page-head .wrap { padding-block: 48px 8px; display: grid; gap: 10px; }
.page-title { font-size: clamp(34px, 5vw, 48px); }
.editions .wrap { padding-block: 20px 40px; display: grid; gap: 16px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; justify-self: start; max-width: 100%; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--dim); padding: 8px 16px; border-radius: 9px; font-size: 15px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); font-weight: 500; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 18px; }
.steps b { font-size: 18px; font-weight: 500; }
.steps span { color: var(--dim); font-size: 15px; min-width: 0; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
code { font-family: inherit; font-weight: 500; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.mini-copy { border: 1px solid var(--line); background: transparent; color: var(--primary); border-radius: 6px; padding: 1px 10px; font-size: 14px; }
.port { color: var(--dim); }
.sec-title { margin: 0; font-size: 24px; font-weight: 600; }
.first .wrap { padding-block: 8px 40px; display: grid; gap: 16px; }
.first-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.first-item { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); min-width: 0; }
.first-item b { font-size: 17px; font-weight: 500; }
.first-item span { color: var(--dim); font-size: 15px; }
.help .wrap { padding-block: 8px 64px; display: grid; gap: 10px; max-width: 820px; margin-inline: 0; }
.help details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.help summary { cursor: pointer; padding: 14px 0; font-size: 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.help details[open] summary::after { content: "−"; }
.help p { margin: 0 0 16px; color: var(--dim); }

/* supporters */
.sup .wrap { padding-block: 20px 8px; }
.sup-card { border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, #e3b341 45%, var(--line)); background:
  radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, #e3b341 14%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow); padding: 26px; display: grid; gap: 18px; }
.sup-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; }
.sup-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.sup-toggle button { border: 0; background: transparent; color: var(--dim); padding: 6px 14px; border-radius: 9px; font-size: 14px; }
.sup-toggle button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); font-weight: 500; }
.sup-head h2 { margin: 0; font-size: 24px; font-weight: 600; }
.sup-head p { margin: 2px 0 0; color: var(--dim); }
.sup-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.sup-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.sp { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.sp.s1 { order: 2; } .sp.s2 { order: 1; } .sp.s3 { order: 3; }
.sp img { width: 100%; max-width: 92px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
.sp.s1 img { max-width: 118px; }
.sp .step { width: 100%; border-radius: 10px 10px 0 0; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; }
.sp.s1 .step { height: 70px; background: linear-gradient(#e3b341, #b8871a); }
.sp.s2 .step { height: 50px; background: linear-gradient(#b9c0c8, #8b939c); }
.sp.s3 .step { height: 36px; background: linear-gradient(#d08a52, #a2622e); }
.sp b { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.sp .amt { font-weight: 600; color: var(--t-shop); font-variant-numeric: tabular-nums; }
.sup-list { list-style: none; margin: 0; padding: 0; display: grid; align-self: stretch; align-content: center; }
.sup-list li { display: grid; grid-template-columns: 28px 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 2px; border-top: 1px solid var(--line); }
.sup-list li:first-child { border-top: 0; }
.sup-list .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.sup-list .amt { font-weight: 500; font-variant-numeric: tabular-nums; }
.mini { width: 100%; max-width: 24px; height: auto; image-rendering: pixelated; justify-self: center; }
.lb-list .mini { max-width: 22px; }
.pod img { width: 72px; height: auto; image-rendering: pixelated; }
.pod.p1 img { width: 92px; }

/* leaderboard */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lb .wrap { padding-block: 20px 64px; display: grid; gap: 18px; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lb-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.lb-tabs button { border: 0; background: transparent; color: var(--dim); padding: 7px 16px; border-radius: 9px; font-size: 15px; }
.lb-tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); font-weight: 500; }
.lb-search input { font: inherit; font-size: 15px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; width: 240px; max-width: 100%; }
.lb-found { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--fg); font-size: 15px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.pod { display: grid; justify-items: center; gap: 6px; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; min-width: 0; }
.pod.p1 { order: 2; padding-block: 28px; border-color: color-mix(in srgb, #e3b341 60%, var(--line)); }
.pod.p2 { order: 1; } .pod.p3 { order: 3; }
.pod .place { font-weight: 600; font-size: 14px; color: var(--dim); }
.pod.p1 .place { color: #c99a1f; } :root[data-dark] .pod.p1 .place { color: #e3b341; }
.head { width: 56px; height: 56px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 22px; color: #fff; background: var(--hc); box-shadow: inset -6px -6px 0 rgba(0,0,0,.18); }
.pod.p1 .head { width: 72px; height: 72px; font-size: 28px; }
.pod b { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.pod .val { font-size: 20px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.lb-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lb-list li { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; }
.lb-list li + li { border-top: 1px solid var(--line); }
.lb-list .n { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.lb-list .head { width: 32px; height: 32px; font-size: 14px; border-radius: 6px; box-shadow: inset -4px -4px 0 rgba(0,0,0,.18); }
.lb-list .nm { overflow-wrap: anywhere; }
.lb-list .val { font-weight: 500; font-variant-numeric: tabular-nums; }
.hit { background: color-mix(in srgb, var(--primary) 12%, transparent); }

/* guide */
.g-toc a { display: block; text-align: left; color: var(--dim); border-radius: 10px; padding: 9px 14px; font-size: 15px; }
.g-toc a:hover { background: var(--surface-2); color: var(--fg); }
.g-search input { font: inherit; font-size: 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; width: 100%; margin-bottom: 6px; }
.guide-main { gap: 36px; }
.g-sec { display: grid; gap: 12px; scroll-margin-top: 60px; }
.g-sec h2 { margin: 0; font-size: 22px; font-weight: 600; }
.g-sec > p { margin: 0; color: var(--dim); max-width: 70ch; }
.g-steps { margin: 0; padding: 0; list-style: none; counter-reset: gs; display: grid; gap: 8px; }
.g-steps li { counter-increment: gs; display: grid; grid-template-columns: 30px 1fr; gap: 0 12px; }
.g-steps li::before { content: counter(gs); grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.g-steps b { font-weight: 500; }
.g-steps span { color: var(--dim); font-size: 15px; }
.g-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.g-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.g-table th { text-align: left; font-weight: 500; color: var(--faint); font-size: 13px; padding: 10px 16px; background: var(--surface-2); }
.g-table td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.g-table td:first-child { white-space: nowrap; width: 1%; }
.g-table code { white-space: pre; }
.g-empty { color: var(--dim); }

/* shop page */
.shop-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-block: 24px 64px; align-items: start; }
.cats { position: sticky; top: 84px; display: grid; gap: 4px; }
.cats button { text-align: left; border: 0; background: transparent; color: var(--dim); border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.cats button:hover { background: var(--surface-2); color: var(--fg); }
.cats button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); font-weight: 500; box-shadow: inset 3px 0 0 var(--primary); }
.shop-main { display: grid; gap: 40px; min-width: 0; }
.shop-sec { display: grid; gap: 16px; }
.shop-sec header h2 { margin: 0; font-size: 22px; font-weight: 600; }
.shop-sec header p { margin: 2px 0 0; color: var(--dim); font-size: 15px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prod { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.prod-art { height: 96px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 22%, var(--surface)); border-bottom: 1px solid var(--line); }
.prod-art i { width: 44px; height: 44px; border-radius: 9px; background: var(--pc); box-shadow: inset -7px -7px 0 rgba(0,0,0,.18), inset 5px 5px 0 rgba(255,255,255,.25); }
.prod-body { display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; padding: 16px; }
.prod-body > :nth-child(2) { align-self: start; }
.prod h3 { margin: 0; font-size: 18px; font-weight: 600; }
.prod p { margin: 0; color: var(--dim); font-size: 14px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-foot { flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--fg); font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--line); }
.qty button:disabled { color: var(--faint); cursor: default; background: transparent; }
.qty input { width: 40px; height: 34px; border: 0; border-inline: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: center; font: inherit; font-size: 15px; font-weight: 500; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-unit { padding: 0 10px 0 8px; color: var(--dim); font-size: 13px; }
.per-day { color: var(--fg); font-weight: 500; white-space: nowrap; }
.price { font-weight: 600; font-size: 20px; white-space: nowrap; }
.buy { border: 0; background: var(--primary); color: var(--on-primary); border-radius: 10px; padding: 10px; font-weight: 600; font-size: 15px; width: 100%; }
.prod.rank .prod-art { background: color-mix(in srgb, var(--pc) 16%, var(--surface)); }
.prod.rank .prod-art, :root[data-dark] .prod.rank .prod-art { height: 120px; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--surface-2); }
.badge { --px: 3px; --edge: color-mix(in srgb, var(--pc) 50%, #000); position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 0;
  color: var(--bt); font-family: var(--font); font-size: 19px; font-weight: 600; letter-spacing: 2.5px; line-height: 1.1; background: var(--pc);
  /* pixel frame: four offset shadows give a 1-px-thick border with the corners knocked out, plus a Minecraft-button bevel inside */
  box-shadow: 0 calc(var(--px) * -1) 0 0 var(--edge), 0 var(--px) 0 0 var(--edge), calc(var(--px) * -1) 0 0 0 var(--edge), var(--px) 0 0 0 var(--edge),
    inset var(--px) var(--px) 0 0 rgba(255,255,255,.4), inset calc(var(--px) * -1) calc(var(--px) * -1) 0 0 rgba(0,0,0,.22);
  margin: var(--px); animation: badge-float 3.2s steps(4, end) infinite; animation-delay: var(--d, 0s); }
.badge::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 12px; background: rgba(255,255,255,.45); transform: translateX(-30px); animation: badge-shine 4.8s steps(12, end) infinite; animation-delay: var(--d, 0s); }
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; opacity: .9; }
@keyframes badge-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes badge-shine { 0%, 60% { transform: translateX(-30px); } 85%, 100% { transform: translateX(200px); } }
.pips { display: flex; gap: 4px; margin-top: 6px; }
.pips i { width: 10px; height: 6px; background: color-mix(in srgb, var(--pc) 22%, var(--line)); }
.pips i.on { background: var(--pc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.rank-perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; align-content: start; font-size: 14px; }
.rank-perks li { position: relative; padding-left: 16px; }
.rank-perks li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--pc); }
.rank-perks li.inh { color: var(--dim); }
.perm { color: var(--dim); font-size: 14px; }
.omega { color: var(--primary); }
.mystery { padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 8px; }
.mystery h3 { margin: 0; font-size: 17px; font-weight: 600; }
.mystery p { margin: 0; color: var(--dim); font-size: 14px; }
.mystery ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mystery li { display: grid; gap: 2px; }
.mys-plate { justify-self: start; background: #16181c; border-radius: 8px; padding: 4px 12px; }
.mys { font-weight: 700; letter-spacing: 2px; font-size: 17px; color: var(--a); background: linear-gradient(90deg, var(--a), var(--b), var(--a), var(--b), var(--a)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: mys-slide 3s linear infinite; }
@keyframes mys-slide { to { background-position: 100% 0; } }
.mystery li b { font-weight: 500; font-size: 14px; color: var(--dim); }
.prod.featured { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 84px minmax(0, 1fr) 200px; }
.prod.featured .prod-art { height: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.feat-omega { font-size: 38px; font-weight: 600; line-height: 1; color: var(--primary); }
.feat-main { padding: 14px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.feat-main h3 { margin: 0; font-size: 18px; font-weight: 600; }
.feat-main p { margin: 0; color: var(--dim); font-size: 14px; }
.feat-perks { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 18px; font-size: 13px; }
.feat-perks li { position: relative; padding-left: 16px; }
.feat-perks li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--pc); }
.feat-buy { padding: 14px 16px; display: grid; gap: 6px; align-content: start; justify-items: start; background: var(--surface-2); border-left: 1px solid var(--line); }
.buy-label { color: var(--dim); font-size: 14px; }
.price.big { font-size: 22px; line-height: 1.1; margin-top: 2px; }
.per-day-line { color: var(--dim); font-size: 14px; }
.feat-buy .buy { margin-top: 2px; padding: 8px; }
.fine { color: var(--faint); font-size: 12px; }
.perk-list { font-size: 14px; color: var(--dim); }
.perk-list summary { cursor: pointer; color: var(--primary); font-weight: 500; }
.perk-list ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }

/* login */
.auth .wrap { padding-block: 56px 72px; display: grid; justify-items: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 30px; }
.auth-card .lead { font-size: 15px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; color: var(--dim); }
.field input { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%; }
.field input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--primary); font-size: 14px; padding: 6px 8px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.auth-row label { display: inline-flex; gap: 8px; align-items: center; color: var(--dim); }
.auth-row a, .auth-alt a { color: var(--primary); }
.auth-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #d64545 12%, transparent); color: #c43c3c; font-size: 14px; }
:root[data-dark] .auth-err { color: #ff8a8a; }
.auth-alt { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.who { display: none; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.who img { width: 26px; height: 26px; object-fit: cover; object-position: top; border-radius: 6px; image-rendering: pixelated; background: var(--line); }
:root[data-in] .who { display: inline-flex; }
.who-wrap { position: relative; }
.who-car { width: 10px; height: 6px; color: var(--faint); transition: transform .15s; }
.who-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px; display: grid; gap: 2px; z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
/* bridge so the pointer can travel from the name down to the menu without it closing */
.who-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.who-wrap:hover .who-menu, .who-wrap:focus-within .who-menu, .who-wrap.open .who-menu { opacity: 1; visibility: visible; transform: none; }
.who-wrap:hover .who-car, .who-wrap.open .who-car { transform: rotate(180deg); }
/* clicked the name itself (or an item): stay shut until the pointer leaves, so it doesn't hang open over the page */
.who-wrap.shut .who-menu { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.who-wrap.shut .who-car { transform: none; }
.who-head { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.who-head b { font-weight: 600; }
.who-head span { font-size: 13px; color: var(--faint); }
.who-menu button { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent; color: var(--fg); padding: 9px 10px; border-radius: 9px; font-size: 15px; }
.who-menu button:hover, .who-menu button:focus-visible { background: var(--surface-2); }
.who-menu button small { font-size: 12px; color: var(--faint); }
.who-menu button small.on { color: var(--t-discord); }
.who-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.who-menu .out { color: #c43c3c; }
:root[data-dark] .who-menu .out { color: #ff8a8a; }
:root[data-in] .login { display: none; }
.nav .nav-login { display: none; }

.login-dlg { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--fg); overflow: visible; }
.login-dlg::backdrop { background: rgba(0,0,0,.5); }
body:has(.login-dlg[open]) { overflow: hidden; }
.login-dlg .auth-card { box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.dlg-head0 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-head0 h2 { margin: 0; font-size: 24px; font-weight: 600; }
.ed-tabs { display: grid; grid-template-columns: 1fr 1fr; justify-self: stretch; }
.pre-wrap { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; }
.pre-wrap .pre { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border-right: 1px solid var(--line); color: var(--dim); font-weight: 600; }
.pre-wrap input { border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.field[hidden] { display: none; }

/* profile */
.mock-demo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: -8px; font: 13px/1.4 system-ui, sans-serif; color: var(--faint); }
.mock-demo button { border: 1px dashed var(--line); background: transparent; color: var(--dim); border-radius: 8px; padding: 3px 10px; font: inherit; }
.pf-next .got { color: var(--fg); }
.pf-total { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pf-total small { display: block; color: var(--faint); font-size: 13px; }
.pf-total b { font-size: 26px; font-weight: 600; color: var(--t-shop); font-variant-numeric: tabular-nums; }
.pf-next { display: grid; gap: 8px; font-size: 14px; color: var(--dim); }
.pf-next > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-next .mys-plate { padding: 2px 8px; } .pf-next .mys { font-size: 13px; }
.pf-next .bar i { background: linear-gradient(90deg, #FEB42F, #FFFBCB); }
@media (max-width: 460px) { .pf-total { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

.pf .wrap { padding-block: 40px 64px; display: grid; gap: 20px; }
.pf-head { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pf-skin { width: 120px; height: 150px; display: grid; place-items: end center; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.pf-skin img { height: 140px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.pf-id { display: grid; gap: 8px; min-width: 0; }
.pf-id h1 { font-size: clamp(28px, 4vw, 38px); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--dim); }
.chip.rank { color: #6CD5D5; border: 0; background: #16181c; letter-spacing: 1px; font-weight: 700; }
.chip.plus { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.chip.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
.pf-meta { color: var(--faint); font-size: 14px; }
.pf-plus { display: grid; gap: 6px; justify-items: stretch; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); min-width: 200px; }
.pf-plus b { font-weight: 600; }
.pf-plus span { color: var(--dim); font-size: 14px; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.pf-plus .buy { padding: 8px; }
.pf-tabs { justify-self: start; }
.pf-panel.over { display: grid; gap: 16px; }
.pf-panel[hidden] { display: none; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 2px; min-width: 0; }
.stat small { color: var(--faint); font-size: 13px; }
.stat b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat span { color: var(--dim); font-size: 13px; }
.stat.money b { color: var(--t-shop); }
.pf-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.box > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 20px 6px; }
.box > header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.box > header span { color: var(--faint); font-size: 13px; }
.box > p { margin: 0; padding: 0 20px 12px; color: var(--dim); font-size: 14px; }
.mail { list-style: none; margin: 0; padding: 0; }
.mail li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.mail .ic { width: 38px; height: 38px; border-radius: 9px; background: color-mix(in srgb, var(--pc) 22%, var(--surface)); display: grid; place-items: center; }
.mail .ic i { width: 18px; height: 18px; border-radius: 4px; background: var(--pc); box-shadow: inset -3px -3px 0 rgba(0,0,0,.18); }
.mail b { font-weight: 500; display: block; }
.mail small { color: var(--faint); font-size: 13px; }
.tag { font-size: 13px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag.wait { background: color-mix(in srgb, var(--t-shop) 16%, transparent); color: var(--t-shop); }
.tag.done { background: var(--surface-2); color: var(--faint); }
.facts { margin: 0; padding: 4px 20px 14px; display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders th { text-align: left; font-weight: 500; color: var(--faint); font-size: 13px; padding: 10px 20px; background: var(--surface-2); }
.orders td { padding: 12px 20px; border-top: 1px solid var(--line); }
.orders td.r, .orders th.r { text-align: right; }
.tbl-wrap { overflow-x: auto; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.set-form { padding: 6px 20px 20px; display: grid; gap: 12px; }
.set-form .buy { justify-self: start; width: auto; padding: 9px 20px; }
.set-now { margin: 0; padding: 0 20px 8px; font-size: 15px; }
.set-now b { font-weight: 500; }
.link-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.link-row span { color: var(--dim); font-size: 14px; }
.ghost { border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 10px; padding: 8px 16px; font-size: 15px; }
.ghost.danger { color: #c43c3c; }
:root[data-dark] .ghost.danger { color: #ff8a8a; }
@media (max-width: 860px) {
  .doors .wrap { grid-template-columns: repeat(2, 1fr); }
  .pf-head { grid-template-columns: 90px minmax(0, 1fr); }
  .pf-skin { width: 90px; height: 116px; } .pf-skin img { height: 106px; }
  .pf-plus { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-cols, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .nav .nav-login { display: block; }
  .who span { display: none; } .who { padding: 5px; }
}
@media (max-width: 460px) {
  .doors .wrap { grid-template-columns: 1fr; }
  .auth-card { padding: 20px; }
  .pf-head { padding: 18px; gap: 14px; }
  .stat b { font-size: 22px; }
}

/* ---- motion ---- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes item-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes item-out { to { opacity: 0; transform: translateX(30px); height: 0; padding-block: 0; margin-top: -10px; } }
dialog[open] { animation: pop-in .24s cubic-bezier(.2, .8, .2, 1); }
dialog[open]::backdrop { animation: fade-in .24s ease; }
dialog.closing { animation: pop-out .18s ease-in forwards; }
dialog.closing::backdrop { animation: fade-out .18s ease-in forwards; }
.cart-dlg[open] { animation: drawer-in .3s cubic-bezier(.2, .8, .2, 1); }
.cart-dlg.closing { animation: drawer-out .22s ease-in forwards; }
main[data-view]:not([hidden]) { animation: page-in .32s ease-out; }
.pf-panel:not([hidden]), .panel:not([hidden]), .shop-sec:not([hidden]) { animation: page-in .28s ease-out; }
.toast:not([hidden]) { animation: toast-in .25s cubic-bezier(.2, .8, .2, 1); }
.cart-n.bump { animation: bump .45s ease; }
.ct.new { animation: item-in .25s ease-out both; }
.ct { transition: height .28s cubic-bezier(.4, 0, .2, 1), opacity .2s ease, transform .22s ease, padding .28s cubic-bezier(.4, 0, .2, 1), margin .28s cubic-bezier(.4, 0, .2, 1), border-width .28s ease; }
.ct.gone { height: 0 !important; opacity: 0; transform: translateX(40px); padding-block: 0; margin-top: -10px; border-width: 0; overflow: hidden; pointer-events: none; }
.prod { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.prod:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); border-color: color-mix(in srgb, var(--pc, var(--line)) 45%, var(--line)); }
.buy, .cart-btn, .mode, .dlg-x, .qty button, .tabs button, .cats button, .lb-tabs button, .sup-toggle button { transition: transform .12s ease, background-color .15s ease, color .15s ease, filter .15s ease; }
.buy:not(:disabled):hover { filter: brightness(1.07); }
.buy:not(:disabled):active, .cart-btn:active, .mode:active, .dlg-x:active, .qty button:not(:disabled):active { transform: scale(.95); }
.buy.added { background: var(--fg); color: var(--bg); }

/* news */
.news .wrap { padding-block: 20px 64px; display: grid; gap: 18px; }
.news-tabs { justify-self: start; }
.news-list[hidden], .news-read[hidden], .news-tabs[hidden] { display: none; }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nw { display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; font: inherit; }
.nw:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); }
.nw-art { height: 120px; display: grid; place-items: center; background: color-mix(in srgb, var(--nc) 18%, var(--surface-2)); border-bottom: 1px solid var(--line); }
.nw-art svg { width: 64px; height: 64px; }
.nw-body { display: grid; gap: 6px; align-content: start; padding: 14px 16px 16px; }
.nw-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--faint); }
.nw-tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: var(--nc); background: color-mix(in srgb, var(--nc) 14%, transparent); }
.nw h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.nw p { margin: 0; color: var(--dim); font-size: 14px; }
.nw.featured { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.nw.featured .nw-art { height: auto; min-height: 200px; border-bottom: 0; border-right: 1px solid var(--line); }
.nw.featured .nw-art svg { width: 110px; height: 110px; }
.nw.featured .nw-body { padding: 24px; align-content: center; gap: 10px; }
.nw.featured h3 { font-size: 26px; }
.nw.featured p { font-size: 16px; }
.nw-new { font-size: 12px; font-weight: 700; color: #fff; background: var(--t-shop); padding: 1px 8px; border-radius: 999px; }
.news-read { max-width: 760px; display: grid; gap: 14px; padding: 24px 28px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); animation: page-in .28s ease-out; }
.news-read h2 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.25; }
.news-read ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--fg); }
.news-read p { margin: 0; color: var(--dim); }
.news-back { justify-self: start; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 10px; padding: 6px 14px; font-size: 14px; }
@media (max-width: 860px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw.featured { grid-template-columns: minmax(0, 1fr); } .nw.featured .nw-art { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--line); } .nw.featured h3 { font-size: 22px; } }
@media (max-width: 560px) { .news-list { grid-template-columns: minmax(0, 1fr); } .news-read { padding: 18px; } .news-read h2 { font-size: 24px; } }

/* home: worlds + latest news */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.how { font-weight: 500; color: var(--primary); padding: 6px 0; }
.how:hover { text-decoration: underline; text-underline-offset: 4px; }

.sec-head { display: grid; gap: 2px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head p { margin: 0; color: var(--dim); }
.more-link { color: var(--primary); font-weight: 500; font-size: 15px; white-space: nowrap; }
.worlds .wrap { padding-block: 8px 40px; gap: 16px; }
.world-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.world { display: grid; grid-template-columns: none; grid-template-rows: auto 1fr; gap: 0; padding: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.world:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); }
.world-art { height: 130px; overflow: hidden; border-bottom: 1px solid var(--line); }
.world-art svg { display: block; width: 100%; height: 100%; }
:root[data-dark] .world-art svg { filter: brightness(.7); }
.world-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.world-body b { font-size: 18px; font-weight: 600; }
.world-body span { color: var(--dim); font-size: 14px; }
.world-on { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; margin-top: 4px; }
.world-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
.home-news .wrap { padding-block: 8px 72px; display: grid; gap: 16px; }
.hn-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hn-list .nw-art { height: 96px; } .hn-list .nw-art svg { width: 54px; height: 54px; }
@media (max-width: 860px) { .world-row, .hn-list { grid-template-columns: minmax(0, 1fr); } .world { grid-template-rows: none; grid-template-columns: 120px minmax(0, 1fr); } .world-art { height: auto; min-height: 100px; border-bottom: 0; border-right: 1px solid var(--line); } }
/* short pages: the visible <main> stretches so the footer + landscape always sit at the bottom of the screen */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main:not([hidden]) { flex: 1 0 auto; }
body > .top, body > .mock, body > footer, body > .land { flex: none; }
.wcard { position: relative; height: 280px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; border: 1px solid var(--line); }
.wcard-art { position: absolute; inset: 0; z-index: -2; transition: transform .4s ease; }
.wcard-art svg { display: block; width: 100%; height: 100%; }
.wcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 52%, rgba(10,12,16,.55) 68%, rgba(10,12,16,.88) 100%); }
.wcard:hover .wcard-art { transform: scale(1.05); }
.wcard-on { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13px; color: #fff; background: rgba(10,12,16,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wcard-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fd68f; box-shadow: 0 0 0 3px rgba(127,214,143,.3); }
.wcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; display: grid; gap: 4px; color: #fff; }
.wcard-body b { font-size: 26px; font-weight: 600; letter-spacing: .3px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.wcard-body > span { color: rgba(255,255,255,.88); font-size: 15px; }
.wcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wcard-tags i { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--wc) 45%, rgba(255,255,255,.12)); border: 1px solid rgba(255,255,255,.25); }
:root[data-dark] .wcard-art svg { filter: brightness(.82); }
@media (max-width: 860px) { .wcard { height: 220px; } }
.wcard-art .wfx { position: absolute; inset: 0; }
.wfx .fx-drift { animation: fx-drift var(--dur, 60s) linear infinite; }
@keyframes fx-drift { from { transform: translateX(-10px); } to { transform: translateX(160px); } }
.wfx .fx-glow { animation: fx-glow 3.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fx-glow { 50% { opacity: .35; transform: scale(1.15); } }
.wfx .fx-fly { animation: fx-fly 18s linear infinite; }
@keyframes fx-fly { 0% { transform: translate(-30px, 4px); } 50% { transform: translate(60px, -2px); } 100% { transform: translate(150px, 3px); } }
.wfx .fx-sway { animation: fx-sway 1.6s steps(2) infinite; }
@keyframes fx-sway { 50% { transform: translateX(1px); } }
.wfx .fx-smoke { animation: fx-smoke 4s linear infinite; }
@keyframes fx-smoke { from { transform: translateY(4px); opacity: 0; } 30% { opacity: .9; } to { transform: translateY(-8px); opacity: 0; } }
.wfx .fx-fall { animation: fx-fall .8s steps(4) infinite; }
@keyframes fx-fall { to { transform: translateY(var(--dist, 8px)); } }
.wfx .fx-pulse { animation: fx-pulse 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes fx-pulse { 50% { opacity: .25; } }
.wfx .fx-twinkle { animation: fx-twinkle 2.2s steps(1) infinite; animation-delay: var(--d, 0s); }
@keyframes fx-twinkle { 0%, 60% { opacity: 1; } 70%, 100% { opacity: 0; } }
.wfx .fx-dragon { animation: fx-dragon 12s ease-in-out infinite; }
@keyframes fx-dragon { 25% { transform: translate(8px, -3px); } 50% { transform: translate(14px, 1px); } 75% { transform: translate(5px, 3px); } }
.wfx .fx-ember { animation: fx-ember 2.5s linear infinite; }
@keyframes fx-ember { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
.wfx .fx-flicker { animation: fx-flicker 1.3s steps(3) infinite; }
@keyframes fx-flicker { 33% { opacity: .55; } 66% { opacity: .85; } }
.wfx .fx-bob { animation: fx-bob 1.2s steps(2) infinite; }
@keyframes fx-bob { 50% { transform: translateY(-1px); } }

/* pixel "RTP-menu style" cards: coloured frame, hanging sign, framed pixel scene, status strip */
.pworlds .wrap { padding-block: 8px 44px; display: grid; gap: 26px; }
.pw-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 860px) { .pw-row { grid-template-columns: minmax(0, 1fr); max-width: 380px; } }
.pstat b { display: block; font-weight: 500; color: var(--c); font-size: 13px; }
.pcard { position: relative; display: grid; gap: 8px; padding: 20px 9px 9px; background: var(--d); color: #fff; box-shadow: inset 0 0 0 3px var(--c), inset 0 0 0 6px rgba(0,0,0,.35), 0 6px 0 rgba(0,0,0,.28); transition: transform .15s ease; image-rendering: pixelated; }
.pcard:hover { transform: translateY(-4px); }
.pcard:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; border-radius: 0; }
.psign { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font: 700 13px/1 "Pixelify Sans", var(--font); letter-spacing: 2px; color: #fff; background: #2b2b2b; padding: 5px 12px; box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px #000; white-space: nowrap; }
.pframe { position: relative; display: block; aspect-ratio: 36 / 30; overflow: hidden; box-shadow: 0 0 0 3px rgba(0,0,0,.5); }
.pframe img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; image-rendering: pixelated; transition: transform .3s ease; }
.pcard:hover .pframe img { transform: scale(1.06); }
.pplank { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 15px; color: #2b2b2b; background: #e9d9a6; padding: 3px 12px; white-space: nowrap; box-shadow: 0 0 0 2px #6b4a2b; }
.pplank::before, .pplank::after { content: ""; position: absolute; top: -10px; width: 2px; height: 10px; background: #555; }
.pplank::before { left: 8px; } .pplank::after { right: 8px; }
.pstat { padding: 7px 10px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); font-size: 14px; color: #f1f1f1; }
@media (max-width: 460px) { .pcard { padding: 16px 6px 6px; } .psign { font-size: 11px; padding: 4px 8px; } .pplank { font-size: 12px; padding: 2px 8px; top: 8px; } .pstat { font-size: 12px; padding: 5px 7px; } }
.xcard { display: grid; gap: 0; transition: transform .15s ease; filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)); }
.xcard:hover { transform: translateY(-4px); }
.xcard img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.xstat { margin: -3px 3% 0; padding: 10px 14px; background: #1c1f24; box-shadow: inset 0 0 0 3px #000, inset 0 3px 0 3px var(--c); color: #f1f1f1; display: grid; gap: 2px; image-rendering: pixelated; }
.xstat b { font-weight: 500; color: var(--c); font-size: 14px; }
.xstat span { font-size: 14px; color: #d8d8d8; }

/* worlds: a Minecraft container window (light grey, bevelled) with three tall picture slots and the game's purple tooltip */
.mcw .wrap { padding-block: 8px 44px; display: grid; gap: 18px; }
.mcgui { --u: 3px; width: min(100%, 620px); background: #c6c6c6; padding: calc(7 * var(--u)); display: grid; gap: calc(6 * var(--u));
  box-shadow: inset var(--u) var(--u) 0 #fff, inset calc(-1 * var(--u)) calc(-1 * var(--u)) 0 #555, 0 0 0 var(--u) #000, 0 14px 30px -12px rgba(0,0,0,.45); }
.mcplate { margin: 0 auto; padding: calc(2 * var(--u)) calc(10 * var(--u)); font: 600 17px/1.3 var(--font); color: #4a4a4a; letter-spacing: .3px; text-align: center; background: #b8b8b8;
  box-shadow: inset 0 0 0 var(--u) #e6e6e6, inset 0 0 0 calc(2 * var(--u)) #8b8b8b; }
.mcpanels { --u: 3px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 760px; }
.mcp { position: relative; margin: 0; padding: 0; border: 0; background: #000; aspect-ratio: 40 / 56; box-shadow: 0 0 0 var(--u) #373737; transition: transform .12s ease; font: inherit; }
.mcp img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.mcp::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 var(--u) rgba(255,255,255,.18); pointer-events: none; }
.mcp:hover { transform: translateY(calc(-1 * var(--u))); }
.mcl { position: absolute; left: 0; right: 0; bottom: calc(2 * var(--u)); text-align: center; font: 700 15px/1 "Pixelify Sans", var(--font); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; letter-spacing: 1px; }
.mcslots { display: grid; grid-template-columns: repeat(9, 1fr); }
.mcslots i { aspect-ratio: 1; background: #8b8b8b; box-shadow: inset var(--u) var(--u) 0 #373737, inset calc(-1 * var(--u)) calc(-1 * var(--u)) 0 #fff; }
.mctip { position: absolute; z-index: 5; pointer-events: none; max-width: 280px; padding: 8px 10px; background: rgba(16,0,16,.94); box-shadow: inset 0 0 0 2px #2a0b5c, 0 0 0 2px #100010; color: #aaa; font: 15px/1.4 var(--font); }
.mctip b { display: block; font-weight: 500; }
.mctip span { display: block; }
.mctip .on { color: #a6c261; } .mctip .hint { color: #7a7a7a; margin-top: 4px; }
@media (max-width: 560px) { .mcpanels { --u: 2px; gap: 10px; } .mcl { font-size: 12px; } }
.wl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; }
.mcw .sec-head { text-align: center; justify-items: center; }
.wl { margin: 0; display: grid; gap: 8px; align-content: start; }
.wl-img { position: relative; aspect-ratio: 48 / 72; background: #000; box-shadow: 0 0 0 3px #1c1c1c, 0 8px 0 rgba(0,0,0,.18); overflow: hidden; transition: transform .15s ease; }
.wl:hover .wl-img { transform: translateY(-3px); }
.wl-img img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.wl-name { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 10px; font: 700 15px/1 "Pixelify Sans", var(--font); color: #fff; letter-spacing: 1px; text-shadow: 2px 2px 0 #2b2b2b; padding: 5px 10px 6px; background: rgba(0,0,0,.45); box-shadow: inset 0 -3px 0 var(--c); }
.wl figcaption { color: var(--dim); font-size: 14px; line-height: 1.45; text-align: center; }
@media (max-width: 900px) { .wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .wl-grid { gap: 12px; } }

.key-art { height: 110px; background: var(--surface-2) !important; }
.key-svg { width: 105px; height: 50px; overflow: visible; animation: badge-float 3.2s steps(4, end) infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 4px 0 color-mix(in srgb, var(--pc) 25%, transparent)); }
.key-svg .ke { fill: color-mix(in srgb, var(--pc) 45%, #000); }
.key-svg .ko { fill: var(--pc); }
.key-svg .kh { fill: color-mix(in srgb, var(--pc) 55%, #fff); }
.up-note { margin: 4px 0 0 !important; font-size: 14px !important; color: var(--fg) !important; }
.up-me { margin: 8px 0 0 !important; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--fg) !important; font-size: 14px !important; }
.prod.rank.owned { opacity: .62; }
.prod.rank .price s { color: var(--faint); font-weight: 400; font-size: 15px; margin-right: 4px; }
.buy:disabled { background: var(--surface-2); color: var(--faint); cursor: default; }
.key-art { position: relative; overflow: hidden; }
/* two tiny pixel "+" sparkles that blink in turn around the key */
.key-art::before, .key-art::after { content: ""; position: absolute; width: 3px; height: 3px; --sc: color-mix(in srgb, var(--pc) 45%, #fff);
  background: var(--sc); box-shadow: 0 -3px 0 var(--sc), 0 3px 0 var(--sc), -3px 0 0 var(--sc), 3px 0 0 var(--sc); opacity: 0; animation: key-twinkle 2.8s steps(1, end) infinite; }
.key-art::before { left: calc(50% + 50px); top: 24px; animation-delay: calc(var(--d, 0s) - .4s); }
.key-art::after { left: calc(50% - 62px); top: 72px; animation-delay: calc(var(--d, 0s) - 1.8s); }
@keyframes key-twinkle { 0% { opacity: 0; } 10% { opacity: .55; transform: scale(1); } 20% { opacity: 1; } 30% { opacity: .55; } 40%, 100% { opacity: 0; } }
.ore-svg { width: 60px; height: 60px; animation: badge-float 3.2s steps(4, end) infinite; animation-delay: var(--d, 0s);
  box-shadow: 0 0 0 3px color-mix(in srgb, #7a7a7a 55%, #000), 0 6px 0 3px rgba(0,0,0,.12); }
.ore-svg .os { fill: #8a8a8a; } .ore-svg .od { fill: #727272; }
.ore-svg .oo { fill: var(--ore); } .ore-svg .oh { fill: color-mix(in srgb, var(--ore) 55%, #fff); } .ore-svg .ox { fill: color-mix(in srgb, var(--ore) 60%, #000); }
.ore-art::before, .ore-art::after { --sc: color-mix(in srgb, var(--ore) 50%, #fff); }
.ore-art::before { left: calc(50% + 40px); } .ore-art::after { left: calc(50% - 50px); }
.cart-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); padding: 0; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--t-shop); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.cart-n[hidden] { display: none; }
.cart-dlg { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--fg); flex-direction: column; overflow: hidden; }
.cart-dlg[open] { display: flex; }
.cart-dlg::backdrop { background: rgba(0,0,0,.45); }
body:has(.cart-dlg[open]) { overflow: hidden; }
.cart-head { border-bottom: 1px solid var(--line); padding-bottom: 14px !important; }
.cart-head h2 span { font-size: 15px; font-weight: 400; color: var(--faint); margin-left: 6px; }
.cart-list { list-style: none; margin: 0; padding: 14px 16px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 10px; align-content: start; }
.ct { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.ct-art { width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.ct-art svg { width: 48px; height: auto; animation: none !important; box-shadow: none !important; filter: none !important; }
.ct-art .ore-svg { width: 34px; height: 34px; }
.ct-omega { font-size: 30px; font-weight: 600; color: var(--primary); }
.ct-badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 6px; background: var(--pc); }
.ct-main { display: grid; gap: 2px; min-width: 0; }
.ct-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ct-top b { font-weight: 500; font-size: 16px; }
.ct-top .ct-price { font-weight: 600; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-main small { color: var(--faint); font-size: 13px; }
.ct-bot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.ct-q { min-width: 34px; text-align: center; font-weight: 500; }
.ct-once { color: var(--dim); font-size: 14px; }
.cart-rm { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--dim); border-radius: 8px; font-size: 13px; padding: 5px 10px; }
.cart-rm svg { width: 15px; height: 15px; }
.cart-rm:hover { color: #c43c3c; border-color: color-mix(in srgb, #c43c3c 40%, var(--line)); }
.cart-empty { display: block; color: var(--faint); text-align: center; padding: 48px 0; }
.cart-foot { flex: none; display: grid; gap: 6px; padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; }
.cart-sum span { color: var(--dim); }
.cart-sum b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-note { margin: 0 0 6px; color: var(--faint); font-size: 13px; }
.cart-foot .buy { width: 100%; padding: 13px; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.feat-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin-top: 8px; }
.feat-groups h4 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--faint); }
.feat-groups .feat-perks { grid-template-columns: minmax(0, 1fr); margin: 0; }
.feat-plus { margin: 8px 0 0 !important; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--fg) !important; font-size: 13px !important; }
.rk-body { display: grid; gap: 10px; align-content: start; }
.rk-line { margin: 0; font-size: 14px; color: var(--dim) !important; }
.unl code { font-size: 12px; padding: 0 6px; }
.link-btn.more { justify-self: start; margin-top: 6px; font-size: 14px; }
.cmp summary span { font-weight: 400; font-size: 14px; color: var(--faint); margin-left: 6px; }
.rk { margin: 0; display: grid; font-size: 13px; }
.rk div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-top: 1px solid var(--line); }
.rk div:first-child { border-top: 0; }
.rk dt { color: var(--dim); } .rk dd { margin: 0; font-weight: 500; text-align: right; }
.unl { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.unl span { color: var(--dim); width: 100%; }
.unl code { font-size: 13px; }
.inh-line { margin: 0; color: var(--faint) !important; font-size: 13px !important; }
.prod-body:has(.rk-body) { grid-template-rows: auto 1fr auto auto; }
.cmp { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 17px; }
.cmp-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.cmp table { border-collapse: collapse; font-size: 14px; min-width: 860px; width: 100%; }
.cmp th, .cmp td { padding: 9px 12px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; }
.cmp thead th { border-top: 0; background: var(--surface-2); }
.cmp tbody th { text-align: left; font-weight: 400; color: var(--dim); position: sticky; left: 0; background: var(--surface); }
.th-tag { font-weight: 600; color: var(--pc-l); letter-spacing: .5px; }
:root[data-dark] .th-tag { color: var(--pc); }
.cmp .fine { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--line); }
.chance { margin: 6px 0 0 !important; font-size: 14px !important; color: var(--dim); }
.chance span { font-weight: 600; }
.pity { font-size: 13px !important; color: var(--faint) !important; }
.link-btn { border: 0; background: none; padding: 0; color: var(--primary); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.fine-line { margin: 4px 0 0 !important; font-size: 14px !important; color: var(--faint) !important; }
.area { color: var(--faint); font-size: 13px; }
.crate-dlg { width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.crate-dlg[open] { display: flex; }
body:has(.crate-dlg[open]) { overflow: hidden; }
.crate-dlg::backdrop { background: rgba(0,0,0,.5); }
.dlg-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 4px; background: var(--surface); z-index: 1; }
.dlg-head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.dlg-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-size: 20px; line-height: 1; }
.dlg-sub { flex: none; margin: 0; padding: 0 20px 12px; color: var(--dim); font-size: 14px; }
.dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 20px 20px; display: grid; gap: 14px; }
.dt { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dt h3 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--tc) 14%, var(--surface)); border-bottom: 1px solid var(--line); font-size: 16px; }
.dt h3 span { color: var(--tc); font-weight: 600; letter-spacing: .5px; }
.dt h3 small { color: var(--dim); font-weight: 400; font-size: 13px; }
.dt ul { list-style: none; margin: 0; padding: 4px 14px 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dt li { padding: 6px 0; border-top: 1px solid var(--line); display: grid; min-width: 0; }
.dt li:nth-child(-n+2) { border-top: 0; }
.dt li b { font-weight: 500; font-size: 15px; }
.dt li small { color: var(--faint); font-size: 12px; line-height: 1.45; }
@media (max-width: 860px) { .feat-groups { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dt ul { grid-template-columns: minmax(0, 1fr); } .dt li:nth-child(2) { border-top: 1px solid var(--line); } }

/* WhatPlus card: gradient frame, pixel emblem panel, perk icons, savings */
.prod.featured.plus-card { grid-template-columns: 96px minmax(0, 1fr) 200px; }
.plus-card .prod-art { position: relative; overflow: hidden; display: grid; place-items: center; border-right: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px), repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 8px, transparent 8px 16px), linear-gradient(160deg, #3c9a49, #1f5a28); }
.plus-card .prod-art::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 22px; background: rgba(255,255,255,.22); transform: skewX(-18deg); animation: badge-shine 4.5s ease-in-out infinite; }
.plus-card .feat-omega { color: #f2fff0; font-size: 50px; text-shadow: 3px 3px 0 #123b19; animation: badge-float 3s ease-in-out infinite; }
.plus-card .spk { position: absolute; width: 9px; height: 9px; background: linear-gradient(#fff6c8 0 0) 3px 0/3px 9px no-repeat, linear-gradient(#fff6c8 0 0) 0 3px/9px 3px no-repeat; animation: plus-twinkle 2.4s steps(3) infinite; }
.plus-card .spk.s1 { top: 18%; left: 20%; }
.plus-card .spk.s2 { top: 62%; right: 16%; animation-delay: -.8s; transform: scale(.7); }
.plus-card .spk.s3 { bottom: 14%; left: 30%; animation-delay: -1.6s; transform: scale(.55); }
@keyframes plus-twinkle { 0%, 60%, 100% { opacity: 0; } 70%, 90% { opacity: 1; } }
.plus-card .feat-main h3 { font-size: 20px; }
.plus-perks { gap: 6px 18px; }
.plus-perks li { padding-left: 0; display: flex; align-items: center; gap: 7px; }
.plus-perks li::before { display: none; }
.plus-perks .pi { flex: none; width: 16px; height: 16px; }
.plus-card .feat-buy { background: color-mix(in srgb, #7fd68f 9%, var(--surface-2)); }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-row .was { color: var(--faint); font-size: 14px; }
.per-day-line .save { margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: #e8a400; color: #fff; font-size: 12px; font-weight: 600; }
@media (max-width: 860px) { .prod.featured.plus-card { grid-template-columns: minmax(0, 1fr); } .prod.featured.plus-card .prod-art { height: 92px; } .plus-card .feat-omega { font-size: 44px; } }

/* hero online status: live pulse, pixel heads, counting number */
.hero .status { gap: 10px; padding: 6px 14px 6px 12px; font-size: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); }
.hero .status::before { display: none; }
.st-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--online); flex: none; }
.st-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--online); animation: st-pulse 1.8s ease-out infinite; }
@keyframes st-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.st-heads { display: flex; }
.st-heads svg { width: 20px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 2px var(--surface); }
.st-heads svg + svg { margin-left: -6px; }
.st-n { font-size: 17px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.st-l { color: var(--dim); margin-left: -4px; }

/* leaderboard polish: both boards share the podium card; rows get a face and a bar relative to #1 */
.lb .wrap { padding-block: 8px 64px; }
.lb-card { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 7%, var(--surface)), var(--surface) 55%); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.lb-card .sup-head { align-items: center; }
.lb-card .lb-tabs { justify-self: start; }
.lb-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.lb-tabs .ti { width: 15px; height: 15px; flex: none; }
.sup-card { display: grid; gap: 18px; }
.lb-card .sp .amt { color: var(--primary); }
.sup-list li { position: relative; grid-template-columns: 26px 28px minmax(0, 1fr) auto; padding: 7px 8px 9px; border-top: 0; }
.sup-list li + li { margin-top: 4px; }
.sup-list li::before { content: ""; position: absolute; left: 44px; right: 8px; bottom: 1px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 7%, transparent); }
.sup-list li::after { content: ""; position: absolute; left: 44px; bottom: 1px; height: 3px; width: calc((100% - 52px) * var(--w)); border-radius: 3px; background: var(--t-shop); opacity: .7; }
.lb-card .sup-list li::after { background: var(--primary); }
.sup-list li.hit, .sp.hit b { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.face { width: 28px; height: 28px; border-radius: 4px; image-rendering: pixelated; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.sup-list .nm { font-weight: 500; overflow-wrap: anywhere; }
.sup-list .n { font-weight: 600; }
@media (max-width: 860px) {
  .sp img { max-width: 76px; } .sp.s1 img { max-width: 96px; }
  .sp b { font-size: 14px; } .sp .step { font-size: 18px; }
  .sp.s1 .step { height: 52px; } .sp.s2 .step { height: 38px; } .sp.s3 .step { height: 28px; }
  .lb-card .sup-head { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; } .lb-card .lb-search { display: block; width: 100%; } .lb-card .lb-search input { width: 100%; }
  .lb-card .lb-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-self: stretch; } .lb-card .lb-tabs button { justify-content: center; padding: 7px 2px; font-size: 13px; gap: 4px; white-space: nowrap; } .lb-card .lb-tabs .ti { width: 13px; height: 13px; }
}

/* profile pose: 3D skin (skinview3d) with selectable poses */
.pf-skin { position: relative; place-items: center; }
.pf-skin .pf-skin-img { cursor: pointer; }
.sp img.posed { filter: drop-shadow(0 10px 12px rgba(0,0,0,.25)); }
.sp img.posed { max-width: 150px; margin-bottom: -6px; } .sp.s1 img.posed { max-width: 186px; }
.pf-skin img.posed { height: 150px; }
@media (max-width: 860px) { .sp img.posed { max-width: 110px; } .sp.s1 img.posed { max-width: 132px; } .pf-skin img.posed { height: 116px; } }
.pf-pose-btn { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.pf-pose-btn svg { width: 15px; height: 15px; }
.pose-dlg { width: min(640px, calc(100vw - 32px)); }
.pose-body { grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 20px; }
.pose-stage { display: grid; place-items: center; border-radius: var(--radius); background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--primary) 18%, var(--surface-2)), var(--surface-2) 70%); }
.pose-stage canvas { display: block; cursor: grab; touch-action: none; }
.pose-side { display: grid; gap: 14px; }
.pose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pose-grid button { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-size: 15px; text-align: left; }
.pose-grid button[aria-checked="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); font-weight: 500; }
@media (max-width: 560px) { .pose-body { grid-template-columns: minmax(0, 1fr); } .pose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pose-grid button { text-align: center; padding: 9px 4px; font-size: 14px; } }

/* your own place on the leaderboards */
.sup-list li.me, .sup-list li.me-pin { background: color-mix(in srgb, var(--primary) 13%, transparent); border-radius: 8px; }
.sup-list li.me .nm::after, .sup-list li.me-pin .nm::after { content: " · คุณ"; color: var(--primary); font-weight: 600; }
.sup-list li.me-pin .nm::after { content: ""; }
.sup-list li.me-pin { margin-top: 14px; }
.sup-list li.me-pin::before { top: -9px; bottom: auto; left: 8px; right: 8px; height: 0; border-top: 2px dotted var(--line); background: none; }
.sup-list li.me-pin::after { display: none; }
.sup-list li.me-pin .nm { font-weight: 600; }
.sup-list li.me-pin.empty .amt { color: var(--faint); font-weight: 400; font-size: 14px; }
.sp.me b::after { content: " · คุณ"; color: var(--primary); }

/* guide polish: each topic is a card with a pixel icon, aligned command column, sticky table of contents
   that follows the reading position, click a command to copy it */
.g-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.guide-main { display: grid; gap: 18px; }
.g-sec h2 { display: flex; align-items: center; gap: 10px; }
.gi { width: 26px; height: 26px; flex: none; }
.gi.sm { width: 16px; height: 16px; }
.g-toc a { display: flex; align-items: center; gap: 9px; }
.g-toc a.on { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--fg); font-weight: 500; }
@media (min-width: 861px) { .g-toc { position: sticky; top: 88px; } }
.g-sec .g-table { border-radius: 12px; box-shadow: none; }
.g-table td:first-child { width: 230px; }
.g-table code { cursor: copy; transition: background-color .15s ease; }
.g-table code:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface-2)); }
.g-table tbody tr:hover td { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.g-steps li::before { box-shadow: inset -3px -3px 0 rgba(0,0,0,.18); }
@media (max-width: 860px) { .g-sec { padding: 16px; } .g-table td:first-child { width: auto; } }
@media (max-width: 560px) { .g-table thead { display: none; } .g-table tr { display: grid; gap: 4px; padding: 10px 14px; border-top: 1px solid var(--line); } .g-table tbody tr:first-child { border-top: 0; } .g-table td { padding: 0; border-top: 0; } .g-table td:first-child { white-space: nowrap; } }

/* how-to-join polish: steps in a 2x2 grid with pixel number tiles, solid first-time cards with icons,
   troubleshooting aligned with the page in two columns */
.editions .wrap > .panel .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.steps li { box-shadow: var(--shadow); align-content: start; }
.steps li::before { border-radius: 6px; box-shadow: inset -4px -4px 0 rgba(0,0,0,.2), inset 4px 4px 0 rgba(255,255,255,.12); }
.copy-line code { font-size: 17px; padding: 4px 10px; }
.first-item { background: var(--surface); box-shadow: var(--shadow); grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
.first-item .fi { width: 36px; height: 36px; grid-row: span 2; }
.help .wrap { max-width: 1120px; margin-inline: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px 16px; }
.help .sec-title { grid-column: 1 / -1; }
@media (max-width: 860px) { .editions .wrap > .panel .steps, .help .wrap { grid-template-columns: minmax(0, 1fr); } }

/* news article: picture banner and other posts on the side */
.news-read { max-width: none; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding: 0; background: none; border: 0; box-shadow: none; }
.nr-main { display: grid; gap: 14px; padding: 24px 28px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.nr-art { height: 180px; border-radius: var(--radius); display: grid; place-items: center; background: color-mix(in srgb, var(--nc) 16%, var(--surface-2)); }
.nr-art svg { width: 110px; height: 110px; }
.nr-side { display: grid; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: sticky; top: 88px; }
.nr-side h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.nr-other { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--fg); }
.nr-other:hover { background: var(--surface-2); }
.nr-oi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--nc) 16%, var(--surface-2)); }
.nr-oi svg { width: 28px; height: 28px; }
.nr-other b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.nr-other small { color: var(--faint); font-size: 12px; }
@media (max-width: 860px) { .news-read { grid-template-columns: minmax(0, 1fr); } .nr-side { position: static; } .nr-art { height: 130px; } .nr-art svg { width: 80px; height: 80px; } }

/* profile polish: bigger posed skin, stat icons + links to the leaderboard, real item icons in the mailbox,
   WhatPlus card in the same green/gold frame as in the shop */
.pf-head { grid-template-columns: 150px minmax(0, 1fr) auto; }
.pf-skin { width: 150px; height: 190px; }
.pf-skin img.posed { height: 190px; }
.stat small { display: flex; align-items: center; gap: 7px; }
.stat .si { width: 16px; height: 16px; flex: none; }
.st-rank { justify-self: start; border: 0; background: none; padding: 0; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.st-rank:hover { color: var(--primary); text-decoration: underline; }
.mail .ic svg.mi { width: 24px; height: 24px; }
@media (max-width: 860px) { .pf-head { grid-template-columns: 100px minmax(0, 1fr); } .pf-skin { width: 100px; height: 130px; } .pf-skin img.posed { height: 130px; } }


/* mailbox pictures = shop card pictures */
.mail li { grid-template-columns: 48px minmax(0, 1fr) auto; }
.mail .ic.shop-art { width: 48px; height: 48px; border-radius: 10px; background: color-mix(in srgb, var(--pc) 28%, var(--surface)); overflow: hidden; }
.mail .ic.shop-art svg { width: 34px; height: auto; animation: none !important; filter: none !important; box-shadow: none !important; }
.mail .ic.shop-art .ore-svg { width: 30px; height: 30px; }
.mail .ic.plus-ic { background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 4px, transparent 4px 8px), repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 4px, transparent 4px 8px), linear-gradient(160deg, #3c9a49, #1f5a28); }
.mail .ic.plus-ic span { color: #f2fff0; font-size: 26px; font-weight: 600; line-height: 1; text-shadow: 2px 2px 0 #123b19; }

/* profile: supporter rank next to the total */
.pf-sup { display: grid; gap: 4px; justify-items: start; padding-left: 20px; border-left: 1px solid var(--line); }
.pf-sup small { color: var(--faint); font-size: 13px; }
.sup-rank { display: inline-flex; gap: 8px; align-items: baseline; border: 0; background: none; padding: 0; font: inherit; color: var(--fg); cursor: pointer; }
.sup-rank span { color: var(--dim); font-size: 13px; min-width: 52px; text-align: left; }
.sup-rank b { font-size: 15px; font-weight: 600; color: var(--t-shop); }
.sup-rank:hover b { text-decoration: underline; }
@media (max-width: 860px) { .pf-total { grid-template-columns: auto minmax(0, 1fr); } .pf-sup { grid-column: 1 / -1; padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; } }

/* 2FA */
.tfa-state { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--dim); }
.tfa-state.on { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); color: var(--primary); font-weight: 600; }
.tfa-box .set-form { padding-top: 4px; }
.tfa-box .tfa-note, .dc-box #dc-off > p { margin: 0; padding: 0 20px 10px; color: var(--dim); font-size: 14px; }
.dc-box > header h2 { display: flex; align-items: center; gap: 8px; }
.dc-box > header h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--t-discord); }
.dc-steps { margin: 0; padding: 0 20px 6px 40px; display: grid; gap: 6px; color: var(--fg); font-size: 14px; }
.dc-steps code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.dc-box .link-row span:last-child { text-align: right; }
.dc-go { text-align: center; background: var(--t-discord) !important; color: #fff !important; }
.dc-box .set-form .tfa-small { padding: 0; margin: 0; color: var(--faint); }
.tfa-dlg { width: min(460px, calc(100vw - 32px)); }
.tfa-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 4px 20px 12px; }
.tfa-steps li { font-size: 13px; color: var(--faint); padding-top: 8px; border-top: 3px solid var(--line); }
.tfa-steps li.on { color: var(--fg); border-color: var(--primary); }
.tfa-step { display: grid; gap: 12px; }
.tfa-step[hidden], .tfa-steps[hidden], .login-2fa[hidden] { display: none; }
.tfa-step p { margin: 0; color: var(--dim); }
.tfa-qrbox { justify-self: center; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.tfa-qr { display: block; width: 180px; height: 180px; }
.tfa-small { font-size: 13px; }
.tfa-secret { justify-self: start; font-size: 16px; letter-spacing: 1px; padding: 6px 12px; }
.tfa-code { font: inherit; font-size: 28px; letter-spacing: 10px; text-align: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); width: 100%; }
.tfa-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tfa-codes code { display: block; text-align: center; font-size: 16px; padding: 8px; }
.tfa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tfa-row > * { white-space: nowrap; }
.login-2fa { display: grid; gap: 10px; }
.login-2fa p { margin: 0; color: var(--dim); font-size: 14px; }
#login-form.step2 .field, #login-form.step2 .ed-tabs, #login-form.step2 .auth-row, #login-form.step2 .dc-login { display: none; }
.dc-login { display: grid; gap: 10px; justify-items: stretch; }
.dc-login .or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.dc-login .or::before, .dc-login .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px; padding: 11px 16px; background: #5865f2; color: #fff; font-size: 16px; font-weight: 500; }
.dc-btn:hover { background: #4752c4; }
.dc-btn svg { width: 22px; height: 22px; }
.dc-btn[disabled] { opacity: .7; cursor: progress; }
.dc-login small { color: var(--faint); font-size: 13px; text-align: center; }
#forgot-form[hidden], #login-form[hidden], .fg-step[hidden] { display: none; }
.fg-step { display: grid; gap: 14px; }
.fg-p { margin: 0; color: var(--dim); font-size: 15px; }
.fg-p b { color: var(--fg); font-weight: 500; }
.fg-small { margin: 0; color: var(--faint); font-size: 13px; }
.fg-small a { color: var(--primary); }
.fg-sent { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--primary); }
.fg-sent::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.fg-sent.flash { animation: fg-flash .6s ease-out; }
@keyframes fg-flash { from { opacity: .2; } }
.fg-again { justify-self: start; }
.fg-again[disabled] { color: var(--faint); cursor: default; }
.fg-ways { display: grid; gap: 10px; }
.fg-way { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 12px; padding: 12px 14px; }
.fg-way:hover { border-color: var(--primary); }
.fg-way.dc:hover { border-color: #5865f2; }
.fg-way b { font-weight: 500; font-size: 15px; }
.fg-way small { color: var(--dim); font-size: 13px; }
a.dc-btn { text-decoration: none; }
.login-2fa .via-dc { color: var(--dim); font-size: 14px; }
.caps { margin: -8px 0 0; font-size: 13px; color: var(--t-shop); display: flex; align-items: center; gap: 6px; }
.caps::before { content: "⇪"; font-weight: 700; }
.caps[hidden], .tfa-dc[hidden], .tfa-dc-wait[hidden] { display: none; }

/* ---- checkout page ---- */
.pay .wrap { padding-block: 8px 64px; }
.pay-back { color: var(--dim); font-size: 14px; justify-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.pay-back:hover { color: var(--fg); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.pay-stack { display: grid; gap: 16px; }
.pay-opts { display: grid; gap: 10px; padding: 6px 20px 20px; }
.pay-opts.two { grid-template-columns: 1fr 1fr; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.pay-opt input { margin-top: 4px; accent-color: var(--primary); }
.pay-opt span { display: grid; gap: 2px; }
.pay-opt b { font-weight: 500; }
.pay-opt b em { font-style: normal; font-size: 12px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.pay-opt small { color: var(--dim); font-size: 13px; }
.pay-gift, .pay-extra { display: grid; gap: 12px; padding: 0 20px 20px; }
.pay-gift[hidden], .pay-extra[hidden], .pay-wait[hidden], .pay-done[hidden], #pay-choose[hidden], .pay-wait [data-by][hidden] { display: none; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-ac { position: relative; }
/* the box clips its content (rounded corners) - let the suggestion list hang out below it */
.pay-stack .box:has(.pay-ac) { overflow: visible; position: relative; z-index: 3; }
.pay-ac label span { font-size: 14px; color: var(--dim); }
.pay-ac input { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%; }
.pay-ac input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.pay-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.16); display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.pay-sugg[hidden] { display: none; }
.pay-sugg .ps-h { font-size: 12px; color: var(--faint); padding: 4px 8px 2px; }
.pay-sugg li[role=option] { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.pay-sugg li[role=option][aria-selected=true], .pay-sugg li[role=option]:hover { background: var(--surface-2); }
.pay-sugg .ps-head { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; background: var(--hc); flex: none; }
.pay-sugg .ps-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pay-sugg .ps-name mark { background: none; color: var(--primary); font-weight: 600; }
.pay-sugg .ps-tag { font-size: 12px; color: var(--faint); }
.pay-sugg .ps-tag.on { color: var(--online); }
.pay-sugg .ps-none { padding: 10px 8px; color: var(--dim); font-size: 14px; }
.pay-friend-ok { margin: 0; font-size: 14px; color: var(--dim); }
.pay-friend-ok.ok { color: var(--primary); }
.pay-friend-ok.bad { color: #c43c3c; }
:root[data-dark] .pay-friend-ok.bad { color: #ff8a8a; }
.pay-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--dim); }
.pay-agree input { margin-top: 5px; accent-color: var(--primary); }
.pay-go { padding: 14px; font-size: 17px; }
.pay-go[disabled] { opacity: .55; cursor: not-allowed; }
.pay-side { position: sticky; top: 88px; }
.pay-side > header { align-items: center; }
.pay-items { list-style: none; margin: 0; padding: 4px 20px; display: grid; gap: 10px; }
.pay-items li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pay-items .pi-art { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.pay-items .pi-art svg { width: 30px; height: auto; animation: none !important; filter: none !important; box-shadow: none !important; }
.pay-items .pi-art .ct-omega { font-size: 20px; }
.pay-items .pi-art .ct-badge { font-size: 8px; padding: 2px 4px; }
.pay-items small { display: block; color: var(--faint); font-size: 13px; }
.pay-items .pi-p { font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 20px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pay-total b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-to-line { padding: 6px 20px 18px; margin: 0; }
.pay-wait, .pay-done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 28px 24px; }
.pay-wait [data-by] { display: grid; justify-items: center; gap: 12px; }
.pay-wait h2, .pay-done h2 { margin: 0; font-size: 22px; font-weight: 600; }
.pay-wait p, .pay-done p { margin: 0; color: var(--dim); max-width: 420px; }
.pay-qrbox { display: grid; justify-items: center; gap: 4px; padding: 14px 14px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pay-qr { display: block; width: 220px; height: 220px; }
.pay-pp { font: 700 14px/1 var(--font); color: #1b3a6b; letter-spacing: .5px; }
.pay-amt { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-exp b { color: var(--fg); font-variant-numeric: tabular-nums; }
.pay-status { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-mock { color: var(--faint); }
.pay-ok { width: 64px; height: 64px; color: var(--primary); }
.pay-no b { color: var(--fg); font-variant-numeric: tabular-nums; }
.pay-done .pay-row { width: min(360px, 100%); }
.pay-more { display: grid; place-items: center; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } .pay-side { position: static; order: -1; } .pay-opts.two { grid-template-columns: 1fr; } }
.tfa-dc { display: grid; gap: 10px; }
.tfa-dc .or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.tfa-dc .or::before, .tfa-dc .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tfa-dc-wait { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #5865f2 10%, var(--surface)); border: 1px solid color-mix(in srgb, #5865f2 35%, var(--line)); }
.tfa-dc-wait p { margin: 0; font-size: 14px; color: var(--fg); }
.tfa-dc-wait b { font-weight: 500; }
.buy[disabled] { opacity: .55; cursor: not-allowed; }

footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--fg); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
  .hero-img { order: -1; }
  .world-row, .first-row { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lb-search input { width: 100%; } .lb-search { flex: 1 1 100%; }
  .sup-card { padding: 18px; }
  .cats { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .cats button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
  .cats button[aria-pressed="true"] { box-shadow: none; background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .g-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
  .g-search { flex: 1 1 100%; }
  .g-table td:first-child { white-space: normal; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod.featured { grid-template-columns: minmax(0, 1fr); }
  .feat-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod.featured .prod-art { height: 64px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feat-buy { border-left: 0; border-top: 1px solid var(--line); justify-items: stretch; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; margin: 0; z-index: 5; }
  .nav.open { display: flex; }
  .top .wrap { position: relative; }
  .login { display: none; }
  .menu-btn { display: inline-block; }
}
@media (max-width: 460px) {
  .prod-grid { grid-template-columns: minmax(0, 1fr); }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .sup-body { grid-template-columns: minmax(0, 1fr); }
  .pod img, .pod.p1 img { width: 32px; }
  .pod { grid-template-columns: auto auto 1fr auto; justify-items: start; align-items: center; text-align: left; padding: 12px 14px; }
  .pod.p1, .pod.p2, .pod.p3 { order: 0; padding-block: 12px; }
  .pod .head, .pod.p1 .head { width: 40px; height: 40px; font-size: 16px; }
  .mystery ul { grid-template-columns: 1fr; }
  .feat-perks { grid-template-columns: minmax(0, 1fr); }
  .ip { width: 100%; }
  .ip .addr { flex: 1; }
}
/* real site: success message in the same box style as errors */
.auth-err.ok { background: color-mix(in srgb, #2e7d32 12%, transparent); color: #2e7d32; }
:root[data-dark] .auth-err.ok { color: #7fd68f; }
.lb-empty { grid-column: 1 / -1; margin: 24px 0; text-align: center; color: var(--muted, #6b7280); }
.fg-way[hidden] { display: none; }
.login-2fa .tfa-view > p:first-child { margin-top: 0; }
#tfa-ways + .fg-small { margin-top: 12px; }

/* ---- WhatCoin (2026-10-08): header pill, wallet page, pay-with-WC box. Coin colour = the shop orange. ---- */
.wc-coin { width: 16px; height: 16px; flex: none; color: var(--t-shop); }
.wc-coin.big { width: 40px; height: 40px; }
.mail .ic.shop-art .ct-badge { font-size: 8px; padding: 2px 4px; letter-spacing: .5px; }
.wc-link { color: var(--t-shop); }
.wc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 16px 64px; }
@media (max-width: 860px) { .wc-grid { grid-template-columns: minmax(0, 1fr); } }
.wc-col { display: grid; gap: 16px; min-width: 0; }
.wc-bal-box { padding: 20px; display: grid; gap: 8px; }
.wc-bal { display: flex; align-items: center; gap: 12px; }
.wc-bal b { font-size: 42px; line-height: 1; font-weight: 600; color: var(--t-shop); font-variant-numeric: tabular-nums; }
.wc-bal span { color: var(--dim); }
.wc-bal-box .fg-small, .wc-bal-box .auth-err { margin: 0; }
.wc-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 0 20px 14px; }
.wc-code input { text-transform: uppercase; letter-spacing: .06em; }
.wc-code .buy { width: auto; padding: 11px 18px; }
.wc-msg { margin: 0 20px 16px !important; }
.wc-ok { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--online) 14%, transparent); color: var(--online); font-size: 14px; }
.wc-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 20px 12px; }
@media (max-width: 460px) { .wc-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wc-pack { display: grid; gap: 1px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.wc-pack[aria-pressed="true"] { border-color: var(--t-shop); background: color-mix(in srgb, var(--t-shop) 10%, var(--surface)); }
.wc-pack b { font-size: 18px; font-weight: 600; color: var(--t-shop); font-variant-numeric: tabular-nums; }
.wc-pack .bonus { font-size: 12px; color: var(--online); }
.wc-pack .thb { font-size: 13px; color: var(--dim); }
.wc-custom { padding: 0 20px; }
.wc-sum { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; color: var(--dim); font-variant-numeric: tabular-nums; }
.wc-sum b { color: var(--fg); font-weight: 600; }
.wc-top-go { width: calc(100% - 40px); margin: 0 20px 10px; }
.box > .fg-small { padding: 0 20px 16px; margin: 0; }
.wc-bal-box > .fg-small { padding: 0; }
.wc-hist { list-style: none; margin: 0; padding: 0 20px 12px; }
.wc-hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.wc-hist li:first-child { border-top: 0; }
.wc-hist .d { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.wc-hist .d.plus { color: var(--online); }
.wc-hist .d.minus { color: #c43c3c; }
.wc-hist small { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }
.wc-hist .k { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--dim); margin-left: 6px; }
.wc-hist .wc-empty { color: var(--faint); display: block; }
.wc-pay .wc-rows { display: grid; gap: 6px; padding: 4px 20px 14px; font-variant-numeric: tabular-nums; }
.wc-pay .wc-rows div { display: flex; justify-content: space-between; gap: 12px; }
.wc-pay .wc-rows span { color: var(--dim); }
.wc-pay .wc-after { padding-top: 6px; border-top: 1px dashed var(--line); }
.wc-short { margin: 0 20px 16px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--t-shop); background: color-mix(in srgb, var(--t-shop) 8%, var(--surface)); display: grid; gap: 10px; }
.wc-short-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.wc-short-row b { color: var(--t-shop); }
.wc-short .fg-small { margin: 0; }

/* header when logged in (2026-10-08, owner: too many buttons): cart + one account chip (name, WC under it);
   the light/dark switch moves into the account menu */
:root[data-in] .mode { display: none; }
:root[data-in] .cart-btn { margin-left: auto; }
.who { height: 40px; }
.who-txt { display: grid; line-height: 1.15; text-align: left; }
.who-wc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--t-shop); font-weight: 500; font-variant-numeric: tabular-nums; }
.who-wc .wc-coin { width: 11px; height: 11px; }

/* ---- rules + contact pages (2026-10-08) ---- */
.rules-wrap, .contact-grid { padding-block: 16px 64px; }
.rules { list-style: none; counter-reset: r; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.rules li::before { content: counter(r); grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.rules b { font-weight: 600; }
.rules span { color: var(--dim); font-size: 14px; }
.rules a, .contact-card a:not(.buy) { color: var(--primary); }
.rules-ok ul, .contact-list { margin: 0; padding: 4px 20px 16px 38px; display: grid; gap: 6px; color: var(--dim); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-go { padding: 0 20px 12px; }
.contact-go .buy { display: block; text-align: center; text-decoration: none; }
.contact-list { list-style: none; padding-left: 20px; gap: 12px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list b { color: var(--fg); font-weight: 600; }
.contact-list span { font-size: 14px; }

.rules-h { font-size: 20px; font-weight: 600; margin: 8px 0 12px; }
.rules li:not(:has(span)) { align-items: center; }
.rules li:not(:has(span))::before { grid-row: auto; }
.rules-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .rules-two { grid-template-columns: minmax(0, 1fr); } }
.terms-wrap { display: grid; gap: 16px; padding-block: 16px 64px; }
.terms ol { margin: 0; padding: 4px 20px 18px 40px; display: grid; gap: 8px; color: var(--dim); }
.terms ol b { color: var(--fg); font-weight: 600; }
.terms a, .pay-agree a { color: var(--primary); }

/* empty cart = no cart button; whatever comes next takes the push to the right */
:root:not([data-cart]) .cart-btn { display: none; }
:root[data-in]:not([data-cart]) .who-wrap { margin-left: auto; }
/* reload on another page: keep the page area empty until the router has shown the right one (no flash of the home page) */
:root[data-boot] main { visibility: hidden; }

/* posed characters (podium + profile): the box is the posed picture's size from the start (220x330 render) and
   the stand-in picture is not shown, so nothing jumps when the real one arrives (owner 2026-10-08) */
:root.pose-on .sp img[data-pose-name] { aspect-ratio: 220 / 330; width: 100%; max-width: 150px; height: auto; margin-bottom: -6px; }
:root.pose-on .sp.s1 img[data-pose-name] { max-width: 186px; }
@media (max-width: 860px) { :root.pose-on .sp img[data-pose-name] { max-width: 110px; } :root.pose-on .sp.s1 img[data-pose-name] { max-width: 132px; } }
:root.pose-on .pf-skin img[data-pose-name] { height: 190px; aspect-ratio: 220 / 330; width: auto; }
@media (max-width: 860px) { :root.pose-on .pf-skin img[data-pose-name] { height: 130px; } }
:root.pose-on img[data-pose-name]:not(.posed) { visibility: hidden; }
.rules-pen li::before { color: var(--t-shop); }
.fi-face { image-rendering: pixelated; object-fit: contain; }
