:root {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e8f3ed;
  background: #0d2f20;
  --felt: #0f5c3d;
  --felt-deep: #0a3b28;
  --gold: #f4d35e;
  --chip-red: #d92d48;
  --chip-blue: #2563eb;
  --surface: rgba(255, 255, 255, 0.04);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(40, 160, 110, 0.2),
      transparent 40%
    ),
    radial-gradient(circle at 80% 0%, rgba(70, 180, 140, 0.25), transparent 35%),
    linear-gradient(135deg, var(--felt), var(--felt-deep));
  color: #e8f3ed;
}

body > header,
body > main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 3rem;
}

header h1 {
  margin-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.lede {
  margin: 0 0 1.25rem;
  color: #d3e5da;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.button.primary {
  background: linear-gradient(135deg, #1fa46a, #16c47f);
  color: #042013;
  border-color: rgba(0, 0, 0, 0.08);
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #f3faf5;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-block;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-visual {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.card-fan {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.card-fan img {
  width: 84px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.hero-note {
  margin: 0;
  color: #d8e5dd;
  font-size: 0.95rem;
  text-align: center;
}

.chip-stack {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #0c1c12;
  font-weight: 800;
  border: 4px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.chip.red {
  background: var(--chip-red);
}
.chip.blue {
  background: var(--chip-blue);
  color: #e7eefc;
}
.chip.gold {
  background: var(--gold);
}

.landing main {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

main {
  margin-top: 0.5rem;
}

.stacked {
  display: grid;
  gap: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.25rem 1.1rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.feature h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.feature p {
  margin: 0;
  color: #d1e3d8;
}

.section-card {
  padding: 1.35rem 1.2rem;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.list {
  margin: 0;
  padding-left: 1.25rem;
  color: #d6e7dd;
  display: grid;
  gap: 0.35rem;
}

.two-column {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.qr-card {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.qr-card h3 {
  margin: 0 0 0.25rem;
}

.qr-card p {
  margin: 0;
  color: #d3e5da;
}

.home-screen-tip {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.home-screen-tip h3 {
  margin: 0 0 0.35rem;
}

.home-screen-tip p {
  margin: 0 0 0.65rem;
  color: #d6e7dd;
}

.inline-steps {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: #d6e7dd;
}

.qr-box {
  width: 132px;
  height: 132px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.links a {
  color: #b7e7d2;
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  text-decoration: underline;
}

.ping-card {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ping-card h2 {
  margin-top: 0;
}

.ping-result {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cfe4d8;
  min-height: 3.2rem;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .hero {
    padding: 1.5rem;
  }

  .card-fan img {
    width: 72px;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }
}

.table-placeholder {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(40, 160, 110, 0.22),
      transparent 42%
    ),
    radial-gradient(circle at 80% 0%, rgba(70, 180, 140, 0.26), transparent 36%),
    linear-gradient(145deg, #0b3a26, #0a2c1d);
}

.table-hud {
  position: fixed;
  bottom: 16px;
  left: 16px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #f0f5f1;
  max-width: 320px;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
}

body.overlay-hidden .table-hud,
body.overlay-hidden .stack-label {
  display: none;
}

body.overlay-visible .table-hud {
  display: block;
}

.table-id {
  font-weight: 700;
  margin-bottom: 6px;
}

.table-surface {
  position: relative;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: radial-gradient(
      circle at 50% 45%,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0) 45%
    ),
    linear-gradient(120deg, #115537, #0d3d29 55%, #0b2f1f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 0 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.board-layer {
  position: absolute;
  inset: 0;
}

.center-track {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  row-gap: clamp(0.6rem, 2vw, 1.8rem);
  pointer-events: auto;
}

.stacks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.board {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.2vw, 1.4rem);
  padding: clamp(1rem, 1.6vw, 1.8rem) clamp(1.4rem, 2.4vw, 2.4rem);
  border: 3px solid rgba(220, 191, 69, 0.58);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  background: transparent;
}

.board-group {
  display: flex;
  align-items: center;
}

.board-group.flop {
  gap: clamp(0.55rem, 0.8vw, 0.9rem);
}

.board-group.turn {
  margin-left: clamp(1.2rem, 2vw, 2.2rem);
}

.board-group.river {
  margin-left: clamp(1.35rem, 2.3vw, 2.4rem);
}

.board img {
  width: clamp(134px, 17vw, 210px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.card-slot {
  width: clamp(134px, 17vw, 210px);
  aspect-ratio: 2.5 / 3.5;
  border-radius: 12px;
  position: relative;
  display: grid;
  place-items: center;
}

.card-slot::after {
  content: "";
  position: absolute;
  inset: clamp(8px, 1vw, 14px);
  border-radius: inherit;
  border: 2px dashed rgba(245, 243, 231, 0.4);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.card-slot.filled::after {
  display: none;
}

.card-slot img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.board .card-slot img {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.stack {
  position: relative;
  width: clamp(104px, 12vw, 148px);
  height: clamp(148px, 17vw, 196px);
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 3px solid rgba(220, 191, 69, 0.65);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  background: transparent;
  pointer-events: auto;
  z-index: 2;
}

.stack-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: #f5f3e7;
  backdrop-filter: blur(3px);
}

.stack.muck {
  border-style: solid;
  border-color: rgba(220, 191, 69, 0.58);
}

.card-back {
  width: clamp(92px, 11vw, 136px);
  height: clamp(130px, 15vw, 186px);
  border-radius: 12px;
  background-color: #ffffff;
  background-image: url("/assets/cards/svg/3B.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
}

.card-back.offset {
  position: absolute;
  opacity: 1;
}

.card-back.rotated {
  transform: rotate(-12deg);
}

.card-back.offset {
  transform: translate(12px, 16px) rotate(-4deg);
}

.seat-layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(2, 1fr);
}

.seat {
  --seat-width: clamp(150px, 18vw, 200px);
  --seat-height: clamp(150px, 17vw, 204px);
  position: relative;
  width: var(--seat-width);
  height: var(--seat-height);
  display: grid;
  place-items: center;
  background: transparent;
  border: 3px solid rgba(220, 191, 69, 0.58);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  overflow: visible;
}

.seat .nameplate {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #f5f3e7;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.top-row .seat .nameplate {
  top: calc(100% + 10px);
  bottom: auto;
}

.bottom-row .seat .nameplate {
  bottom: calc(100% + 10px);
  top: auto;
  transform: translate(-50%, 0) rotate(180deg);
}

.seat-overlay {
  position: absolute;
  inset: 8px;
  display: grid;
  gap: 10px;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(7, 48, 29, 0.9),
    rgba(8, 60, 40, 0.86)
  );
  border: 2px solid rgba(220, 191, 69, 0.65);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  color: #f5f3e7;
  padding: 14px;
  text-align: center;
  width: min(260px, 86vw);
  max-width: min(280px, 92vw);
  cursor: pointer;
}

.seat-overlay h3 {
  font-size: 1rem;
  margin: 0;
}

.seat-overlay p {
  margin: 0;
  font-size: 0.95rem;
  color: #efe9d2;
}

.seat-overlay .qr-box {
  width: 128px;
  height: 128px;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
}

.seat-overlay .inline-button {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #f6d365, #fda085);
  color: #1b1208;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.seat-overlay .inline-button:hover,
.seat-overlay .inline-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  outline: none;
}

.seat.empty {
  border-style: dashed;
  border-color: rgba(220, 191, 69, 0.4);
}

.pocket-cards {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0;
  transform: rotate(var(--card-rotate, 0deg)) translateY(var(--card-lean, 0));
  min-height: clamp(120px, 14vw, 160px);
}

.pocket-cards img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.pocket-slot {
  width: clamp(88px, 10vw, 116px);
  height: clamp(120px, 14vw, 156px);
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.pocket-slot::after {
  display: none;
}

.pocket-slot + .pocket-slot {
  margin-left: -64px;
  transform: translateX(18px) rotate(-9deg);
  z-index: 2;
}

.dealer-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdfefc;
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #656565;
  z-index: 4;
  pointer-events: none;
}

.dealer-button::after {
  content: "D";
  line-height: 1;
}

.top-row .seat .dealer-button {
  top: 106%;
  transform: translate(-50%, -50%) translateX(calc(var(--seat-width) / -3));
}

.bottom-row .seat .dealer-button {
  top: -18%;
  transform: translate(-50%, -50%) translateX(calc(var(--seat-width) / 3));
}

.seat-row {
  position: absolute;
  left: 50%;
  width: min(100vw, 1400px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: center;
  padding: 0 6vw;
  pointer-events: none;
}

.seat-row .seat {
  pointer-events: auto;
}

.top-row {
  top: 7%;
  transform: translate(-50%, -100%);
}

.bottom-row {
  bottom: 7%;
  transform: translate(-50%, 100%);
}
.top-row .seat {
  transform: translateY(20%);
}
.bottom-row .seat {
  transform: translateY(-20%);
}

.seat-1 {
  --card-rotate: 165deg;
}
.seat-2 {
  --card-rotate: 180deg;
}
.seat-3 {
  --card-rotate: 180deg;
}
.seat-4 {
  --card-rotate: 190deg;
}
.seat-5 {
  --card-rotate: 200deg;
}
.seat-6 {
  --card-rotate: -10deg;
}
.seat-7 {
  --card-rotate: -5deg;
}
.seat-8 {
  --card-rotate: 0deg;
}
.seat-9 {
  --card-rotate: 10deg;
}
.seat-10 {
  --card-rotate: 20deg;
}

@media (max-width: 900px) {
  .seat-row {
    padding: 0 3vw;
  }
}

/* Player phone mock */
body.player-mock {
  background: linear-gradient(160deg, #0f4c33, #0a2f1f 60%, #072317);
  color: #f6f8f5;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  overscroll-behavior-y: contain;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.player-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 18px
    calc(32px + env(safe-area-inset-bottom));
  display: grid;
  gap: 18px;
}

.phone-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.table-tag {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.identity {
  display: grid;
  gap: 2px;
}

.player-name {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.player-name:focus-visible {
  outline: 2px solid #66c2ff;
  outline-offset: 4px;
}

.seat-label {
  color: #dfe8df;
  font-size: 0.95rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(39, 174, 96, 0.18);
  border: 1px solid rgba(52, 199, 89, 0.45);
  color: #a4f0b7;
}

.status-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64f58d;
  box-shadow: 0 0 0 6px rgba(100, 245, 141, 0.18);
}

.hand-panel,
.action-panel,
.dealer-panel {
  padding: 16px 16px 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.hand-label {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f3d77b;
}

.hand-cards {
  position: relative;
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 6px 4px;
  cursor: pointer;
  user-select: none;
  -webkit-touch-callout: none;
}

.hand-cards:focus-visible {
  outline: 2px solid #66c2ff;
  outline-offset: 6px;
}

.hand-card {
  position: relative;
  width: clamp(100px, 28vw, 126px);
  aspect-ratio: 63 / 88;
  transform: rotate(8deg);
}

.peek-shield {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: transparent;
  z-index: 2;
}

.hand-card.second {
  transform: translateX(6px) rotate(-9deg);
}

.hand-card + .hand-card {
  margin-left: -78px;
}

.player-live .card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  background: #fff;
  transition: opacity 120ms ease;
}

.player-live .card-face.front {
  opacity: 0;
}

.player-live .hand-cards.showing-front .card-face.front {
  opacity: 1;
}

.player-live .hand-cards.showing-front .card-face.back {
  opacity: 0;
}

.player-live .hand-cards.no-cards .card-face {
  visibility: hidden;
}

.peek-note {
  margin: 10px 0 0;
  color: #d2e6d8;
  text-align: center;
  font-size: 0.95rem;
}

.panel-title {
  margin: 0 0 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dealer-grid {
  grid-template-columns: 1fr;
}

.action-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbf8;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.action-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-button.primary {
  background: linear-gradient(145deg, #1fa46a, #16c47f);
  color: #032114;
  border-color: rgba(0, 0, 0, 0.08);
}

.action-button.accent {
  background: linear-gradient(145deg, #66c2ff, #3ea3ff);
  border-color: rgba(0, 0, 0, 0.08);
  color: #021423;
}

.action-button.danger {
  background: linear-gradient(145deg, #d92d48, #b32036);
  border-color: rgba(0, 0, 0, 0.1);
  color: #fff5f7;
}

.action-button.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.action-button.subtle {
  background: rgba(255, 255, 255, 0.04);
  border-style: dashed;
  color: #d7e5da;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 8px 0;
}

.dealer-row {
  grid-template-columns: 1fr;
}

.dealer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.role-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 211, 94, 0.14);
  border: 1px solid rgba(244, 211, 94, 0.45);
  color: #f7e8ae;
  font-weight: 700;
}

.panel-note {
  margin: 12px 0 0;
  color: #d2e6d8;
  font-size: 0.95rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(420px, 100%);
  background: #0d2f20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding: 18px 18px 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #e8f3ed;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-body {
  margin: 12px 0 0;
  color: #dfe8df;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 520px) {
  .player-shell {
    padding: 18px 14px 26px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .hand-cards img {
    width: 104px;
  }
}
