/* polished coin-primary landing */
:root {
  --bg0: #04120e;
  --bg1: #0a1f18;
  --card: rgba(10, 40, 30, 0.9);
  --border: rgba(10, 193, 142, 0.34);
  --text: #eef2ff;
  --muted: #8fb8a8;
  --accent: #0ac18e;
  --accent2: #3dd9a8;
  --gold: #f0c14b;
  --felt: #0d3b2e;
  --felt2: #071510;
  --ok: #3dd68c;
  --danger: #ff6b6b;
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg0);
  min-height: 100vh; line-height: 1.65; overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #fff; }
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, #050508);
}
.bg-fx canvas { width: 100%; height: 100%; opacity: .48; }
.wrap { position: relative; z-index: 1; width: min(1120px, 92%); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg0) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 800; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent2), var(--accent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 1.1rem; color: #fff;
}
.brand small {
  display: block; font-weight: 500; color: var(--muted);
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
.nav { display: none; gap: 1.15rem; }
.nav a { color: var(--muted); font-size: .9rem; font-weight: 600; }
.nav a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.1rem; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; font-size: .9rem;
  transition: transform .15s, box-shadow .2s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-ghost { color: #fff !important; background: rgba(255,255,255,.05); border-color: var(--border); }
.btn-tg {
  color: #fff !important;
  background: linear-gradient(135deg, #2AABEE, #1d8fc9);
  box-shadow: 0 8px 22px rgba(42,171,238,.28);
}

.hero { padding: 2.3rem 0 1.3rem; display: grid; gap: 1.8rem; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.02fr .98fr; align-items: center; padding: 3rem 0 2rem; }
  .nav { display: flex; }
}
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: .85rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent2); font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2); animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.coin-pill {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .8rem;
  padding: .4rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); color: #fff;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.75rem); line-height: 1.18; margin-bottom: .8rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent2), #fff 52%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.01rem; max-width: 34rem; margin-bottom: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; max-width: 28rem; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: .8rem .6rem; text-align: center;
}
.stat b { display: block; font-size: 1.08rem; color: #fff; }
.stat span { font-size: .7rem; color: var(--muted); }

/* ===== Realistic table ===== */
.table-stage {
  position: relative; border-radius: 28px; padding: 1.15rem 1rem 1.05rem;
  background:
    radial-gradient(ellipse 75% 70% at 50% 42%, color-mix(in srgb, var(--felt) 95%, #0a0), var(--felt2));
  border: 2px solid color-mix(in srgb, var(--gold) 42%, var(--accent));
  box-shadow:
    0 0 0 5px rgba(0,0,0,.5),
    0 28px 60px rgba(0,0,0,.5),
    inset 0 0 60px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden; min-height: 380px;
}
.table-stage::before {
  content: ""; position: absolute; inset: 12px;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 28%, transparent);
  border-radius: 20px; pointer-events: none;
}
.table-stage::after {
  content: ""; position: absolute; left: 50%; top: 18%;
  width: 70%; height: 55%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,255,255,.05), transparent 70%);
  pointer-events: none;
}
.table-label {
  position: relative; z-index: 2; text-align: center; margin-bottom: .45rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 85%, #fff); font-weight: 800;
}
.table-status {
  position: relative; z-index: 2; text-align: center; margin-top: .65rem;
  font-size: .9rem; font-weight: 700; color: #e8f0ff; min-height: 1.45em;
  transition: color .25s, text-shadow .25s;
}
.table-status.win { color: var(--ok); text-shadow: 0 0 18px rgba(61,214,140,.45); }
.table-status.lose { color: var(--danger); text-shadow: 0 0 14px rgba(255,107,107,.35); }
.table-controls {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: .5rem; margin-top: .7rem;
}
.table-controls .btn { padding: .55rem 1rem; font-size: .84rem; }

