/* Lottery console. Unlayered rules intentionally take precedence over the older presentation. */
.casino-floor { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 42px; padding: 27px 0 42px; border-bottom: 1px solid var(--line); align-items: start; }
.casino-floor .hero { padding: 0; min-width: 0; }
.casino-floor .hero-topline { padding: 10px 0 28px; }
.casino-floor .hero-topline .eyebrow { font-size: 8px; }
.casino-floor .edition-label { font-size: 8px; }
.casino-floor .hero-intro { margin: 7px 0 29px; }
.casino-floor .hero-intro h1 { font-size: clamp(42px, 4.65vw, 68px); margin: 17px 0 16px; line-height: 1; }
.casino-floor .hero-intro h1 em { display: block; font-size: 1.18em; margin-top: 5px; }
.casino-floor .hero-intro p { font-size: 12px; }
.casino-floor .hero-flourish { gap: 14px; }
.casino-floor .hero-flourish span { font-size: 8px; letter-spacing: .25em; }
.casino-floor .slot-cabinet { margin: 0 9px; padding: 39px 16px 29px; border-radius: 23px; }
.casino-floor .slot-cabinet::before { inset: 9px; border-radius: 15px; }
.casino-floor .machine-nameplate { top: 14px; font-size: 7px; letter-spacing: .11em; }
.casino-floor .machine-nameplate span { margin-inline: 7px; }
.casino-floor .sevens { gap: 7px; padding: 5px; }
.casino-floor .seven-panel, .casino-floor .seven-panel:nth-child(2) { height: 200px; padding: 0; }
.casino-floor .seven, .casino-floor .seven-panel:nth-child(2) .seven { font-size: clamp(151px, 15vw, 207px); line-height: 1; }
.casino-floor .panel-label, .casino-floor .seven-panel:nth-child(2) .panel-label { font-size: 6px; letter-spacing: .06em; top: 13px; }
.casino-floor .reel-suit { font-size: 18px; bottom: 10px; }
.casino-floor .machine-foot { font-size: 6px; letter-spacing: .07em; justify-content: center; }
.casino-floor .machine-foot > span:first-child, .casino-floor .machine-foot > span:last-child { display: none; }
.casino-floor .source-seal { width: 65px; height: 65px; right: -8px; bottom: -18px; gap: 4px; }
.casino-floor .source-seal strong { font-size: 23px; }
.casino-floor .source-seal > span { font-size: 4px; }
.casino-floor .hero-actions { margin-top: 33px; gap: 11px; }
.casino-floor .hero-actions > a { font-size: 10px; padding: 14px 17px; gap: 17px; }
.casino-floor .hero-bottomline { font-size: 9px; margin-top: 17px; padding: 16px 0 0; border: 0; flex-wrap: wrap; gap: 12px; }
.casino-floor .hero-bottomline .text-link { font-size: 9px; gap: 10px; }
.casino-floor .hero-note { display: block; width: 100%; color: var(--muted); font-size: 9px; }
.casino-floor .lottery-section { padding: 5px 0 0; border: 0; min-width: 0; scroll-margin-top: 18px; }
.lottery-topline { margin-bottom: 15px; gap: 12px; }
.lottery-topline .section-number { font-size: 8px; letter-spacing: .07em; padding: 0; }
.lottery-state-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #9b804a; border-radius: 20px; padding: 7px 10px; color: #f0d698; font-family: var(--mono); font-size: 8px; letter-spacing: .03em; white-space: nowrap; }
.lottery-console { overflow: hidden; border: 1px solid #a88a52; border-radius: 13px; background: #0a241d; box-shadow: 0 15px 35px #0003; }
.lottery-prize { padding: 24px 27px 0; text-align: left; background: radial-gradient(ellipse at top right, #34654888, transparent 80%), #123c2c; border-bottom: 1px solid #7b6a4555; }
.lottery-prize-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.lottery-prize-heading h2 { font-family: Georgia, serif; font-size: 35px; letter-spacing: -.055em; margin: 0; }
.lottery-prize-heading h2 em { color: var(--accent); }
.prize-suit { font-family: Georgia, serif; font-size: 33px; color: #d1b26e; line-height: 1; transform: rotate(15deg); }
.lottery-prize > .eyebrow { font-size: 8px; color: #dfcc9e; letter-spacing: .15em; }
.jackpot-amount { color: #f4dc9d; font-family: Georgia, serif; display: flex; align-items: baseline; gap: 13px; font-size: clamp(43px, 4.5vw, 65px); line-height: 1.15; letter-spacing: -.04em; margin-top: 7px; overflow-wrap: anywhere; }
#lottery-pot { min-width: 0; }
.jackpot-currency { font-family: var(--mono); font-size: 17px; letter-spacing: 0; flex-shrink: 0; }
.jackpot-caption { color: #c9c4a9; font-size: 9px; line-height: 1.65; margin-top: 4px; }
.round-stats { display: grid; grid-template-columns: .75fr .95fr 1.3fr; margin-top: 20px; border-top: 1px solid #87936b50; }
.round-stats > div { padding: 14px 9px 16px 0; min-width: 0; }
.round-stats > div + div { padding-left: 15px; border-left: 1px solid #87936b50; }
.round-stats dt { font-size: 8px; color: #cec6a9; margin-bottom: 6px; }
.round-stats dd { font-family: var(--mono); font-size: 14px; color: #fff0cc; overflow-wrap: anywhere; }
.lottery-entry { padding: 19px 27px 18px; }
.lottery-status-message { padding-left: 10px; border-left: 2px solid #bd9855; color: #d0c4a7; font-size: 10px; line-height: 1.7; margin-bottom: 22px; }
.ticket-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ticket-heading > label { color: #f2e4c5; font-size: 12px; }
.ticket-heading > span { color: #c4b89b; font-size: 9px; }
.ticket-order { display: flex; justify-content: space-between; align-items: center; gap: 19px; margin-top: 13px; }
.ticket-stepper { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.ticket-stepper button { width: 42px; height: 42px; border: 3px dashed #c0a46c; outline: 1px solid #92774d; outline-offset: 2px; border-radius: 50%; background: #65282d; color: #f4dc9e; font-size: 21px; box-shadow: 0 2px 8px #0003; }
.ticket-stepper button:hover:not(:disabled) { background: #843640; }
.ticket-stepper button:disabled { opacity: .48; }
.ticket-stepper input { width: 57px; height: 44px; border: 1px solid #66734b; border-radius: 4px; background: #163a2c; color: #f1d995; font-family: var(--mono); font-size: 18px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.ticket-stepper input::-webkit-inner-spin-button, .ticket-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.ticket-stepper input:disabled { opacity: .55; }
.ticket-total { text-align: right; min-width: 0; }
.ticket-total > span { display: block; color: #c0b79b; font-size: 8px; margin-bottom: 5px; }
.ticket-total strong { display: block; font-weight: 400; font-size: 23px; letter-spacing: -.04em; color: #f3d998; overflow-wrap: anywhere; }
.ticket-total small { font-family: var(--mono); font-size: 10px; letter-spacing: 0; }
.entry-support { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: #b6ae96; font-size: 8px; line-height: 1.6; margin-top: 13px; }
.lottery-primary { width: 100%; display: flex; justify-content: center; text-align: center; margin-top: 18px; min-height: 48px; font-size: 12px; font-weight: 600; }
.lottery-primary:disabled { opacity: .54; }
.entry-cost-note { color: #bbb096; font-size: 8px; line-height: 1.65; text-align: center; margin-top: 9px; }
.your-position { display: flex; gap: 15px; justify-content: space-between; border-top: 1px solid #55604466; margin-top: 17px; padding-top: 14px; color: #c4baa0; font-size: 9px; }
.your-position > span { display: flex; gap: 8px; align-items: baseline; }
.your-position strong { font-family: var(--mono); font-weight: 400; color: #f1d38f; font-size: 12px; }
.lottery-feedback { color: #e8d1a2; background: #264532; padding: 11px; border-left: 2px solid var(--accent); margin-top: 14px; font-size: 11px; line-height: 1.65; }
.lottery-transaction { display: inline-block; margin-top: 13px; font-size: 10px; color: var(--accent); }
.lottery-round-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.lottery-round-actions:has(> [hidden]:only-child) { display: none; }
.lottery-round-actions:has(> :not([hidden])) { padding-top: 3px; }
.lottery-round-actions:not(:has(> :not([hidden]))) { margin: 0; }
.lottery-round-actions > button { flex: 1 1 145px; justify-content: center; padding: 12px; font-size: 10px; }
.lottery-tools { border-top: 1px solid #69704855; padding: 15px 27px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #112f23; }
.round-picker { display: flex; gap: 11px; align-items: center; min-width: 0; }
.round-picker label { font-size: 8px; color: #c3b999; white-space: nowrap; }
.round-picker select { max-width: 180px; min-width: 0; background: #0c251c; color: #e3d3ab; border: 1px solid #6b6b45; border-radius: 3px; padding: 8px 25px 8px 9px; font-size: 9px; }
.lottery-tools .refresh-button { color: #e4c685; font-size: 9px; flex-shrink: 0; }
.lottery-rules-panel { margin-top: 14px; border: 1px solid #7c67455e; border-radius: 5px; padding: 0 16px; }
.backend-status-row { display: flex; align-items: center; gap: 8px; margin-top: 17px; font-size: 9px; line-height: 1.6; color: #d7c393; }
.draw-trust-note { margin: 9px 0 0; font-size: 9px; line-height: 1.75; color: #c3b99f; }
.lottery-rules-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 40px; color: #dfc78f; font-size: 10px; }
.lottery-rules-panel summary::-webkit-details-marker { display: none; }
.lottery-rules-panel summary > span { font-size: 17px; }
.lottery-rules-panel[open] summary > span { transform: rotate(45deg); }
.lottery-rules-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-block: 9px 16px; border-bottom: 1px solid #7c674544; }
.lottery-rules-stats dt { font-size: 8px; color: #b6ad92; margin-bottom: 7px; }
.lottery-rules-stats dd { font-family: var(--mono); font-size: 10px; color: #e6ce98; overflow-wrap: anywhere; }
#lottery-rules { margin: 14px 0 17px; font-size: 10px; line-height: 1.8; color: #c3b99f; }
#lottery-contract { display: inline-block; margin-bottom: 17px; color: var(--accent); font-size: 10px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .casino-floor { gap: 29px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .casino-floor .hero-topline { flex-wrap: wrap; gap: 12px; padding-bottom: 24px; }
  .casino-floor .hero-intro h1 { font-size: 45px; }
  .casino-floor .hero-intro p { font-size: 11px; }
  .casino-floor .seven-panel, .casino-floor .seven-panel:nth-child(2) { height: 175px; }
  .casino-floor .seven, .casino-floor .seven-panel:nth-child(2) .seven { font-size: 162px; }
  .lottery-prize { padding: 21px 21px 0; }
  .lottery-prize-heading h2 { font-size: 31px; }
  .lottery-entry { padding-inline: 21px; }
  .lottery-tools { padding-inline: 21px; }
  .ticket-stepper { gap: 5px; }
  .ticket-stepper button { width: 37px; height: 37px; }
  .ticket-stepper input { width: 47px; height: 41px; }
  .round-picker { gap: 7px; }
  .round-picker select { max-width: 143px; }
}
@media (max-width: 760px) {
  .casino-floor { display: block; padding: 19px 0 35px; }
  .casino-floor .hero { display: grid; grid-template-columns: 1fr; }
  .casino-floor .hero-topline, .casino-floor .hero-flourish, .casino-floor .slot-cabinet, .casino-floor .hero-actions, .casino-floor .hero-bottomline { display: none; }
  .casino-floor .hero-intro { margin: 3px 0 24px; }
  .casino-floor .hero-intro h1 { font-size: 37px; margin: 0 0 11px; }
  .casino-floor .hero-intro h1 em { display: inline; font-size: 1em; margin: 0; }
  .casino-floor .hero-intro p { font-size: 11px; line-height: 1.6; }
  .casino-floor .hero-intro p br { display: none; }
  .casino-floor .lottery-section { max-width: 590px; margin-inline: auto; padding: 0; }
  .lottery-topline { margin-bottom: 12px; }
  .lottery-prize { padding: 23px 25px 0; }
  .lottery-prize-heading { margin-bottom: 20px; }
  .lottery-prize-heading h2 { font-size: 36px; }
  .jackpot-amount { font-size: 58px; }
  .lottery-entry { padding: 18px 25px; }
  .lottery-tools { padding-inline: 25px; }
  .ticket-stepper { gap: 9px; }
  .ticket-stepper button { width: 43px; height: 43px; }
  .ticket-stepper input { width: 57px; height: 44px; }
  .round-picker { gap: 12px; }
  .round-picker select { max-width: 200px; }
}
@media (max-width: 420px) {
  .casino-floor .hero-intro h1 { font-size: 31px; }
  .casino-floor .hero-intro p { font-size: 9px; }
  .lottery-topline .section-number { font-size: 7px; }
  .lottery-state-badge { font-size: 7px; padding: 6px 8px; }
  .lottery-prize { padding: 21px 19px 0; }
  .lottery-prize-heading { margin-bottom: 18px; }
  .lottery-prize-heading h2 { font-size: 32px; }
  .jackpot-amount { font-size: 51px; }
  .jackpot-caption { font-size: 8px; }
  .round-stats > div + div { padding-left: 12px; }
  .round-stats dd { font-size: 12px; }
  .round-stats dt { font-size: 7px; }
  .lottery-entry { padding: 17px 19px; }
  .ticket-stepper { gap: 7px; }
  .ticket-stepper button { width: 37px; height: 37px; }
  .ticket-stepper input { width: 44px; height: 40px; }
  .ticket-total strong { font-size: 21px; }
  .ticket-total small { font-size: 9px; }
  .entry-support { font-size: 7px; }
  .lottery-tools { padding: 13px 19px; }
  .round-picker { gap: 7px; }
  .round-picker select { max-width: 145px; font-size: 8px; }
  .round-picker label { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { .lottery-rules-panel summary > span { transition: none; } }
.rehearsal-banner { padding:14px 18px; background:#f0c56e; color:#281b10; text-align:center; font:700 11px Arial,sans-serif; letter-spacing:.08em; }
.local-rehearsal #token,.local-rehearsal .hero-bottomline,.local-rehearsal .hero-actions { display:none; }
.rehearsal-controls { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; padding:14px; background:#382b18; border-bottom:1px solid #ac8e55; }
.rehearsal-controls button { background:#f0c56e; color:#281b10; border:0; padding:10px 13px; font:700 11px Arial,sans-serif; cursor:pointer; }
.rehearsal-controls p { flex-basis:100%; text-align:center; font-size:12px; color:#ebd4a0; }
.lottery-recovery { display:grid; gap:12px; padding:17px; background:#3d2f1e; border:1px solid #ba9153; font-size:12px; }
.lottery-recovery input { min-width:0; width:100%; background:#10281f; color:#efe1c0; border:1px solid #8e7348; padding:11px; }
.lottery-recovery label { color:#d6c7a4; font-size:11px; }
.round-search { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:15px; font-size:10px; color:var(--muted); }
.round-search input { width:85px; border:1px solid var(--line); background:var(--surface); color:var(--ink); padding:8px; }
.round-search > button:first-child { margin-right:auto; }
