/* Chip Joker — ChipJoker.com  (v2: motion & depth pass)
   Original visual language: poker-felt, cream cards, jester red/gold.
   No third-party fonts, no trackers, fully self-contained. */

:root {
  --felt: #0d3527;
  --felt-dark: #072117;
  --felt-light: #14503a;
  --paper: #f2ead8;
  --paper-dim: #d9cfb8;
  --ink: #17110b;
  --red: #e0453a;
  --red-dark: #b22f27;
  --blue: #2f6df0;
  --blue-dark: #1f4aa3;
  --gold: #f0b429;
  --gold-dark: #c98f12;
  --muted: #9db8a8;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--gold); color: var(--ink); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--felt-dark);
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* felt + aurora atmosphere */
.atmos {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 620px at 50% -10%, var(--felt-light) 0%, var(--felt) 46%, var(--felt-dark) 100%);
}
.atmos::before, .atmos::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.16; will-change: transform;
}
.atmos::before {
  width: 620px; height: 620px; left: -180px; top: 6%;
  background: radial-gradient(circle, var(--red) 0%, transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.atmos::after {
  width: 700px; height: 700px; right: -220px; top: 34%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, -70px) scale(1.1); } }

/* faint felt texture */
.atmos .grain {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,0.4) 3px 3.6px);
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 33, 23, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 234, 216, 0.12);
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px; max-width: 1060px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--paper); text-decoration: none; letter-spacing: 0.5px; }
.nav-logo svg { width: 30px; height: 30px; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-logo:hover svg { transform: rotate(-10deg) scale(1.12); }
.nav-links { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--paper-dim); text-decoration: none; font-size: 14.5px; font-weight: 600; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--gold); transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { right: 0; }
.lang-switch {
  border: 1.5px solid var(--gold); color: var(--gold) !important;
  padding: 3px 12px; border-radius: 999px; font-size: 13px !important;
}
.lang-switch::after { display: none; }
.lang-switch:hover { background: rgba(240, 180, 41, 0.14); }