/* blackjack zones */
.dealer-zone, .player-zone {
  position: relative; z-index: 2; min-height: 118px;
  display: flex; justify-content: center; align-items: flex-end;
  margin: .4rem auto; perspective: 900px;
}
.zone-tag {
  position: absolute; left: 50%; transform: translateX(-50%); top: -2px;
  font-size: .64rem; color: rgba(255,255,255,.42); letter-spacing: .14em; text-transform: uppercase;
}
.player-zone { margin-top: 1.35rem; }
.score-pill {
  position: absolute; right: 12px; top: 8px; z-index: 4;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14);
  padding: .28rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; backdrop-filter: blur(4px);
  transition: transform .2s;
}
.score-pill.player { top: auto; bottom: 8px; }
.score-pill.pop { animation: scorePop .35s ease; }
@keyframes scorePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* realistic cards */
.card {
  width: 72px; height: 102px; border-radius: 9px; position: relative;
  margin-left: -22px; transform-style: preserve-3d;
  --land-x: 0px; --land-y: 0px; --rot: 0deg;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.4));
}
.card:first-child { margin-left: 0; }
.card.dealing {
  animation: cardDeal .55s cubic-bezier(.2,.75,.2,1) both;
}
.card.flipping .card-face,
.card.flipping .card-back {
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
@keyframes cardDeal {
  0% {
    opacity: 0;
    transform: translate(var(--from-x, 120px), var(--from-y, -110px)) rotate(-28deg) scale(.55);
  }
  70% {
    opacity: 1;
    transform: translate(calc(var(--land-x) * .4), 8px) rotate(calc(var(--rot) * .5)) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translate(var(--land-x), var(--land-y)) rotate(var(--rot)) scale(1);
  }
}
.card-face, .card-back {
  position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.card-face {
  background:
    linear-gradient(160deg, #ffffff 0%, #f7f9ff 60%, #eef2fb 100%);
  color: #12151c;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: .38rem .42rem;
  font-weight: 800;
}
.card-face .rank { font-size: 1.05rem; line-height: 1; letter-spacing: -.02em; }
.card-face .suit-lg {
  font-size: 1.7rem; line-height: 1; align-self: center; justify-self: center;
}
.card-face .suit-sm { font-size: .9rem; line-height: 1; justify-self: end; transform: rotate(180deg); }
.card-face.red { color: #c41e3a; }
.card-face.black { color: #1a1f2e; }
.card-back {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #1a2040), #152040 45%, #0f1833),
    repeating-linear-gradient(45deg, transparent 0 5px, rgba(255,255,255,.04) 5px 10px);
  border: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  transform: rotateY(180deg);
  display: grid; place-items: center;
}
.card-back::before {
  content: "";
  width: 70%; height: 70%; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%);
}
.card-back::after {
  content: "◆"; position: absolute; color: var(--gold); font-size: 1.15rem;
  text-shadow: 0 0 10px rgba(240,193,75,.5);
}
.card.face-down .card-face { transform: rotateY(180deg); }
.card.face-down .card-back { transform: rotateY(0); }
.card.face-up .card-face { transform: rotateY(0); }
.card.face-up .card-back { transform: rotateY(180deg); }

.shoe-hint {
  position: absolute; right: 14px; top: 42px; z-index: 1;
  width: 34px; height: 48px; border-radius: 5px;
  background: linear-gradient(145deg, #2a3358, #151b33);
  border: 1px solid rgba(240,193,75,.35);
  box-shadow: 0 6px 12px rgba(0,0,0,.35);
  opacity: .55;
}

/* chips */
.chips-row {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: .45rem; margin-top: .85rem;
  min-height: 48px;
}
.chip {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: .58rem; font-weight: 800; color: #fff;
  border: 3px dashed rgba(255,255,255,.55);
  box-shadow:
    0 8px 14px rgba(0,0,0,.4),
    inset 0 2px 3px rgba(255,255,255,.25),
    inset 0 -3px 4px rgba(0,0,0,.2);
  position: relative;
}
.chip::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}
.chip.c1 { background: radial-gradient(circle at 32% 28%, var(--accent2), var(--accent) 70%, #0a0 140%); }
.chip.c2 { background: radial-gradient(circle at 32% 28%, #ffe08a, #c9971a 70%); color: #2a1c00; border-color: rgba(0,0,0,.22); }
.chip.c3 { background: radial-gradient(circle at 32% 28%, #86efac, #0f766e 72%); }
.chip.c4 { background: radial-gradient(circle at 32% 28%, #fca5a5, #991b1b 72%); }
.chip.toss {
  animation: chipToss .7s cubic-bezier(.2,.8,.2,1);
}
@keyframes chipToss {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-18px) scale(1.08) rotate(12deg); }
  70% { transform: translateY(3px) scale(.98) rotate(-6deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

/* ===== Realistic dice ===== */
.odds-bar {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap;
  margin: .35rem 0 .2rem;
}
.odds-bar span {
  font-size: .72rem; padding: .28rem .55rem; border-radius: 999px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); color: #dbe7ff;
  font-variant-numeric: tabular-nums;
}
.odds-bar span.active {
  border-color: color-mix(in srgb, var(--accent) 60%, #fff);
  color: #fff; background: color-mix(in srgb, var(--accent) 25%, rgba(0,0,0,.4));
}
.dice-stage {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem;
  min-height: 170px; margin: .9rem 0 .4rem;
  perspective: 1000px;
}
.die-wrap {
  position: relative;
  width: 88px; height: 88px;
}
.die-shadow {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: 64px; height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%);
  transition: width .25s, opacity .25s, transform .25s;
}
.die-wrap.rolling .die-shadow {
  width: 48px; opacity: .55; transform: translateX(-50%) translateY(-8px);
}
.die {
  width: 88px; height: 88px; border-radius: 16px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f4f6fb 45%, #dfe6f2 100%);
  box-shadow:
    0 16px 28px rgba(0,0,0,.42),
    inset 0 2px 3px rgba(255,255,255,.9),
    inset 0 -4px 8px rgba(0,0,0,.08);
  display: grid; place-items: center;
  position: relative;
  transform-style: preserve-3d;
  border: 1px solid rgba(255,255,255,.65);
}
.die-wrap.rolling .die {
  animation: dieRoll 0.85s cubic-bezier(.15,.75,.2,1);
}
.die-wrap.settle .die {
  animation: dieSettle .38s cubic-bezier(.2,.8,.2,1);
}
@keyframes dieRoll {
  0% { transform: translateY(0) rotateX(0) rotateY(0) rotateZ(0); }
  20% { transform: translateY(-42px) rotateX(180deg) rotateY(90deg) rotateZ(40deg); }
  45% { transform: translateY(-18px) rotateX(360deg) rotateY(220deg) rotateZ(-20deg); }
  70% { transform: translateY(-36px) rotateX(520deg) rotateY(360deg) rotateZ(30deg); }
  100% { transform: translateY(0) rotateX(720deg) rotateY(540deg) rotateZ(0); }
}
@keyframes dieSettle {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-10px) scale(1.04); }
  70% { transform: translateY(2px) scale(.98); }
  100% { transform: translateY(0) scale(1); }
}
.dice-pips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  width: 60px; height: 60px;
}
.pip {
  width: 13px; height: 13px; border-radius: 50%; background: transparent; margin: auto;
  box-shadow: none;
}
.pip.on {
  background: radial-gradient(circle at 35% 30%, #3a4258, #12151c 70%);
  box-shadow: 0 1px 1px rgba(255,255,255,.25), inset 0 1px 2px rgba(0,0,0,.45);
}

/* sections */
.section { padding: 2.35rem 0; }
.section-head { margin-bottom: 1.25rem; max-width: 44rem; }
.section-head h2 { font-size: clamp(1.32rem, 3vw, 1.8rem); margin-bottom: .4rem; }
.section-head p { color: var(--muted); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.15rem; transition: transform .2s, border-color .2s, box-shadow .2s;
  height: 100%;
}
.card-panel:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.card-panel .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: .75rem; background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: 1.15rem;
}
.card-panel h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.card-panel p { color: var(--muted); font-size: .9rem; }
.card-panel ul { margin-top: .7rem; padding-left: 1.05rem; color: var(--muted); font-size: .86rem; }
.card-panel li { margin-bottom: .28rem; }
.features { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  display: flex; gap: .8rem; padding: 1rem 1.05rem;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 14px;
}
.feature .dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: .4rem; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.feature h4 { font-size: .96rem; margin-bottom: .15rem; }
.feature p { color: var(--muted); font-size: .86rem; }

.matrix-grid { display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .matrix-grid { grid-template-columns: repeat(4, 1fr); } }
.matrix-item {
  display: block; padding: .85rem .7rem; border-radius: 14px; text-align: center;
  background: var(--card); border: 1px solid var(--border); color: #fff !important;
  transition: transform .15s, border-color .15s;
}
.matrix-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.matrix-item strong { display: block; font-size: .86rem; }
.matrix-item span { display: block; font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.matrix-item.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

.cta-box {
  margin: 1rem 0 2.8rem; padding: 1.65rem 1.3rem; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), var(--card) 52%);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  display: grid; gap: 1.05rem; box-shadow: 0 18px 46px rgba(0,0,0,.3);
}
@media (min-width: 800px) {
  .cta-box { grid-template-columns: 1.3fr .7fr; align-items: center; padding: 1.9rem 2rem; }
}
.cta-box h2 { font-size: clamp(1.28rem, 3vw, 1.65rem); margin-bottom: .35rem; }
.cta-box p { color: var(--muted); }
.contact-stack { display: grid; gap: .6rem; }
.contact-line {
  display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
}
.contact-line strong { color: #fff; }
.contact-line span { color: var(--muted); font-size: .84rem; display: block; }
.note {
  margin-top: .85rem; font-size: .8rem; color: var(--muted);
  padding: .7rem .85rem; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
footer {
  border-top: 1px solid var(--border); padding: 1.35rem 0 2rem;
  color: var(--muted); font-size: .8rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; justify-content: space-between; align-items: center;
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.show { opacity: 1; transform: none; }
