/* ==========================================================================
   ExeBoost — base skeleton. Every visual decision is a token; themes
   (/assets/themes/<name>/theme.css) redefine tokens + restructure parts.
   ========================================================================== */
:root {
    --rs: 1;
    --bg: #080f28; --bg-2: #050a20;
    --surface: #0a1230; --surface-2: #0d1638; --surface-3: rgba(255,255,255,.03);
    --field: rgba(13,22,56,.55); --overlay: rgba(10,16,44,.96);
    --text: #fff; --text-2: #dfe1ee; --muted: #979aae; --muted-2: #6c7090;
    --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
    --primary: #4842d1; --primary-2: #5b55ec; --on-primary: #fff;
    --accent: #3fa7cf; --accent-2: #6ee0ff; --on-accent: #061026;
    --gold: #f2c14e; --on-gold: #1a1405;
    --success: #2fc76f; --danger: #f0435a; --info: #6ee0ff; --warn: #f2c14e;
    --font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: var(--font); --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --fw-display: 600; --display-tracking: -.015em; --display-case: none;
    --r: calc(16px * var(--rs)); --r-sm: calc(10px * var(--rs)); --r-lg: calc(24px * var(--rs)); --r-pill: calc(999px * var(--rs));
    --bw: 1px;
    --shadow: 0 40px 100px -40px rgba(0,0,0,.9);
    --shadow-sm: 0 12px 30px -12px rgba(0,0,0,.6);
    --glow: color-mix(in srgb, var(--primary) 70%, transparent);
    --header-bg: rgba(8,15,40,.78); --topbar-bg: #1a2140; --topbar-text: #c4c7da;
    --grad-text: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff));
    --card-bg: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, transparent), color-mix(in srgb, var(--bg-2) 70%, transparent));
    --ease: cubic-bezier(.2,.8,.2,1);
    --max: 1100px; --narrow: 900px;
    --fs: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--primary); color: var(--on-primary); border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: calc(var(--narrow) + 40px); }
.section { padding-block: 96px; }
.divider { border: 0; height: 1px; background: var(--line); margin: 0 auto; width: calc(100% - 40px); }
.muted { color: var(--muted); font-weight: 300; }
.center { text-align: center; }
.small { font-size: 12.5px; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; }
.tr { text-align: right; white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.t-teal { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-gold { color: var(--gold); }
.t-green { color: var(--success); }
.t-red { color: var(--danger); }
.t-white { color: var(--text); font-weight: 500; }
.link-teal { color: var(--accent-2); transition: color .2s; }
.link-teal:hover { color: var(--text); }
button.link-teal { background: none; border: 0; padding: 0; cursor: pointer; }
.eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.ico { width: 16px; height: 16px; flex: none; }
.ico--teal { color: var(--accent); } .ico--gold { color: var(--gold); } .ico--green { color: var(--success); }
.h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px); font-weight: var(--fw-display); line-height: 1.25; letter-spacing: var(--display-tracking); text-transform: var(--display-case); margin: 0 0 28px; }
.h2--center { text-align: center; }

