:root {
  --violet-950: #160827;
  --violet-900: #21103f;
  --violet-800: #322057;
  --violet-700: #57317b;
  --pink-500: #d85195;
  --pink-600: #c92786;
  --ink: #21172b;
  --paper: #fffaff;
  --mist: #f4edf7;
  --line: #ded2e5;
  --lime: #b4df70;
  --gold: #f0bb5d;
  --blue: #6e90df;
  --green: #699784;
  --shadow: 0 24px 64px rgba(26, 8, 46, 0.18);
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--violet-950);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--violet-950); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 13% 4%, rgba(218, 85, 156, 0.31), transparent 26rem),
    radial-gradient(circle at 89% 18%, rgba(105, 151, 132, 0.32), transparent 29rem),
    linear-gradient(145deg, #17092b 0%, #291048 46%, #140724 100%);
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--paper);
  color: var(--violet-900);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }

.brand-lockup { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wordmark {
  margin-inline: -0.06em;
  font-family: "Parisienne", "Brush Script MT", cursive;
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #832b9b;
}
.wordmark strong { color: #df228f; font: inherit; }
.brand-line { margin-top: 2px; color: #332840; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* Setup */
.setup-screen { min-height: 100vh; padding: 28px clamp(20px, 5vw, 82px) 20px; color: var(--paper); }
.setup-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.setup-header .brand-line { color: rgba(255, 255, 255, 0.7); }
.prototype-note { color: rgba(255, 255, 255, 0.74); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; }
.setup-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 0.74fr); align-items: center; max-width: 1280px; min-height: calc(100vh - 157px); margin: 0 auto; gap: clamp(44px, 9vw, 150px); }
.setup-stage::before { content: ""; position: absolute; z-index: -1; width: clamp(350px, 47vw, 660px); aspect-ratio: 1.45; right: 13%; top: 50%; transform: translateY(-50%) rotate(4deg); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 28px; background: linear-gradient(145deg, rgba(23, 8, 39, 0.08), rgba(23, 8, 39, 0.64)), url("./assets/products/rainbow-marker.jpg") center / cover; box-shadow: 0 32px 90px rgba(4, 0, 11, 0.5), inset 0 0 0 11px rgba(255, 255, 255, 0.08); opacity: 0.82; }
.setup-stage::after { content: ""; position: absolute; z-index: -1; width: min(34vw, 420px); aspect-ratio: 1; left: 27%; bottom: 9%; border-radius: 50%; background: radial-gradient(circle, rgba(216, 81, 149, 0.36), rgba(119, 62, 182, 0.06) 48%, transparent 69%); filter: blur(2px); }
.setup-copy { position: relative; z-index: 1; max-width: 660px; }
.eyebrow, .setup-panel > p, .table-head p, .hand-heading p, .turn-panel > p, .winner-card > p, .choice-card > p, .handoff-card > p { margin: 0; color: var(--pink-500); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.setup-copy h1 { max-width: 10ch; margin: 18px 0 20px; color: var(--paper); font-size: clamp(3.7rem, 8vw, 7.8rem); font-weight: 800; letter-spacing: -0.065em; line-height: 0.86; text-wrap: balance; }
.setup-copy h1 span { color: #f59cca; }
.lead { max-width: 46ch; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; }
.rule-stamps { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.rule-stamps span { padding: 9px 13px; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 999px; color: rgba(255, 255, 255, 0.88); font-size: 0.78rem; font-weight: 700; }
.setup-panel { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 46px); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 18px; background: rgba(255, 250, 255, 0.96); box-shadow: 0 28px 80px rgba(9, 1, 18, 0.3); color: var(--ink); }
.setup-panel::before { content: ""; position: absolute; width: 180px; height: 180px; top: -100px; right: -72px; border-radius: 50%; background: conic-gradient(from 30deg, #b4df70, #6e90df, #d85195, #f0bb5d, #a24ec1, #b4df70); opacity: 0.22; filter: blur(3px); }
.setup-panel > * { position: relative; }
.setup-panel h2 { margin: 0 0 8px; color: var(--violet-900); font-size: clamp(1.9rem, 3vw, 2.65rem); letter-spacing: -0.055em; line-height: 0.95; }
.setup-panel > p { color: #685e6e; font-size: 0.91rem; font-weight: 500; letter-spacing: normal; line-height: 1.55; text-transform: none; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 4px; }
.mode-button { min-height: 44px; border: 1px solid #d9cde0; border-radius: 10px; background: #fff; color: var(--violet-900); font-size: 0.73rem; font-weight: 800; }
.mode-button:hover { border-color: var(--pink-500); background: #fff5fa; }
.mode-button.is-selected { border-color: var(--violet-900); background: var(--violet-900); color: #fff; box-shadow: 0 9px 18px rgba(40, 17, 63, 0.18); }
.solo-setup { display: grid; gap: 12px; margin-top: 20px; }
.solo-setup p { margin: 0; padding: 12px 0 0; border-top: 1px solid #e8deea; color: #75697b; font-size: 0.78rem; font-weight: 600; line-height: 1.5; }
.solo-setup strong { color: var(--pink-600); }
.count-stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; max-width: 238px; margin: 28px 0; border-bottom: 1px solid var(--line); }
.count-stepper > span { display: inline-flex; flex-direction: column; align-items: center; padding: 0 10px 10px; }
.count-stepper strong { color: var(--violet-900); font-size: 2rem; letter-spacing: -0.06em; line-height: 0.9; }
.count-stepper small { margin-top: 5px; color: #796f7f; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.stepper-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eee6f2; color: var(--violet-900); font-size: 1.4rem; font-weight: 700; }
.stepper-button:hover { background: var(--pink-500); color: #fff; }
.name-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.player-name-field { display: grid; gap: 6px; color: #6a6070; font-size: 0.73rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.player-name-field input, .select-field select { width: 100%; min-width: 0; border: 1px solid #d8cede; border-radius: 10px; background: #fff; color: var(--violet-900); outline: none; }
.player-name-field input { height: 44px; padding: 0 12px; font-size: 0.94rem; font-weight: 700; letter-spacing: normal; text-transform: none; }
.player-name-field input:focus, .select-field select:focus { border-color: var(--pink-500); box-shadow: 0 0 0 3px rgba(216, 81, 149, 0.18); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 0; border-radius: 10px; background: var(--pink-500); color: #fff; font-size: 0.91rem; font-weight: 800; letter-spacing: 0.01em; box-shadow: 0 12px 26px rgba(177, 23, 114, 0.28); transition: transform 180ms cubic-bezier(.19, 1, .22, 1), background 180ms ease, box-shadow 180ms ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--pink-600); box-shadow: 0 18px 32px rgba(177, 23, 114, 0.35); }
.primary-button:focus-visible, .text-button:focus-visible, .stepper-button:focus-visible, .play-card:focus-visible, .choice-button:focus-visible, .dialog-close:focus-visible { outline: 3px solid #251038; outline-offset: 3px; }
.setup-start { width: 100%; margin-top: 24px; }
.setup-footer { max-width: 1280px; margin: 0 auto; color: rgba(255, 255, 255, 0.54); font-size: 0.72rem; line-height: 1.45; }

/* Game frame */
.game-screen { min-height: 100vh; padding: 0 clamp(14px, 3vw, 48px) 24px; background: linear-gradient(145deg, #fffaff 0%, #fbf4fb 46%, #f5edf8 100%); color: var(--ink); }
.game-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 94px; gap: 20px; border-bottom: 1px solid var(--line); }
.game-title { display: flex; align-items: center; gap: 14px; color: var(--violet-900); }
.game-title span { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.game-title strong { padding: 6px 9px; border-radius: 6px; background: #eee8f4; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.header-actions { display: flex; justify-content: flex-end; gap: 16px; }
.text-button { border: 0; background: transparent; color: var(--violet-900); font-size: 0.83rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--pink-600); }
.player-rail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin: 0 -1px; background: var(--line); border-bottom: 1px solid var(--line); }
.player-rail { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 71px; padding: 12px 14px; background: #fff; }
.player-rail.is-active { background: #fdf3f9; box-shadow: inset 0 -3px var(--pink-500); }
.player-rail.is-ai .player-mark { background: #f7d3e6; color: #8e2461; }
.player-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #ede5f3; color: var(--violet-900); font-size: 0.77rem; font-weight: 800; }
.player-rail.is-active .player-mark { background: var(--violet-900); color: #fff; }
.player-rail strong, .player-rail small { display: block; }
.player-rail strong { font-size: 0.87rem; }
.player-rail small { margin-top: 3px; color: #74697a; font-size: 0.68rem; font-weight: 700; }
.player-rail-stats { display: grid; gap: 3px; color: #665a6e; font-size: 0.67rem; font-weight: 800; text-align: right; }
.game-layout { display: grid; grid-template-columns: minmax(242px, 270px) minmax(0, 1fr); max-width: 1480px; margin: 0 auto; gap: clamp(18px, 3vw, 42px); padding-top: clamp(20px, 3vw, 36px); }
.game-sidebar { display: grid; align-content: start; gap: 14px; }
.turn-panel { padding: 22px; border-radius: 15px; background: var(--violet-900); color: #fff; box-shadow: 0 16px 32px rgba(31, 10, 57, 0.22); }
.turn-panel > p { color: #f3a6ce; }
.turn-panel h1 { margin: 6px 0 20px; font-size: clamp(1.55rem, 2.4vw, 2rem); letter-spacing: -0.06em; }
.turn-status { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.turn-status strong { font-size: 2.7rem; letter-spacing: -0.08em; line-height: 0.8; }
.turn-status span { display: grid; color: #fff; font-size: 0.82rem; font-weight: 800; }
.turn-status small { margin-top: 4px; color: rgba(255, 255, 255, 0.63); font-size: 0.68rem; font-weight: 600; }
.action-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 17px 0 15px; }
.action-track span { display: grid; min-height: 42px; place-items: center; align-content: center; gap: 2px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.action-track b { font-size: 0.8rem; line-height: 1; }.action-track small { color: rgba(255, 255, 255, 0.58); font-size: 0.45rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }.action-track .is-ready { background: rgba(216, 81, 149, 0.4); border-color: rgba(250, 192, 222, 0.62); box-shadow: 0 8px 18px rgba(6, 1, 13, 0.2); }.action-track .is-ready small { color: #fff; }.action-track .is-spent { opacity: 0.42; }
.set-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0 0 15px; }
.set-progress span { display: grid; height: 28px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.45); font-size: 0.66rem; }.set-progress .is-earned { border-color: rgba(253, 218, 111, 0.78); background: #f0bb5d; color: #29103e; box-shadow: 0 7px 14px rgba(5, 1, 12, 0.2); }
.turn-mission { display: grid; gap: 4px; margin: 0 0 18px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 1px solid rgba(255, 255, 255, 0.18); }.turn-mission strong { color: #fff; font-size: 0.78rem; }.turn-mission span { color: rgba(255, 255, 255, 0.7); font-size: 0.66rem; font-weight: 600; line-height: 1.4; }
.end-turn { width: 100%; min-height: 42px; background: #fff; color: var(--violet-900); box-shadow: none; }
.end-turn:hover { background: #f8c5df; color: var(--violet-950); box-shadow: none; }
.ai-turn-status { display: grid; min-height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 9px; background: rgba(245, 156, 202, 0.18); color: #fff; font-size: 0.69rem; font-weight: 800; text-align: center; }
.deck-panel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.deck-visual { position: relative; display: grid; width: 52px; height: 66px; place-items: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 8px; background: linear-gradient(rgba(33, 16, 63, 0.42), rgba(33, 16, 63, 0.42)), url("./assets/dixie-game-art-v1.png") 100% 100% / 300% 200%; color: #fff; box-shadow: 4px 5px 0 #d9cce1, 8px 10px 0 #ede5f1; font-family: "Parisienne", cursive; font-size: 1.6rem; }
.deck-visual::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, 0.58); border-radius: 5px; }
.deck-visual > span { position: relative; text-shadow: 0 2px 7px rgba(21, 7, 38, 0.66); }
.deck-visual small { position: absolute; bottom: -23px; width: 90px; color: #716575; font-family: "DM Sans", sans-serif; font-size: 0.59rem; font-weight: 700; text-align: center; }
.deck-panel > div:last-child { display: grid; gap: 3px; color: #6f6374; font-size: 0.71rem; font-weight: 700; }
.deck-panel strong { color: var(--violet-900); font-size: 0.86rem; }
.log-panel { padding: 16px 0 0; border-top: 1px solid var(--line); }
.log-panel h2 { margin: 0 0 10px; color: var(--violet-900); font-size: 0.9rem; letter-spacing: -0.02em; }
.log-panel ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.log-panel li { color: #706375; font-size: 0.72rem; line-height: 1.4; }
.log-panel li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--pink-500); }

/* Table */
.table-area { position: relative; min-width: 0; }
.table-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 5px 0 18px; }
.table-head p, .hand-heading p { color: var(--pink-600); }
.table-head h2, .hand-heading h2 { margin: 5px 0 0; color: var(--violet-900); font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -0.06em; line-height: 0.94; }
.table-meta { display: flex; gap: 9px; color: #726575; font-size: 0.71rem; font-weight: 800; text-align: right; }
.table-meta span { padding: 7px 8px; border-radius: 7px; background: #f0eaf3; }
.table-command { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(110px, 0.65fr) minmax(98px, 0.55fr); gap: 0; margin: 0 0 14px; overflow: hidden; border: 1px solid #e2d6e7; border-radius: 13px; background: #fff; box-shadow: 0 12px 22px rgba(46, 18, 63, 0.07); }.table-command > div { display: grid; align-content: center; gap: 4px; min-height: 78px; padding: 14px 16px; }.table-command > div + div { border-left: 1px solid #ece3ef; }.table-command span { color: #8b758e; font-size: 0.52rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }.table-command strong { color: var(--violet-900); font-size: 0.95rem; letter-spacing: -0.025em; }.table-command small { color: #75667a; font-size: 0.61rem; font-weight: 600; line-height: 1.35; }.table-pressure { background: #f9edf4; }.table-pressure strong { color: var(--pink-600); }.table-rank { background: #eee8f5; }.table-rank strong { font-size: 1.2rem; }
.stacks-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); align-items: stretch; gap: 18px; min-height: 430px; padding: clamp(18px, 3vw, 32px); overflow: hidden; border: 1px solid #dacfe1; border-radius: 18px; background:
  radial-gradient(circle at 4% 0%, rgba(223, 115, 169, 0.19), transparent 21rem),
  radial-gradient(circle at 96% 100%, rgba(99, 143, 127, 0.19), transparent 22rem),
  #28113f; }
.stacks-grid::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(112deg, rgba(24, 5, 41, 0.72), rgba(24, 5, 41, 0.22)), url("./assets/products/rainbow-marker.jpg") right center / 58% auto no-repeat; opacity: 0.72; mix-blend-mode: luminosity; }
.strain-stack { display: flex; min-height: 364px; flex-direction: column; justify-content: space-between; padding: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.52); border-radius: 14px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 16px 32px rgba(12, 2, 24, 0.26); backdrop-filter: blur(10px); }.strain-stack.is-complete { box-shadow: 0 16px 40px rgba(203, 40, 137, 0.4); }
.stack-heading { display: grid; gap: 4px; }
.stack-heading span { color: #7f7185; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.stack-heading strong { color: var(--violet-900); font-size: 1.15rem; letter-spacing: -0.035em; }.stack-slots { display: flex; flex: 1; align-items: flex-end; justify-content: center; min-height: 260px; padding: 16px 0 12px; }.table-card { position: relative; display: grid; grid-template-rows: auto minmax(126px, 1fr) auto auto; flex: 0 0 clamp(84px, 10vw, 128px); min-height: 220px; padding: 6px; overflow: hidden; border: 1px solid rgba(49, 21, 65, 0.2); border-radius: 10px; background: #fff; color: var(--violet-900); box-shadow: 0 11px 20px rgba(26, 7, 42, 0.25); transform: translateY(var(--table-card-shift)) rotate(var(--table-card-angle)); animation: table-deal 430ms cubic-bezier(.19, 1, .22, 1) both; animation-delay: calc(var(--table-card-index) * 65ms); }.table-card:not(:first-child) { margin-left: -27px; }.table-card::before { content: ""; position: absolute; z-index: 2; inset: 3px; border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 6px; pointer-events: none; }.table-card-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 1px 2px 5px; color: #65486d; }.table-card-top small { font-size: 0.43rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }.table-card-top b { font-size: 0.65rem; }.table-card-art { position: relative; overflow: hidden; border-radius: 6px; background: #e8e1eb; background-position: center; background-size: cover; }.table-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(148deg, rgba(255, 255, 255, 0.28), transparent 30% 70%, rgba(33, 11, 47, 0.18)); }.table-card-art i { position: absolute; z-index: 1; right: 6px; bottom: 3px; color: #fff; font-family: Georgia, serif; font-size: 1.15rem; font-style: normal; font-weight: 800; text-shadow: 0 2px 7px rgba(18, 3, 30, 0.72); }.table-card > strong { position: relative; z-index: 3; display: block; margin-top: 6px; font-size: 0.62rem; letter-spacing: -0.025em; line-height: 1.05; }.table-card-role { position: relative; z-index: 3; display: block; margin-top: 4px; color: #806e85; font-size: 0.44rem; font-weight: 700; line-height: 1.2; }.table-card--empty { place-items: center; grid-template-rows: 1fr auto 1fr; min-height: 204px; border: 1px dashed rgba(91, 62, 109, 0.44); background: rgba(255, 255, 255, 0.55); box-shadow: none; color: #806e85; transform: none; animation: none; }.table-card--empty small { align-self: end; font-size: 0.48rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }.table-card--empty strong { margin: 0; color: var(--violet-700); font-size: 1.45rem; }.table-card--empty > span { align-self: start; font-size: 0.48rem; font-weight: 700; }.table-card.is-wild .table-card-art { background: linear-gradient(135deg, #38105f, #d14d99 56%, #f0bb5d); }.table-card.is-wild .table-card-art::before { content: ""; position: absolute; width: 124%; aspect-ratio: 1; left: -12%; top: -18%; border: 1px solid rgba(255, 255, 255, 0.52); border-radius: 50%; }.table-card.is-wild .table-card-art i { font-family: "DM Sans", Arial, sans-serif; }
.table-card--super-melonaid .table-card-art { background-image: url("./assets/products/super-melonaid.jpg"); }.table-card--face-off-og .table-card-art { background-image: url("./assets/products/face-off-og.jpg"); }.table-card--headhunter .table-card-art { background-image: url("./assets/products/headhunter.jpg"); }.table-card--highway-maxx .table-card-art { background-image: url("./assets/products/highway-maxx.jpg"); }.table-card--zkittlez .table-card-art { background-image: url("./assets/products/zkittlez.jpg"); }.table-card--rainbow-marker .table-card-art { background-image: url("./assets/products/rainbow-marker.jpg"); }
.stack-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; color: #716374; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.stack-foot span:first-child { color: #386b51; }.stack-foot span:last-child { color: var(--pink-600); text-align: right; }.stack-foot span:nth-child(2) { color: #716374; font-size: 0.56rem; text-align: center; }.stack-foot b { display: inline-block; margin-left: 2px; font-size: 0.78rem; }.strain-stack.is-complete .stack-foot span:nth-child(2) { color: var(--pink-600); }
.empty-table { display: grid; grid-column: 1/-1; place-items: center; align-content: center; min-height: 350px; color: #74677a; text-align: center; }
.empty-table-art { display: block; position: relative; width: 92px; height: 68px; margin-bottom: 15px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 10px; background: url("./assets/dixie-game-art-v1.png") 50% 0 / 300% 200%; box-shadow: 7px 7px 0 rgba(40, 17, 63, 0.45), 14px 14px 0 rgba(40, 17, 63, 0.23); }
.empty-table-art::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, 0.62); border-radius: 6px; }
.empty-table strong { color: #fff; font-size: 1rem; text-shadow: 0 2px 10px rgba(9, 1, 18, 0.56); }
.empty-table p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.76); font-size: 0.78rem; }
.bank-area { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding: 14px 16px; border-radius: 12px; background: #efe9f3; }
.bank-label { display: flex; align-items: center; gap: 8px; color: var(--violet-900); font-size: 0.78rem; font-weight: 800; }
.bank-label .icon { color: var(--pink-600); }
.bank-label strong { margin-left: 4px; padding-left: 10px; border-left: 1px solid #c8bad1; }
.bank-cards { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.cash-chip { padding: 4px 7px; border-radius: 5px; background: #fff; color: #4d755d; font-size: 0.7rem; font-weight: 800; }
.bank-empty { color: #837789; font-size: 0.7rem; font-weight: 700; }

/* Hand */
.hand-zone { max-width: 1480px; margin: 28px auto 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.ai-hand-zone { display: grid; min-height: 174px; align-content: center; padding: 28px; border-radius: 14px; background: linear-gradient(135deg, #f9eef5, #f0e9f6); }
.ai-hand-zone .hand-heading { margin: 0; }.ai-hand-zone > p { max-width: 34ch; margin: 9px 0 0; color: #75677b; font-size: 0.86rem; line-height: 1.5; }
.hand-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hand-heading > span { color: #756978; font-size: 0.76rem; font-weight: 800; }
.hand-cards { display: grid; grid-auto-columns: minmax(174px, 200px); grid-auto-flow: column; gap: 12px; overflow-x: auto; padding: 21px 0 24px; scrollbar-color: #bbaac5 transparent; }
.play-card { display: grid; grid-template-rows: auto minmax(118px, 1fr) auto auto auto auto; min-height: 416px; padding: 8px; overflow: hidden; border: 1px solid rgba(57, 21, 75, 0.18); border-radius: 14px; background: linear-gradient(145deg, #fff 0%, #fffaff 67%, #f6edf7 100%); color: var(--ink); text-align: left; box-shadow: 0 11px 25px rgba(44, 24, 59, 0.12); transition: transform 190ms cubic-bezier(.19, 1, .22, 1), box-shadow 190ms ease, border-color 190ms ease; }
.play-card:hover:not(:disabled) { z-index: 1; transform: translateY(-8px) rotate(-0.7deg); box-shadow: 0 20px 34px rgba(52, 20, 67, 0.18); }
.play-card:disabled { opacity: 0.5; }
.card-topline, .card-facts { display: flex; justify-content: space-between; gap: 8px; font-size: 0.59rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.card-topline { padding: 3px 4px 0; color: #74677e; }
.card-art { position: relative; display: block; min-height: 174px; margin: 8px 0; overflow: hidden; border: 1px solid rgba(32, 12, 51, 0.2); border-radius: 9px; background: url("./assets/dixie-game-art-v1.png") center / 300% 200%; box-shadow: inset 0 0 24px rgba(13, 2, 23, 0.32); }
.card-art::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, 0.58); border-radius: 5px; }
.card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, 0.22) 0 8%, transparent 22% 72%, rgba(33, 3, 50, 0.23) 100%); mix-blend-mode: screen; }
.card-art-gloss { position: absolute; z-index: 1; width: 38px; height: 38px; top: -8px; right: -8px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.06) 62%); box-shadow: -50px 61px 0 -14px rgba(255, 255, 255, 0.42); }
.card-art-copy { position: absolute; z-index: 2; left: 11px; bottom: 10px; max-width: calc(100% - 94px); display: grid; gap: 3px; color: #fff; text-shadow: 0 2px 8px rgba(12, 2, 21, 0.7); text-transform: uppercase; }
.card-art-copy small { font-size: 0.43rem; font-weight: 900; letter-spacing: 0.12em; }
.card-art-copy strong { font-family: Georgia, serif; font-size: 0.96rem; letter-spacing: -0.055em; line-height: 0.95; text-transform: none; }
.flower-value-rack { position: absolute; z-index: 3; right: 7px; bottom: 7px; display: grid; grid-template-columns: repeat(2, auto); gap: 3px; }.flower-value-rack > span { display: grid; min-width: 36px; padding: 4px 5px 3px; border: 1px solid rgba(255, 255, 255, 0.48); border-radius: 5px; background: rgba(25, 9, 37, 0.78); color: #fff; box-shadow: 0 3px 9px rgba(14, 3, 23, 0.26); }.flower-value-rack small { color: rgba(255, 255, 255, 0.68); font-size: 0.37rem; font-weight: 900; letter-spacing: 0.1em; line-height: 1; text-transform: uppercase; }.flower-value-rack b { margin-top: 2px; font-family: Georgia, serif; font-size: 0.83rem; letter-spacing: -0.06em; line-height: 1; }
.card--lime .card-art { background-position: 0 0; }
.card--violet .card-art { background-position: 50% 0; }
.card--pink .card-art { background-position: 100% 0; }
.card--gold .card-art { background-position: 0 100%; }
.card--blue .card-art { background-position: 50% 100%; }
.card--orchid .card-art { background-position: 100% 100%; }
.card--hybrid .card-art { background-position: 100% 100%; }
.card--cash .card-art { background-position: 0 100%; }
.card--action .card-art { background-position: 50% 0; }
.card-art--super-melonaid { background: url("./assets/products/super-melonaid.jpg") center / cover; }.card-art--face-off-og { background: url("./assets/products/face-off-og.jpg") center / cover; }.card-art--headhunter { background: url("./assets/products/headhunter.jpg") center / cover; }.card-art--highway-maxx { background: url("./assets/products/highway-maxx.jpg") center / cover; }.card-art--zkittlez { background: url("./assets/products/zkittlez.jpg") center / cover; }.card-art--rainbow-marker { background: url("./assets/products/rainbow-marker.jpg") center / cover; }
.cash-face, .wild-face, .action-face { position: relative; display: block; min-height: 128px; margin: 12px 0; overflow: hidden; border-radius: 9px; }
.cash-face { min-height: 152px; border: 1px solid #89b296; background: repeating-linear-gradient(0deg, rgba(23, 81, 62, 0.055) 0 1px, transparent 1px 8px), linear-gradient(142deg, #f9fff3, #c9e5c8 55%, #a9d4ac); color: #17513e; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.52), inset 0 0 0 9px rgba(27, 93, 66, 0.08); }
.cash-face::before, .cash-face::after { content: ""; position: absolute; border: 1px solid rgba(32, 104, 75, 0.36); border-radius: 50%; }
.cash-face::before { width: 132px; height: 132px; right: -34px; top: -48px; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.13), 0 0 0 16px rgba(32, 104, 75, 0.08); }.cash-face::after { width: 88px; height: 88px; left: -31px; bottom: -47px; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.13); }
.cash-corner { position: absolute; z-index: 2; top: 10px; left: 12px; font-family: Georgia, serif; font-size: 0.88rem; font-weight: 800; letter-spacing: -0.05em; }.cash-corner--bottom { top: auto; right: 12px; bottom: 9px; left: auto; transform: rotate(180deg); }
.cash-seal { position: absolute; z-index: 2; top: 50%; left: 19px; display: grid; width: 38px; height: 38px; place-items: center; transform: translateY(-50%); border: 1px solid currentColor; border-radius: 50%; font-family: "Parisienne", cursive; font-size: 1.08rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.34); }.cash-amount { position: absolute; z-index: 2; top: 48%; left: 52%; color: #17513e; font-family: Georgia, serif; font-size: clamp(3.1rem, 4.2vw, 3.8rem); letter-spacing: -0.1em; transform: translate(-50%, -50%); text-shadow: 0 1px 0 #fff; }.cash-series, .cash-serial { position: absolute; z-index: 2; bottom: 10px; color: rgba(23, 81, 62, 0.82); font-size: 0.43rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }.cash-series { left: 12px; }.cash-serial { right: 12px; }
.wild-face { display: grid; place-items: center; border: 1px solid rgba(247, 206, 88, 0.54); background: radial-gradient(circle at 50% 40%, rgba(255, 224, 112, 0.46), transparent 20%), linear-gradient(135deg, #421f6c 0%, #ac3f92 49%, #e585b7 100%); color: #fff; }.wild-face::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 5px; }.wild-orbit { position: absolute; width: 147px; height: 48px; border: 1px solid rgba(255, 235, 162, 0.62); border-radius: 50%; }.wild-orbit--one { transform: rotate(26deg); }.wild-orbit--two { transform: rotate(-32deg); }.wild-mark { position: relative; z-index: 1; font-size: 1.62rem; font-weight: 900; letter-spacing: 0.18em; text-shadow: 0 3px 10px rgba(29, 5, 48, 0.52); }.wild-subtitle { position: relative; z-index: 1; margin-top: 4px; font-size: 0.53rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.action-face { display: grid; align-content: end; min-height: 152px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.32); background: linear-gradient(135deg, #2a1048, #781452); color: #fff; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08); isolation: isolate; }.action-face::before { content: ""; position: absolute; z-index: -1; inset: 7px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 5px; }.action-face::after { content: ""; position: absolute; z-index: -1; width: 175px; height: 175px; right: -77px; top: -82px; border: 22px solid rgba(255, 255, 255, 0.15); border-radius: 50%; }.action-face strong, .action-command { position: relative; z-index: 1; }.action-face strong { max-width: 8ch; color: #fff; font-size: 1.7rem; font-weight: 900; letter-spacing: -0.07em; line-height: 0.84; text-transform: uppercase; }.action-command { max-width: 16ch; margin-top: 7px; color: rgba(255, 255, 255, 0.82); font-size: 0.56rem; font-weight: 900; letter-spacing: 0.13em; line-height: 1.25; text-transform: uppercase; }.action-mark { position: absolute; z-index: 0; right: 13px; top: 23px; color: rgba(255, 255, 255, 0.24); font-family: Georgia, serif; font-size: 4.5rem; font-weight: 900; letter-spacing: -0.13em; line-height: 0.8; }.action-corner { position: absolute; top: 11px; left: 12px; color: rgba(255, 255, 255, 0.7); font-size: 0.47rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }.action-seal { position: absolute; right: 13px; bottom: 9px; z-index: 1; font-family: "Parisienne", cursive; font-size: 1.4rem; color: rgba(255, 255, 255, 0.88); }.action-card--push .action-face { background: linear-gradient(135deg, #401133, #c52875 60%, #f08ebf); }.action-card--push .action-face::after { width: 208px; height: 38px; right: -39px; top: 16px; border: 0; border-radius: 0; background: rgba(255, 255, 255, 0.13); transform: rotate(-21deg); }.action-card--freshBatch .action-face { background: linear-gradient(135deg, #2a164a, #6652be 54%, #b3dbef); }.action-card--freshBatch .action-face::after { width: 76px; height: 96px; right: 18px; top: 22px; border: 4px double rgba(255,255,255,.2); border-radius: 4px; transform: rotate(12deg); }.action-card--nightShift .action-face { background: linear-gradient(135deg, #071f4a, #254f95 53%, #7c5cb3); }.action-card--nightShift .action-face::after { width: 96px; height: 96px; right: 12px; top: 13px; border: 0; border-radius: 50%; background: radial-gradient(circle at 34% 34%, rgba(255,255,255,.32) 0 18%, rgba(255,255,255,.06) 19% 53%, transparent 54%); }.action-card--closedDoor .action-face { background: linear-gradient(135deg, #18253d, #4a3945 53%, #b67b58); }.action-card--closedDoor .action-face::after { width: 70px; height: 112px; right: 21px; top: 19px; border: 2px solid rgba(255,255,255,.25); border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.08), transparent); }
.card-name { align-self: end; color: var(--violet-900); font-size: 1.04rem; font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }.card-type--cash .card-name { color: #17513e; }.card-type--action .card-name { color: #711452; }.card-type--hybrid .card-name { color: #76307e; }
.card-rule { display: block; min-height: 32px; padding: 0 4px; margin-top: 5px; color: #746879; font-size: 0.66rem; font-weight: 700; line-height: 1.35; }
.card-play-hint { display: block; min-height: 29px; margin: 7px 0 0; padding: 6px 8px; border-radius: 5px; background: #f2ebf4; color: #5c4265; font-size: 0.52rem; font-weight: 800; letter-spacing: 0.015em; line-height: 1.35; }.card-type--cash .card-play-hint { background: #e6f1e7; color: #2e644e; }.card-type--action .card-play-hint { background: #fae7f0; color: #8e215e; }.card-type--hybrid .card-play-hint { background: #f4e7f7; color: #76307e; }
.card-facts { display: flex; justify-content: space-between; gap: 6px; margin: 0 4px; padding-top: 8px; border-top: 1px solid #e8dfe9; color: #6a5b71; font-size: 0.53rem; letter-spacing: 0.01em; }.card-facts span { display: grid; gap: 2px; }.card-facts span:last-child { text-align: right; }.card-facts b { color: #a28da7; font-size: 0.45rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }.card-type--cash .card-facts b { color: #5b9671; }.card-type--action .card-facts b { color: #c86493; }
.card-type--action { grid-template-rows: auto minmax(152px, 1fr) auto auto; }.card-type--action .card-rule { min-height: 32px; color: #651a4a; font-size: 0.69rem; font-weight: 800; }.card-type--action .card-facts { padding-top: 8px; }
.rule-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; max-width: 1480px; margin: 0 auto; padding: 16px 0; border-top: 1px solid var(--line); color: #5e5264; font-size: 0.68rem; font-weight: 700; line-height: 1.35; }
.rule-strip span { display: inline-flex; align-items: center; gap: 6px; }
.rule-strip .icon { width: 15px; height: 15px; color: var(--pink-600); }

/* Dialogs and messages */
.overlay { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(21, 7, 37, 0.78); backdrop-filter: blur(7px); }
.handoff-card, .winner-card, .choice-card { position: relative; width: min(100%, 510px); padding: clamp(27px, 5vw, 48px); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32); animation: settle 420ms cubic-bezier(.19, 1, .22, 1) both; }
.handoff-card { overflow: hidden; background: var(--violet-900); color: #fff; text-align: center; }
.handoff-card::before { content: ""; position: absolute; z-index: 0; width: 360px; height: 360px; top: -190px; right: -100px; border-radius: 50%; background: var(--pink-500); opacity: 0.64; }
.handoff-card > *, .winner-card > * { position: relative; z-index: 1; }
.handoff-sigil { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 26px; border-radius: 50%; background: #fff; color: var(--pink-600); font-family: "Parisienne", cursive; font-size: 1.65rem; }
.handoff-card > p { color: #f5b2d4; }.handoff-card h2, .winner-card h2, .choice-card h2 { margin: 8px 0 14px; letter-spacing: -0.06em; line-height: 0.96; }
.handoff-card h2 { font-size: clamp(2.2rem, 7vw, 4.3rem); }.handoff-copy { max-width: 32ch; margin: 0 auto 25px; color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; line-height: 1.55; }
.handoff-card .primary-button { min-width: 230px; background: #fff; color: var(--violet-900); box-shadow: none; }.handoff-card .primary-button:hover { background: #f7c3df; }
.winner-card { max-width: 570px; text-align: center; }.winner-sigil { display: grid; width: 55px; height: 55px; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #f7d1e5; color: var(--pink-600); }.winner-card h2 { color: var(--violet-900); font-size: clamp(2.2rem, 7vw, 4rem); }.winner-card > p:last-of-type { max-width: 34ch; margin: 0 auto 25px; color: #706275; line-height: 1.55; }.winner-card .primary-button { min-width: 180px; }
.choice-card { max-width: 560px; }.choice-card > p { color: var(--pink-600); }.choice-card h2 { color: var(--violet-900); font-size: clamp(1.9rem, 5vw, 3.2rem); }.choice-card > p:not(:first-child) { color: #706275; font-size: 0.86rem; font-weight: 500; letter-spacing: normal; line-height: 1.55; text-transform: none; }.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: #f0eaf3; color: var(--violet-900); }.dialog-close:hover { background: #e2d5e6; }
.rule-deck { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0 17px; }.rule-card { display: grid; min-height: 91px; align-content: end; gap: 6px; padding: 12px; overflow: hidden; border: 1px solid #eadce8; border-radius: 10px; background: #fff; color: #4c3d51; }.rule-card strong { color: var(--violet-900); font-size: 0.77rem; }.rule-card span { font-size: 0.61rem; font-weight: 600; line-height: 1.35; }.rule-card--flower { background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(238, 247, 221, .95)), url("./assets/dixie-game-art-v1.png") 0 0 / 300% 200%; }.rule-card--cash { background: #eaf4e9; }.rule-card--cash strong { color: #245b45; }.rule-card--wild { background: #f6eaf7; }.rule-card--wild strong { color: #76307e; }.rule-card--action { background: #f9e8f0; }.rule-card--action strong { color: #96275f; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }.choice-button { display: grid; min-height: 82px; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--violet-900); text-align: left; }.choice-button:hover { border-color: var(--pink-500); box-shadow: 0 8px 18px rgba(74, 36, 88, 0.1); }.choice-button strong { font-size: 0.85rem; letter-spacing: -0.025em; }.choice-button small { color: #756879; font-size: 0.65rem; font-weight: 700; line-height: 1.3; }.choice--lime:hover { background: #edf7df; }.choice--violet:hover { background: #f0e6f7; }.choice--pink:hover { background: #fbe8f1; }.choice--gold:hover { background: #fff1d9; }.choice--blue:hover { background: #e8efff; }.choice--orchid:hover { background: #f5e7f7; }
.select-field { display: grid; gap: 7px; margin-top: 14px; color: #685b6d; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }.select-field select { height: 44px; padding: 0 10px; font-size: 0.84rem; font-weight: 700; letter-spacing: normal; text-transform: none; }.dialog-note { margin: 16px 0 20px !important; padding: 11px 12px; border-radius: 8px; background: #f3ecf6; color: #65596a !important; font-size: 0.74rem !important; }.choice-card .primary-button { width: 100%; }.rules-card { max-width: 660px; }.rules-card ol { display: grid; gap: 13px; margin: 22px 0 0; padding-left: 21px; color: #5e5363; font-size: 0.86rem; line-height: 1.5; }.rules-card li::marker { color: var(--pink-600); font-weight: 800; }
.toast { position: fixed; z-index: 22; right: 18px; bottom: 18px; max-width: min(380px, calc(100vw - 36px)); padding: 13px 15px; border-radius: 10px; background: var(--violet-900); color: #fff; box-shadow: 0 18px 35px rgba(22, 8, 39, 0.26); font-size: 0.78rem; font-weight: 700; line-height: 1.4; animation: settle 310ms cubic-bezier(.19, 1, .22, 1) both; }

@keyframes settle { from { opacity: 0; transform: translateY(13px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes table-deal { from { opacity: 0; transform: translateY(22px) rotate(var(--table-card-angle)); filter: blur(4px); } to { opacity: 1; transform: translateY(var(--table-card-shift)) rotate(var(--table-card-angle)); filter: blur(0); } }

@media (max-width: 880px) {
  .setup-stage { grid-template-columns: 1fr; min-height: auto; padding: 72px 0; gap: 40px; }.setup-copy h1 { max-width: 9ch; }.game-layout { grid-template-columns: 1fr; }.game-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }.turn-panel { grid-row: span 2; }.log-panel { grid-column: 2; }.table-area { grid-column: 1/-1; }.game-header { grid-template-columns: 1fr auto; padding: 13px 0; }.game-header .brand-lockup { justify-self: start; }.game-title { display: none; }.header-actions { gap: 12px; }.stacks-grid { min-height: 380px; }
}

@media (max-width: 610px) {
  .setup-screen { padding: 20px 16px; }.setup-header { align-items: flex-start; }.prototype-note { max-width: 13ch; text-align: right; }.setup-stage { padding: 44px 0; }.setup-copy h1 { font-size: clamp(3.4rem, 17vw, 5.4rem); }.name-grid, .choice-grid, .rule-deck { grid-template-columns: 1fr; }.setup-panel { padding: 25px 20px; }.game-screen { padding: 0 12px 14px; }.game-header { min-height: 74px; }.wordmark { font-size: 2.25rem; }.header-actions { gap: 7px; }.text-button { padding: 6px; font-size: 0.75rem; }.player-rail-list { grid-template-columns: 1fr 1fr; }.player-rail { min-height: 62px; padding: 9px; grid-template-columns: auto 1fr; }.player-rail-stats { display: none; }.game-layout { gap: 18px; padding-top: 18px; }.game-sidebar { grid-template-columns: 1fr; }.turn-panel { grid-row: auto; }.log-panel { grid-column: auto; }.deck-panel { display: none; }.table-head { align-items: flex-start; flex-direction: column; }.table-meta { text-align: left; }.table-command { grid-template-columns: 1fr 1fr; }.table-command > div { min-height: 70px; }.table-command > div + div { border-left: 1px solid #ece3ef; }.table-command .table-mission { grid-column: 1/-1; border-bottom: 1px solid #ece3ef; }.stacks-grid { grid-template-columns: 1fr; min-height: 390px; padding: 13px; }.strain-stack { min-height: 360px; padding: 14px; }.stack-slots { min-height: 242px; }.table-card { grid-template-rows: auto minmax(126px, 1fr) auto auto; flex-basis: clamp(78px, 24.5vw, 98px); min-height: 210px; }.table-card:not(:first-child) { margin-left: -19px; }.table-card--empty { min-height: 210px; }.bank-area { align-items: flex-start; flex-direction: column; }.bank-cards { justify-content: flex-start; }.hand-zone { margin-top: 20px; }.hand-cards { grid-auto-columns: minmax(182px, 78vw); padding-bottom: 18px; }.play-card { min-height: 396px; }.rule-strip { justify-content: flex-start; padding: 16px 4px; }.handoff-card, .winner-card, .choice-card { padding: 31px 21px; }.handoff-card h2 { font-size: 2.85rem; }.choice-card h2 { font-size: 2.15rem; }.toast { right: 12px; bottom: 12px; }
}

/* Audit pass: operation economy, public rival tables, and play feedback */
.table-card { grid-template-rows: auto minmax(112px, 1fr) auto auto auto; }
.table-card-value-rack { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 2px; align-items: baseline; margin-top: 4px; color: #76547d; font-size: 0.37rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }.table-card-value-rack b { color: var(--violet-900); font-family: Georgia, serif; font-size: 0.62rem; letter-spacing: -0.04em; }
.toast { z-index: 40; opacity: 0; pointer-events: none; transform: translateY(12px); animation: none; transition: opacity 180ms ease, transform 180ms ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }
.starter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; margin-top: 12px; }.starter-row .select-field { margin: 0; }.starter-random { min-height: 44px; padding: 0 12px; border: 1px solid #dbc9e3; border-radius: 8px; background: #f5edf8; color: var(--violet-900); font-size: 0.66rem; font-weight: 800; }.starter-random .icon { width: 16px; height: 16px; margin-right: 4px; vertical-align: -4px; }
.stack-heading em { margin-top: 2px; color: var(--pink-600); font-size: 0.55rem; font-style: normal; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }.tier--supplier { border-color: rgba(87, 49, 123, 0.45); }.tier--kingpin { border-color: rgba(201, 39, 134, 0.7); box-shadow: 0 16px 40px rgba(203, 40, 137, 0.38); }.stack-control { align-self: stretch; min-height: 36px; margin-top: 12px; border: 1px solid transparent; border-radius: 7px; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }.stack-control--sell { background: #e5f1e4; color: #276148; }.stack-control--sell:hover { background: #d3e9d3; }.stack-control--upgrade { background: #f8e3ef; color: #8b205d; }.stack-control--upgrade:hover { background: #f2cfe1; }.stack-control--kingpin { display: grid; place-items: center; background: #291043; color: #fff; }
.opponents-zone { max-width: 1480px; margin: 28px auto 0; padding: 25px 0; border-top: 1px solid var(--line); }.opponents-zone > div:first-child p { color: var(--pink-600); }.opponents-zone h2 { margin: 4px 0 17px; color: var(--violet-900); font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -0.04em; }.opponent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }.opponent-table { display: grid; min-width: 0; gap: 8px; padding: 13px; border: 1px solid #e2d5e6; border-radius: 12px; background: #fff; color: var(--violet-900); text-align: left; box-shadow: 0 9px 20px rgba(47, 22, 64, 0.06); }.opponent-table--pick { cursor: pointer; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }.opponent-table--pick:hover, .opponent-table--pick.is-selected { border-color: var(--pink-500); box-shadow: 0 13px 24px rgba(129, 27, 88, 0.15); transform: translateY(-2px); }.opponent-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }.opponent-top > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }.opponent-top b { overflow: hidden; font-size: 0.8rem; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }.opponent-top small { color: #827288; font-size: 0.54rem; font-weight: 700; }.opponent-top > strong { color: #30674d; font-family: Georgia, serif; font-size: 1.05rem; }.opponent-bank { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; color: #7b7180; font-size: 0.53rem; font-weight: 700; }.opponent-bank i { padding: 3px 5px; border-radius: 4px; background: #e9f3e8; color: #2c664a; font-style: normal; font-weight: 900; }.opponent-stacks { display: grid; gap: 5px; }.opponent-stacks > small { color: #8b7e90; font-size: 0.58rem; font-weight: 700; }.opponent-stack-chip { display: grid; gap: 2px; min-width: 0; padding: 7px 8px; border-radius: 7px; background: #f4eef6; }.opponent-stack-chip b { overflow: hidden; color: var(--violet-900); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }.opponent-stack-chip small { color: #76687c; font-size: 0.5rem; font-weight: 800; }.type--sativa { background: #edf7e8; }.type--indica { background: #edf0fb; }.type--hybrid { background: #fbeaf3; }
.cash-chip { display: inline-flex; align-items: center; gap: 3px; padding: 5px 7px; border: 1px solid #b8d4ba; border-radius: 5px; background: repeating-linear-gradient(0deg, rgba(23, 81, 62, 0.05) 0 1px, transparent 1px 5px), #eff8eb; color: #286148; font-family: Georgia, serif; font-size: 0.72rem; font-weight: 800; }.cash-chip i { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: "Parisienne", cursive; font-size: 0.52rem; font-style: normal; }
.choice-card--wide { width: min(100%, 840px); }.choice-section { display: grid; gap: 8px; margin: 18px 0; }.choice-section > span { color: #876c83; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }.opponent-grid--pick { margin-top: 0; }.reaction-card { max-width: 510px; text-align: center; }.reaction-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 23px; }.secondary-button { min-height: 46px; border: 1px solid #d7c5dc; border-radius: 8px; background: #fff; color: var(--violet-900); font-weight: 800; }.secondary-button:hover { border-color: var(--pink-500); background: #fbf2f7; }.discard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }.discard-choice { display: grid; min-height: 78px; gap: 5px; padding: 11px; border: 1px solid #e5d9e7; border-radius: 9px; background: #fff; color: var(--violet-900); text-align: left; }.discard-choice:hover { border-color: var(--pink-500); background: #fff8fc; }.discard-choice strong { font-size: 0.75rem; }.discard-choice small { color: #756879; font-size: 0.57rem; font-weight: 700; line-height: 1.3; }
.set-celebration { position: fixed; z-index: 35; inset: 0; display: grid; place-content: center; gap: 5px; pointer-events: none; background: radial-gradient(circle at center, rgba(246, 215, 90, 0.3), transparent 31%), rgba(33, 16, 63, 0.2); color: #fff; text-align: center; animation: kingpin-stamp 520ms cubic-bezier(.16, 1, .3, 1) both; }.set-celebration span { display: grid; width: 94px; height: 94px; place-items: center; margin: 0 auto 8px; border: 4px solid #f2cf68; border-radius: 50%; background: var(--violet-900); box-shadow: 0 18px 40px rgba(12, 2, 23, 0.38); font-family: "Parisienne", cursive; font-size: 2.5rem; }.set-celebration strong { font-size: clamp(1.7rem, 5vw, 3.8rem); letter-spacing: -0.04em; text-shadow: 0 3px 14px rgba(16, 4, 29, 0.65); }.set-celebration small { font-size: 0.65rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
@keyframes kingpin-stamp { 0% { opacity: 0; backdrop-filter: blur(0); } 35% { opacity: 1; backdrop-filter: blur(4px); } 100% { opacity: 1; } }
@media (max-width: 610px) { .starter-row, .discard-grid { grid-template-columns: 1fr; }.sound-toggle { font-size: 0; }.sound-toggle .icon { width: 19px; height: 19px; margin: 0; }.table-card { grid-template-rows: auto minmax(112px, 1fr) auto auto auto; }.opponents-zone { margin-top: 20px; padding: 20px 0; }.opponent-grid { grid-template-columns: 1fr; }.reaction-actions { grid-template-columns: 1fr; } }

.type--sativa { border-inline-start: 0; background: #edf7e8; }.type--indica { border-inline-start: 0; background: #edf0fb; }.type--hybrid { border-inline-start: 0; background: #fbeaf3; }

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