/* EWIN AI VISION — ai-gambling.ewin888.com
   Dark felt + gold palette aimed at casino operators. Single stylesheet, no
   external fonts or CDNs. */

:root {
  --bg: #060d0a;
  --bg-alt: #09130e;
  --surface: #0c1a14;
  --surface-2: #10241b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e7efe9;
  --muted: #93a99e;
  --dim: #6f857a;

  --gold: #d8b45c;
  --gold-dim: #a8873c;
  --teal: #3fe0bd;
  --teal-dim: #1f8d78;
  --blue: #5ea8ff;
  --red: #ff6b7a;

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai",
    "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", "Hiragino Sans",
    "Malgun Gothic", "Leelawadee UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.28; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.1rem); letter-spacing: -.02em; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #10130b; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
      stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 2; }
.logo-mark .lm-2 { stroke: var(--teal); }
.logo-mark .lm-dot { fill: var(--teal); stroke: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: .93rem; letter-spacing: .1em; font-weight: 700; }
.logo-text i { font-style: normal; font-size: .68rem; color: var(--dim); letter-spacing: .06em; }

.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; background: none;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer; padding: 11px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-link { padding: 8px 13px; border-radius: 8px; font-size: .93rem; color: var(--muted);
  transition: color .16s, background .16s; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: var(--gold); }
.nav-side { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font: inherit;
  font-size: .85rem; padding: 7px 11px; }
.lang-btn:hover { color: var(--text); border-color: var(--line-strong); }
.lang-btn .caret { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 158px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 11px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s; z-index: 60;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-item { display: block; padding: 8px 12px; border-radius: 7px; font-size: .88rem; color: var(--muted); }
.lang-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-item.is-active { color: var(--gold); }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: transform .14s, background .16s, border-color .16s, opacity .16s;
  white-space: nowrap;
}
.btn .ic { width: 1em; height: 1em; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--gold), #eccf88); color: #171206; }
.btn-primary:hover { background: linear-gradient(135deg, #e3c271, #f4dda1); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 9px 15px; font-size: .87rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-weight: 600; }
.link-arrow:hover { gap: 11px; }
.link-arrow .ic { width: 1em; height: 1em; transition: transform .16s; }

/* -------------------------------------------------------------- structural */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.sec-head-left { margin-left: 0; text-align: left; }
.sec-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.sec-head h2 .count {
  display: inline-block; margin-inline-start: 10px; font-size: .8rem; font-weight: 600;
  color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 20px; padding: 1px 10px;
  vertical-align: middle;
}
.sec-foot { margin: 34px 0 0; text-align: center; }
.sec-head-left + .gcards { margin-top: 4px; }

.page-head { padding: clamp(48px, 7vw, 84px) 0 clamp(20px, 3vw, 34px);
  background: radial-gradient(90% 130% at 50% -30%, rgba(63, 224, 189, .09), transparent 62%); }
.page-head-tight { padding-bottom: 12px; }
.page-head h1 { max-width: 22ch; }

.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--muted); max-width: 68ch; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--teal); margin: 0 0 18px; }
.eyebrow .ic { width: 1.1em; height: 1.1em; }

.fineprint { font-size: .8rem; color: var(--dim); margin: 18px 0 0; line-height: 1.65; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.tight { gap: 12px; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.split-wide { grid-template-columns: 1.25fr .75fr; }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card-sm { padding: 18px; }
.card-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 11px; margin-bottom: 15px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); color: var(--muted); }
.card-ic .ic { width: 20px; height: 20px; }
.card-ic.accent { color: var(--teal); background: rgba(63, 224, 189, .09); border-color: rgba(63, 224, 189, .22); }

