/* Prize wheel demo. Classes use the pw- prefix; shared table pieces come from /demos/_tables/table.css (tb-). */

.pw-screen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) 300px; gap: 16px; align-items: start; padding: 14px 16px; }
.pw-rig { position: relative; display: flex; justify-content: center; }
.pw-wheelbox { position: relative; width: 100%; max-width: 560px; }
.pw-svg { display: block; width: 100%; height: auto; }
.pw-wedge { stroke: rgba(40, 24, 10, .55); stroke-width: 1; transition: filter .3s; }
.pw-wedge.hit { filter: brightness(1.35) drop-shadow(0 0 6px rgba(255, 220, 140, .9)); }
.pw-wl { font: 900 19px Inter, sans-serif; letter-spacing: .02em; }
.pw-wl.m0 { font-size: 13px; font-weight: 700; fill: #6b5a3a; }
.pw-wl.m1 { fill: #f4f1ea; font-size: 16px; }
.pw-wl.m2 { fill: #f4f1ea; }
.pw-wl.m5 { fill: #fff3e0; }
.pw-wl.mj { fill: #f3d27a; font-size: 22px; }
.pw-wedge.mj { stroke: #c99a4b; stroke-width: 1.5; }
.pw-peg { fill: url(#pwBrass); stroke: #4a3010; stroke-width: 1; }
.pw-bulb { fill: #fff3c8; filter: drop-shadow(0 0 4px rgba(255, 220, 140, .9)); animation: pwbulb 1.6s steps(1) infinite; }
.pw-bulb.b { animation-delay: .8s; }
@keyframes pwbulb { 0% { fill: #fff3c8; } 50% { fill: #7a5a2a; filter: none; } }
.pw-hubt { font: 900 15px Inter, sans-serif; letter-spacing: .28em; fill: #f3d27a; }
.pw-hubs { font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: .24em; fill: rgba(243, 210, 122, .6); }
.pw-readout { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); min-width: 170px; text-align: center; padding: 7px 16px 8px; border-radius: 12px; background: rgba(8, 10, 12, .9); border: 1px solid var(--s-line); }
.pw-readout small { display: block; font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); }
.pw-readout b { display: block; font: 900 20px/1.15 Inter, sans-serif; letter-spacing: -.01em; }
.pw-readout span { display: block; font: 600 12px 'IBM Plex Mono', monospace; color: var(--tb-win); }
.pw-readout.win { border-color: rgba(53, 227, 154, .6); } .pw-readout.win b { color: var(--tb-win); }
.pw-readout.lose b { color: var(--s-dim); }

.pw-play { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pw-table { --rail: 22px; }
.pw-felt { padding: 4px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 420px; }
.pw-felthead { width: 100%; height: 76px; position: relative; }
.pw-felthead .tb-arc { inset: 0; width: 100%; height: 100%; }
.pw-spotrow { display: flex; justify-content: center; padding: 6px 0 2px; }
.pw-spot.tb-spot { --spot: 128px; border-width: 3px; }
.pw-spot .tb-spot-l { font-size: 13px; }
.pw-spot .tb-stack { --chip: 50px; }
.pw-spotnote { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; color: var(--tb-chalk); text-align: center; margin-top: 18px; }
.pw-board { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.pw-brow { display: grid; grid-template-columns: 18px 1fr auto 62px; align-items: center; gap: 10px; padding: 6px 10px; border: 1.5px solid rgba(232, 214, 160, .38); border-radius: 9px; color: var(--tb-ink); transition: background .3s, border-color .3s; }
.pw-brow i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .4); }
.pw-brow.mj i { background: #14110a; box-shadow: inset 0 0 0 2px #c99a4b; } .pw-brow.m5 i { background: #b8232f; } .pw-brow.m2 i { background: #1f4f9a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); } .pw-brow.m1 i { background: #2f7d4f; } .pw-brow.m0 i { background: #efe6cf; }
.pw-brow b { font: 900 14px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.pw-brow span { font: 600 11px 'IBM Plex Mono', monospace; color: var(--tb-chalk); }
.pw-brow em { font: 600 11px 'IBM Plex Mono', monospace; font-style: normal; text-align: right; color: var(--tb-chalk); }
.pw-brow.hit { background: rgba(255, 220, 140, .14); border-color: rgba(255, 220, 140, .9); }
.pw-trayhost { margin-top: auto; padding-top: 10px; }
.pw-trayhost .tb-tray-col { width: 16px; height: 30px; }
.pw-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--s-panel); border: 1px solid var(--s-line); }
.pw-controls .tb-rchip { --chip: 42px; }
.pw-controls .tb-rack { gap: 8px; }
.pw-btns { display: flex; gap: 6px; }
.pw-spin { margin-left: auto; min-width: 128px; }
.pw-spin.wait { filter: saturate(.35) brightness(.8); }

.pw-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pw-pay h4 span { color: var(--s-dim); }
.pw-pr span small { font: 500 11px 'IBM Plex Mono', monospace; color: var(--s-faint); margin-left: 6px; }
.pw-rtp { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--s-line); }
.pw-rtp small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--s-dim); }
.pw-rtp b { font: 800 20px/1.2 Inter, sans-serif; letter-spacing: -.02em; color: var(--you); }
.pw-rtp b.s { font-size: 15px; color: var(--s-text); }
.pw-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pw-ph-r { font-size: 11px; color: var(--s-dim); }
.pw-hist { display: flex; flex-wrap: wrap; gap: 5px; min-height: 30px; }
.pw-h { min-width: 34px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 7px; font: 800 12px Inter, sans-serif; background: #e9e0c8; color: #5b4a2a; animation: dkfeed .35s cubic-bezier(.2, .9, .3, 1); }
.pw-h.m2 { background: #1f4f9a; color: #fff; } .pw-h.m5 { background: #b8232f; color: #fff; } .pw-h.m1 { background: #2f7d4f; color: #fff; }
.pw-h.mj { background: #14110a; color: #f3d27a; box-shadow: inset 0 0 0 1.5px #c99a4b; }
.pw-empty { font-size: 12px; color: var(--s-faint); }
.pw-stage .tb-drawer .s-seg { flex-wrap: wrap; }

@media (max-width: 1240px) {
  .pw-screen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pw-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pw-screen { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .pw-side { grid-template-columns: minmax(0, 1fr); }
  .pw-felt { min-height: 0; }
  .pw-spot.tb-spot { --spot: 108px; }
  .pw-spin { flex: 1; }
}
