/* coin-primary chain game landing */
:root {
  --bg0: #05080f;
  --bg1: #0b1220;
  --card: rgba(16, 24, 40, 0.86);
  --border: rgba(98, 126, 234, 0.32);
  --text: #eef2ff;
  --muted: #9aa8c7;
  --accent: #627eea;
  --accent2: #8fa4ff;
  --gold: #f0c14b;
  --felt: #0d3b2e;
  --felt2: #0a1a12;
  --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.6; 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) 28%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, #050508);
}
.bg-fx canvas { width: 100%; height: 100%; opacity: .5; }
.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) 78%, 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 24px 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: .08em; 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: .45rem;
  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;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-ghost { color: #fff !important; background: rgba(255,255,255,.04); border-color: var(--border); }
.btn-tg {
  color: #fff !important;
  background: linear-gradient(135deg, #2AABEE, #1d8fc9);
  box-shadow: 0 8px 24px rgba(42,171,238,.3);
}
.hero { padding: 2.4rem 0 1.4rem; display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 3.2rem 0 2rem; }
  .nav { display: flex; }
}
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem;
  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: .76rem; 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: .45; } }
.hero h1 {
  font-size: clamp(1.75rem, 4.8vw, 2.85rem); line-height: 1.15; margin-bottom: .85rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent2), #fff 50%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.02rem; max-width: 34rem; margin-bottom: 1.35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.4rem; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; max-width: 28rem; }
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: .8rem .65rem; text-align: center;
}
.stat b { display: block; font-size: 1.1rem; color: #fff; }
.stat span { font-size: .7rem; color: var(--muted); }
.coin-pill {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .85rem;
  padding: .4rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: #fff;
}

.table-stage {
  position: relative; border-radius: 24px; padding: 1.2rem 1rem 1.1rem;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--felt) 90%, #000), var(--felt2));
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 0 6px rgba(0,0,0,.45), 0 24px 60px rgba(0,0,0,.45);
  overflow: hidden; min-height: 340px;
}
.table-stage::before {
  content: ""; position: absolute; inset: 10px;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: 18px; pointer-events: none;
}
.table-label {
  position: relative; z-index: 2; text-align: center; margin-bottom: .55rem;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 80%, #fff); font-weight: 700;
}
.table-status {
  position: relative; z-index: 2; text-align: center; margin-top: .7rem;
  font-size: .88rem; font-weight: 700; color: #dbe7ff; min-height: 1.4em;
}
.table-status.win { color: var(--ok); }
.table-status.lose { color: var(--danger); }
.table-controls {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: .5rem; margin-top: .75rem;
}
.table-controls .btn { padding: .55rem .95rem; font-size: .82rem; }