.ticks { display: grid; gap: 11px; margin: 18px 0 0; }
.ticks-2 { grid-template-columns: repeat(2, 1fr); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.ticks .ic { width: 17px; height: 17px; margin-top: 4px; color: var(--teal); stroke-width: 2.4; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.chip { display: inline-block; font-size: .76rem; padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.chip-read { border-color: rgba(63, 224, 189, .28); color: #8fe8d5; background: rgba(63, 224, 189, .07); }
.chip-out { border-color: rgba(216, 180, 92, .3); color: #e8d29a; background: rgba(216, 180, 92, .07); }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 20px; border: 1px solid; }
.tag-live { color: #6ff0c4; border-color: rgba(63, 224, 189, .4); background: rgba(63, 224, 189, .12); }
.tag-dev { color: #ffcf7a; border-color: rgba(255, 190, 92, .4); background: rgba(255, 190, 92, .1); }
.tag-planned { color: var(--dim); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }

.legend { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.legend h3 { margin-bottom: 14px; }
.legend ul { display: grid; gap: 13px; }
.legend li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
  font-size: .87rem; color: var(--muted); }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 88px); }
.hero-bg { position: absolute; inset: -12% -6% auto -6%; height: 130%; opacity: .1; filter: blur(3px); }
.hero-bg svg { width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(78% 110% at 26% 18%, rgba(63, 224, 189, .12), transparent 58%),
              linear-gradient(180deg, transparent 30%, var(--bg) 96%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero-copy h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-note { display: flex; gap: 9px; align-items: flex-start; font-size: .87rem; color: var(--dim); margin: 0; }
.hero-note .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--teal); stroke-width: 2.4; }

.hero-visual { position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.hero-visual .table-visual { width: 100%; height: 100%; display: block; }
.hero-caption { position: absolute; left: 14px; bottom: 12px; font-size: .74rem; color: rgba(255,255,255,.72);
  background: rgba(0, 0, 0, .5); padding: 4px 11px; border-radius: 20px; backdrop-filter: blur(6px); }

.table-visual .det { color: var(--teal); opacity: 0; animation: detIn .5s ease forwards; animation-delay: var(--d); }
.table-visual .det-p { color: var(--blue); }
.table-visual .det-b { color: var(--red); }
@keyframes detIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.table-visual .scan { animation: scanDown 4.2s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes scanDown { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(620px); } }

/* ------------------------------------------------------------------- stats */

.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-size: clamp(1.6rem, 3.3vw, 2.4rem); font-weight: 700; color: var(--gold);
  letter-spacing: -.02em; line-height: 1.1; }
.stat b i { font-style: normal; font-size: .55em; margin-inline-start: 2px; }
.stat span { font-size: .82rem; color: var(--muted); }

/* -------------------------------------------------------------------- flow */

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: f; }
.flow-step { position: relative; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); }
.flow-step::after { content: ""; position: absolute; top: 44px; inset-inline-end: -12px; width: 8px; height: 8px;
  border-top: 2px solid var(--line-strong); border-inline-end: 2px solid var(--line-strong);
  transform: rotate(45deg); }
.flow-step:last-child::after { display: none; }
.flow-num { display: block; font-family: var(--mono); font-size: .8rem; color: var(--teal); margin-bottom: 12px; }
.flow-step p { color: var(--muted); font-size: .9rem; margin: 0; }

.steps-inline { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; }
.steps-inline li { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--muted); }
.steps-inline b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(63, 224, 189, .13); border: 1px solid rgba(63, 224, 189, .3);
  color: var(--teal); font-size: .74rem; }

.game-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gstrip { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .16s, transform .16s;
  position: relative; }
.gstrip:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.gstrip b { font-size: .87rem; }
.gstrip span { font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.dot-live { position: absolute; top: 13px; inset-inline-end: 13px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(63, 224, 189, .17); }

/* ------------------------------------------------------------------- shoes */

.shoe-grid { gap: 18px; }
.shoe-grid-tight { margin-top: 26px; }
.card-shoe { display: flex; flex-direction: column; }
.shoe-art { background: linear-gradient(160deg, #0e2119, #081511); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 18px; padding: 8px; }
.shoe-art .dev { width: 100%; height: auto; display: block; }
.card-shoe .tag { align-self: flex-start; margin-bottom: 10px; }

.dev { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dev .dev-body { fill: #163024; stroke: var(--line-strong); stroke-width: 1.4; }
.dev .dev-body2 { fill: #1d4032; stroke: var(--line-strong); stroke-width: 1.2; }
.dev .dev-fill { fill: #1d4032; stroke: none; }
.dev .dev-line { stroke: var(--dim); stroke-width: 1.3; }
.dev .dev-dash { stroke-dasharray: 4 4; }
.dev .dev-glass { fill: rgba(63, 224, 189, .1); stroke: none; }
.dev .dev-card { fill: #f2f1ec; stroke: #b9b5aa; stroke-width: .8; }
.dev .dev-slot { fill: #071410; stroke: var(--line-strong); stroke-width: 1.1; }
.dev .dev-lens { fill: #04100c; stroke: var(--teal); stroke-width: 1.4; }
.dev .dev-glint { fill: rgba(255, 255, 255, .55); stroke: none; }
.dev .dev-beam { fill: rgba(63, 224, 189, .1); stroke: none; }
.dev .dev-scan { stroke: var(--teal); stroke-width: 1.6; stroke-dasharray: 6 5; }
.dev .dev-accent { fill: var(--teal); stroke: none; }
.dev .dev-accent2 { stroke: var(--gold); stroke-width: 1.2; }
.dev .dev-accent3 { fill: var(--teal); stroke: none; }
.dev .dev-led { fill: #2b3a33; stroke: none; }
.dev .dev-led.on { fill: var(--teal); }
.dev .dev-port { fill: #0a1c15; stroke: var(--gold-dim); stroke-width: 1.2; }
.dev .dev-port2 { fill: #0a1c15; stroke: var(--teal-dim); stroke-width: 1.2; }
.dev .dev-txt { fill: var(--dim); stroke: none; font-family: var(--mono); }
.dev .dev-screen { fill: #061511; stroke: var(--line-strong); stroke-width: 1; }
.dev .dev-chip { stroke: none; }
.dev .dev-chip.p { fill: rgba(94, 168, 255, .45); }
.dev .dev-chip.b { fill: rgba(255, 107, 122, .45); }

/* --------------------------------------------------------------- game grid */

.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s, transform .18s; }
.gcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.gcard-art { position: relative; background: linear-gradient(165deg, #0d2018, #07130f);
  border-bottom: 1px solid var(--line); padding: 14px; }
.gcard-art .tag { position: absolute; top: 12px; inset-inline-end: 12px; }
.gcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.gcard-body h3 { margin: 0; }
.gcard-desc { color: var(--muted); font-size: .88rem; margin: 0; }

.gl { display: block; width: 100%; height: auto; }
.gl .gl-felt { fill: #0a2b1e; stroke: rgba(255, 255, 255, .05); }
.gl .gl-slot { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.gl .gl-slot.gl-p { fill: rgba(94, 168, 255, .16); stroke: rgba(94, 168, 255, .5); }
.gl .gl-slot.gl-b { fill: rgba(255, 107, 122, .16); stroke: rgba(255, 107, 122, .5); }
.gl .gl-slot.gl-c { fill: rgba(216, 180, 92, .16); stroke: rgba(216, 180, 92, .5); }
.gl .gl-slot.gl-face { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .3); stroke-dasharray: 3 3; }
.gl .gl-label { fill: var(--dim); font-size: 11px; font-weight: 700; font-family: var(--mono); }
.gl .gl-label.p { fill: var(--blue); }
.gl .gl-label.b { fill: var(--red); }
.gl .gl-label.c { fill: var(--gold); }
.gl .gl-chip { fill: rgba(255, 255, 255, .18); }
.gl .gl-chip.gl-p { fill: rgba(94, 168, 255, .4); }
.gl .gl-chip.gl-b { fill: rgba(255, 107, 122, .4); }
.gl .gl-arrow { stroke: var(--dim); stroke-width: 1.4; fill: none; color: var(--dim); }

.gspec { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 16px; margin: 0;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  justify-content: start; }
.gspec > div { min-width: 0; }
.gspec dt { font-size: .7rem; color: var(--dim); letter-spacing: .04em; margin: 0; }
.gspec dd { margin: 0; font-size: .88rem; font-weight: 600; }
.gspec-lg { grid-template-columns: repeat(2, 1fr); padding: 16px 0 0; border-bottom: 0; }
.gspec-lg dd { font-size: 1.15rem; color: var(--gold); }
.gspec-shoe dd { display: flex; gap: 5px; flex-wrap: wrap; }
.shoe-pill { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--line-strong); color: var(--muted); }
.shoe-pill.shoe-angeleye { border-color: rgba(216, 180, 92, .38); color: #e8d29a; }
.shoe-pill.shoe-clear { border-color: rgba(63, 224, 189, .3); color: #8fe8d5; }

.gtags { display: grid; gap: 6px; }
.gtags-head { font-size: .7rem; color: var(--dim); letter-spacing: .05em; margin: 0; }
.gtags ul { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------------------------------------------------------------- featured */

.feat { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; background: linear-gradient(140deg, rgba(63, 224, 189, .07), rgba(216, 180, 92, .05));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.feat-main .tag { margin-bottom: 14px; }
.feat-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.feat-side { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; }

/* --------------------------------------------------------- arch + chain */

.arch-figure { margin: 0; }
.arch-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 8px; }
.arch-svg { display: block; min-width: 940px; width: 100%; height: auto; }
.arch-figure figcaption { font-size: .84rem; color: var(--dim); margin-top: 14px; line-height: 1.65; }

.az rect { fill: rgba(255, 255, 255, .02); stroke: var(--line); stroke-width: 1; stroke-dasharray: 6 5; }
.az-platform rect { fill: rgba(63, 224, 189, .04); stroke: rgba(63, 224, 189, .22); }
.az-down rect { fill: rgba(216, 180, 92, .04); stroke: rgba(216, 180, 92, .2); }
.az-title { fill: var(--dim); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.az-platform .az-title { fill: var(--teal); }
.az-down .az-title { fill: var(--gold); }

.an .an-box { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.2; }
.an-plat .an-box { fill: #0d2a24; stroke: rgba(63, 224, 189, .35); }
.an-down .an-box { fill: #1d1a10; stroke: rgba(216, 180, 92, .3); }
.an-tablet .an-box { fill: #131d2c; stroke: rgba(94, 168, 255, .35); }
.an-title { fill: var(--text); font-size: 15px; font-weight: 700; }
.an-note { fill: var(--dim); font-size: 11.5px; }
.an-ic { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.an-plat .an-ic { stroke: var(--teal); }
.an-down .an-ic { stroke: var(--gold); }
.an-tablet .an-ic { stroke: var(--blue); }

.ae { fill: none; stroke: var(--line-strong); stroke-width: 1.6; color: var(--line-strong); }
.ae-dash { stroke-dasharray: 6 5; stroke: rgba(94, 168, 255, .5); color: rgba(94, 168, 255, .5); }
.ae-spine { stroke: var(--line-strong); }
.ael rect { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1; }
.ael text { fill: var(--muted); font-size: 10.5px; font-family: var(--mono); }

.chain { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chain-node { flex: 1 1 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; text-align: center; }
.chain-node .dev { width: 100%; max-width: 168px; margin: 0 auto 8px; display: block; }
.chain-node b { display: block; font-size: .95rem; }
.chain-node span { font-size: .78rem; color: var(--dim); }
.chain-link { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 0 4px; color: var(--teal); flex: 0 0 auto; }
.chain-link i { font-style: normal; font-size: .7rem; font-family: var(--mono); color: var(--muted);
  white-space: nowrap; }
.chain-link .ic { width: 22px; height: 22px; }

.xcheck { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.xcheck h3 { margin-bottom: .5em; }
.xcheck p { color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; margin-bottom: 26px; }
.hw-group { margin: 26px 0 12px; color: var(--gold); font-size: .95rem; letter-spacing: .04em; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
thead th { text-align: start; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line-strong); }
tbody th { text-align: start; font-weight: 600; }
tbody td, tbody th { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: rgba(255, 255, 255, .022); }
.spec-table tbody th { width: 34%; color: var(--muted); font-weight: 500; }
.spec-table tbody td { font-weight: 600; }
.hw-table tbody td { color: var(--muted); }
.hw-table tbody th { width: 17%; }
.nowrap { white-space: nowrap; }
.owner { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  border: 1px solid; white-space: nowrap; }
.owner-venue { color: var(--muted); border-color: var(--line-strong); }
.owner-us { color: #6ff0c4; border-color: rgba(63, 224, 189, .4); background: rgba(63, 224, 189, .1); }

.tablet-art { display: flex; justify-content: center; align-items: center; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tablet-art .dev { max-width: 260px; }

/* -------------------------------------------------------------------- code */

.code-block { margin-top: 26px; background: #050c09; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.code-head span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.code-head code { font-family: var(--mono); font-size: .76rem; color: var(--teal);
  background: rgba(63, 224, 189, .1); padding: 3px 9px; border-radius: 6px; }
.code-block pre { margin: 0; padding: 18px; overflow-x: auto; }
.code-block code { font-family: var(--mono); font-size: .78rem; line-height: 1.75; color: #bfd6c9; }
.code-block .fineprint { padding: 0 18px 16px; margin: 0; }

/* -------------------------------------------------------------------- demo */

.section-demo { padding-top: 34px; }
.demo-wrap { display: grid; grid-template-columns: 1.45fr .55fr; gap: 20px; align-items: start; }

.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px dashed var(--line-strong); background: linear-gradient(165deg, #0c1f17, #061410);
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.stage.is-over { border-color: var(--teal); background: rgba(63, 224, 189, .06); }
.stage-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 24px; }
.stage-empty b { font-size: 1.05rem; }
.stage-empty span { font-size: .84rem; color: var(--dim); }
.stage-empty .btn { margin-top: 10px; }
.drop-ic { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(63, 224, 189, .1); border: 1px solid rgba(63, 224, 189, .25);
  color: var(--teal); margin-bottom: 6px; }
.drop-ic .ic { width: 25px; height: 25px; }

.stage-img { position: absolute; inset: 0; }
.stage-img img { width: 100%; height: 100%; object-fit: contain; display: block; background: #04100b; }
.stage-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-ov .ov-zone { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 2; stroke-dasharray: 8 6; }
.stage-ov .ov-zone.ov-player { stroke: rgba(94, 168, 255, .34); }
.stage-ov .ov-zone.ov-banker { stroke: rgba(255, 107, 122, .34); }
.stage-ov .ov-det { opacity: 0; animation: detIn .32s ease forwards; animation-delay: var(--d); }
.stage-ov .ov-det rect { fill: none; stroke: var(--teal); stroke-width: 3; }
.stage-ov .ov-det.ov-player rect { stroke: var(--blue); }
.stage-ov .ov-det.ov-banker rect { stroke: var(--red); }
.stage-ov .ov-det .ov-tag { fill: var(--teal); stroke: none; }
.stage-ov .ov-det.ov-player .ov-tag { fill: var(--blue); }
.stage-ov .ov-det.ov-banker .ov-tag { fill: var(--red); }
.stage-ov .ov-det text { fill: #04120c; font-weight: 700; font-family: var(--mono); }

.stage-scan { position: absolute; left: 0; right: 0; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(63, 224, 189, .3), transparent);
  animation: scanSweep 1.15s linear infinite; }
@keyframes scanSweep { 0% { top: -22%; } 100% { top: 100%; } }

.stage-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.stage-meta { font-size: .8rem; color: var(--dim); font-family: var(--mono); }

.demo-side { display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel-h { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  margin: 0 0 14px; font-weight: 700; }
.panel-empty { font-size: .86rem; color: var(--dim); margin: 0; }

.panel-loader { border-color: rgba(63, 224, 189, .28); background: rgba(63, 224, 189, .04);
  transition: opacity .4s, transform .4s; }
.panel-loader.is-done { opacity: .45; }
.panel-loader.is-error { border-color: rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .05); }
.bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--teal-dim), var(--teal)); transition: width .45s ease; }
.loader-msg { font-size: .85rem; margin: 10px 0 0; color: var(--text); }
.loader-hint { font-size: .76rem; color: var(--dim); margin: 6px 0 0; line-height: 1.6; }

.pipeline { display: grid; gap: 10px; }
.pipeline li { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--dim);
  transition: color .2s; }
.pl-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none;
  transition: background .2s, border-color .2s, box-shadow .2s; }
.pipeline li.is-active { color: var(--text); }
.pipeline li.is-active .pl-dot { border-color: var(--teal); background: var(--teal);
  box-shadow: 0 0 0 4px rgba(63, 224, 189, .18); }
.pipeline li.is-done { color: var(--muted); }
.pipeline li.is-done .pl-dot { border-color: var(--teal-dim); background: var(--teal-dim); }
.engine-line { font-size: .76rem; color: var(--dim); font-family: var(--mono); margin: 12px 0 0;
  padding-top: 10px; border-top: 1px solid var(--line); }

.res { display: grid; gap: 12px; }
.res-outcome { text-align: center; padding: 12px; border-radius: var(--radius-sm); font-size: 1.15rem;
  font-weight: 700; border: 1px solid; }
.res-outcome.res-player { color: var(--blue); border-color: rgba(94, 168, 255, .4); background: rgba(94, 168, 255, .1); }
.res-outcome.res-banker { color: var(--red); border-color: rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .1); }
.res-outcome.res-tie { color: var(--teal); border-color: rgba(63, 224, 189, .4); background: rgba(63, 224, 189, .1); }

.res-side { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.res-side.is-win { border-color: var(--gold-dim); background: rgba(216, 180, 92, .05); }
.res-side-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.res-name { font-weight: 700; font-size: .95rem; }
.res-side-player .res-name { color: var(--blue); }
.res-side-banker .res-name { color: var(--red); }
.res-pt { font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.res-pt i { font-style: normal; font-size: .5em; color: var(--dim); margin-inline-start: 3px; }
.res-cards { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.pcard { display: inline-flex; align-items: center; gap: 1px; min-width: 34px; justify-content: center;
  padding: 5px 7px; border-radius: 5px; background: #f4f3ee; color: #16181c; font-weight: 700;
  font-size: .85rem; line-height: 1; }
.pcard i { font-style: normal; font-size: .95em; }
.pcard-red { color: #c92c26; }
.pcard-empty { background: rgba(255, 255, 255, .05); color: var(--dim); }
.res-flags { display: flex; gap: 6px; margin-top: 8px; }
.flag { font-size: .7rem; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line-strong);
  color: var(--muted); }
.flag-nat { border-color: rgba(216, 180, 92, .4); color: var(--gold); }
.res-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 0;
  padding-top: 12px; border-top: 1px solid var(--line); }
.res-meta dt { font-size: .68rem; color: var(--dim); margin: 0; }
.res-meta dd { margin: 0; font-size: .85rem; font-weight: 600; font-family: var(--mono); }
.res-error { font-size: .86rem; }
.res-error b { display: block; color: var(--red); margin-bottom: 6px; }
.res-error p { color: var(--muted); margin: 0; font-size: .82rem; }

.samples { margin-top: 30px; }
.samples-head h2 { font-size: 1.1rem; margin-bottom: .2em; }
.samples-head p { font-size: .86rem; color: var(--dim); margin: 0 0 14px; }
.sample-tray { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sample { display: block; width: 100%; padding: 0; background: none; border: 2px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative;
  transition: border-color .16s, transform .16s; }
.sample:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.sample.is-active { border-color: var(--teal); }
.sample img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sample span { position: absolute; left: 8px; bottom: 6px; font-size: .72rem; font-family: var(--mono);
  color: #fff; background: rgba(0, 0, 0, .6); padding: 2px 8px; border-radius: 20px; }

.notice { display: flex; gap: 11px; align-items: flex-start; margin: 28px 0 0; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-size: .84rem; color: var(--muted); }
.notice .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); flex: none; }

/* ----------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; align-items: start; }
.panel-form { padding: clamp(20px, 3vw, 30px); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.field .req { color: var(--gold); font-style: normal; margin-inline-start: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 9px; background: #06120d;
  border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: .92rem;
  transition: border-color .16s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; }
.field input.is-bad, .field textarea.is-bad { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.privacy { font-size: .76rem; color: var(--dim); margin: 0; flex: 1 1 260px; line-height: 1.6; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .88rem;
  border: 1px solid; }
.form-msg.is-ok { border-color: rgba(63, 224, 189, .4); background: rgba(63, 224, 189, .08); }
.form-msg.is-err { border-color: rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .08); }
.form-msg b { display: block; margin-bottom: 3px; }
.form-msg p { margin: 0; color: var(--muted); font-size: .84rem; }

.contact-side { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { width: 19px; height: 19px; margin-top: 4px; color: var(--gold); }
.contact-list b { display: block; font-size: .76rem; color: var(--dim); font-weight: 500; }
.contact-list a { color: var(--teal); font-weight: 600; word-break: break-all; }

/* --------------------------------------------------------------- cta+footer */

.cta-band { border-top: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(63, 224, 189, .08), rgba(216, 180, 92, .06)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap; padding: clamp(38px, 5vw, 60px) 24px; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { color: var(--muted); margin: 0; max-width: 62ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: clamp(40px, 5vw, 60px) 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-about { font-size: .85rem; color: var(--dim); margin: 14px 0 0; max-width: 40ch; }
.footer-col h3 { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { font-size: .88rem; color: var(--muted); }
.footer-col a:hover { color: var(--gold); }
.footer-langs { grid-template-columns: repeat(2, 1fr); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: .78rem; color: var(--dim); margin: 0; }
.disclaimer { max-width: 62ch; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gcards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .game-strip { grid-template-columns: repeat(3, 1fr); }
  .demo-wrap { grid-template-columns: 1fr; }
  .demo-side { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 18px 24px 26px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-link { padding: 12px 14px; font-size: 1rem; }
  .nav-side { justify-content: space-between; margin-top: 10px; }
  .lang-menu { right: auto; left: 0; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split, .split-wide, .feat, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sample-tray { grid-template-columns: repeat(3, 1fr); }
  .ticks-2 { grid-template-columns: 1fr; }
  .demo-side { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .gcards, .flow, .game-strip, .field-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sample-tray { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .res-meta { grid-template-columns: 1fr; }
  .chain-link { transform: rotate(90deg); padding: 6px 0; }
  .chain { flex-direction: column; }
}
