:root {
  --ink: #0A0E14;
  --panel: #10151D;
  --raise: #182131;
  --line: #223042;
  --line2: #32455E;
  --paper: #E8EDF4;
  --mute: #8B98AB;
  --neon: #C9F560;
  --teal: #57E0D1;
  --gold: #F6C453;
  --blood: #FF6B6B;
  --radius: 8px;
  --font-display: "Lalezar", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--neon); color: #14200A; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 5px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--mute); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

.font-display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--neon); }

/* ---------- reusable bits ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(10,14,20,0.9), rgba(10,14,20,0.94) 55%, var(--ink) 96%),
    url("../img/hero-bg.png"),
    linear-gradient(rgba(139, 152, 171, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 152, 171, 0.05) 1px, transparent 1px);
  background-size: cover, cover, 42px 42px, 42px 42px;
  background-position: center, center, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed, fixed, local, local;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-neon { background: var(--neon); color: #14200A; box-shadow: 0 12px 32px -14px rgba(201, 245, 96, 0.55); }
.btn-neon:hover { background: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: .02em;
}
.section-title { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 42px); line-height: 1.2; margin-top: 10px; }
.section-lead { color: var(--mute); max-width: 640px; margin: 14px auto 0; }
.center { text-align: center; }

/* terminal window */
.twin {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.twin-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: var(--raise);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}
.twin-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.twin-bar .dot.red { background: var(--blood); }
.twin-bar .dot.yel { background: var(--gold); }
.twin-bar .dot.grn { background: var(--neon); }
.twin-bar .title { margin-inline-start: 10px; }
.twin-bar .st { margin-inline-start: auto; font-size: 10px; color: var(--teal); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }
.twin-body { padding: 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 2; }

.caret {
  display: inline-block;
  width: 9px; height: 1.05em;
  margin-inline-start: 3px;
  background: var(--neon);
  vertical-align: text-bottom;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* navbar */
.topbar {
  background: #080B10;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mute);
  padding: 7px 0;
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; }
.topbar .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 1.6s infinite; }
.topbar a.wa { color: var(--neon); margin-inline-start: auto; }
.topbar a:hover { text-decoration: underline; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 21px; line-height: 1; }
.nav .brand img { width: 34px; height: 34px; border-radius: 6px; }
.nav .links { display: flex; gap: 26px; margin-inline-start: 8px; }
.nav .links a { font-size: 14px; color: var(--mute); position: relative; padding-bottom: 4px; border-bottom: 1px solid rgba(139, 152, 171, 0.25); }
.nav .links a:hover { color: var(--paper); border-bottom-color: var(--line2); }
.nav .links a::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 100%; height: 2px; background: var(--neon); opacity: 0; transition: opacity .2s; }
.nav .links a:hover::after, .nav .links a.active::after { opacity: 1; }
.nav .links a.active { color: var(--paper); border-bottom-color: var(--neon); }
.nav .cta { margin-inline-start: auto; }
.nav .burger { display: none; margin-inline-start: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; width: 40px; height: 40px; cursor: pointer; }

.mmenu {
  display: none;
  background: rgba(10, 14, 20, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 16px;
}
.mmenu a { display: block; padding: 11px 0; font-size: 15px; color: var(--mute); border-bottom: 1px solid rgba(34, 48, 66, 0.4); }
.mmenu a:last-child { border-bottom: 0; }
.mmenu a:hover { color: var(--paper); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 78px 0 60px; background: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 70% 20%, rgba(10,14,20,0.2), transparent 70%); }
.hero .fg-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(ellipse 55% 45% at 75% 25%, rgba(87, 224, 209, 0.10), transparent 60%),
  radial-gradient(ellipse 45% 40% at 25% 75%, rgba(201, 245, 96, 0.06), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 62px); line-height: 1.12; margin: 18px 0 20px; }