/* mobile menu */
.nav-mobile { display: none; }
.nav-mobile summary {
  list-style: none; cursor: pointer; color: var(--gold);
  font-size: 22px; line-height: 1; padding: 4px 8px; border: 1.5px solid var(--gold);
  border-radius: 8px; user-select: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav-links, .nav-mobile .m-links { display: flex; flex-direction: column; gap: 10px; padding: 12px 4px 4px; }
.nav-mobile .m-links a { color: var(--paper-dim); text-decoration: none; font-weight: 700; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 54px; text-align: center; position: relative; }
.hero-cards { display: flex; justify-content: center; gap: 6px; margin-bottom: 28px; perspective: 800px; position: relative; }
.hero-cards::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 300px;
  transform: translate(-50%, -52%); pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(240, 180, 41, 0.17) 0%, rgba(224, 69, 58, 0.07) 42%, transparent 68%);
  filter: blur(6px);
}
.hero-cards svg {
  width: 86px; height: 120px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  animation: cardfloat 5.2s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-cards svg:nth-child(1) { transform: rotate(-8deg) translateY(8px); animation-delay: 0s; }
.hero-cards svg:nth-child(2) { transform: rotate(-3deg); z-index: 1; animation-delay: 0.7s; }
.hero-cards svg:nth-child(3) { transform: rotate(3deg); z-index: 1; animation-delay: 1.4s; }
.hero-cards svg:nth-child(4) { transform: rotate(8deg) translateY(8px); animation-delay: 2.1s; }
.hero-cards:hover svg:nth-child(1) { transform: rotate(-16deg) translate(-26px, 4px); }
.hero-cards:hover svg:nth-child(2) { transform: rotate(-6deg) translateY(-10px) scale(1.05); }
.hero-cards:hover svg:nth-child(3) { transform: rotate(6deg) translateY(-10px) scale(1.05); }
.hero-cards:hover svg:nth-child(4) { transform: rotate(16deg) translate(26px, 4px); }
@keyframes cardfloat {
  0%, 100% { margin-top: 0; } 50% { margin-top: -7px; }
}

h1.display {
  font-size: clamp(44px, 7.5vw, 78px);
  font-weight: 900; letter-spacing: 1px; line-height: 1.05;
  background: linear-gradient(180deg, #fffbf2 18%, var(--paper) 55%, #cbbfa4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 var(--red-dark)) drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55));
  position: relative;
}
h1.display .accent {
  background: linear-gradient(180deg, #ffd76e 15%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tagline {
  margin-top: 18px;
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 800; color: var(--paper);
}
.tagline em { font-style: normal; color: var(--gold); }
.sub {
  max-width: 720px; margin: 16px auto 0;
  color: var(--muted); font-size: 16.5px;
}
.cta-row { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-dark), 0 12px 24px rgba(224, 69, 58, 0.3); }
.btn-red:active { box-shadow: 0 2px 0 var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-dark), 0 12px 24px rgba(240, 180, 41, 0.28); }
.btn-gold:active { box-shadow: 0 2px 0 var(--gold-dark); }
.btn-note { display: block; font-size: 11.5px; font-weight: 600; opacity: 0.85; margin-top: 2px; }
.badges-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* trust badges row */
.trust-row {
  margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.trust-row span {
  font-size: 12.5px; font-weight: 700; color: var(--paper-dim);
  border: 1px solid rgba(242, 234, 216, 0.22); border-radius: 999px;
  padding: 5px 14px; background: rgba(7, 33, 23, 0.4);
}
.trust-row b { color: var(--gold); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap; padding: 16px 0 8px;
  border-top: 1px solid rgba(242, 234, 216, 0.1);
  border-bottom: 1px solid rgba(242, 234, 216, 0.1);
  background: rgba(7, 33, 23, 0.35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-block; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-block; margin: 0 26px; font-weight: 900; letter-spacing: 2.5px;
  font-size: 14.5px; color: rgba(242, 234, 216, 0.6);
}
.marquee span i { font-style: normal; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 60px 0; }
.sec-title {
  text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 900;
  color: var(--paper); margin-bottom: 8px;
}
.sec-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 2px 10px rgba(240, 180, 41, 0.35);
}
.sec-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 38px; font-size: 15.5px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(242, 234, 216, 0.075), rgba(242, 234, 216, 0.03));
  border: 1px solid rgba(242, 234, 216, 0.14);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); opacity: 0.85;
}
.card:nth-child(3n+2)::before { background: var(--blue); }
.card:nth-child(3n)::before { background: var(--gold); }
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 234, 216, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
  background: rgba(224, 69, 58, 0.16);
  border: 1px solid rgba(224, 69, 58, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:nth-child(3n+2) .icon { background: rgba(47, 109, 240, 0.16); border-color: rgba(47, 109, 240, 0.35); }
.card:nth-child(3n) .icon { background: rgba(240, 180, 41, 0.14); border-color: rgba(240, 180, 41, 0.35); }
.card:hover .icon { transform: scale(1.14) rotate(-6deg); }
.card h3 { font-size: 18.5px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.card p { color: var(--paper-dim); font-size: 14.8px; }

/* steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 900; font-size: 20px;
  box-shadow: 0 4px 0 var(--red-dark); margin-bottom: 14px;
}
.step h3 { font-size: 18px; font-weight: 800; color: var(--paper); margin-bottom: 8px; }
.step p { color: var(--paper-dim); font-size: 14.8px; }

/* fairness: 3-panel verdict strip */
.fair {
  background: linear-gradient(160deg, rgba(224, 69, 58, 0.14), rgba(224, 69, 58, 0.05));
  border: 1.5px dashed rgba(224, 69, 58, 0.55);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.fair h3 { font-size: 22px; font-weight: 900; color: var(--paper); margin-bottom: 22px; text-align: center; }
.fair-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fair-step {
  background: rgba(7, 33, 23, 0.5); border: 1px solid rgba(242, 234, 216, 0.14);
  border-radius: 12px; padding: 18px; text-align: center; position: relative;
}
.fair-step .f-ico { font-size: 26px; display: block; margin-bottom: 8px; }
.fair-step b { display: block; color: var(--gold); font-size: 15px; margin-bottom: 5px; }
.fair-step small { color: var(--paper-dim); font-size: 13px; line-height: 1.5; display: block; }
.fair-note { text-align: center; color: var(--paper-dim); max-width: 760px; margin: 22px auto 0; font-size: 14.5px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: rgba(242, 234, 216, 0.05);
  border: 1px solid rgba(242, 234, 216, 0.13);
  border-radius: 12px; margin-bottom: 12px; padding: 18px 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: rgba(240, 180, 41, 0.45); background: rgba(240, 180, 41, 0.05); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 16px; color: var(--paper); list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; color: var(--gold); font-size: 22px; font-weight: 900; transition: transform 0.2s ease; }
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq details p { margin-top: 12px; color: var(--paper-dim); font-size: 14.8px; animation: faqin 0.25s ease; }
@keyframes faqin { from { opacity: 0; transform: translateY(-4px); } }
.faq a { color: var(--gold); }

/* CTA band — spotlight conversion panel */
.cta-band { text-align: center; padding: 30px 0 64px; }
.cta-band .wrap {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(240, 180, 41, 0.11) 0%, rgba(242, 234, 216, 0.04) 48%, rgba(224, 69, 58, 0.09) 100%);
  border: 1px solid rgba(240, 180, 41, 0.28);
  border-radius: 22px;
  padding: 52px 26px 48px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(242, 234, 216, 0.1);
}
.cta-band .wrap::before {
  content: ""; position: absolute; left: 50%; top: -140px; width: 620px; height: 280px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(240, 180, 41, 0.2), transparent 68%);
  filter: blur(8px);
}
.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 10px;
  background: linear-gradient(180deg, #fffbf2 15%, var(--paper) 60%, #d8cbae 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.45));
}
.cta-band p { color: var(--paper-dim); margin-bottom: 30px; }
.cta-band .btn { padding: 15px 32px; font-size: 17px; }

/* scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--red));
  z-index: 100; border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(240, 180, 41, 0.55);
}

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; font-weight: 800; color: var(--gold); margin: 34px 0 12px; }
.legal p, .legal li { color: var(--paper-dim); font-size: 15px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal strong { color: var(--paper); }
.legal a { color: var(--gold); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid rgba(242, 234, 216, 0.18); padding: 9px 12px; text-align: left; color: var(--paper-dim); }
.legal th { color: var(--paper); background: rgba(242, 234, 216, 0.06); }

/* presskit */
.dl-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 16px 0 8px; }
.dl-item {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid rgba(242, 234, 216, 0.16); border-radius: 12px; padding: 14px 16px;
  color: var(--paper); text-decoration: none; background: rgba(242, 234, 216, 0.04);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.dl-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.dl-item .d-ico { font-size: 22px; }
.dl-item b { display: block; font-size: 14.5px; color: var(--paper); }
.dl-item small { color: var(--muted); font-size: 12.5px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid rgba(242, 234, 216, 0.12); padding: 36px 0 46px; margin-top: 40px; background: rgba(7, 33, 23, 0.5); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--paper); }
.foot-brand svg { width: 26px; height: 26px; }
.foot-col { min-width: 140px; }
.foot-col b { display: block; color: var(--paper); font-size: 13.5px; margin-bottom: 8px; letter-spacing: 0.5px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { color: var(--paper-dim); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--gold); }
.foot-note { color: var(--muted); font-size: 12.5px; margin-top: 20px; }
.foot-bottom { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; margin-left: auto; }
}
@media (max-width: 640px) {
  .hero { padding: 50px 0 42px; }
  .hero-cards svg { width: 62px; height: 88px; }
  .card, .fair { padding: 22px 18px; }
}