.dealer-zone, .player-zone {
  position: relative; z-index: 2; min-height: 108px;
  display: flex; justify-content: center; align-items: flex-end; margin: .35rem auto;
}
.zone-tag {
  position: absolute; left: 50%; transform: translateX(-50%); top: -4px;
  font-size: .66rem; color: rgba(255,255,255,.45); letter-spacing: .12em; text-transform: uppercase;
}
.player-zone { margin-top: 1.3rem; }
.score-pill {
  position: absolute; right: 12px; top: 8px; z-index: 3;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12);
  padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--gold);
}
.score-pill.player { top: auto; bottom: 8px; }
.card {
  width: 66px; height: 94px; border-radius: 8px; position: relative; margin-left: -18px;
  transform-style: preserve-3d; animation: dealIn .55s cubic-bezier(.2,.8,.2,1) both;
}
.card:first-child { margin-left: 0; }
.card-face, .card-back {
  position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.card-face {
  background: linear-gradient(160deg,#fff,#f3f6ff); color: #111; border: 1px solid rgba(0,0,0,.08);
  font-weight: 800; padding: .35rem;
}
.card-face .rank { font-size: 1.02rem; align-self: flex-start; }
.card-face .suit { font-size: 1.35rem; }
.card-face.red { color: #d42b2b; }
.card-face.black { color: #1a1f2e; }
.card-back {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, transparent), transparent 50%),
    repeating-linear-gradient(45deg, #1a2040 0 6px, #243058 6px 12px);
  border: 2px solid color-mix(in srgb, var(--gold) 50%, transparent);
  transform: rotateY(180deg);
}
.card-back::after { content: "◆"; color: var(--gold); font-size: 1.3rem; }
.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); }
@keyframes dealIn {
  from { opacity: 0; transform: translateY(-80px) translateX(40px) rotate(-18deg) scale(.7); }
  to { opacity: 1; transform: translateY(0) translateX(0) rotate(var(--rot,0deg)) scale(1); }
}
.chips-row {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: .5rem; margin-top: .9rem;
}
.chip {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: .58rem; font-weight: 800; color: #fff; border: 3px dashed rgba(255,255,255,.5);
  box-shadow: 0 6px 14px rgba(0,0,0,.35); animation: chipFloat 2.8s ease-in-out infinite;
}
.chip:nth-child(2) { animation-delay: .35s; }
.chip:nth-child(3) { animation-delay: .7s; }
.chip:nth-child(4) { animation-delay: 1.05s; }
.chip.c1 { background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent)); }
.chip.c2 { background: radial-gradient(circle at 30% 30%, #ffd86b, #c9971a); color: #2a1c00; }
.chip.c3 { background: radial-gradient(circle at 30% 30%, #6ee7b7, #0f766e); }
.chip.c4 { background: radial-gradient(circle at 30% 30%, #fca5a5, #b91c1c); }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.dice-stage {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 1.25rem;
  min-height: 180px; margin: 1rem 0 .5rem;
}
.die {
  width: 84px; height: 84px; border-radius: 16px;
  background: linear-gradient(145deg, #fff, #e8eef9);
  box-shadow: 0 14px 30px rgba(0,0,0,.4), inset 0 0 0 2px rgba(0,0,0,.06);
  display: grid; place-items: center;
  font-size: 2.2rem; font-weight: 900; color: #1a1f2e;
}
.die.rolling { animation: roll 0.7s cubic-bezier(.2,.8,.2,1); }
@keyframes roll {
  0% { transform: rotateX(0) rotateY(0) scale(1); }
  40% { transform: rotateX(420deg) rotateY(280deg) scale(1.08); }
  100% { transform: rotateX(720deg) rotateY(540deg) scale(1); }
}
.dice-pips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 58px; height: 58px;
}
.pip { width: 12px; height: 12px; border-radius: 50%; background: transparent; margin: auto; }
.pip.on { background: #1a1f2e; }
.odds-bar {
  position: relative; z-index: 2; display: flex; justify-content: center; gap: .45rem; flex-wrap: wrap;
  margin: .5rem 0;
}
.odds-bar span {
  font-size: .72rem; padding: .28rem .55rem; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); color: #dbe7ff;
}

.section { padding: 2.4rem 0; }
.section-head { margin-bottom: 1.3rem; max-width: 42rem; }
.section-head h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); 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; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card-panel:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.card-panel .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: .8rem; background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: 1.2rem;
}
.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 .75rem; 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: .88rem; }
.matrix-item span { display: block; font-size: .72rem; 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 3rem; padding: 1.7rem 1.35rem; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), var(--card) 50%);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  display: grid; gap: 1.1rem; box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
@media (min-width: 800px) {
  .cta-box { grid-template-columns: 1.3fr .7fr; align-items: center; padding: 2rem 2rem; }
}
.cta-box h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .35rem; }
.cta-box p { color: var(--muted); }
.contact-stack { display: grid; gap: .65rem; }
.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; }
footer {
  border-top: 1px solid var(--border); padding: 1.4rem 0 2.1rem;
  color: var(--muted); font-size: .8rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; justify-content: space-between; align-items: center;
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.show { opacity: 1; transform: none; }