.hero .lead { color: var(--mute); font-size: 17px; max-width: 540px; margin: 0 0 30px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 42px; max-width: 560px; }
.hero-stats .cell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; text-align: center; }
.hero-stats .num { font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--neon); }
.hero-stats .lbl { font-size: 11px; color: var(--mute); margin-top: 2px; }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--panel); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 30s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: 13.5px; color: var(--mute); white-space: nowrap; }
.marquee span::before { content: "■ "; color: var(--teal); font-size: 9px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* sections */
.section { padding: 74px 0; }
.section-head { text-align: center; margin-bottom: 44px; }

/* games grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; cursor: pointer;
  padding: 8px 16px; border-radius: 6px;
  background: var(--panel); border: 1px solid var(--line); color: var(--mute);
  transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--line2); color: var(--paper); }
.chip.on { border-color: var(--neon); color: var(--neon); }

.gcard {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.gcard:hover { border-color: var(--neon); transform: translateY(-4px); }

.gb-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--raise); }
.gb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gcard:hover .gb-img img { transform: scale(1.06); }
.gb-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,.05) 30%, rgba(10,14,20,.72) 100%); }
.gb-code {
  position: absolute; top: 10px; inset-inline-end: 10px;
  font-family: var(--font-mono); font-size: 10.5px;
  background: rgba(10,14,20,.72); border: 1px solid rgba(201,245,96,.45);
  color: var(--neon); border-radius: 4px; padding: 3px 8px;
  backdrop-filter: blur(3px);
}
.gb-body { padding: 16px 20px 20px; }
.gb-tile {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(135deg, rgba(201,245,96,.10), transparent 55%),
    linear-gradient(315deg, rgba(87,224,209,.10), transparent 55%),
    repeating-linear-gradient(45deg, rgba(139,152,171,.045) 0 1px, transparent 1px 9px),
    var(--raise);
  border-bottom: 1px solid var(--line);
}
.gb-tile .glyph { font-family: var(--font-mono); font-size: 27px; color: var(--neon); margin: 0; line-height: 1; }
.gb-tile .gb-code { top: auto; bottom: 10px; }

.gb-body .code { font-family: var(--font-mono); font-size: 11px; color: var(--teal); }
.gb-body h3 { font-size: 17px; margin-top: 2px; }
.gb-body .meta { font-size: 12px; color: var(--mute); margin-top: 3px; }
.gb-body .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 13px; border-top: 1px solid rgba(34, 48, 66, 0.5); }
.gb-body .price { font-family: var(--font-mono); font-weight: 600; color: var(--paper); }
.gb-body .price small { color: var(--mute); font-weight: 400; }
.gcard .arrow { color: var(--neon); font-family: var(--font-mono); }

/* feature / spec rows */
.spec { width: 100%; border-collapse: collapse; }
.spec td { padding: 13px 0; border-bottom: 1px solid rgba(34, 48, 66, 0.5); font-family: var(--font-mono); font-size: 13.5px; }
.spec td:first-child { color: var(--teal); white-space: nowrap; padding-inline-end: 18px; }
.spec tr:last-child td { border-bottom: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature:hover { border-color: var(--teal); }
.ficon { width: 42px; height: 42px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--neon); margin-bottom: 14px; }
.ficon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature .tag { font-family: var(--font-mono); font-size: 11px; color: var(--teal); }
.feature h3 { font-size: 16.5px; margin-top: 12px; }
.feature p { font-size: 14px; color: var(--mute); margin: 8px 0 0; line-height: 1.75; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 980px; margin-inline: auto; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.plan:hover { border-color: var(--line2); }
.plan .p-name { font-family: var(--font-display); font-size: 22px; }
.plan .p-desc { font-size: 14px; color: var(--mute); margin-top: 4px; }
.plan .p-price { font-family: var(--font-mono); font-size: 34px; font-weight: 600; color: var(--neon); margin: 20px 0 4px; }
.plan .p-price small { font-size: 13px; color: var(--mute); font-weight: 400; }
.plan ul { margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { font-size: 13.5px; color: var(--mute); display: flex; gap: 9px; }
.plan li::before { content: "✓"; color: var(--neon); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan.plan-hot { border-color: var(--neon); }
.plan.plan-hot .pill { position: absolute; top: -11px; inset-inline-start: 22px; background: var(--neon); color: #14200A; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 4px 12px; border-radius: 4px; }

/* locations */
.locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.loc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.loc:hover { border-color: var(--gold); }
.loc .code { font-family: var(--font-mono); font-size: 11px; color: var(--gold); }
.loc h3 { font-size: 16px; margin-top: 8px; }
.loc .sub { font-size: 12.5px; color: var(--mute); margin-top: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { font-family: var(--font-mono); font-size: 26px; color: var(--neon); }
.step .bar { width: 30px; height: 2px; background: var(--line2); margin: 12px 0; }
.step h3 { font-size: 16px; }
.step p { font-size: 14px; color: var(--mute); margin-top: 6px; line-height: 1.75; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item.open { border-color: var(--line2); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; font-weight: 600; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { font-family: var(--font-mono); color: var(--teal); transition: transform .2s; }
.faq-item.open summary .pm { transform: rotate(45deg); }
.faq-item .a { padding: 0 20px 18px; color: var(--mute); font-size: 14px; line-height: 1.85; }

/* cta band */
.cta-band { border-block: 1px solid var(--line); background: var(--panel); padding: 54px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: var(--mute); max-width: 560px; margin: 12px auto 26px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 52px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; }
.footer .brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 20px; margin-bottom: 14px; }
.footer .brand img { width: 32px; height: 32px; border-radius: 6px; }
.footer .desc { font-size: 13.5px; color: var(--mute); max-width: 300px; line-height: 1.85; }
.footer a.f-link { display: block; font-size: 13.5px; color: var(--mute); padding: 4px 0; width: fit-content; }
.footer a.f-link:hover { color: var(--neon); }
.footer .foot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--mute); }

/* generic page hero (subpages) */
.page-hero { padding: 54px 0 44px; position: relative; overflow: hidden; }
.page-hero .fg-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 50px); margin-top: 12px; }
.page-hero p { color: var(--mute); max-width: 640px; margin-top: 12px; font-size: 16px; }

/* legal prose */
.legal .section { padding: 48px 0; }
.prose { max-width: 800px; margin-inline: auto; display: grid; gap: 22px; }
.prose h3 { font-size: 20px; margin-top: 14px; }
.prose h3::before { content: "// "; font-family: var(--font-mono); color: var(--teal); font-size: 16px; }
.prose p, .prose li { color: var(--mute); font-size: 15px; line-height: 1.9; }
.prose ul { list-style: none; display: grid; gap: 8px; }
.prose ul li::before { content: "— "; color: var(--neon); font-family: var(--font-mono); }
.prose .note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 13.5px; color: var(--mute); font-family: var(--font-mono); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border: 1px solid var(--line); font-size: 14px; }

/* game template */
.game-hero { padding: 52px 0 44px; }
.detail-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.detail-main .panel { padding: 26px; }
.detail-main h2 { font-family: var(--font-display); font-size: 24px; margin: 18px 0 6px; }
.detail-main > * + .panel { margin-top: 18px; }
.detail-side { display: grid; gap: 18px; position: sticky; top: 84px; }
.side-plans { display: grid; gap: 12px; }
.side-plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-plan:hover { border-color: var(--line2); }
.side-plan .top { display: flex; justify-content: space-between; align-items: baseline; }
.side-plan .top .nm { font-weight: 700; font-size: 15px; }
.side-plan .top .pr { font-family: var(--font-mono); color: var(--neon); font-weight: 600; }
.side-plan ul { margin-top: 10px; display: grid; gap: 6px; }
.side-plan li { font-size: 12.5px; color: var(--mute); display: flex; gap: 8px; }
.side-plan li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.side-plan .btn { width: 100%; margin-top: 12px; }
.panel-note { margin-top: 18px; }
.game-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); }
.game-meta b { color: var(--paper); font-weight: 600; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.related-links a { font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; transition: border-color .2s, color .2s; }
.related-links a:hover { border-color: var(--neon); color: var(--neon); }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin-inline: auto; }
.contact-card { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s; }
.contact-card:hover { border-color: var(--line2); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.contact-card h3 { font-size: 15.5px; }
.contact-card p { font-size: 13px; color: var(--mute); font-family: var(--font-mono); margin-top: 2px; }
.form { display: grid; gap: 14px; }
.form label { font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: var(--ink); border: 1px solid var(--line); color: var(--paper);
  font-size: 14.5px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--neon); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* floating whatsapp */
.fab {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--neon); color: #14200A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(201, 245, 96, 0.55);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 26px; height: 26px; }

.to-top {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); color: var(--mute);
  display: none; align-items: center; justify-content: center; cursor: pointer;
  font-family: var(--font-mono);
}
.to-top.show { display: flex; }
.to-top:hover { color: var(--neon); border-color: var(--neon); }