/* Buttons */
.btn { --b: var(--primary); --bc: var(--on-primary); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border-radius: var(--r-sm); background: var(--b); color: var(--bc); border: var(--bw) solid color-mix(in srgb, var(--text) 8%, transparent); font-size: 13px; font-weight: 500; cursor: pointer; overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px var(--glow); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary:hover { --b: var(--primary-2); }
.btn--gold { --b: linear-gradient(135deg, color-mix(in srgb, var(--gold) 85%, #fff), color-mix(in srgb, var(--gold) 80%, #8a5a00)); --bc: var(--on-gold); font-weight: 600; }
.btn--gold:hover { box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn--ghost { --b: transparent; --bc: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { --b: var(--surface-3); box-shadow: none; }
.btn--danger { --b: color-mix(in srgb, var(--danger) 12%, transparent); --bc: color-mix(in srgb, var(--danger) 70%, #fff); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn--danger:hover { --b: color-mix(in srgb, var(--danger) 22%, transparent); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--danger) 70%, transparent); }
.btn--lg { padding: 14px 28px; }
.btn--xl { padding: 18px 40px; font-size: 14px; border-radius: calc(var(--r-sm) * 1.2); }
.btn--sm { padding: 8px 16px; font-size: 12px; border-radius: calc(var(--r-sm) * .8); }
.btn--block { width: 100%; }
.btn--icon { padding: 8px 11px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.is-armed { --b: var(--danger); --bc: #fff; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row--center { justify-content: center; margin-top: 22px; }
.btn-row--between { justify-content: space-between; }

/* Announcement + topbar */
.announce { position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 44px; background: linear-gradient(90deg, var(--primary), var(--accent)); color: var(--on-primary); font-size: 12.5px; font-weight: 500; text-align: center; }
.announce button { position: absolute; right: 12px; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .8; }
.topbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--topbar-bg); font-size: 11px; font-weight: 300; color: var(--topbar-text); }
.topbar__item { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border-right: 1px solid var(--line); }
.topbar__item:last-child { border-right: 0; }
.topbar__item b { font-weight: 600; color: var(--text); }
.topbar__item .ico { width: 14px; height: 14px; color: var(--accent); }
.topbar__item:first-child .ico { color: var(--gold); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 28px; border-bottom: var(--bw) solid transparent; transition: background .4s, padding .4s var(--ease), backdrop-filter .4s, border-color .4s; }
.header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-block: 10px; border-color: var(--line); }
.header__left { display: flex; align-items: center; gap: 22px; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 6px 16px var(--glow)); transition: transform .5s var(--ease), filter .5s var(--ease); }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-6deg); filter: drop-shadow(0 10px 22px var(--glow)); }
.logo__text { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.035em; white-space: nowrap; }
.logo__a { color: var(--text); }
.logo__b { background: linear-gradient(90deg, var(--logo-a, #5ee7ff), var(--logo-m, #7c5cff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__tld { font-size: .56em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 1px; transition: color .3s; }
.logo:hover .logo__tld { color: var(--text-2); }
.logo--center { display: flex; flex-direction: column; justify-content: center; gap: 12px; margin-bottom: 16px; }
.logo--center .logo-mark { width: 60px; height: 60px; }
.logo--center .logo__text { font-size: 24px; }
@media (max-width: 420px) { .header .logo__tld { display: none; } .header .logo__text { font-size: 17px; } .header__left { gap: 10px; } .header__right { gap: 8px; } .game-select__btn { gap: 4px; } }
@media (max-width: 400px) { .header .logo__text { display: none; } }
[data-theme="arcade"] { --logo-a: #00f0ff; --logo-m: #ff2bd6; --logo-b: #7a00ff; }
[data-theme="aurora"] { --logo-a: #57c7ff; --logo-m: #7c5cff; --logo-b: #ff7ab6; }
[data-theme="brutal"] { --logo-a: #ffe600; --logo-m: #ffd000; --logo-b: #ff9f00; }
[data-theme="editorial"] { --logo-a: #ea580c; --logo-m: #c2410c; --logo-b: #7c2d12; }
.game-select { position: relative; }
.game-select__btn { display: flex; align-items: center; gap: 8px; white-space: nowrap; background: none; border: 0; cursor: pointer; font-size: 12.5px; color: var(--text-2); padding: 8px 4px; }
.game-select__btn .ico { width: 14px; transition: transform .3s var(--ease); }
.game-select.is-open .game-select__btn .ico { transform: rotate(180deg); }
.game-menu { position: absolute; top: calc(100% + 14px); left: -10px; z-index: 60; width: min(900px, calc(100vw - 40px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; padding: 18px; background: var(--overlay); backdrop-filter: blur(18px); border: var(--bw) solid var(--line-2); border-radius: var(--r); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top left; transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
.game-select.is-open .game-menu { opacity: 1; visibility: visible; transform: none; }
.game-menu__col { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-sm); transition: background .2s; }
.game-menu__col:hover { background: var(--surface-3); }
.game-menu__title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.game-menu__thumb { width: 28px; height: 38px; object-fit: cover; border-radius: calc(6px * var(--rs)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 50%, transparent); }
.game-menu__link { font-size: 12px; color: var(--muted); padding: 3px 0 3px 38px; transition: color .2s, transform .2s; }
.game-menu__link:hover { color: var(--text); transform: translateX(3px); }
.glyph { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: calc(8px * var(--rs)); font-size: 9.5px; font-weight: 700; letter-spacing: .02em; color: var(--gc); background: color-mix(in srgb, var(--gc) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gc) 35%, transparent); }
.glyph--lg { width: 40px; height: 40px; font-size: 16px; border-radius: calc(11px * var(--rs)); }
.glyph--xl { width: 64px; height: 64px; font-size: 26px; border-radius: var(--r); }
.nav { display: flex; gap: 4px; }
.nav__link { position: relative; padding: 8px 12px; font-size: 12.5px; color: var(--muted); transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: translateX(-50%) scale(1); }
.loyalty-link { color: var(--gold); font-size: 12.5px; transition: text-shadow .3s; }
.loyalty-link:hover { text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn-member { display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: var(--r-pill); border: var(--bw) solid color-mix(in srgb, var(--accent) 40%, transparent); background: none; cursor: pointer; color: var(--accent-2); font-size: 12.5px; white-space: nowrap; transition: background .3s, border-color .3s, box-shadow .3s; }
.btn-member .ico { width: 18px; height: 18px; color: var(--accent); }
.btn-member:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-admin { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--on-gold); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 85%, #fff), color-mix(in srgb, var(--gold) 80%, #8a5a00)); transition: transform .3s var(--ease), box-shadow .3s; white-space: nowrap; }
.btn-admin:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--gold) 80%, transparent); }
.btn-admin .ico { width: 15px; height: 15px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--text); }
.burger .ico { width: 22px; height: 22px; }
.user-menu, .lang, .theme-quick { position: relative; }
.user-menu__list, .lang__menu, .theme-quick__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 6px; z-index: 70; border-radius: var(--r-sm); border: var(--bw) solid var(--line-2); background: var(--overlay); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease); }
.lang__menu { right: auto; left: 0; top: auto; bottom: calc(100% + 8px); }
.is-open > .user-menu__list, .is-open > .lang__menu, .is-open > .theme-quick__menu { opacity: 1; visibility: visible; transform: none; }
.user-menu__list a, .user-menu__list button, .lang__menu a, .theme-quick__menu a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: calc(var(--r-sm) * .7); font-size: 12.5px; background: none; border: 0; cursor: pointer; color: var(--text-2); }
.user-menu__list a:hover, .user-menu__list button:hover, .lang__menu a:hover, .theme-quick__menu a:hover, .lang__menu a.is-active, .theme-quick__menu a.is-active { background: var(--surface-3); color: var(--text); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 20px; max-width: var(--max); min-height: 520px; padding-block: 30px 50px; }
.hero__bg { position: absolute; inset: -140px calc(50% - 50vw) 0; z-index: -1; background: var(--hero) center 25% / cover no-repeat; opacity: .22; -webkit-mask: linear-gradient(180deg, #000 30%, transparent 95%), linear-gradient(90deg, transparent, #000 40%); mask: linear-gradient(180deg, #000 30%, transparent 95%); pointer-events: none; }
.hero__text { position: relative; z-index: 2; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-3); font-size: 11.5px; color: var(--text-2); }
.hero__kicker .glyph { width: 22px; height: 22px; font-size: 8px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(36px, 4.8vw, 54px); font-weight: var(--fw-display); line-height: 1.12; letter-spacing: var(--display-tracking); text-transform: var(--display-case); margin: 0 0 22px; }
.hero__text > p { color: var(--muted); font-weight: 300; font-size: 14px; max-width: 420px; margin: 0 0 26px; }
.hero--game h1 { font-size: clamp(32px, 4.2vw, 46px); }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin: 34px 0 0; }
.hero__stats div { display: grid; }
.hero__stats dt { order: 2; font-size: 11px; color: var(--muted); }
.hero__stats dd { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.proof__avatars { display: flex; }
.proof__avatars i { width: 24px; height: 24px; margin-left: -6px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--bg); font-style: normal; font-size: 9px; font-weight: 600; color: #fff; }
.proof__avatars i:first-child { margin-left: 0; }
.proof__rating { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; font-size: 12px; }
.proof__rating small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.last-order { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 11px; color: var(--muted); }
.last-order .ico { width: 13px; height: 13px; }

/* Collage (home hero) */
.collage { position: relative; height: 480px; display: grid; place-items: center; }
.collage__glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 45%, transparent), transparent 65%); filter: blur(40px); opacity: .7; }
.collage__stack { position: relative; width: 210px; aspect-ratio: 2 / 3; }
.collage__card { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--gc) 40%, transparent); transform: translateX(calc(var(--o) * 78px)) translateY(calc(var(--ao) * 22px)) rotate(calc(var(--o) * 9deg)); z-index: calc(10 - var(--ao) * 2); transition: transform .6s var(--ease), box-shadow .4s; background: var(--surface); }
.collage__card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.collage__card span { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 600; text-shadow: 0 2px 8px #000; color: #fff; }
.collage__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75)); }
.collage__card:hover { transform: translateX(calc(var(--o) * 78px)) translateY(calc(var(--ao) * 22px - 16px)) rotate(calc(var(--o) * 9deg)) scale(1.04); z-index: 20; box-shadow: 0 40px 70px -20px var(--gc); }
.collage__card:hover img { transform: scale(1.08); }
.collage__rank { position: absolute; width: 64px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); animation: float 7s ease-in-out infinite; z-index: 25; pointer-events: none; }
.collage__rank--1 { top: 4%; left: 6%; } .collage__rank--2 { top: 0; right: 10%; width: 52px; animation-delay: -2s; }
.collage__rank--3 { bottom: 14%; right: 2%; width: 72px; animation-delay: -4s; } .collage__rank--4 { bottom: 6%; left: 10%; width: 56px; animation-delay: -1s; }
.collage__rank--5 { top: 44%; left: -2%; width: 44px; animation-delay: -3s; } .collage__rank--6 { top: 40%; right: -4%; width: 46px; animation-delay: -5s; }
.hero-art { position: relative; height: 460px; display: grid; place-items: center; pointer-events: none; }
.hero-art__moon { position: absolute; top: 18px; left: 12%; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8b93b8, #3d4470); opacity: .7; }
.hero-art__glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a1) 40%, transparent), transparent 65%); filter: blur(30px); opacity: .55; animation: pulse 6s ease-in-out infinite; }
.hero-art__ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.hero-art__ring--1 { width: 340px; height: 340px; animation: spin 40s linear infinite; border-top-color: color-mix(in srgb, var(--a1) 60%, transparent); }
.hero-art__ring--2 { width: 440px; height: 440px; animation: spin 70s linear infinite reverse; border-left-color: color-mix(in srgb, var(--primary) 60%, transparent); border-style: dashed; }
.hero-art__crest { position: relative; z-index: 2; width: 230px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); animation: float 7s ease-in-out infinite; }
.gem { position: absolute; z-index: 3; width: 34px; height: 34px; background: linear-gradient(135deg, color-mix(in srgb, var(--gc), #fff 30%), var(--gc) 50%, color-mix(in srgb, var(--gc) 60%, #000)); clip-path: polygon(50% 0, 100% 30%, 82% 100%, 18% 100%, 0 30%); filter: drop-shadow(0 0 14px var(--gc)); animation: float 6s ease-in-out infinite; }
.gem--1 { top: 16%; left: 16%; } .gem--2 { top: 10%; right: 18%; width: 26px; height: 26px; } .gem--3 { bottom: 26%; right: 10%; } .gem--4 { bottom: 20%; left: 12%; width: 24px; height: 24px; } .gem--5 { top: 46%; right: 4%; width: 20px; height: 20px; }
.hero-art__fog { position: absolute; bottom: 10px; left: 10%; right: 10%; height: 120px; z-index: 4; background: radial-gradient(ellipse at center, rgba(160,175,220,.22), transparent 65%); filter: blur(16px); }
/* game page visual */
.game-visual { position: relative; height: 460px; display: grid; place-items: center; }
.game-visual__card { position: relative; width: 250px; aspect-ratio: 2 / 3; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gc) 45%, var(--surface)), var(--surface)); box-shadow: 0 50px 90px -30px color-mix(in srgb, var(--gc) 70%, #000), 0 0 0 1px color-mix(in srgb, var(--gc) 40%, transparent); transform: rotate(4deg); animation: float 8s ease-in-out infinite; }
.game-visual__card img { width: 100%; height: 100%; object-fit: cover; }
.rank-ladder { position: absolute; left: 0; bottom: 30px; display: flex; align-items: flex-end; }
.rank-ladder img { width: calc(54px + var(--i) * 8px); margin-left: -12px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.tiers-strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 20px 26px; margin-bottom: 30px; scrollbar-width: thin; }
.tiers-strip figure { margin: 0; flex: 0 0 96px; display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gc) 18%, transparent), transparent 70%); transition: transform .4s var(--ease), border-color .3s; }
.tiers-strip figure:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gc) 60%, transparent); }
.tiers-strip img { width: 58px; height: 58px; object-fit: contain; }
.tiers-strip figcaption { font-size: 10.5px; color: var(--muted); text-align: center; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .85; transform: scale(1.08); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reviews */
.reviews { border: var(--bw) solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(180deg, var(--bg-2), transparent); padding: 34px 0 0; overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: center; padding: 0 52px 30px; font-size: 12.5px; font-weight: 300; }
.reviews__head b { font-weight: 500; }
.reviews__score { display: inline-flex; align-items: center; gap: 10px; }
.stars-box { display: inline-flex; gap: 2px; }
.stars-box i { display: grid; place-items: center; width: 16px; height: 16px; background: #00b67a; }
.stars-box i .ico { width: 11px; height: 11px; color: #fff; }
.stars-box--sm i { width: 12px; height: 12px; } .stars-box--sm i .ico { width: 9px; height: 9px; }
.stars-box i.is-off { background: var(--line-2); }
.stars-text { color: var(--gold); letter-spacing: 2px; } .stars-text .muted { opacity: .35; }
.review-box { margin-bottom: 20px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 28px; line-height: 1; cursor: pointer; color: var(--line-2); transition: color .15s, transform .15s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input label:active { transform: scale(.9); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.reviews-empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reviews__track { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.reviews__rail { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; padding-bottom: 28px; }
.reviews__track:hover .reviews__rail { animation-play-state: paused; }
.reviews__rail.is-static { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
.review { width: 190px; min-height: 140px; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: var(--bw) solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(180deg, var(--surface-3), transparent); transition: border-color .3s, transform .4s var(--ease); }
.review:hover { border-color: var(--line-2); transform: translateY(-4px); }
.review p { margin: 0; font-size: 10.5px; font-weight: 300; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review footer { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 10px; color: var(--muted); }
.review small { font-size: 8px; padding: 1px 4px; border-radius: 3px; background: var(--line-2); }
.avatar { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 9px; font-weight: 600; color: #fff; }

/* Games grid */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.game-card { position: relative; aspect-ratio: 3 / 4; padding: 18px; display: flex; flex-direction: column; border-radius: var(--r); border: var(--bw) solid var(--line); background: radial-gradient(120% 80% at 80% 30%, color-mix(in srgb, var(--gc) 30%, transparent), transparent 60%), radial-gradient(90% 60% at 10% 100%, color-mix(in srgb, var(--gc2) 45%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg-2)); overflow: hidden; isolation: isolate; color: #fff; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
.game-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gc) 30%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gc) 50%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--gc) 70%, transparent); }
.game-card:hover::before { opacity: 1; }
.game-card > * { position: relative; z-index: 1; }
.game-card__art { position: absolute !important; inset: 0; z-index: -1 !important; display: grid; place-items: center; }
.game-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: saturate(.95); }
.game-card.has-cover .game-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 30%, transparent 45%, rgba(0,0,0,.85) 100%); }
.game-card.has-cover .game-card__big, .game-card.has-cover svg { display: none; }
.game-card:hover .game-card__img { transform: scale(1.08); filter: saturate(1.15); }
.game-card__art svg { position: absolute; width: 62%; right: -8%; bottom: 14%; fill: none; stroke: color-mix(in srgb, var(--gc) 50%, transparent); stroke-width: 1.2; opacity: .5; }
.game-card__big { position: absolute; right: -6%; bottom: 22%; font-size: clamp(54px, 7vw, 84px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--gc) 55%, transparent); transform: rotate(-8deg); }
.game-card__icon .glyph { width: 34px; height: 34px; border-radius: calc(10px * var(--rs)); background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.game-card__name { margin-top: auto; font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.game-card__ranks { display: flex; margin-top: 8px; }
.game-card__ranks img { width: 30px; height: 30px; object-fit: contain; margin-right: -6px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); transition: transform .4s var(--ease); }
.game-card:hover .game-card__ranks img { transform: translateY(-3px); }
.game-card__meta { font-size: 10.5px; color: rgba(255,255,255,.7); margin-top: 4px; }
.game-card__go { position: absolute !important; right: 14px; bottom: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gc); color: #0a0f2a; transition: transform .4s var(--ease), box-shadow .4s; }
.game-card__go .ico { width: 14px; height: 14px; }
.game-card:hover .game-card__go { transform: translateX(4px); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gc) 25%, transparent); }

