/* OnePulse — pulse-monitor register
   Palette
   --void   #07080A  base
   --deck   #0D0F13  panels
   --deck-2 #13161C  raised panels
   --rule   #22262F  hairlines
   --trace  #FF2A3D  the one pulse line
   --trace-d #5C0F18 trace shadow / low state
   --read   #EEF2F6  readout numerals
   --cool   #B7C2D0  cool numeral tint
   --grey   #8790A0  body secondary
   --mute   #555D6B  labels
*/
:root {
  --void: #07080A;
  --deck: #0D0F13;
  --deck-2: #13161C;
  --rule: #22262F;
  --trace: #FF2A3D;
  --trace-d: #5C0F18;
  --read: #EEF2F6;
  --cool: #B7C2D0;
  --grey: #8790A0;
  --mute: #555D6B;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --body: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--cool);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 350;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--read); text-decoration-color: var(--trace); text-underline-offset: 3px; }
a:hover { color: var(--trace); }
:focus-visible { outline: 2px solid var(--trace); outline-offset: 3px; }
h1, h2, h3 { color: var(--read); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--trace); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* readout label — mono caps with a heartbeat dot */
.tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.beat {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--trace);
  flex: none;
  animation: beat 1.2s infinite;
}
.beat.idle { background: var(--mute); animation: none; }
@keyframes beat {
  0%, 38%, 100% { opacity: 1; transform: scale(1); }
  12% { opacity: .35; transform: scale(.7); }
  22% { opacity: 1; transform: scale(1.25); }
}

/* sweep divider — thin hairline with a travelling scan */
.sweep {
  position: relative;
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--rule);
  overflow: hidden;
}
.sweep::after {
  content: "";
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--trace), transparent);
  animation: sweep 4.5s linear infinite;
}
@keyframes sweep { to { left: 100%; } }

/* pulse trace svg (static spike line) */
.trace { width: 100%; height: 44px; }
.trace path { fill: none; stroke: var(--trace); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trace .flat { stroke: var(--rule); }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--rule); background: var(--void); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--read); }
.mark svg { width: 38px; height: 20px; }
.mark svg path { fill: none; stroke: var(--trace); stroke-width: 2; stroke-linejoin: round; }
.mark b { font-family: var(--mono); font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.mark b i { font-style: normal; color: var(--trace); }
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--grey); text-decoration: none; padding: 8px 12px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav a:hover { color: var(--read); background: var(--deck-2); }
.nav a[aria-current="page"] { color: var(--read); }
.nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--trace); }
.age-chip { font-family: var(--mono); font-size: .72rem; color: var(--read); border: 1px solid var(--trace); padding: 3px 8px; border-radius: 3px; }

/* mobile: bottom rail nav */
.rail { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  body { padding-bottom: 64px; }
  .rail {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(7, 8, 10, .96); border-top: 1px solid var(--rule);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .rail a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    height: 60px; text-decoration: none; color: var(--grey);
    font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  }
  .rail a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
  .rail a[aria-current="page"] { color: var(--read); }
  .rail a[aria-current="page"]::before { background: var(--trace); }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.lede { font-size: 1.18rem; color: var(--cool); max-width: 62ch; }
.muted { color: var(--grey); }
.narrow { max-width: 760px; }

.hero { padding: 56px 0 72px; }
.hero-head {
  display: grid;
  grid-template-columns: 1fr min(280px, 32%);
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.hero-head p { margin: 0; }
.hero-head .lede { margin-top: 16px; }
.hero-media {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: #0a1628;
  line-height: 0;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-family: var(--mono); font-size: .76rem; color: var(--grey); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .hero-head { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { max-width: 220px; }
}

/* big readout numbers with pulse behind */
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.readout { position: relative; padding: 30px 28px 26px; background: var(--deck); border-right: 1px solid var(--rule); }
.readout:last-child { border-right: 0; }
.readout .trace { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: .55; }
.readout strong { position: relative; display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.3rem); color: var(--read); letter-spacing: -.04em; line-height: 1; }
.readout span { position: relative; display: block; margin-top: 14px; font-size: .95rem; color: var(--grey); }
@media (max-width: 760px) { .readouts { grid-template-columns: 1fr; } .readout { border-right: 0; border-bottom: 1px solid var(--rule); } .readout:last-child { border-bottom: 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 20px 0 20px 64px; border-top: 1px solid var(--rule); counter-increment: s; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--mono); font-size: 1.3rem; color: var(--trace); }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--grey); }

