:root {
  --bg: #08110f;
  --bg-soft: #0c1916;
  --surface: #10201c;
  --surface-2: #132821;
  --surface-3: #192f28;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(225, 194, 122, 0.28);
  --text: #f4f1e9;
  --muted: #9faca6;
  --gold: #e1c27a;
  --gold-deep: #a87832;
  --green: #68d39d;
  --red: #ff7b76;
  --amber: #f4c36b;
  --blue: #81b7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --radius: 20px;
  --shell: min(1440px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 0%, rgba(42, 102, 81, 0.26), transparent 26rem),
    radial-gradient(circle at 8% 16%, rgba(168, 120, 50, 0.10), transparent 22rem),
    var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--gold);
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 15, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  display: block;
  width: clamp(178px, 18vw, 228px);
  height: auto;
}
.header-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.text-link { color: var(--muted); text-decoration: none; font-weight: 600; }
.text-link:hover { color: var(--text); }

.game-selector {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.game-tab {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.game-tab:hover { color: var(--text); }
.game-tab.is-active {
  background: linear-gradient(135deg, #efd99f, var(--gold));
  color: #15130d;
}
@media (max-width: 640px) {
  .game-tab { padding: 7px 9px; font-size: .75rem; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  color: #15130d;
  background: linear-gradient(135deg, #efd99f, var(--gold));
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(168, 120, 50, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(168, 120, 50, 0.25); }
.button-small { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.9rem; }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.button-secondary:hover { border-color: var(--gold); box-shadow: none; }
.button.is-disabled { opacity: .55; cursor: not-allowed; }

.hero { padding: 86px 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .72fr); gap: 64px; align-items: center; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 800;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(104, 211, 157, .12);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; }
h1 {
  max-width: 850px;
  margin: 20px 0 22px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-lede { max-width: 700px; color: #c7d0cc; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.quiet-note { margin: 18px 0 0; color: var(--muted); font-size: .85rem; }
.alpha-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(27, 56, 47, .92), rgba(13, 28, 24, .92));
  box-shadow: var(--shadow);
}
.alpha-card::after {
  content: "♠";
  position: absolute;
  right: -28px;
  bottom: -76px;
  color: rgba(225, 194, 122, .07);
  font-size: 15rem;
  line-height: 1;
}
.alpha-card > * { position: relative; z-index: 1; }
.alpha-badge {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(225, 194, 122, .35);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(225, 194, 122, .08);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.alpha-card h2 { margin: 24px 0 10px; font-size: 2rem; }
.alpha-card p { color: #bdc8c3; }
.check-list { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 800; }

.status-strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.status-strip-inner { min-height: 76px; display: flex; align-items: center; gap: 48px; }
.status-strip-inner > div { display: grid; gap: 2px; }
.status-label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.status-strip strong { font-size: .95rem; }
.refresh-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.refresh-button:hover { color: #f6dfa6; }
.refresh-button:disabled { opacity: .55; cursor: wait; }

.dashboard-section, .history-section, .about-section { padding: 82px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.section-heading p { max-width: 480px; margin-bottom: 5px; color: var(--muted); text-align: right; }
.dashboard-rows { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
.panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 40, 33, .96), rgba(12, 26, 22, .96));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .14);
}
.average-hands-row .panel-content { min-height: 0; }
.average-hands-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.average-hand-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.average-hand-side:first-child { border-right: 0; }
.average-hand-side h4 {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.average-hand-description {
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}
.average-hand-meta {
  color: var(--muted);
  font-size: .72rem;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 83px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-header > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.panel-number { color: var(--gold); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: .7rem; font-weight: 800; }
.panel-header h3 { margin: 0; font-size: 1.08rem; }
.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(104, 211, 157, .28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(104, 211, 157, .08);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill-neutral { color: var(--muted); border-color: var(--line); background: rgba(255,255,255,.03); }
.pill-warning { color: var(--amber); border-color: rgba(244,195,107,.28); background: rgba(244,195,107,.08); }
.pill-error { color: var(--red); border-color: rgba(255,123,118,.28); background: rgba(255,123,118,.08); }
.panel-content { padding: 20px; }
.skeleton-block::before {
  content: "";
  display: block;
  height: 390px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255,255,255,.025) 30%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.025) 66%);
  background-size: 260% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position-x: -260%; } }

.dealer-identity { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dealer-identity h4 { margin: 0; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -.035em; }
.current-dealer-banner { margin-bottom: 22px; }
.current-dealer-banner .dealer-identity { padding-bottom: 0; border-bottom: none; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; color: var(--muted); font-size: .78rem; }
.subheading { margin: 22px 0 12px; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
.stats-list { display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; }
.stat-label { color: #c2cbc7; font-size: .85rem; }
.stat-value {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}
.stat-live { color: inherit; }
.stat-separator { color: rgba(244, 241, 233, .52); font-weight: 600; }
.stat-average { color: var(--text); font-weight: 700; }
.stat-detail { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
.progress { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.tone-positive { color: var(--green); }
.tone-negative { color: var(--red); }
.tone-warning { color: var(--amber); }
.tone-neutral { color: var(--text); }
.info-note { margin: 18px 0 0; padding: 12px 13px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.025); font-size: .75rem; }

.hand-list { display: grid; gap: 9px; }
.hand-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(92px, 142px);
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hand-row:last-child { border-bottom: 0; }
.hand-time { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.hand-main { min-width: 0; }
.hand-title { display: block; font-size: .86rem; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hand-detail { display: block; margin-top: 3px; color: var(--muted); font-size: .71rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.empty-state { min-height: 330px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--text); }

.verification-top { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.verification-top strong { display: block; font-size: .95rem; }
.verification-top span { color: var(--muted); font-size: .74rem; }
.hand-group { margin-top: 20px; }
.hand-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card-row { display: flex; flex-wrap: wrap; gap: 7px; }
.playing-card {
  position: relative;
  display: grid;
  align-content: space-between;
  aspect-ratio: 2.2 / 3;
  flex: 0 0 auto;
  width: clamp(54px, 18%, 96px);
  min-width: 54px;
  padding: 7px;
  overflow: hidden;
  border-radius: 9px;
  color: #151b18;
  background: #f4f1e8;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.09), 0 5px 12px rgba(0,0,0,.2);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-weight: 800;
}
.playing-card.red { color: #b53135; }
.playing-card.back { place-items: center; color: var(--gold); background: repeating-linear-gradient(45deg, #17342b 0 5px, #11281f 5px 10px); }
.playing-card .rank {
  font-size: clamp(1.35rem, 2.65vw, 1.9rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.playing-card .suit {
  align-self: end;
  justify-self: start;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: .85;
}
.playing-card.exposed { padding-right: 20px; }
.playing-card.exposed::after {
  content: "First";
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 5px 3px;
  border-radius: 5px;
  color: #16150f;
  background: var(--gold);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .5rem;
  line-height: 1;
  letter-spacing: .05em;
  font-weight: 800;
  text-transform: uppercase;
}
.verification-note { margin-top: 18px; padding: 13px; border: 1px solid rgba(104,211,157,.14); border-radius: 10px; color: #b9c8c1; background: rgba(104,211,157,.045); font-size: .75rem; }

.history-section { background: rgba(255,255,255,.015); border-block: 1px solid var(--line); }
.dealer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dealer-card {
  min-width: 0;
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.dealer-card.is-placeholder { background: rgba(16,32,28,.58); border-style: dashed; }
.dealer-card-head { display: flex; justify-content: space-between; gap: 10px; }
.dealer-position { color: var(--gold); font-size: .68rem; font-weight: 800; }
.dealer-card h3 { margin: 16px 0 5px; font-size: 1.1rem; overflow-wrap: anywhere; }
.dealer-card .session-meta { color: var(--muted); font-size: .72rem; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.mini-stat {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mini-stat.tone-box-positive,
.dealer-stat.tone-box-positive {
  border-color: rgba(104, 211, 157, .30);
  background: rgba(104, 211, 157, .045);
  box-shadow: inset 0 0 18px rgba(104, 211, 157, .025);
}
.mini-stat.tone-box-negative,
.dealer-stat.tone-box-negative {
  border-color: rgba(255, 123, 118, .30);
  background: rgba(255, 123, 118, .045);
  box-shadow: inset 0 0 18px rgba(255, 123, 118, .025);
}
.mini-stat.tone-box-warning,
.dealer-stat.tone-box-warning {
  border-color: rgba(244, 195, 107, .32);
  background: rgba(244, 195, 107, .045);
  box-shadow: inset 0 0 18px rgba(244, 195, 107, .025);
}
.mini-stat.tone-box-neutral,
.dealer-stat.tone-box-neutral,
.profit-loss-tile.tone-box-neutral {
  border-color: rgba(244, 241, 233, .10);
  background: rgba(255,255,255,.025);
}
.dealer-stat.tone-box-positive,
.profit-loss-tile.tone-box-positive {
  border-color: rgba(104, 211, 157, .48);
  background: rgba(104, 211, 157, .09);
  box-shadow: inset 0 0 26px rgba(104, 211, 157, .06);
}
.dealer-stat.tone-box-negative,
.profit-loss-tile.tone-box-negative {
  border-color: rgba(255, 123, 118, .48);
  background: rgba(255, 123, 118, .09);
  box-shadow: inset 0 0 26px rgba(255, 123, 118, .06);
}
.dealer-stat.tone-box-warning,
.profit-loss-tile.tone-box-warning {
  border-color: rgba(244, 195, 107, .48);
  background: rgba(244, 195, 107, .09);
  box-shadow: inset 0 0 26px rgba(244, 195, 107, .06);
}
.mini-stat span { display: block; color: var(--muted); font-size: .65rem; }
.mini-stat strong { display: block; margin-top: 3px; font-size: .9rem; }
.dealer-stats-wrap { margin-top: 18px; }
.dealer-stats { display: grid; gap: 10px; }
.dealer-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profit-loss-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profit-loss-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.profit-loss-label { display: block; color: #c2cbc7; font-size: .72rem; line-height: 1.25; margin-bottom: 6px; }
.profit-loss-value { display: flex; align-items: baseline; gap: 6px; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 1.15rem; font-weight: 800; line-height: 1; }
.profit-loss-detail { display: block; margin-top: auto; color: var(--muted); font-size: .7rem; }
.dealer-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.dealer-header,
.dealer-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 0.85fr) repeat(6, minmax(0, 0.78fr));
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}
.dealer-header {
  color: var(--muted);
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--line);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dealer-row { border-bottom: 1px solid var(--line); }
.dealer-row:last-child { border-bottom: none; }
.dealer-row.is-no-data { background: rgba(255,255,255,.015); }
.dealer-cell {
  min-width: 0;
  text-align: center;
  line-height: 1.2;
}
.dealer-cell:first-child { text-align: left; }
.dealer-cell:nth-child(2) { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dealer-message {
  grid-column: 2 / -1;
  text-align: left;
  color: var(--muted);
  font-size: .82rem;
}
.dealer-row strong {
  display: inline;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}
.label-mobile,
.message-mobile { display: none; }

.dealer-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 86px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.dealer-stat-label { display: block; color: #c2cbc7; font-size: .72rem; line-height: 1.25; margin-bottom: 6px; }
.dealer-stat-value { display: flex; align-items: baseline; gap: 6px; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.dealer-stat-average { color: var(--text); font-size: .78rem; font-weight: 700; }
.dealer-stat .progress { margin-top: auto; }
.placeholder-copy { display: grid; place-content: center; min-height: 170px; text-align: center; color: var(--muted); font-size: .8rem; }
.placeholder-copy strong { color: var(--text); }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.about-grid h2 { margin: 12px 0 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.about-copy { max-width: 720px; color: #bac5c0; font-size: 1.05rem; }
.about-copy p { margin-bottom: 18px; }
.inline-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--gold); text-decoration: none; font-weight: 800; }
.inline-cta:hover { color: #f2d997; }

.site-footer { padding: 35px 0 42px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .78rem; }
.footer-inner strong { color: var(--text); }
.footer-inner p { max-width: 470px; margin: 5px 0 0; }
.footer-inner > p { text-align: right; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  max-width: min(380px, calc(100% - 36px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: #14251f;
  box-shadow: var(--shadow);
  transform: translateY(150%);
  opacity: 0;
  transition: .25s ease;
  font-size: .82rem;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
  .dealer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 720px); }
  .hero { padding: 60px 0 52px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading p { text-align: left; }
  .average-hands-layout { grid-template-columns: 1fr; }
  .dealer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-inner > p { text-align: left; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 22px); --radius: 16px; }
  .header-inner { min-height: 64px; }
  .text-link { display: none; }
  .brand img { width: 158px; height: auto; }
  .button-small { min-height: 36px; padding: 0 12px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.1rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .alpha-card { padding: 25px; border-radius: 20px; }
  .status-strip-inner { min-height: 92px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 14px; }
  .refresh-button { grid-column: 1 / -1; margin: 0; justify-self: start; }
  .dashboard-section, .history-section, .about-section { padding: 60px 0; }
  .panel-header { min-height: 72px; padding: 16px; }
  .panel-content { padding: 16px; }
  .panel-header h3 { font-size: .98rem; }
  .hand-row { grid-template-columns: 72px minmax(0, 1fr); }
  .result-chip { grid-column: 2; justify-self: start; max-width: 100%; }
  .card-row { gap: 5px; }
  .playing-card { padding: 5px; border-radius: 7px; width: clamp(48px, 18%, 84px); min-width: 48px; }
  .dealer-grid { grid-template-columns: 1fr; }
  .dealer-card { min-height: 215px; }
  .dealer-stats-grid { gap: 7px; }
  .dealer-stat { min-height: 78px; padding: 9px; }
  .dealer-stat-label { font-size: .62rem; margin-bottom: 4px; }
  .dealer-stat-value { font-size: .92rem; }
  .dealer-stat-average { font-size: .7rem; }
  .profit-loss-grid { grid-template-columns: 1fr; gap: 10px; }
  .profit-loss-tile { min-height: 78px; padding: 10px; }
  .profit-loss-value { font-size: 1rem; }
  .profit-loss-detail { font-size: .65rem; }
  .about-copy { font-size: .98rem; }
}

@media (max-width: 760px) {
  .dealer-header,
  .dealer-row {
    grid-template-columns: 44px repeat(6, minmax(0, 1fr));
    gap: 5px;
    padding: 10px 8px;
  }
  .dealer-header { font-size: .55rem; letter-spacing: 0; }
  .dealer-cell { font-size: .75rem; }
  .dealer-cell:nth-child(2) { white-space: normal; }
  .dealer-row strong { font-size: .82rem; }
  .is-desktop-only { display: none; }
  .label-desktop,
  .message-desktop { display: none; }
  .label-mobile,
  .message-mobile { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