/* Split / video / steps / features / quote / faq / loyalty */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.video-card { border-radius: var(--r); padding: 1px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, transparent), transparent 50%, color-mix(in srgb, var(--accent) 50%, transparent)); }
.video-card__screen { position: relative; aspect-ratio: 16 / 11; border-radius: calc(var(--r) - 1px); display: grid; place-items: center; background: linear-gradient(180deg, rgba(5,10,32,.2), rgba(5,10,32,.75)), var(--shot, none) center / cover, var(--surface); overflow: hidden; }
.video-card__badge { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: .25em; color: #fff; text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent); }
.video-card__play { position: relative; margin-top: 70px; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(5,10,32,.85); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease); }
.video-card__play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); animation: ping 2.4s ease-out infinite; }
.video-card__play:hover { transform: scale(1.1); }
@keyframes ping { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 300; color: var(--text-2); }
.steps span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: none; font-size: 10px; font-weight: 600; color: var(--on-accent); background: var(--accent); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: calc(12px * var(--rs)); background: var(--fc); color: #fff; box-shadow: 0 10px 30px -8px var(--fc); margin-bottom: 26px; transition: transform .5s var(--ease); }
.feature:hover .feature__ico { transform: translateY(-4px) rotate(-6deg); }
.feature h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.feature p { margin: 0; font-size: 12.5px; font-weight: 300; color: var(--muted); line-height: 1.8; }
.split--quote .muted { font-size: 13px; margin: 0 0 28px; max-width: 380px; }
.quote { position: relative; margin: 0; padding: 40px 38px 30px; border: var(--bw) solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--surface), var(--bg-2)); max-width: 300px; justify-self: end; }
.quote blockquote { margin: 0 0 22px; font-size: 13px; font-weight: 300; line-height: 1.9; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.quote figcaption .avatar { width: 30px; height: 30px; font-size: 12px; }
.quote figcaption span:last-child { display: grid; line-height: 1.3; }
.quote figcaption small { color: var(--muted); }
.quote__mark { position: absolute; font-size: 64px; line-height: 1; font-weight: 700; color: var(--accent); font-family: Georgia, serif; }
.quote__mark--open { top: -22px; left: 18px; } .quote__mark--close { bottom: -46px; right: 18px; }
.faq { display: grid; gap: 12px; max-width: 640px; margin-inline: auto; }
.faq__item { border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); transition: border-color .3s, background .3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--surface); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; font-size: 13px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { width: 13px; transition: transform .35s var(--ease); }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; font-size: 12.5px; font-weight: 300; color: var(--muted); line-height: 1.8; animation: fadeUp .4s var(--ease); }
.loyalty { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 42px 48px; border-radius: var(--r-lg); border: var(--bw) solid color-mix(in srgb, var(--gold) 25%, transparent); background: radial-gradient(60% 120% at 100% 0, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.loyalty .h2 { margin-bottom: 8px; }
.loyalty p { margin: 0; font-size: 13px; max-width: 460px; }

/* Calculator */
.calc { position: relative; padding: 54px 52px 40px; border: var(--bw) solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 80%, var(--bg))); box-shadow: var(--shadow); }
.calc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.calc__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 300; }
.pill .ico { width: 13px; height: 13px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 70%, transparent); animation: live 2s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.calc__grid--3 { grid-template-columns: repeat(3, 1fr); }
.field { position: relative; display: flex; flex-direction: column; padding: 11px 16px 10px; border: var(--bw) solid var(--line-2); border-radius: var(--r-sm); background: var(--field); transition: border-color .25s, background .25s, box-shadow .25s; }
.field:hover { border-color: color-mix(in srgb, var(--text) 20%, transparent); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.field label { font-size: 10px; color: var(--muted); font-weight: 400; }
.field label b { color: var(--text); font-weight: 600; }
.field select, .field input, .field textarea, .field--static span { width: 100%; background: none; border: 0; outline: 0; padding: 2px 0 0; font-size: 13px; color: var(--text); -webkit-appearance: none; appearance: none; }
.field select { cursor: pointer; padding-right: 20px; }
.field textarea { resize: vertical; min-height: 60px; padding-top: 4px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input[type="date"] { color-scheme: dark; }
.field--static span { color: var(--text-2); cursor: default; }
.field select option { background: var(--surface); color: var(--text); }
.field:has(select)::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field input[type="range"] { height: 22px; cursor: pointer; }
.field input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 25%), var(--line-2) var(--p, 25%)); }
.field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.field input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.field input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.field input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--text); }
.field--color input[type="color"] { height: 26px; padding: 0; cursor: pointer; border-radius: 6px; }
.field-error { display: block; margin: -4px 0 0 4px; color: color-mix(in srgb, var(--danger) 70%, #fff); font-size: 11px; }
[data-show].is-hidden { display: none; }
.rank-preview { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 14px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px dashed var(--line-2); }
.rank-preview__item { display: flex; align-items: center; gap: 12px; }
.rank-preview__item small { display: block; font-size: 10px; color: var(--muted); }
.rank-preview__item b { font-size: 14px; font-weight: 600; }
.rank-preview__item--end { text-align: right; }
.rank-gem { --gc: #888; width: 44px; height: 44px; flex: none; background: linear-gradient(135deg, color-mix(in srgb, var(--gc), #fff 35%), var(--gc) 50%, color-mix(in srgb, var(--gc) 55%, #000)); clip-path: polygon(50% 0, 100% 30%, 82% 100%, 18% 100%, 0 30%); filter: drop-shadow(0 0 10px var(--gc)); transition: background .4s; }
.rank-gem.has-icon { clip-path: none; background: center / contain no-repeat; width: 58px; height: 58px; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--gc) 60%, transparent)); }
.rank-gem--sm { width: 26px; height: 26px; } .rank-gem--sm.has-icon { width: 30px; height: 30px; }
.rank-gem.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25) rotate(-8deg); } }
.rank-preview__line { position: relative; height: 2px; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 2px; }
.rank-preview__line span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line-2); font-size: 10px; white-space: nowrap; color: var(--text-2); }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; border: var(--bw) solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-3); }
.extra { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: var(--bw) solid var(--line); border-radius: calc(var(--r-sm) * .8); font-size: 11.5px; font-weight: 300; cursor: pointer; user-select: none; transition: border-color .25s, background .25s; }
.extra:hover { border-color: var(--line-2); background: var(--surface-3); }
.extra input, .check input, .chip input, .switch input { position: absolute; opacity: 0; pointer-events: none; }
.extra__box { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: calc(4px * var(--rs)); border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); transition: background .2s, border-color .2s; }
.extra__box .ico { width: 11px; height: 11px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease); color: var(--on-primary); }
.extra input:checked ~ .extra__box, .check input:checked ~ .extra__box { background: var(--primary); border-color: var(--primary); }
.extra input:checked ~ .extra__box .ico, .check input:checked ~ .extra__box .ico { opacity: 1; transform: none; }
.extra:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 60%, transparent); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.extra input:focus-visible ~ .extra__box, .check input:focus-visible ~ .extra__box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.extra--gold .extra__label { color: var(--gold); }
.extra--info { cursor: default; }
.tag { margin-left: auto; padding: 2px 7px; border-radius: var(--r-pill); font-size: 8.5px; font-weight: 600; letter-spacing: .03em; color: #fff; }
.tag--pink { background: linear-gradient(90deg, #f0435a, #b84ff0); }
.tag--gray { background: var(--line-2); color: var(--text-2); }
.tag--blue { background: #2f6ff0; }
.discount { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; animation: fadeUp .3s var(--ease); }
.discount input { flex: 1; min-width: 160px; padding: 10px 14px; border-radius: calc(var(--r-sm) * .8); border: 1px solid var(--line-2); background: var(--field); outline: 0; font-size: 12px; }
.discount input:focus { border-color: var(--accent); }
.discount .btn { padding: 10px 18px; }
.discount small { width: 100%; font-size: 11px; }
.discount small.ok { color: var(--success); } .discount small.err { color: var(--danger); }
.calc__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.total { display: grid; padding-left: 14px; border-left: 2px solid var(--accent); }
.total s { color: var(--danger); font-size: 12px; }
.total > span { font-size: 15px; font-weight: 500; }
.total b { color: var(--accent-2); font-weight: 600; display: inline-block; min-width: 80px; font-size: 1.25em; }
.total b.tick { animation: tick .35s var(--ease); }
.total small { color: var(--muted); font-size: 10.5px; }
@keyframes tick { 30% { transform: translateY(-3px); } }
.calc__foot .btn--xl { min-width: 280px; }
.calc__trust { list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.calc__trust li { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); }
.calc__trust .ico { width: 14px; height: 14px; color: var(--accent); }
#hesapla { margin-bottom: 40px; scroll-margin-top: 90px; }

/* Auth + content pages */
.auth { min-height: 70vh; display: grid; place-items: center; padding-block: 60px; }
.auth__card { width: 100%; max-width: 420px; padding: 44px 36px; border: var(--bw) solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow); }
.auth__form { display: grid; gap: 12px; margin: 26px 0 18px; }
.check { position: relative; display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.check .extra__box { margin-top: 1px; }
.check--box { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: var(--r-sm); background: color-mix(in srgb, var(--gold) 5%, transparent); color: var(--text-2); align-items: center; }
.page { padding-block: 64px 30px; }
.page__grid { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; }
.page__grid--form { grid-template-columns: 280px 1fr; }
.page__nav { position: sticky; top: 100px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.page__nav a { padding: 8px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 12.5px; color: var(--muted); transition: .2s; }
.page__nav a:hover { color: var(--text); }
.page__nav a.is-active { color: var(--text); border-color: var(--accent); }
.prose { max-width: 680px; color: var(--text-2); font-weight: 300; font-size: 14px; line-height: 1.85; }
.prose h2 { font-family: var(--font-display); margin: 34px 0 8px; font-size: 17px; font-weight: 600; color: var(--text); }
.prose p { margin: 0 0 12px; }
.info-stack { display: grid; gap: 10px; }
.info-card { display: flex; gap: 14px; padding: 18px; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--surface-3); }
.info-card .ico { width: 20px; height: 20px; margin-top: 2px; }
.info-card b { font-size: 13px; font-weight: 500; }
.info-card p { margin: 2px 0 0; }

/* Flash + notice */
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: var(--r-sm); border: var(--bw) solid var(--line-2); background: var(--overlay); backdrop-filter: blur(8px); animation: fadeUp .4s var(--ease); }
.flash p { margin: 0; flex: 1; font-size: 12.5px; }
.flash__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--info); box-shadow: 0 0 12px currentColor; color: var(--info); }
.flash--success { border-color: color-mix(in srgb, var(--success) 40%, transparent); } .flash--success .flash__dot { background: var(--success); color: var(--success); }
.flash--error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); } .flash--error .flash__dot { background: var(--danger); color: var(--danger); }
.flash__x { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.flash__x:hover { color: var(--text); }
.notice { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--info) 35%, transparent); background: color-mix(in srgb, var(--info) 7%, transparent); font-size: 12.5px; }
.notice--warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }

/* Footer */
.footer { margin-top: 60px; padding-block: 70px 50px; border-top: var(--bw) solid var(--line); background: linear-gradient(180deg, transparent, var(--bg-2)); }
.footer__inner { max-width: calc(var(--narrow) + 40px); }
.footer__brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 50px; }
.footer__brand p { margin: 0; max-width: 360px; font-size: 12px; color: var(--muted); font-weight: 300; }
.footer__games, .footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
.footer__grid { grid-template-columns: repeat(3, 1fr); }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.footer__col a { font-size: 12px; color: var(--muted); font-weight: 300; transition: color .2s, transform .2s; width: fit-content; }
.footer__col a:hover { color: var(--text); transform: translateX(3px); }
.footer__sep { display: block; width: 26px; height: 2px; background: var(--primary); margin: 44px 0; border-radius: 2px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.lang-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-width: 160px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 12px; cursor: pointer; }
.lang-btn .ico { width: 13px; margin-left: auto; }
.flag { display: grid; place-items: center; min-width: 22px; height: 15px; padding: 0 3px; border-radius: 2px; background: var(--primary); color: var(--on-primary); font-size: 7.5px; font-weight: 700; }
.pay { display: flex; gap: 6px; }
.pay__chip { display: grid; place-items: center; min-width: 32px; height: 20px; padding: 0 5px; border-radius: 3px; background: #fff; color: #111; font-size: 7.5px; font-weight: 700; }
.pay__chip--visa { background: #1a1f71; color: #fff; font-style: italic; } .pay__chip--amex { background: #2e77bc; color: #fff; }
.pay__chip--mc { display: flex; background: #111; } .pay__chip--mc i { width: 11px; height: 11px; border-radius: 50%; background: #eb001b; } .pay__chip--mc i + i { background: #f79e1b; margin-left: -4px; mix-blend-mode: screen; }
.footer__legal { margin: 0 0 12px; font-size: 10.5px; color: var(--muted-2); line-height: 1.8; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__text > * { animation: heroIn 1s var(--ease) both; }
.hero__text > *:nth-child(2) { animation-delay: .1s; } .hero__text > *:nth-child(3) { animation-delay: .2s; } .hero__text > *:nth-child(4) { animation-delay: .3s; } .hero__text > *:nth-child(5) { animation-delay: .4s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
[data-motion="0"] *, [data-motion="0"] *::before, [data-motion="0"] *::after { animation: none !important; transition: none !important; }
[data-motion="0"] .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ===================== Panel ===================== */
.card { position: relative; padding: 24px; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--card-bg); min-width: 0; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.card__head--sub { margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 12px; align-content: start; }
.form-grid__2, .form-grid__3, .form-grid__4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid__3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid__4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid__2 > div { display: grid; gap: 8px; align-content: start; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 34px 10px; text-align: center; color: var(--muted); }
.empty .ico { width: 30px; height: 30px; } .empty p { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 500; white-space: nowrap; border: 1px solid; --c: var(--muted); color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending_payment { --c: var(--warn); } .badge--paid { --c: var(--info); } .badge--in_progress { --c: color-mix(in srgb, var(--primary) 60%, #fff); }
.badge--in_progress::before { animation: blink 1.4s infinite; }
.badge--paused { --c: var(--muted); } .badge--completed { --c: var(--success); } .badge--cancelled { --c: var(--danger); }
@keyframes blink { 50% { opacity: .25; } }
.progress { --bar: linear-gradient(90deg, var(--accent), var(--primary-2)); height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--bar); transition: width .8s var(--ease); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent); }
.progress--lg { height: 10px; } .progress--sm { height: 4px; min-width: 70px; }
.tbl-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { padding: 0 12px 10px; text-align: left; font-size: 10.5px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--surface-3); }
.tbl .glyph { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; vertical-align: middle; }
.tbl tr.is-dim td { opacity: .5; }
.tbl--form td { padding-block: 8px; }
.tbl__new td { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.mini { padding: 7px 9px; border-radius: calc(var(--r-sm) * .7); border: 1px solid var(--line-2); background: var(--field); font-size: 12px; outline: 0; width: 100%; min-width: 0; color: var(--text); }
.mini:focus { border-color: var(--accent); }
.mini--num { width: 86px; } .mini--sm { width: 110px; } .mini--color { width: 44px; height: 32px; padding: 2px; cursor: pointer; }
.mini option { background: var(--surface); }
textarea.mini { resize: vertical; font: inherit; font-size: 12.5px; }
.kv { display: grid; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-weight: 300; } .kv dd { margin: 0; text-align: right; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-3); }
.note p { margin: 4px 0 0; font-size: 12.5px; }

.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 24px 14px 18px; border-right: var(--bw) solid var(--line); background: color-mix(in srgb, var(--bg-2) 80%, transparent); backdrop-filter: blur(14px); z-index: 40; scrollbar-width: thin; }
.side__logo { padding: 0 10px; margin-bottom: 4px; }
.side__role { padding: 0 12px; margin-bottom: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.side__group { display: block; padding: 14px 12px 4px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.side__nav { display: grid; gap: 2px; }
.side__nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted); transition: .2s; }
.side__nav a .ico { width: 17px; height: 17px; }
.side__nav a:hover { color: var(--text); background: var(--surface-3); }
.side__nav a.is-active { color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 28%, transparent), color-mix(in srgb, var(--primary) 4%, transparent)); }
.side__nav a.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.side__nav a.is-active .ico { color: var(--accent-2); }
.side__badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; text-align: center; }
.side__foot { margin-top: auto; display: grid; gap: 4px; padding-top: 14px; }
.side__link { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; border-radius: var(--r-sm); font-size: 12px; color: var(--muted); cursor: pointer; }
.side__link:hover { color: var(--text); background: var(--surface-3); }
.coin-box { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent); }
.coin-box .ico { width: 22px; height: 22px; }
.coin-box small { display: block; font-size: 10px; color: var(--muted); }
.coin-box b { font-size: 15px; color: var(--gold); }
.shell__main { min-width: 0; }
.ptop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 16px 32px; border-bottom: var(--bw) solid var(--line); background: var(--header-bg); backdrop-filter: blur(14px); }
.ptop__burger { display: none; }
.ptop__title { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: var(--display-tracking); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ptop__btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: none; font-size: 12px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ptop__btn:hover { background: var(--surface-3); color: var(--text); }
.ptop__user { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); padding-left: 6px; }
.avatar--sm { width: 32px; height: 32px; font-size: 13px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); font-weight: 600; color: var(--on-primary); }
.theme-quick__menu i { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.theme-quick__reset { border-top: 1px solid var(--line) !important; margin-top: 4px; color: var(--muted) !important; }
.pmain { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 32px 60px; max-width: 1320px; align-content: start; }
.pmain > * { animation: fadeUp .5s var(--ease) both; }
.pmain > *:nth-child(2) { animation-delay: .05s; } .pmain > *:nth-child(3) { animation-delay: .1s; } .pmain > *:nth-child(4) { animation-delay: .15s; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.grid-2--even { grid-template-columns: 1fr 1fr; }
.grid-2--checkout { grid-template-columns: minmax(0, 1fr) 360px; }
.grid-2--heat { grid-template-columns: minmax(0, 1fr) 300px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { position: relative; display: grid; gap: 2px; padding: 20px 22px; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--card-bg); overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 25%, transparent), transparent 70%); }
.stat small { font-size: 11px; color: var(--muted); }
.stat b { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.stat--gold { border-color: color-mix(in srgb, var(--gold) 28%, transparent); } .stat--gold b { color: var(--gold); }
.stat--gold::after { background: radial-gradient(circle, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%); }
.live-order { display: flex; align-items: center; gap: 18px; transition: border-color .25s, transform .3s var(--ease); }
.live-order:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.live-order__body { flex: 1; display: grid; gap: 6px; min-width: 0; }
.live-order__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-order__pct { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--accent-2); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.ledger li:last-child { border: 0; } .ledger small { display: block; font-size: 10.5px; }
.order-hero { display: flex; gap: 22px; align-items: center; overflow: hidden; }
.order-hero__body { flex: 1; display: grid; gap: 4px; min-width: 0; }
.order-hero__top { display: flex; align-items: center; gap: 10px; }
.order-hero h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.order-hero p { margin: 0 0 8px; }
.order-hero__progress { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.order-hero__progress b { color: var(--text); font-weight: 500; }
.order-hero__progress span:last-child { color: var(--accent-2); font-weight: 600; }
.secret { letter-spacing: .1em; }
.disclose { margin-top: 12px; } .disclose summary, .disclose-card summary { cursor: pointer; list-style: none; }
.disclose summary::-webkit-details-marker, .disclose-card summary::-webkit-details-marker { display: none; }
.disclose[open] summary { margin-bottom: 12px; }
.disclose-card summary { font-weight: 500; color: var(--accent-2); }
.disclose-card[open] summary { margin-bottom: 16px; }
.disclose-card > .card { padding: 0; border: 0; background: none; }
.inline-form { display: flex; gap: 8px; align-items: stretch; } .inline-form .field { flex: 1; }
.chat__log { display: flex; flex-direction: column; gap: 10px; height: 340px; overflow-y: auto; padding: 4px 4px 4px 0; scroll-behavior: smooth; scrollbar-width: thin; }
.chat__empty { margin: auto; }
.msg { max-width: 86%; display: flex; align-items: flex-end; gap: 8px; animation: fadeUp .35s var(--ease); }
.msg__wrap { display: grid; gap: 3px; min-width: 0; }
.msg__ava { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--text-2); }
.msg__ava img { width: 100%; height: 100%; object-fit: cover; }
.msg__ava--bot { flex-basis: 38px; width: 38px; height: 38px; border: 0; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.msg__tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .04em; background: linear-gradient(90deg, #ff6fae, #8b5cf6); color: #fff; vertical-align: 1px; }
.msg--bot .msg__body { background: linear-gradient(135deg, color-mix(in srgb, #ff6fae 14%, var(--surface-3)), color-mix(in srgb, #8b5cf6 12%, var(--surface-3))); border-color: color-mix(in srgb, #ff6fae 30%, var(--line)); }
.msg__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip-btn { padding: 6px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: transparent; color: var(--text); font-size: 11.5px; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.chip-btn:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateY(-1px); }
.msg--typing .msg__body { padding: 12px 14px; }
/* profile card */
.pcard { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface-2); border: var(--bw) solid var(--line); padding: 0 18px 18px; display: grid; gap: 12px; }
.pcard__banner { height: 96px; margin: 0 -18px; background: var(--banner); position: relative; overflow: hidden; }
.pcard__banner img { width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.pcard__head { display: flex; align-items: flex-end; gap: 14px; margin-top: -40px; position: relative; }
.pcard__ava { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); border: 4px solid var(--surface-2); box-shadow: 0 0 0 2px var(--tier), 0 12px 24px -10px rgba(0,0,0,.6); font-size: 30px; font-weight: 800; color: var(--text); }
.pcard__ava img { width: 100%; height: 100%; object-fit: cover; }
.pcard__ava--lg { width: 96px; height: 96px; --tier: var(--primary); }
.pcard__id { min-width: 0; flex: 1; padding-bottom: 4px; } .pcard__id h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; } .pcard__id p { margin: 2px 0 0; font-size: 12.5px; }
.pcard__flag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--muted); }
.pcard__tier { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent); white-space: nowrap; }
.pcard__tier .ico { width: 14px; }
.pcard__bio { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.pcard__chips, .pcard__links, .pcard__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; background: var(--surface-3); border: 1px solid var(--line-2); }
.pchip .ico { width: 13px; } .pchip--soft { color: var(--muted); }
.pcard__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 0; border-block: 1px solid var(--line); text-align: center; }
.pcard__stats b { display: block; font-size: 18px; } .pcard__stats small { font-size: 10.5px; color: var(--muted); }
.plink { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 7px; font-size: 12px; background: var(--surface-3); border: 1px solid var(--line); }
.plink em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .05em; color: var(--muted); }
a.plink:hover { border-color: var(--accent); }
.badge-ach { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; font-size: 11.5px; color: var(--muted); border: 1px dashed var(--line-2); opacity: .6; }
.badge-ach .ico { width: 13px; }
.badge-ach.is-on { opacity: 1; color: var(--text); border-style: solid; border-color: color-mix(in srgb, #e3b04b 55%, transparent); background: color-mix(in srgb, #e3b04b 12%, transparent); }
.badge-ach.is-on .ico { color: #e3b04b; }
.grid-2--profile { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.profile-side { position: sticky; top: 80px; }
@media (max-width: 1100px) { .grid-2--profile { grid-template-columns: minmax(0, 1fr); } .profile-side { position: static; order: -1; } }
.ava-pick { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ava-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.ava-preset { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 2px solid var(--line-2); background: var(--surface-3); display: grid; place-items: center; transition: transform .2s var(--ease), border-color .2s; }
.ava-preset img { width: 100%; height: 100%; } .ava-preset input { position: absolute; opacity: 0; }
.ava-preset:hover { transform: scale(1.08); } .ava-preset:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.ava-preset--none span { color: var(--muted); }
.banner-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-opt { position: relative; width: 64px; height: 34px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; transition: transform .2s var(--ease); }
.banner-opt input { position: absolute; opacity: 0; } .banner-opt:hover { transform: translateY(-2px); }
.banner-opt:has(input:checked) { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }
.pill-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-check { position: relative; }
.pill-check input, .ava-preset input, .banner-opt input, .mascot-pick__opt input, .paym__opt input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; overflow: hidden; }
.pill-check span { display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line-2); cursor: pointer; transition: background .2s, border-color .2s; }
.pill-check input:checked + span { background: color-mix(in srgb, var(--primary) 22%, transparent); border-color: var(--primary); color: var(--text); }
.pill-check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.todo { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.toolbar--bottom { position: sticky; bottom: 12px; top: auto; z-index: 5; padding: 12px 16px; border-radius: var(--r-sm); background: var(--overlay, var(--surface-2)); backdrop-filter: blur(12px); border: 1px solid var(--line-2); }
.player-page { padding-block: 40px 70px; display: grid; gap: 16px; }
.hello { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hello .pcard__ava { width: 64px; height: 64px; font-size: 24px; border-width: 3px; }
.hello__body { flex: 1; min-width: 220px; display: grid; gap: 6px; } .hello__body h2 { margin: 0; font-size: 18px; }
.hello__tier { display: flex; align-items: center; gap: 10px; font-size: 12px; } .hello__tier .progress { flex: 1; max-width: 260px; }
.hello__nudge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent); font-size: 12.5px; }
.hello__nudge svg { width: 42px; height: 42px; flex-shrink: 0; }
/* floating helper */
.helper { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.helper.is-in { opacity: 1; transform: none; }
.helper > * { pointer-events: auto; }
.helper__ava { width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, #5b8cff 40%, var(--surface-2)), var(--surface-2) 70%); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6), 0 0 0 2px color-mix(in srgb, #5b8cff 50%, transparent); transition: transform .3s var(--ease); animation: helperBob 4s ease-in-out infinite; }
.helper__ava:hover { transform: scale(1.06) rotate(-3deg); }
.helper__ava svg { width: 100%; height: 100%; }
@keyframes helperBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.helper__bubble { position: relative; max-width: 250px; padding: 12px 30px 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--overlay, var(--surface-2)); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); font-size: 12.5px; line-height: 1.5; }
.helper__bubble b { font-size: 12px; color: #8fb0ff; } .helper__bubble p { margin: 3px 0 0; }
.helper__bubble p.is-swap { animation: fadeUp .4s var(--ease); }
.helper__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.helper__menu { display: grid; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.helper__menu a { padding: 6px 8px; border-radius: 8px; font-size: 12.5px; } .helper__menu a:hover { background: var(--surface-3); }
.helper { --hc: #5b8cff; }
.helper__ava { background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--hc) 40%, var(--surface-2)), var(--surface-2) 70%); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6), 0 0 0 2px color-mix(in srgb, var(--hc) 50%, transparent); }
.helper__bubble b { color: color-mix(in srgb, var(--hc) 75%, #fff); }
.helper__chat { position: relative; width: min(360px, calc(100vw - 110px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 18px 18px 6px 18px; background: var(--overlay, var(--surface-2)); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); overflow: hidden; animation: fadeUp .35s var(--ease); }
.helper__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--hc) 22%, transparent), transparent 70%); }
.helper__head b { display: block; font-size: 13.5px; } .helper__head small { color: var(--muted); font-size: 11px; }
.helper__head-ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex: none; } .helper__head-ava svg { width: 100%; height: 100%; }
.helper__x--head { position: static; margin-left: auto; font-size: 22px; padding: 0 4px; }
.helper__log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; scroll-behavior: smooth; }
.helper__msg { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; white-space: pre-line; animation: fadeUp .3s var(--ease); }
.helper__msg--bot { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 4px; }
.helper__msg--me { align-self: flex-end; background: color-mix(in srgb, var(--hc) 30%, var(--surface-3)); border-bottom-right-radius: 4px; }
.helper__msg--typing { color: var(--muted); font-style: italic; }
.helper__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.helper__chips a.chip-btn { text-decoration: none; display: inline-block; }
.helper__form { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.helper__form input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-1, var(--surface-2)); color: var(--text); font-size: 13px; }
.helper__form input:focus { outline: none; border-color: var(--hc); }
.helper__form .btn { border-radius: 999px; padding-inline: 12px; }
.helper__links { display: flex; justify-content: space-around; padding: 6px 10px 10px; font-size: 11.5px; } .helper__links a { color: var(--muted); } .helper__links a:hover { color: var(--text); }
@media (max-width: 560px) { .helper { right: 12px; bottom: 12px; } .helper__ava { width: 58px; height: 58px; } .helper__bubble { max-width: 200px; font-size: 12px; } .helper__chat { width: calc(100vw - 24px); position: fixed; left: 12px; right: 12px; bottom: 80px; max-height: calc(100vh - 110px); } }
@media (prefers-reduced-motion: reduce) { .helper__ava { animation: none; } }
/* mascot illustrations on pages */
.mascot-side { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.mascot-side__art { width: min(240px, 60vw); flex-shrink: 0; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.mascot-side__art svg { width: 100%; height: auto; display: block; }
.mascot-say { position: relative; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; max-width: 220px; margin-bottom: 150px; margin-left: -18px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.auth--mascot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; justify-items: end; }
.auth--mascot .auth__card { justify-self: center; }
@media (max-width: 900px) { .auth--mascot { grid-template-columns: 1fr; } .auth--mascot .mascot-side { display: none; } }
.empty--mascot svg { width: 140px; height: auto; display: block; margin: 0 auto 6px; }
.mascot-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mascot-pick__opt { position: relative; display: grid; gap: 4px; padding: 12px; border-radius: var(--r-sm); border: var(--bw) solid var(--line); background: var(--surface-3); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.mascot-pick__opt input { position: absolute; opacity: 0; }
.mascot-pick__opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.mascot-pick__art { display: block; height: 150px; } .mascot-pick__art svg { height: 100%; width: auto; margin: 0 auto; display: block; }
.mascot-pick__opt small { font-size: 11px; line-height: 1.45; }
.bot-log { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.bot-log li { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; } .bot-log li span { flex: 1; min-width: 0; }
/* on-page SEO copy (game pages) */
.seo-copy { max-width: 820px; }
.seo-copy p { color: var(--muted); line-height: 1.75; font-size: 15px; margin: 0 0 14px; }
.seo-copy h3 { font-size: 18px; margin: 26px 0 10px; }
.seo-copy__faq-h { margin-top: 40px; }
.seo-copy .faq { max-width: none; margin-top: 16px; }
.seo-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.seo-links h3 { font-size: 14px; margin: 0 0 10px; color: var(--text); }
.seo-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.seo-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--muted); transition: color .2s, border-color .2s; }
.seo-links a:hover, .seo-links a[aria-current] { color: var(--text); border-color: var(--accent); }
/* admin: SEO + site texts */
.seo-pages { display: grid; gap: 6px; margin-top: 10px; }
.seo-page__body { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 16px; padding-bottom: 12px; align-items: start; }
.serp { background: #fff; color: #202124; border-radius: 10px; padding: 12px 14px; font-family: Arial, sans-serif; display: grid; gap: 3px; }
.serp__url { color: #4d5156; font-size: 12px; } .serp__title { color: #1a0dab; font-size: 18px; font-weight: 400; line-height: 1.3; } .serp__desc { color: #4d5156; font-size: 13px; line-height: 1.5; }
.tr-row.is-edited textarea { border-color: var(--accent); }
@media (max-width: 860px) { .seo-page__body { grid-template-columns: 1fr; } }
/* admin: mascots + knowledge base */
.mascot-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.mascot-card__body { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.mascot-card__preview { border-radius: 14px; background: radial-gradient(circle at 50% 35%, var(--surface-3), var(--surface-2)); aspect-ratio: 5 / 6; display: grid; place-items: center; overflow: hidden; }
.mascot-card__preview img { width: 100%; height: 100%; object-fit: contain; }
.mascot-card__colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.color-pick { display: grid; justify-items: center; gap: 4px; font-size: 11px; color: var(--muted); cursor: pointer; }
.color-pick input { width: 40px; height: 40px; padding: 0; border: 2px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.color-pick input::-webkit-color-swatch-wrapper { padding: 0; } .color-pick input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.kb-list { display: grid; gap: 6px; margin-top: 10px; }
.kb-item { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.kb-item summary { cursor: pointer; padding: 10px 0; font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.kb-item[open] { background: var(--surface-2); } .kb-item form { padding-bottom: 12px; }
@media (max-width: 560px) { .mascot-card__body { grid-template-columns: 1fr; } .mascot-card__preview { max-width: 180px; margin: 0 auto; } }
.chat__intro { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border-radius: var(--r-sm); background: linear-gradient(90deg, color-mix(in srgb, #ff6fae 12%, transparent), transparent); border: 1px solid color-mix(in srgb, #ff6fae 22%, var(--line)); }
.chat__intro-ava { flex: 0 0 52px; width: 52px; height: 52px; } .chat__intro-ava svg { width: 100%; height: 100%; }
.chat__intro > div { display: grid; gap: 2px; } .chat__intro b { font-size: 13.5px; } .chat__intro small { font-size: 11.5px; }
.msg__meta { font-size: 10.5px; color: var(--muted); } .msg__meta b { color: var(--text-2); font-weight: 500; }
.msg__body { padding: 10px 14px; border-radius: var(--r) var(--r) var(--r) 4px; background: var(--surface-3); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg--mine { align-self: flex-end; text-align: right; flex-direction: row-reverse; }
.msg--mine .msg__body { text-align: left; border-radius: var(--r) var(--r) 4px var(--r); background: var(--primary); color: var(--on-primary); border-color: transparent; }
.chat__form { display: flex; gap: 8px; margin-top: 14px; }
.chat__form input { flex: 1; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--field); outline: 0; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.chat__form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.chat__err { display: block; min-height: 16px; margin-top: 4px; color: var(--danger); font-size: 11px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline__item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline__dot { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--accent); }
.timeline__dot .ico { width: 13px; height: 13px; }
.timeline__item--completed .timeline__dot { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.timeline__item--cancelled .timeline__dot { color: var(--danger); }
.timeline__item p { margin: 3px 0 0; font-size: 12.5px; } .timeline__item small { font-size: 10.5px; }
.summary { position: sticky; top: 90px; display: grid; gap: 14px; }
.summary__game { display: flex; gap: 12px; align-items: center; } .summary__game small { display: block; }
.summary__main { margin: 0; padding: 14px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); font-weight: 500; text-align: center; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line-2); }
.summary__total b { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--accent-2); }
.summary__trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 11.5px; color: var(--muted); }
.summary__trust li { display: flex; gap: 8px; align-items: center; }
.paybox { padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); display: grid; gap: 8px; }
.paybox__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; } .paybox__head .tag { margin-left: auto; } .paybox p { margin: 0; }
.paybox.is-muted .paym { opacity: .45; pointer-events: none; }
.paym { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.paym__opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--bw) solid var(--line); border-radius: var(--r-sm); background: var(--surface-3); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.paym__opt:hover { border-color: var(--line-2); transform: translateY(-1px); }
.paym__opt input { position: absolute; opacity: 0; pointer-events: none; }
.paym__opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface-3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.paym__opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.paym__body { display: grid; gap: 2px; min-width: 0; } .paym__body b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; } .paym__body small { font-size: 11.5px; }
.paym__fee { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pay-logo { display: grid; place-items: center; flex-shrink: 0; white-space: nowrap; min-width: 72px; height: 30px; padding: 0 8px; border-radius: 7px; background: var(--pb); color: var(--pf); font-size: 12px; font-weight: 800; letter-spacing: -.01em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.paym-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.paym-card { display: grid; gap: 10px; align-content: start; }
.paym-card.is-off { opacity: .72; }
.paym-card__head { display: flex; align-items: center; gap: 12px; }
.paym-card__head > div { display: grid; gap: 2px; min-width: 0; } .paym-card__head small { font-size: 11.5px; }
.paym-card__head .badge { margin-left: auto; }
.paym-card p { margin: 0; }
.pay-steps { display: grid; gap: 8px; margin: 0; }
.pay-steps div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-3); font-size: 13px; }
.pay-steps dt { color: var(--muted); } .pay-steps dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.dot-wait { display: flex; gap: 6px; } .dot-wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: dotw 1.2s infinite ease-in-out; } .dot-wait i:nth-child(2) { animation-delay: .15s; } .dot-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes dotw { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.pay-frame { width: 100%; min-height: 640px; border: 0; border-radius: var(--r-sm); background: #fff; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-sm); width: fit-content; max-width: 100%; overflow-x: auto; background: var(--surface-3); }
.tabs--wrap { flex-wrap: wrap; }
.tabs a { display: flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: calc(var(--r-sm) * .8); font-size: 12.5px; color: var(--muted); white-space: nowrap; transition: .2s; }
.tabs a .ico { width: 14px; height: 14px; }
.tabs a span { padding: 0 7px; border-radius: var(--r-pill); background: var(--line-2); font-size: 10.5px; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--on-primary); background: var(--primary); }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; gap: 2px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-3); }
.seg a { padding: 6px 12px; border-radius: calc(var(--r-sm) * .7); font-size: 12px; color: var(--muted); white-space: nowrap; }
.seg a small { opacity: .7; margin-left: 4px; }
.seg a.is-active { background: var(--primary); color: var(--on-primary); }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.job { display: grid; gap: 10px; align-content: start; transition: transform .3s var(--ease), border-color .25s; }
.job:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.job--prio { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.job__top { display: flex; gap: 12px; align-items: center; } .job__top small { display: block; }
.job__main { margin: 0; font-size: 15px; font-weight: 600; } .job p { margin: 0; }
.job__foot { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.job__foot small { display: block; font-size: 10.5px; } .job__foot b { font-size: 18px; }
.alerts { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-chip, .live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--info) 30%, transparent); background: color-mix(in srgb, var(--info) 6%, transparent); font-size: 12px; transition: background .2s; }
.alert-chip:hover { background: color-mix(in srgb, var(--info) 12%, transparent); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 200px; }
.bars__col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; align-items: end; text-align: center; }
.bars__col i { display: block; width: 100%; border-radius: calc(6px * var(--rs)) calc(6px * var(--rs)) 2px 2px; background: linear-gradient(180deg, var(--accent-2), var(--primary)); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bars__col:hover i { filter: brightness(1.3); }
.bars__col i.is-zero { background: var(--line); }
.bars__col small { font-size: 9.5px; color: var(--muted-2); }
@keyframes grow { from { transform: scaleY(0); } }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hbars__label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12.5px; }
.filters { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.filters .field { min-width: 200px; }
.filters .btn { align-self: center; }
.filters--inline { align-items: center; } .filters--inline .mini { width: auto; min-width: 180px; }
.inbox { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.inbox__item { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-3); }
.inbox__item.is-new { border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.inbox__item p { margin: 4px 0 0; font-size: 12.5px; } .inbox__item .btn-row { margin-top: 8px; }
.inbox__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }

/* Admin: toolbar, games, editors */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar p { margin: 0; max-width: 640px; }
.toolbar--wrap { justify-content: flex-start; }
.toolbar--sticky { position: sticky; top: 70px; z-index: 20; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--overlay); backdrop-filter: blur(12px); }
.toolbar--sticky-bottom { position: sticky; bottom: 12px; margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--overlay); backdrop-filter: blur(12px); }
.game-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.game-admin { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; }
.game-admin.is-off { opacity: .6; }
.game-admin__media { position: relative; aspect-ratio: 2 / 3; border-radius: var(--r-sm); overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gc) 40%, var(--surface)), var(--surface)); }
.game-admin__media img { width: 100%; height: 100%; object-fit: cover; }
.game-admin__media .badge { position: absolute; left: 6px; bottom: 6px; font-size: 9px; padding: 2px 7px; background: var(--overlay); }
.game-admin__body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.game-admin h3 { margin: 0; font-size: 15px; font-family: var(--font-display); }
.game-admin p { margin: 0; }
.tier-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.tier-strip i { width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--gc) 30%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 60%, transparent); display: grid; place-items: center; }
.tier-strip img { width: 20px; height: 20px; object-fit: contain; }
.img-field { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.img-field__prev { aspect-ratio: 2 / 3; border-radius: var(--r-sm); overflow: hidden; background: radial-gradient(circle, color-mix(in srgb, var(--gc) 35%, var(--surface)), var(--surface)); border: 1px dashed var(--line-2); }
.img-field__prev img { width: 100%; height: 100%; object-fit: cover; }
.file { font-size: 11.5px; color: var(--muted); max-width: 100%; }
.file::file-selector-button { margin-right: 10px; padding: 6px 12px; border-radius: calc(var(--r-sm) * .7); border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text); cursor: pointer; font: inherit; }
.file--mini { font-size: 0; width: 34px; } .file--mini::file-selector-button { font-size: 11px; padding: 6px 8px; margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; cursor: pointer; user-select: none; position: relative; }
.switch > span:first-of-type, .switch input + span { position: relative; width: 36px; height: 20px; flex: none; border-radius: var(--r-pill); background: var(--line-2); transition: background .25s; }
.switch input + span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--on-primary); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.svc { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-3); cursor: pointer; }
.svc:has(input:checked) { border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.svc.is-off { opacity: .55; }
.svc__body { display: grid; gap: 6px; flex: 1; min-width: 0; } .svc__body small { display: block; font-size: 11px; }
.rep { display: grid; gap: 6px; }
.rep-head { display: grid; grid-template-columns: 1fr 86px 64px; gap: 8px; padding: 0 2px 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.rep__row { display: grid; grid-template-columns: 1fr 86px 64px; gap: 8px; align-items: center; animation: fadeUp .3s var(--ease); }
.rep-head--tier, .rep__row--tier { grid-template-columns: 34px minmax(110px, 1.2fr) minmax(90px, 1fr) minmax(150px, 1.4fr) 44px minmax(130px, 1.2fr) 64px; }
.rep__row--tier .mini--num { width: 100%; font-variant-numeric: tabular-nums; }
.ladder > summary { cursor: pointer; list-style: none; flex-wrap: wrap; gap: 10px; }
.ladder > summary::-webkit-details-marker { display: none; }
.ladder > summary h2::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--muted); transition: transform .2s; }
.ladder[open] > summary h2::before { transform: rotate(90deg); }
.ladder > summary + * { margin-top: 12px; }
.ladder h3 { font-size: 14px; }
.rep__tools { display: flex; gap: 4px; justify-content: flex-end; }
.rep__tools button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.rep__tools button:hover { color: var(--text); border-color: var(--accent); }
.rep__tools [data-del]:hover { color: var(--danger); border-color: var(--danger); }
.icon-cell { display: flex; gap: 6px; align-items: center; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.danger-zone p { margin: 2px 0 0; }
.svc-card.is-off { opacity: .7; }
.svc-card { display: grid; gap: 14px; }
.formula { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px dashed var(--line-2); font-size: 13px; }
.formula__label { font-weight: 600; color: var(--accent-2); }
.formula__in { display: grid; gap: 2px; text-align: center; }
.formula__in input { width: 74px; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--field); text-align: center; outline: 0; }
.formula__in input:focus { border-color: var(--accent); }
.formula__in small { font-size: 9.5px; color: var(--muted); }
.formula__ex { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .tri input { text-align: center; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.setting { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-3); font-size: 12.5px; }
.setting b { font-weight: 500; }
.setting--bool { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 12px; color: var(--muted); transition: .2s; }
.chip input:checked + span { background: color-mix(in srgb, var(--primary) 18%, transparent); border-color: var(--primary); color: var(--text); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.chips--lg .chip span { padding: 9px 14px; }
.color-pair { display: flex; gap: 8px; align-items: center; } .color-pair input[type=color] { width: 36px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.theme-card { border-radius: var(--r); border: var(--bw) solid var(--line); background: var(--card-bg); overflow: hidden; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.theme-card.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 40%, transparent); }
.theme-card__body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.theme-card__body h3 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-size: 16px; font-family: var(--font-display); }
.theme-card__body p { margin: 0; }
.swatches { display: flex; gap: 6px; } .swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.theme-card__art { position: relative; height: 150px; background: var(--a); overflow: hidden; display: grid; grid-template: 18px 1fr 34px / 1fr 1fr 1fr; gap: 8px; padding: 12px; }
.theme-card__art span { display: block; }
.ta-nav { grid-column: 1 / -1; border-radius: 4px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.ta-hero { grid-column: 1 / -1; border-radius: 8px; background: linear-gradient(120deg, var(--b), color-mix(in srgb, var(--b) 30%, var(--a))); }
.ta-card { border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, var(--a)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.ta-btn { position: absolute; right: 22px; top: 52px; width: 70px; height: 20px; border-radius: 6px; background: var(--c); }
.theme-art--brutal .ta-hero, .theme-art--brutal .ta-card, .theme-art--brutal .ta-nav, .theme-art--brutal .ta-btn { border-radius: 0; border: 2px solid var(--c); }
.theme-art--brutal .ta-hero { background: var(--b); }
.theme-art--aurora { background: linear-gradient(135deg, #f7f4ff, #ffe9f4 60%, #e7f7ff); }
.theme-art--aurora .ta-card, .theme-art--aurora .ta-nav { background: rgba(255,255,255,.65); border-color: rgba(124,92,255,.2); border-radius: 12px; }
.theme-art--aurora .ta-hero { border-radius: 16px; background: linear-gradient(120deg, #7c5cff, #ff7ab6); }
.theme-art--aurora .ta-btn { border-radius: 99px; background: #1d1a2e; }
.theme-art--arcade { background: linear-gradient(180deg, #0a0014 50%, #2a0040), repeating-linear-gradient(90deg, rgba(255,43,214,.25) 0 1px, transparent 1px 22px); }
.theme-art--arcade .ta-hero { background: linear-gradient(180deg, #ff2bd6, #ff8a00); box-shadow: 0 0 18px #ff2bd6; border-radius: 2px; }
.theme-art--arcade .ta-card { border: 1px solid #00f0ff; background: transparent; box-shadow: 0 0 8px #00f0ff inset; }
.theme-art--arcade .ta-btn { background: #00f0ff; box-shadow: 0 0 12px #00f0ff; }
.theme-art--editorial .ta-hero { background: transparent; border-top: 2px solid var(--b); border-bottom: 1px solid var(--b); border-radius: 0; }
.theme-art--editorial .ta-card { background: transparent; border: 0; border-top: 1px solid var(--b); border-radius: 0; }
.theme-art--editorial .ta-btn { background: var(--c); border-radius: 0; }
.inline-mini { display: inline; margin-left: 8px; }
.tr-list { display: grid; gap: 6px; }
.tr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.tr-row.is-missing { border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: color-mix(in srgb, var(--warn) 4%, transparent); }
.tr-row__src { font-size: 12.5px; color: var(--text-2); word-break: break-word; padding-top: 6px; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg--a::before { background: var(--accent); } .lg--b::before { background: var(--gold); }
.linechart { position: relative; height: 220px; }
.linechart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.linechart polyline { fill: none; vector-effect: non-scaling-stroke; stroke-width: 2; stroke-linejoin: round; }
.lc-a { stroke: var(--accent); } .lc-b { stroke: var(--gold); stroke-dasharray: 4 4; }
.lc-area { fill: color-mix(in srgb, var(--accent) 12%, transparent) !important; stroke: none; }
.linechart__hits { position: absolute; inset: 0; display: flex; }
.linechart__hits span { flex: 1; } .linechart__hits span:hover { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 12%, transparent)); }
.linechart__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--muted-2); }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.funnel li { position: relative; display: flex; justify-content: space-between; padding: 10px 14px; border-radius: var(--r-sm); font-size: 12.5px; overflow: hidden; z-index: 0; }
.funnel li::before { content: ""; position: absolute; inset: 0; width: var(--w); z-index: -1; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 45%, transparent), color-mix(in srgb, var(--accent) 25%, transparent)); }
.split-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.range-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.heat-card { padding: 12px; overflow: hidden; }
.heat-stage { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-2); min-height: 300px; }
.heat-frame-wrap { position: relative; transform-origin: 0 0; }
.heat-frame-wrap iframe { display: block; border: 0; width: 1280px; height: 1200px; pointer-events: none; background: #fff; }
.heat-frame-wrap canvas { position: absolute; inset: 0; pointer-events: none; }
.heat-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--text); background: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 13px; }
.heat-scale { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.heat-scale i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #2b6cff, #00e0ff, #3dff5c, #ffe100, #ff1a1a); }
.rank-list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: 12.5px; }
.rank-list li { padding-left: 4px; } .rank-list li b { float: right; }
.tag-area { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-family: var(--font-mono); background: var(--surface-3); border: 1px solid var(--line-2); }
.tag-area--order { color: var(--info); } .tag-area--game, .tag-area--service, .tag-area--extra { color: var(--gold); } .tag-area--settings, .tag-area--theme, .tag-area--i18n { color: var(--accent-2); } .tag-area--system, .tag-area--heatmap { color: var(--danger); } .tag-area--user { color: var(--success); }
.table-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.table-chips span { display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 12px; }
.table-chips i { font-style: normal; color: var(--accent-2); font-weight: 600; }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-2--checkout, .grid-2--even, .grid-2--heat, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
    .form-grid__4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rep-head--tier { display: none; }
    .rep__row--tier { grid-template-columns: 30px 1fr 1fr; }
    .rep__row--tier .icon-cell, .rep__row--tier .rep__tools { grid-column: span 3; justify-content: flex-start; }
}
@media (max-width: 980px) {
    .header { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 18px; }
    .header__left, .game-select, .game-select__btn { min-width: 0; }
    .game-select__btn { max-width: 100%; }
    .game-select__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .header .logo, .game-select__btn .ico { flex-shrink: 0; }
    /* Mobile menu sheet: starts at the header's real bottom edge (--nav-top, measured by app.js), fully hidden when
       closed. ".header .nav" beats theme rules like ".header > *" or a pill ".nav" so every theme gets the same sheet. */
    .header .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 64px); bottom: auto; z-index: 60; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - var(--nav-top, 64px)); overflow-y: auto; overscroll-behavior: contain;
        border-radius: 0; border: 0; border-top: var(--bw) solid var(--line); background: var(--overlay); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility .35s; }
    .header .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .header .nav .nav__link { display: flex; align-items: center; min-height: 48px; padding: 12px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; }
    .header .nav .nav__link.is-active { color: var(--accent); }
    body.nav-open { overflow: hidden; }
    .hero, .hero--home { overflow-x: clip; }
    body.nav-open .header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .burger { display: grid; }
    .loyalty-link { display: none; }
    .game-menu { grid-template-columns: repeat(2, 1fr); }
    .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .side { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .4s var(--ease); box-shadow: 30px 0 80px -30px #000; background: var(--overlay); }
    .side.is-open { transform: none; }
    .ptop { padding: 12px 16px; }
    .ptop__burger { display: grid; }
    .ptop__btn span, .ptop__user span:last-child { display: none; }
    .pmain { padding: 18px 14px 50px; }
    .page__grid, .page__grid--form { grid-template-columns: 1fr; gap: 24px; }
    .page__nav { position: static; display: flex; flex-wrap: wrap; border: 0; gap: 6px; }
    .page__nav a { border: 1px solid var(--line); border-radius: var(--r-pill); margin: 0; }
    .page__nav a.is-active { border-color: var(--accent); }
    .settings-grid { grid-template-columns: 1fr; }
    .tr-row { grid-template-columns: 1fr; }
    .toolbar--sticky { top: 60px; }
}
@media (max-width: 760px) {
    .topbar { grid-template-columns: repeat(2, 1fr); }
    .topbar__item:nth-child(2) { border-right: 0; }
    .topbar__item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; overflow-x: clip; }
    .collage, .game-visual, .hero-art { height: 340px; order: -1; margin-bottom: -10px; }
    .collage__stack { width: 150px; }
    .collage__card { transform: translateX(calc(var(--o) * 52px)) translateY(calc(var(--ao) * 16px)) rotate(calc(var(--o) * 9deg)); }
    .collage__rank { width: 44px !important; }
    .game-visual__card { width: 180px; }
    .hero__stats { gap: 22px; }
    .section { padding-block: 64px; }
    .split, .split--quote, .features { grid-template-columns: 1fr; gap: 36px; }
    .quote { justify-self: start; max-width: none; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .reviews__head { padding-inline: 20px; }
    .calc { padding: 34px 18px 26px; }
    .calc__grid, .calc__grid--3, .extras { grid-template-columns: 1fr; }
    .calc__foot .btn--xl { width: 100%; min-width: 0; }
    .rank-preview { grid-template-columns: 1fr; text-align: center; }
    .rank-preview__item, .rank-preview__item--end { justify-content: center; }
    .rank-preview__line { height: 30px; width: 2px; margin: 0 auto; }
    .loyalty { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
    .footer__games, .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .btn-member { padding: 9px 12px; } .btn-member span, .btn-admin span { display: none; } .btn-admin { padding: 9px 11px; }
    .game-menu { position: fixed; top: var(--gm-top, 72px); left: 16px; right: 16px; width: auto; grid-template-columns: 1fr; max-height: calc(100dvh - var(--gm-top, 72px) - 16px); overflow: auto; }
}
@media (max-width: 560px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 16px; } .stat b { font-size: 19px; }
    .form-grid__2, .form-grid__3, .form-grid__4 { grid-template-columns: 1fr; }
    .card { padding: 18px; }
    .tbl-wrap { margin: 0 -18px; padding: 0 18px; }
    .order-hero { flex-direction: column; align-items: flex-start; }
    .live-order__pct { display: none; }
    .inline-form { flex-direction: column; }
    .msg { max-width: 90%; }
    .game-admin { grid-template-columns: 70px 1fr; }
    .img-field { grid-template-columns: 70px 1fr; }
    .formula__ex { margin-left: 0; width: 100%; }
    .hero__stats dd { font-size: 18px; }
}

/* ===================== Calculator v2 (modular) ===================== */
.calc { display: grid; gap: 22px; }
.calc--split { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; padding: 34px; gap: 30px; }
.calc__main { display: grid; gap: 22px; min-width: 0; }
.calc__side { align-self: stretch; }
.calc__sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.calc__head { margin: 0; }
.calc__head .h2 { margin: 0; }
.calc__head--compact .h2 br { display: none; }
.blk { display: grid; gap: 12px; min-width: 0; }
.blk-wrap { min-width: 0; }
.blk__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.blk__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.blk__value { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); }
/* service picker */
.svc-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); border: var(--bw) solid var(--line-2); background: var(--surface-3); color: var(--text-2); font-size: 13px; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease); }
.svc-opt:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); }
.svc-opt.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 10px 26px -12px var(--glow); }
.svc-opt__ico { display: grid; place-items: center; }
.svc-opt__ico .ico { width: 15px; height: 15px; }
.svc-opt small { display: block; font-size: 10.5px; opacity: .75; }
.svc-pick--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.svc-pick--cards .svc-opt { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--r); text-align: left; }
.svc-pick--cards .svc-opt__ico { width: 34px; height: 34px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.svc-pick--cards .svc-opt.is-on .svc-opt__ico { background: rgba(255,255,255,.2); color: inherit; }
.svc-pick--cards .svc-opt__name { font-weight: 600; }
/* visual rank picker */
.tier-pick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent); }
.tier { position: relative; flex: 0 0 92px; scroll-snap-align: center; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: var(--r); border: var(--bw) solid var(--line); background: var(--surface-3); color: var(--muted); font-size: 11px; cursor: pointer; transition: transform .35s var(--ease), border-color .25s, background .25s, color .25s, box-shadow .35s; }
.tier img { width: 52px; height: 52px; object-fit: contain; filter: grayscale(.85) brightness(.75); transition: filter .35s, transform .45s var(--ease); }
.tier .rank-gem { width: 40px; height: 40px; margin: 6px 0; filter: grayscale(.7) brightness(.8); }
.tier:hover { color: var(--text); transform: translateY(-3px); }
.tier:hover img, .tier:hover .rank-gem { filter: none; }
.tier.is-on { color: var(--text); border-color: color-mix(in srgb, var(--gc) 70%, transparent); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gc) 26%, transparent), transparent 70%), var(--surface-3); box-shadow: 0 14px 30px -16px var(--gc), inset 0 0 0 1px color-mix(in srgb, var(--gc) 40%, transparent); }
.tier.is-on img, .tier.is-on .rank-gem { filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--gc) 70%, transparent)); transform: scale(1.12); }
.div-pick { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.div-pick:empty { display: none; }
.div-opt { min-width: 42px; padding: 6px 12px; border-radius: var(--r-pill); border: var(--bw) solid var(--line-2); background: none; color: var(--text-2); font: 600 12px var(--font-mono); cursor: pointer; transition: .2s; }
.div-opt:hover { border-color: var(--accent); }
.div-opt.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* count */
.count-ctl { display: flex; align-items: center; gap: 10px; }
.count-ctl .field { flex: 1; }
.step-btn { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); border: var(--bw) solid var(--line-2); background: var(--surface-3); color: var(--text); font-size: 20px; cursor: pointer; transition: .2s; }
.step-btn:hover { border-color: var(--accent); color: var(--accent); }
/* options as pills */
.blk--pills { gap: 14px; }
.opt-row { display: grid; gap: 8px; }
.pill-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-opt { padding: 7px 14px; border-radius: var(--r-pill); border: var(--bw) solid var(--line-2); background: none; color: var(--text-2); font-size: 12.5px; cursor: pointer; transition: .2s; }
.pill-opt:hover { border-color: var(--accent); }
.pill-opt.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--text); }
.blk--options .calc__grid { margin: 0; }
/* journey */
.journey { display: grid; grid-template-columns: 1fr minmax(80px, 1.2fr) 1fr; align-items: center; gap: 14px; padding: 22px; border-radius: var(--r); border: var(--bw) solid var(--line); background: radial-gradient(60% 120% at 0% 50%, color-mix(in srgb, var(--primary) 12%, transparent), transparent), radial-gradient(60% 120% at 100% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent), var(--surface-3); }
.journey__end { display: grid; justify-items: center; gap: 4px; text-align: center; }
.journey__end small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.journey__end b { font-family: var(--font-display); font-size: 15px; }
.journey .rank-gem { width: 56px; height: 56px; }
.journey .rank-gem.has-icon { width: 92px; height: 92px; }
.journey__path { position: relative; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }
.journey__path i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: jRun 2.2s var(--ease) infinite; }
@keyframes jRun { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
.journey__path span { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line-2); font-size: 11px; white-space: nowrap; color: var(--text-2); }
.journey--compact { padding: 14px 18px; }
.journey--compact .rank-gem.has-icon { width: 56px; height: 56px; }
.journey--compact .journey__end { grid-template-columns: auto auto; justify-items: start; column-gap: 10px; text-align: left; }
.journey--compact .journey__end .rank-gem { grid-row: span 2; }
.journey--compact .journey__end--to { justify-content: end; }
/* extras variants */
.extras--chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: none; }
.extras--chips .extra { border-radius: var(--r-pill); padding: 8px 14px; }
.extras--chips .tag { margin-left: 4px; }
.extras--chips .discount { width: 100%; }
.extras--cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.extras--cards .extra { align-items: flex-start; padding: 14px; }
.extras--cards .extra__label small { display: block; margin-top: 2px; font-size: 11px; color: var(--accent-2); font-weight: 600; }
/* summary */
.sum { display: grid; gap: 14px; }
.sum--panel { padding: 20px; border-radius: var(--r); border: var(--bw) solid var(--line-2); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.sum__game { display: flex; align-items: center; gap: 12px; }
.sum__game img { width: 46px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
.sum__game small { display: block; font-size: 11px; color: var(--muted); }
.sum__game b { font-family: var(--font-display); font-size: 15px; }
.sum__lines { list-style: none; margin: 0; padding: 12px 0; display: grid; gap: 8px; border-block: 1px dashed var(--line-2); font-size: 12.5px; }
.sum__lines li { display: flex; justify-content: space-between; gap: 12px; }
.sum__lines span { color: var(--muted); }
.sum__lines b { font-weight: 500; text-align: right; }
.sum--panel .total { border: 0; padding: 0; }
.sum--panel .total b { font-size: 1.9em; }
.sum--panel .btn--xl { width: 100%; min-width: 0; padding-inline: 20px; }
.sum__note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; color: var(--muted); }
.sum--bar { grid-template-columns: 1fr auto; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.sum--bar .sum__note { grid-column: 1 / -1; }
.calc--split .calc__trust { flex-direction: column; margin: 0; padding: 14px 0 0; }
@media (max-width: 980px) {
    .calc--split { grid-template-columns: 1fr; padding: 28px 22px; }
    .calc__sticky { position: static; }
}
@media (max-width: 760px) {
    .sum--bar { grid-template-columns: 1fr; }
    .journey { grid-template-columns: 1fr; padding: 18px; }
    .journey__path { height: 34px; width: 2px; margin: 0 auto; }
    .journey__path i { display: none; }
    .journey__path span { top: 50%; left: 14px; transform: translateY(-50%); }
    .tier { flex-basis: 80px; }
}

/* spend-more (volume) discount progress under the calculator total */
.vol { margin: 10px 0 14px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--success) 8%, transparent); border: var(--bw) solid color-mix(in srgb, var(--success) 25%, transparent); }
.vol__bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.vol__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 60%, var(--accent))); transition: width .5s var(--ease); }
.vol__msg { margin: 7px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.vol.is-max .vol__msg { color: var(--success); font-weight: 600; }

/* never let a decorative element create sideways page scroll on phones; clip (unlike hidden) keeps sticky headers working */
html, body { overflow-x: clip; max-width: 100%; }
/* comfortable touch targets + no iOS zoom-on-focus (inputs under 16px make Safari zoom in) */
@media (max-width: 760px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px; }
    .btn:not(.btn--sm), .burger, .lang-btn { min-height: 44px; }
    .burger { min-width: 44px; place-items: center; }
}