.dots { list-style: none; margin: 0 0 1.2em; padding: 0; }
.dots li { position: relative; padding-left: 24px; margin-bottom: .7em; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--trace); }

/* compliance strip */
.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--deck); padding: 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip div { padding: 26px 22px; border-left: 1px solid var(--rule); }
.strip div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; color: var(--read); font-size: .86rem; letter-spacing: .02em; margin-bottom: 6px; }
.strip p { margin: 0; font-size: .92rem; color: var(--grey); line-height: 1.5; }
@media (max-width: 860px) {
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip div { padding: 22px 16px; border-bottom: 1px solid var(--rule); }
  .strip div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) { .strip .wrap { grid-template-columns: 1fr; } .strip div { border-left: 0; padding-left: 0; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .86rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 4px; border: 1px solid var(--trace);
  background: var(--trace); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #ff4757; color: #fff; }
.btn.ghost { background: transparent; color: var(--read); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--trace); color: var(--read); }

/* page header for inner pages */
.page-head { padding: 64px 0 40px; }
.page-head .trace { margin-top: 28px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.8em; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--cool); }
.prose .meta { font-family: var(--mono); font-size: .78rem; color: var(--mute); letter-spacing: .05em; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq article { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.faq h3 { margin: 0; font-size: 1.08rem; }
.faq p { margin: 0; color: var(--grey); }
.faq p + p { margin-top: .8em; }
@media (max-width: 760px) { .faq article { grid-template-columns: 1fr; gap: 10px; } }

.contact { background: var(--deck); border: 1px solid var(--rule); border-radius: 6px; padding: 34px; }
.contact .addr { font-family: var(--mono); font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--read); word-break: break-all; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); background: var(--deck); padding: 56px 0 36px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin: 0 0 14px; }
.foot p { color: var(--grey); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot li a { color: var(--cool); text-decoration: none; }
.foot li a:hover { color: var(--trace); }
.foot-age { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 6px; padding: 18px; margin-top: 8px; background: var(--void); }
.foot-age strong { font-family: var(--mono); font-size: 1.6rem; color: var(--trace); line-height: 1; font-weight: 500; }
.foot-age p { margin: 0; font-size: .88rem; line-height: 1.5; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .74rem; color: var(--mute); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Spikeline 21 — blackjack console
   ========================================================= */
.console { border: 1px solid var(--rule); border-radius: 8px; background: var(--deck); overflow: hidden; }
.console-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.console-bar .title { display: inline-flex; align-items: center; gap: 10px; color: var(--read); }
.console-bar .free { color: var(--mute); }

.monitor { position: relative; height: 92px; border-bottom: 1px solid var(--rule); background: var(--void); }
.monitor canvas { width: 100%; height: 100%; }
.monitor-read { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; pointer-events: none; }
.monitor-read div { background: rgba(7, 8, 10, .82); padding: 6px 10px; border-radius: 4px; }
.monitor-read small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.monitor-read b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--read); letter-spacing: -.03em; line-height: 1.1; }
.monitor-read .right { text-align: right; }

.table { padding: 26px 22px 18px; display: grid; gap: 22px; }
.hand-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; min-height: 138px; }
.hand-label small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.hand-label b { font-family: var(--mono); font-weight: 500; font-size: 2.4rem; color: var(--read); letter-spacing: -.04em; line-height: 1; }
.hand-label b.bust { color: var(--trace); }
.hand-label em { display: block; font-style: normal; font-family: var(--mono); font-size: .7rem; color: var(--grey); margin-top: 4px; min-height: 1.2em; }
.cards { display: flex; flex-wrap: wrap; gap: 10px; min-height: 124px; align-items: center; }

