:root {
  --bg: #f6f6fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: rgba(22, 18, 52, 0.09);
  --text: #16132b;
  --muted: #615c7c;
  --brand: #e8336f;
  --brand-2: #d97b00;
  --accent: #6a4cf5;
  --ok: #0f9d63;
  --warn: #c27400;
  --danger: #dc3348;
  --soft: #f2f1f8;
  --soft-2: #e9e7f3;
  --field: #ffffff;
  --field-line: rgba(22, 18, 52, 0.16);
  --grad: linear-gradient(120deg, #ff3d7f 0%, #ff7a59 50%, #ffb547 100%);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(40, 24, 110, 0.14);
  --card-shadow: 0 1px 2px rgba(22, 18, 52, 0.04), 0 8px 24px rgba(40, 24, 110, 0.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 60px; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(255, 122, 89, 0.12), transparent 60%);
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-size: 17px; box-shadow: 0 6px 20px rgba(255, 61, 127, 0.4); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .btn { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn):not(.acc) { display: none; } .nav { gap: 14px; } }
.nav a.acc { color: var(--text); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px rgba(255, 61, 127, 0.35); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255, 61, 127, 0.45); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: #fff; color: var(--text); box-shadow: var(--card-shadow); border: 1px solid var(--field-line); }
.btn.ghost:hover { background: var(--soft); box-shadow: var(--card-shadow); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.block { width: 100%; }

/* hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 61, 127, 0.08); color: var(--brand); font-weight: 600; font-size: 14px; border: 1px solid rgba(255, 61, 127, 0.25); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 61, 127, .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 61, 127, 0); } }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -0.03em; margin: 18px 0 18px; font-weight: 800; }
h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-stats b { display: block; color: var(--text); font-size: 24px; }
.phone {
  position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  border: 8px solid #222036; box-shadow: var(--shadow), 0 0 0 1px var(--line), 0 0 120px rgba(255, 61, 127, 0.18); background: #000;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.live-badge { position: absolute; top: 14px; left: 14px; background: #ff2d55; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 6px; letter-spacing: .05em; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* sections */
section { padding: 72px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.2; }
.sec-head p { margin: 0; color: var(--muted); max-width: 620px; }
.kicker { color: var(--brand-2); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* how */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 22px; }
.step .n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 92, 255, .18); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.game { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.game:hover { transform: translateY(-4px); border-color: rgba(255, 61, 127, .4); box-shadow: 0 18px 40px rgba(40, 24, 110, .12); }
.game .thumb { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; cursor: pointer; }
.game .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.game:hover .thumb img { transform: scale(1.04); }
.game .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .7)); }
.game .play span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; display: grid; place-items: center; font-size: 20px; padding-left: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.game .tag { position: absolute; top: 12px; left: 12px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.game .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game h3 { margin: 0; font-size: 19px; }
.game p { margin: 0; color: var(--muted); font-size: 14.5px; }
.game ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.game li { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--text); }
.game .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.game .price { font-weight: 800; font-size: 18px; }
.game .price small { color: var(--muted); font-weight: 500; font-size: 13px; }
.game.soon .thumb { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #f4f3fa, #f4f3fa 14px, #eceaf5 14px, #eceaf5 28px); cursor: default; }
.game.soon .thumb div { text-align: center; color: var(--muted); }
.game.soon .thumb b { display: block; font-size: 44px; }

/* pricing */
.promo { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 12px; background: #fff4e3; color: #a85f00; border: 1px solid rgba(217, 123, 0, .25); font-weight: 600; font-size: 14.5px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.hl { background: linear-gradient(#fffafc, #fffafc) padding-box, var(--grad) border-box; border: 2px solid transparent; transform: translateY(-10px); box-shadow: 0 30px 70px rgba(255, 61, 127, .18); }
.plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 16px; border-radius: 999px; }
.plan:not(.hl) .badge { background: rgba(106, 76, 245, .12); color: var(--accent); }
.plan h3 { margin: 0; font-size: 21px; }
.plan .psub { color: var(--muted); font-size: 14.5px; margin: 4px 0 18px; }
.plan .amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .amount small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .save { color: var(--ok); font-weight: 700; font-size: 14px; min-height: 22px; margin: 8px 0 18px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: '✓'; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(15, 157, 99, .12); color: var(--ok); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.hl { transform: none; order: -1; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* support */
.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.support a { box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-weight: 600; transition: border-color .2s; }
.support a:hover { border-color: rgba(232, 51, 111, .35); }
.support .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
.support small { display: block; color: var(--muted); font-weight: 400; }

footer { background: #fff; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 16, 40, .45); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal .box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.modal .box.video { width: auto; padding: 0; background: #000; border: 0; overflow: hidden; }
.modal .box.video video { max-height: calc(100vh - 32px); width: auto; max-width: 100%; }
.modal .x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); color: var(--text); font-size: 20px; cursor: pointer; z-index: 2; }
.modal h3 { margin: 0 0 4px; font-size: 22px; }
.modal .msub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

/* form */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--field-line); border-radius: 12px; padding: 11px 14px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 61, 127, .2); }
.pick { display: grid; gap: 8px; }
.pick label { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font-weight: 500; }
.pick label:has(input:checked) { border-color: var(--brand); background: rgba(255, 61, 127, .06); }
.pick input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pick img { width: 40px; height: 52px; object-fit: cover; object-position: top; border-radius: 8px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.buy-as { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 8px; }
.buy-as small { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px dashed var(--line); margin-top: 6px; font-weight: 700; }
.total b { font-size: 22px; }

/* order / lookup pages */
.page { padding: 48px 0 80px; }
.panel { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: 22px; padding: 28px; max-width: 720px; margin: 0 auto; }
.panel + .panel { margin-top: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.status.paid { background: rgba(15, 157, 99, .1); color: var(--ok); }
.status.pending { background: rgba(217, 123, 0, .1); color: var(--warn); }
.status.cancelled { background: rgba(220, 51, 72, .1); color: var(--danger); }
.keybox { display: flex; gap: 10px; align-items: center; background: #fff8ec; border: 1px dashed rgba(217, 123, 0, .5); border-radius: 14px; padding: 16px 18px; margin: 8px 0 4px; }
.keybox code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: clamp(16px, 4vw, 22px); font-weight: 700; letter-spacing: .06em; color: var(--brand-2); flex: 1; word-break: break-all; }
.rows { display: grid; gap: 10px; margin: 16px 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.rows span { color: var(--muted); }
.rows b { text-align: right; }
.dl { display: grid; gap: 10px; margin-top: 12px; }
.dl a, .dl div { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); text-decoration: none; }
.dl .dl-item { padding: 0; display: block; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.dl .dl-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.guide { border-top: 1px solid var(--line); padding: 0 14px; }
.guide summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 14.5px; color: var(--brand); }
.guide ol { margin: 0 0 8px; padding-left: 22px; font-size: 14.5px; }
.guide ol:empty { display: none; }
.guide li { margin: 4px 0; }
.guide p { margin: 4px 0 10px; font-size: 14.5px; }
.dl img { width: 44px; height: 58px; object-fit: cover; object-position: top; border-radius: 8px; }
.dl .grow { flex: 1; }
.qr { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 16px; }
.qr img { width: 220px; border-radius: 14px; background: #fff; }
@media (max-width: 600px) { .qr { grid-template-columns: 1fr; justify-items: center; } }
.note { color: var(--muted); font-size: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: #16132b; color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; transition: transform .25s; z-index: 99; }
.toast.show { transform: translateX(-50%) translateY(0); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(22, 18, 52, .12); border-top-color: var(--warn); animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