/* featured spot cards (image system like a classic game-host) */
.spots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.spot {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 3/4; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .25s ease, border-color .25s;
}
.spot:hover { transform: translateY(-4px); border-color: var(--neon); }
.spot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.spot:hover img { transform: scale(1.06); }
.spot .spot-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,.10) 0%, rgba(10,14,20,.62) 55%, rgba(10,14,20,.96) 100%); }
.spot .spot-body { position: absolute; inset-inline: 0; bottom: 0; padding: 16px 18px 18px; }
.spot .code { font-family: var(--font-mono); font-size: 11px; color: var(--teal); }
.spot h3 { font-family: var(--font-display); font-size: 24px; margin: 3px 0 8px; }
.spot .spot-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spot .pr { font-family: var(--font-mono); font-size: 13px; color: var(--mute); }
.spot .pr b { color: var(--neon); font-size: 15px; }

/* world dot map */
.world-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; align-items: stretch; }
.map-frame { padding: 10px 12px 12px; overflow: hidden; }
.map-frame svg { width: 100%; height: auto; display: block; color: var(--line2); }
.mdot { fill: currentColor; opacity: .62; }
.map-line { fill: none; stroke: rgba(201,245,96,.50); stroke-width: 1.6; stroke-dasharray: 4 8; animation: lineflow 2.2s linear infinite; }
@keyframes lineflow { to { stroke-dashoffset: -24; } }
.map-node { cursor: pointer; }
.map-node .core { stroke: rgba(10,14,20,.9); stroke-width: 1.5; }
.map-node .halo { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0; }
.map-node.best { color: #4ADE80; }
.map-node.on .core { stroke-width: 2.5; filter: drop-shadow(0 0 7px currentColor); }
.map-node.on .halo { opacity: 1; animation: ring 2.1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0% { transform: scale(.35); opacity: .95; } 75% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
.map-tag { font-family: var(--font-mono); font-size: 12px; fill: #4ADE80; }
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--mute); padding: 0 4px; }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }

.dcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.dcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; cursor: default; transition: border-color .2s; }
.dcard:hover { border-color: var(--line2); }
.dcard.in { border-color: #4ADE80; box-shadow: inset 0 0 0 1px rgba(74,222,128,.35); }
.dc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dc-flag { display: block; width: 54px; height: 36px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.45); overflow: hidden; }
.dc-flag .dflag { width: 100%; height: 100%; display: block; }
.dc-msrow { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dc-code { font-family: var(--font-mono); font-size: 11.5px; color: var(--teal); display: inline-flex; align-items: center; gap: 7px; }
.dc-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dc-ms { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--paper); }
.dc-ms small { font-size: 11px; color: var(--mute); font-weight: 400; }
.dcard h3 { font-size: 18px; margin: 12px 0 3px; }
.dc-sub { font-size: 13px; color: var(--mute); }
.dc-best, .dc-bw { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; border-radius: 4px; padding: 3px 9px; }
.dc-best { background: rgba(74,222,128,.14); border: 1px solid rgba(74,222,128,.5); color: #4ADE80; }
.dc-bw { background: var(--raise); border: 1px solid var(--line); color: var(--mute); }
@media (max-width: 900px) {
  .world-grid { grid-template-columns: 1fr; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- programming ------- */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prog { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.prog:hover { border-color: var(--neon); transform: translateY(-3px); }
.prog .pcode { font-family: var(--font-mono); font-size: 11px; color: var(--teal); }
.prog h3 { font-size: 17px; }
.prog p { font-size: 13px; color: var(--mute); line-height: 1.7; flex: 1; }
.prog .chat { font-family: var(--font-mono); font-size: 12.5px; color: var(--neon); }
.prog .chat:hover { text-decoration: underline; }
@media (max-width: 1000px) { .prog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .prog-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: start; }
.about-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about-card h3 { font-size: 19px; margin-bottom: 10px; }
.about-card p { font-size: 14px; color: var(--mute); line-height: 1.95; }
.about-card p + p { margin-top: 12px; }
.about-list { list-style: none; display: grid; gap: 10px; }
.about-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--paper); line-height: 1.7; }
.about-list li::before { content: "▸"; color: var(--neon); font-family: var(--font-mono); }
.about-cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- auth (login) ---------- */
.auth-wrap { max-width: 460px; margin-inline: auto; }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.auth-card .tabs { display: flex; gap: 6px; background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin-bottom: 22px; }
.auth-card .tab { flex: 1; text-align: center; padding: 9px; border-radius: 6px; font-size: 14px; color: var(--mute); cursor: pointer; border: 0; background: none; font-family: inherit; }
.auth-card .tab.on { background: var(--ink); color: var(--neon); border: 1px solid var(--line); }
.auth-card label { display: block; font-size: 12.5px; color: var(--mute); margin: 12px 0 6px; font-family: var(--font-mono); }
.auth-card input { width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--paper); border-radius: 8px; padding: 12px 14px; font-size: 14px; outline: none; font-family: inherit; }
.auth-card input:focus { border-color: var(--neon); }
.auth-card .btn { margin-top: 18px; width: 100%; }
.auth-card .hint { font-size: 12px; color: var(--mute); text-align: center; margin-top: 14px; line-height: 1.8; }
.auth-card .hint a { color: var(--neon); }
.auth-note { background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; color: var(--mute); }
.auth-note b { color: var(--neon); }
.auth-status { font-family: var(--font-mono); font-size: 12.5px; padding: 9px 12px; border-radius: 6px; margin-bottom: 14px; display: none; }
.auth-status.err { display: block; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.5); color: #F87171; }
.auth-status.ok { display: block; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.5); color: #4ADE80; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--mute); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; justify-content: center; gap: 10px; }
.btn-google svg { width: 18px; height: 18px; }

/* ---------- order confirm modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(5,8,12,.74); padding: 20px; }
.modal-back.show { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); max-width: 470px; width: 100%; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-head h3 { font-size: 18px; }
.modal .m-close { background: none; border: 0; color: var(--mute); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.modal .m-close:hover { color: var(--paper); }
.modal .m-sub { font-size: 13px; color: var(--mute); }
.modal .m-order { font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 14px 0 16px; line-height: 1.9; max-height: 140px; overflow: auto; }
.modal .tick { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--paper); line-height: 1.75; cursor: pointer; }
.modal .tick input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--neon); cursor: pointer; flex: none; }
.modal .tick b { color: var(--neon); }
.modal .m-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal .m-actions .btn { flex: 1; justify-content: center; }
.modal .m-actions .btn[disabled] { opacity: .4; cursor: not-allowed; }

.gdetail-img { width: 100%; max-height: 300px; object-fit: cover; object-position: center; filter: brightness(.96); }

.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb .sep { margin-inline: 8px; color: var(--line2); }

/* game theme background (plans page) */
body.game-bg {
  background-image:
    linear-gradient(rgba(10, 14, 20, 0.86), rgba(10, 14, 20, 0.95) 55%, var(--ink) 96%),
    var(--gbg);
  background-repeat: no-repeat, no-repeat;
  background-size: contain, cover;
  background-position: center top, center;
  background-attachment: fixed, fixed;
}

/* order modal: location picker */
.modal .m-region { margin-top: 16px; }
.modal .m-r-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--neon); }
.modal .m-r-hint { font-size: 11px; color: var(--mute); }
.modal .m-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.modal .m-ri {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  background: var(--raise); font-size: 13px; color: var(--paper);
}
.modal .m-ri .dflag { width: 30px; height: 20px; border-radius: 2px; display: block; }
.modal .m-ri small { color: var(--mute); font-size: 10.5px; }
.modal .m-ri input { display: none; }
.modal .m-ri.on { border-color: #4ADE80; background: rgba(74,222,128,.08); box-shadow: inset 0 0 0 1px rgba(74,222,128,.35); }
.modal .m-ri:has(input:checked) { border-color: #4ADE80; background: rgba(74,222,128,.08); box-shadow: inset 0 0 0 1px rgba(74,222,128,.35); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav .links, .nav .cta { display: none; }
  .nav .burger { display: flex; }
  .mmenu.show { display: block; }
  .topbar .wa { margin-inline-start: auto; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .topbar { font-size: 10.5px; }
}