.card { width: 84px; height: 118px; perspective: 700px; flex: none; }
.card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .42s cubic-bezier(.2, .7, .2, 1); transform: rotateY(180deg); }
.card.up .card-in { transform: rotateY(0); }
.card.enter { animation: deal .32s ease-out both; }
@keyframes deal { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.face, .back { position: absolute; inset: 0; border-radius: 7px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face { background: #EEF2F6; color: #0B0D11; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 9px; font-family: var(--mono); box-shadow: 0 0 0 1px #cfd6df inset; }
.face.red { color: #D81A2C; }
.face .r { font-size: 1.25rem; font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.face .s { font-size: 1rem; line-height: 1; }
.face .big { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 2.2rem; line-height: 1; }
.face .bot { align-self: flex-end; transform: rotate(180deg); text-align: left; }
.back { transform: rotateY(180deg); background: var(--deck-2); border: 1px solid var(--rule); overflow: hidden; }
.back svg { position: absolute; left: 6px; right: 6px; top: 50%; transform: translateY(-50%); width: calc(100% - 12px); height: 40px; }
.back svg path { fill: none; stroke: var(--trace); stroke-width: 1.5; stroke-linejoin: round; }
@media (max-width: 520px) {
  .hand-row { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .hand-label { display: flex; align-items: baseline; gap: 12px; }
  .hand-label b { font-size: 1.8rem; }
  .card { width: 64px; height: 90px; }
  .face .big { font-size: 1.6rem; }
  .face .r { font-size: 1rem; }
  .cards { min-height: 92px; }
}

.callout {
  margin: 0 22px; padding: 14px 18px; border-radius: 6px; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: .92rem; color: var(--grey);
  display: flex; align-items: center; gap: 12px; min-height: 54px;
}
.callout b { color: var(--read); font-weight: 500; }
.callout.win { border-color: var(--trace); color: var(--read); background: rgba(255, 42, 61, .08); }
.callout.bj { border-color: var(--trace); background: var(--trace); color: #fff; }
.callout.bj b, .callout.bj .beat { color: #fff; background: #fff; }
.callout.bj b { background: none; }
.callout.lose { border-color: var(--rule); color: var(--grey); }
.callout.push { border-style: dashed; color: var(--cool); }
.callout.warn { border-color: var(--trace-d); color: var(--cool); }

.controls { padding: 20px 22px 24px; display: grid; gap: 16px; }
.bet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bet-row .lbl { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-right: 4px; }
.chip {
  font-family: var(--mono); font-size: .88rem; font-weight: 500;
  min-width: 58px; padding: 10px 12px; border-radius: 4px;
  background: var(--void); color: var(--read); border: 1px solid var(--rule); cursor: pointer;
}
.chip:hover:not(:disabled) { border-color: var(--trace); }
.chip[aria-pressed="true"] { border-color: var(--trace); background: var(--trace-d); }
.act-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.act {
  font-family: var(--mono); font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 10px; border-radius: 4px; cursor: pointer;
  background: var(--deck-2); color: var(--read); border: 1px solid var(--rule);
}
.act:hover:not(:disabled) { border-color: var(--trace); }
.act.primary { background: var(--trace); border-color: var(--trace); color: #fff; }
.act.primary:hover:not(:disabled) { background: #ff4757; }
button:disabled { opacity: .35; cursor: not-allowed; }
.util-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .86rem; color: var(--grey); }
.linkish { background: none; border: 0; padding: 0; color: var(--cool); font: inherit; font-family: var(--mono); font-size: .78rem; text-decoration: underline; text-decoration-color: var(--trace); text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--trace); }
@media (max-width: 520px) { .act-row { grid-template-columns: 1fr 1fr; } .console-bar .free { display: none; } }

.shoe { font-family: var(--mono); font-size: .72rem; color: var(--mute); }

/* rules panel */
.rules { border: 1px solid var(--rule); border-radius: 8px; background: var(--deck); padding: 28px; }
.rules h2 { font-size: 1.3rem; }
.rules dl { margin: 0; }
.rules dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--read); margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.rules dd { margin: 6px 0 0 18px; color: var(--grey); font-size: .95rem; }
.game-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .game-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
