.room-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.room-button.is-live-room::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9dd396;
  box-shadow: 0 0 8px #9dd39499;
  content: '';
}

#roomDialog {
  inset-block: max(10px, env(safe-area-inset-top, 0px)) max(12px, var(--dock-bottom, env(safe-area-inset-bottom, 0px)));
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--dock-bottom, 8px) - 24px);
  padding: clamp(12px, 4vw, 22px);
  overflow: auto;
  overscroll-behavior: contain;
}
.room-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-dialog .room-dialog-head h2 { margin: 0; color: var(--gold); font-family: var(--display); }
.room-dialog .room-instructions { margin: 6px 0 12px; color: #c9ccb9; font-size: .88rem; }
.room-dialog .room-instructions:empty, .room-message:empty, .watch-player:empty, .watch-subtext:empty { display: none; }
.room-entry { display: grid; gap: 14px; margin-top: 13px; }
.room-entry > .modal-action { margin-top: 0; }
.room-join-form { display: grid; gap: 4px; }
.room-join-form label { color: var(--muted); font-size: .89rem; }
.room-share, .watch-join { display: flex; align-items: stretch; gap: 7px; }
.room-share input, .watch-join input, .room-copy-link + input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #b59a6f7a;
  border-radius: 6px;
  padding: 5px 9px;
  background: #101c16;
  color: var(--ink);
  font-size: .86rem;
}
.room-share input { direction: ltr; }
.room-key-share input { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.room-share .modal-action, .watch-join .modal-action { flex: 0 0 auto; margin: 0; padding-inline: 10px; white-space: nowrap; }
.room-copy-link { margin-top: 8px; }
.room-copy-link + input:not(.room-visually-hidden) { width: 100%; margin-top: 7px; }
.room-message { margin-top: 9px; color: var(--gold); font-size: .87rem; }
.room-queue-head { margin-top: 13px; border-top: 1px solid #c8a8754b; padding-top: 8px; }
.room-queue { display: grid; max-height: min(30dvh, 225px); gap: 4px; overflow: auto; margin: 0; padding: 0 3px; list-style: none; }
.room-queue li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 3px 0 3px 5px; }
.room-queue li + li { border-top: 1px solid #a58d652c; }
.room-queue li span { min-width: 0; overflow-wrap: anywhere; }
.room-queue li button { flex: 0 0 auto; }
.room-queue li button:disabled { opacity: .45; }
.room-close { margin-top: 12px; color: #eac2a9; }
#roomFinishCompetition { margin-top: 10px; }
.summary-footer:has(.room-summary-button:not([hidden])) { flex-wrap: wrap; gap: 6px; }

.room-spectator :is(#lobby, #machinePage, .footer, #roomButton, #restartButton, #soundButton, #rulesButton) { display: none !important; }
.room-spectator #watchPrizePop { pointer-events: none; }
.room-watch { width: min(960px, calc(100% - 48px)); margin: max(30px, env(safe-area-inset-top)) auto calc(40px + var(--dock-bottom, 8px)); }
.watch-header, .watch-cabinet-head, .watch-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.watch-header { align-items: center; margin-bottom: 14px; }
.watch-header h1 { color: var(--gold); font: 720 clamp(1.85rem, 6vw, 3.2rem)/1.08 var(--display); }
.watch-header-controls { display: grid; grid-template-columns: auto auto; justify-items: end; align-items: center; gap: 4px 6px; }
.watch-header-controls .watch-connection { grid-column: 1 / -1; }
.watch-home { text-decoration: none; }
.watch-player { margin-top: 4px; color: #d5dbc6; font-size: .88rem; overflow-wrap: anywhere; }
.watch-connection {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #d8c3a0;
  font-size: .8rem;
  white-space: nowrap;
}
.watch-connection::before { width: 7px; height: 7px; border-radius: 50%; background: #b89c76; content: ''; }
.watch-connection.is-live { color: #d6ebcc; }
.watch-connection.is-live::before { background: #9dd596; box-shadow: 0 0 8px #9dd394aa; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); align-items: start; gap: 12px; }
.watch-cabinet, .watch-card {
  border: 1px solid #bfa1707d;
  border-radius: 11px;
  background: radial-gradient(ellipse at 18% 0%, #7b80572e, transparent 75%), linear-gradient(130deg, #2b3a2d, #1a281f 67%);
  box-shadow: 0 10px 18px #0b120e65, inset 0 0 0 1px #fff5c210;
}
.watch-cabinet { min-width: 0; padding: clamp(8px, 2.6vw, 15px); }
.watch-cabinet-head { min-height: 30px; margin: 0 3px 5px; }
.watch-cabinet-head h2 { color: var(--gold); font: 700 clamp(1.12rem, 4vw, 1.6rem)/1.2 var(--display); }
.watch-cabinet-head > span { color: #d9d0b9; font-size: .8rem; text-align: right; }
.watch-score {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 2px 8px;
  padding: 7px 10px;
  border: 1px solid #d2ae666b;
  border-radius: 6px;
  background: linear-gradient(120deg, #45523c73, #253825 60%);
  color: #dfd5b8;
  font-size: .9rem;
}
.watch-score > span:first-child { margin-right: auto; }
.watch-score strong { color: #ffe4a4; font-size: 1.13rem; font-variant-numeric: tabular-nums; }
.watch-score-gain {
  border-radius: 4px;
  padding: 2px 5px;
  background: #f2d19128;
  color: #ffedba;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.watch-reel-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #b59359aa;
  border-radius: 9px;
  padding: 5px;
  background: #111a13;
  box-shadow: inset 0 1px 10px #070c08;
}
.watch-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.watch-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.25;
  overflow: hidden;
  border: 1px solid #c9ae7542;
  border-radius: 6px;
  background: radial-gradient(ellipse at 49% 40%, #76866c46, transparent 75%), linear-gradient(#1d291f, #26392c 46%, #17231b);
  color: #a49877;
  font: clamp(1.5rem, 8vw, 2.55rem)/1 var(--display);
}
.watch-cell img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(calc(100% - 12px), 115px);
  height: calc(100% - 12px);
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 4px #101710ac);
}
.watch-cell[data-symbol="wild"] {
  border-color: #baa05f;
  background: radial-gradient(ellipse at 50% 45%, #67a2707a, #3457373b 63%, transparent 80%), #18271e;
}
.watch-cell.is-match { border-color: #e1bf7b; box-shadow: inset 0 0 18px #dfb9634f; }
.watch-cell.is-gold { border-style: dashed; border-color: #fff2be; background-color: #574528; }
.watch-cell.is-current-line { border-color: #fff1b6; box-shadow: inset 0 0 16px #ffe5a47a; }
.watch-reel-frame.is-rolling .watch-cell img { animation: watch-roll .42s linear infinite alternate; }
.watch-reel-frame.is-rolling .watch-cell:nth-child(3n+2) img { animation-delay: .09s; }
.watch-reel-frame.is-rolling .watch-cell:nth-child(3n+3) img { animation-delay: .18s; }
@keyframes watch-roll { 0% { translate: 0 -3px; opacity: .62; } 100% { translate: 0 3px; opacity: 1; } }
.watch-paylines { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); pointer-events: none; }
.watch-paylines line { stroke: #ffe7a4; stroke-width: 2px; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px #f3b749); }
.watch-paylines .is-current {
  stroke: #fff6d2;
  stroke-width: 3.4px;
  filter: drop-shadow(0 0 5px #ffe393);
  stroke-dasharray: 1;
  animation: watch-payline-draw .28s ease-out both;
}
@keyframes watch-payline-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.watch-rating-dock {
  display: grid;
  justify-items: center;
  padding: 8px 4px;
  overflow: clip;
}
.watch-rating-dock:has(.watch-rating[hidden]) { display: none; }
.watch-rating {
  --rating-size: clamp(.94rem, 4.4vw, 1.45rem);
  --rating-ink: #fff1b5;
  --rating-light: #fbc468;
  --rating-shadow: #fbc46866;
  --rating-bg: #453721;
  --rating-enter: .87;
  --rating-impact: 1.08;
  --rating-reach: 1.24;
  --rating-time: .35s;
  min-width: 86px;
  padding: .29em .84em .32em;
  border: 1px solid var(--rating-light);
  border-radius: 99px;
  background: radial-gradient(ellipse at 50% 15%, var(--rating-bg), #141814 78%);
  box-shadow: inset 0 0 .65em var(--rating-shadow), 0 0 .8em var(--rating-shadow);
  color: var(--rating-ink);
  font: 800 var(--rating-size)/1.16 Georgia, serif;
  letter-spacing: .085em;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0 .55em var(--rating-shadow);
  white-space: nowrap;
}
.watch-rating[data-grade="great"] {
  --rating-size: clamp(1.08rem, 5.1vw, 1.68rem);
  --rating-ink: #f0ffd2;
  --rating-light: #b5ed9c;
  --rating-shadow: #a8e09177;
  --rating-bg: #385a36;
  --rating-enter: .78;
  --rating-impact: 1.13;
  --rating-reach: 1.4;
  --rating-time: .44s;
}
.watch-rating[data-grade="amazing"] {
  --rating-size: clamp(1.22rem, 5.5vw, 2.02rem);
  --rating-ink: #ecf9ff;
  --rating-light: #a6daff;
  --rating-shadow: #8dbaff88;
  --rating-bg: #344770;
  --rating-enter: .69;
  --rating-impact: 1.18;
  --rating-reach: 1.58;
  --rating-time: .52s;
  border-radius: 10px;
}
.watch-rating[data-grade="incredible"] {
  --rating-size: clamp(1.37rem, 6.2vw, 2.42rem);
  --rating-ink: #fff1fc;
  --rating-light: #f4b8ee;
  --rating-shadow: #e493e3a0;
  --rating-bg: #63345c;
  --rating-enter: .61;
  --rating-impact: 1.22;
  --rating-reach: 1.77;
  --rating-time: .62s;
  border-style: double;
  border-width: 3px;
  border-radius: 12px;
}
.watch-rating[data-grade="jackpot"] {
  --rating-size: clamp(1.6rem, 7vw, 3rem);
  --rating-ink: #fffbdf;
  --rating-light: #ffe291;
  --rating-shadow: #ffc74bba;
  --rating-bg: #8a4d25;
  --rating-enter: .52;
  --rating-impact: 1.26;
  --rating-reach: 2;
  --rating-time: .74s;
  border-style: double;
  border-width: 3px;
  border-radius: 12px;
  box-shadow: inset 0 0 .7em #ffe19999, 0 0 .9em var(--rating-shadow), 0 0 1.4em #ca97ff81;
}
.watch-rating-step {
  position: relative;
  display: inline-block;
  animation: watch-rating-appear var(--rating-time) cubic-bezier(.20,.72,.34,1) both;
}
.watch-rating-step::before,
.watch-rating-step::after {
  position: absolute;
  inset: -.33em -.72em;
  border: 1px solid var(--rating-light);
  border-radius: 99px;
  box-shadow: 0 0 .5em var(--rating-shadow);
  opacity: 0;
  pointer-events: none;
  animation: watch-rating-halo var(--rating-time) ease-out both;
}
.watch-rating-step::before { content: ''; }
:is([data-grade="amazing"], [data-grade="incredible"], [data-grade="jackpot"]) .watch-rating-step::after {
  inset: -.54em -.96em;
  border-style: dotted;
  border-radius: 12px;
  animation-delay: .08s;
  content: '';
}
[data-grade="jackpot"] .watch-rating-step::after { border-color: #d6a5ff; box-shadow: 0 0 .62em #e4b8ffcc; }
@keyframes watch-rating-appear {
  from { transform: translateY(.25em) scale(var(--rating-enter)); opacity: .35; }
  42% { transform: translateY(-.07em) scale(var(--rating-impact)); opacity: 1; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes watch-rating-halo {
  from { transform: scale(.9); opacity: .85; }
  to { transform: scale(var(--rating-reach)); opacity: 0; }
}
.watch-reward-dock {
  display: grid;
  justify-items: center;
  padding: 5px 2px 7px;
  overflow: clip;
}
.watch-pending-awards {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--room-emphasis, var(--gold));
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
}
.watch-pending-awards img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
[data-skin="pixel"] .watch-pending-awards img { image-rendering: pixelated; }
.watch-reward-card {
  --reward-tone: #add185;
  position: relative;
  display: grid;
  grid-template-columns: clamp(92px, 28vw, 124px) minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: min(100%, 385px);
  min-width: 0;
  padding: 7px 10px 8px;
  border: 1px solid color-mix(in srgb, var(--reward-tone) 58%, #273525);
  border-radius: 10px;
  background: radial-gradient(ellipse at var(--watch-reward-glow, 23% 37%), color-mix(in srgb, var(--reward-tone) 25%, transparent), transparent 72%),
    linear-gradient(135deg, #25392e, #18251e 70%);
  box-shadow: inset 0 0 0 2px #182923a8, 0 3px 11px #080f0b88;
}
:is(.watch-reward-card, .watch-shelf-piece, .watch-shelf-preview)[data-rarity="advanced"] { --reward-tone: #8fd4c8; }
:is(.watch-reward-card, .watch-shelf-piece, .watch-shelf-preview)[data-rarity="gold"] { --reward-tone: #f5cb77; }
:is(.watch-reward-card, .watch-shelf-piece, .watch-shelf-preview)[data-rarity="legendary"] { --reward-tone: #e9a186; }
:is(.watch-reward-card, .watch-shelf-piece, .watch-shelf-preview)[data-rarity="aurora"] { --reward-tone: #c095ff; }
:is(.watch-reward-card, .watch-shelf-piece, .watch-shelf-preview)[data-rarity="special"] { --reward-tone: #f4d298; }
.watch-reward-card.is-new { animation: watch-reward-reveal .36s cubic-bezier(.18,.81,.4,1) both; }
@keyframes watch-reward-reveal {
  from { opacity: 0; transform: translateY(7px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.watch-reward-figure {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
}
.watch-reward-figure::before {
  position: absolute;
  inset: auto 8% 0;
  height: 16%;
  border: 1px solid color-mix(in srgb, var(--reward-tone) 64%, #163029);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--reward-tone) 60%, #3c4532), #26372a 76%);
  box-shadow: 0 4px 0 #17271d, 0 5px 9px #080f0b8c;
  content: "";
}
.watch-reward-figure img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px #102018cf);
}
.watch-reward-copy { display: grid; gap: 5px; min-width: 0; }
.watch-reward-rarity { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; color: var(--reward-tone); font-size: .85rem; font-weight: 740; }
.watch-reward-rarity .prize-ceremony-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.watch-reward-rarity .prize-ceremony-tag img { width: 18px; height: 18px; object-fit: contain; }
.watch-reward-card > .prize-ceremony { position: absolute; inset: 0; pointer-events: none; }
.watch-reward-card:has(> .prize-ceremony) :is(.watch-reward-figure, .watch-reward-copy) { position: relative; z-index: 2; }
.watch-reward-mark { letter-spacing: .07em; }
.watch-reward-name { color: #fff0cd; font-size: clamp(1rem, 4.3vw, 1.3rem); line-height: 1.17; overflow-wrap: anywhere; }
.watch-reward-points { color: #ffe2a4; font-size: 1.15rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.watch-now { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; min-height: 36px; margin-top: 6px; padding-inline: 4px; color: #e5dec7; font-size: .9rem; }
.watch-now strong { margin-left: auto; color: var(--gold); text-align: right; }
.watch-now:has(#watchPhase.room-visually-hidden):has(#watchCoreCue[hidden]):has(#watchLineCount:empty) { min-height: 0; margin-top: 0; }
.room-watch [data-watch-effect] { --watch-effect-color: #ffe2a1; --watch-effect-glow: #ffc26055; }
.room-watch [data-watch-effect="mark"] { --watch-effect-color: #e9cbff; --watch-effect-glow: #c18eff55; }
.room-watch [data-watch-effect="rebound"] { --watch-effect-color: #c6f5e1; --watch-effect-glow: #79d6c755; }
.room-watch [data-watch-effect="spark"] { --watch-effect-color: #ffda94; --watch-effect-glow: #ff9e4455; }
.room-watch [data-watch-effect="torch"] { --watch-effect-color: #ffd1a2; --watch-effect-glow: #ff7c3c66; }
.room-watch [data-watch-effect="ribbon"] { --watch-effect-color: #e1ecff; --watch-effect-glow: #a2bcff55; }
.room-watch :is([data-watch-effect="wild-stamp"], [data-watch-effect="wild-rescue"], [data-watch-effect="wild-chain"]) {
  --watch-effect-color: #fbd2ff; --watch-effect-glow: #d18df977;
}
.room-watch :is([data-watch-effect="wild-growth"], [data-watch-effect="wild-rebound"]) {
  --watch-effect-color: #d5fff6; --watch-effect-glow: #83d2ca75;
}
.watch-reel-frame[data-watch-effect] {
  outline: 1px solid var(--watch-effect-color);
  box-shadow: inset 0 0 12px var(--watch-effect-glow), 0 0 18px var(--watch-effect-glow);
}
.watch-core-cue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 4px;
  border: 1px solid var(--watch-effect-color);
  border-radius: 99px;
  background: #19251d;
  color: var(--watch-effect-color);
  font-size: .79rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}
.watch-core-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--watch-effect-glow);
  box-shadow: 0 0 8px var(--watch-effect-glow);
  font-size: .92rem;
  animation: watch-core-emblem .44s ease-out both;
}
@keyframes watch-core-emblem {
  from { transform: scale(.72); opacity: .65; }
  60% { transform: scale(1.13); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}
.watch-mods { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; border-top: 1px solid #c4a5724a; }
.room-watch [data-mod-rarity="common"] { --mod-rarity-ink: #d4d8b9; --mod-rarity-fill: #3e4b37; }
.room-watch [data-mod-rarity="rare"] { --mod-rarity-ink: #a7e3db; --mod-rarity-fill: #285354; }
.room-watch [data-mod-rarity="legendary"] { --mod-rarity-ink: #ffdc91; --mod-rarity-fill: #63442c; }
.watch-mod {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 5px;
  min-width: 0;
  padding: 2px 4px 2px 6px;
  border: 1px solid color-mix(in srgb, var(--mod-rarity-ink) 34%, #233329);
  border-radius: 99px;
  color: #eee0ba;
  font-size: .75rem;
}
.watch-mod-icon { display: grid; flex: none; width: 24px; height: 24px; place-items: center; }
.watch-core-art { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.watch-mod-rarity {
  padding: 1px 4px;
  border-radius: 99px;
  background: var(--mod-rarity-fill);
  color: var(--mod-rarity-ink);
  font-size: max(.64rem, 10px);
  font-weight: 750;
  line-height: 1.32;
  white-space: nowrap;
}
.watch-mod.is-spent { opacity: .65; }
.watch-mod.is-triggered {
  border-color: var(--mod-rarity-ink);
  background: color-mix(in srgb, var(--mod-rarity-fill) 65%, #19251d);
  color: #fff0c0;
  opacity: 1;
}
.watch-aside { display: grid; gap: 9px; min-width: 0; }
.watch-card { min-width: 0; padding: 10px; }
.watch-card-head { margin-bottom: 6px; }
.watch-card-head :is(h2, h3) { color: var(--gold); font: 700 1.05rem/1.2 var(--display); }
.watch-card-head > span, .watch-subtext { color: #c9ccb9; font-size: .82rem; }
.watch-collection { border-color: #c8a774b3; }
.watch-shelf-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: min(52dvh, 410px);
  margin: 0;
  padding: 3px;
  overflow: auto;
  list-style: none;
  scrollbar-color: #b39764 #17241c;
}
.watch-shelf-piece {
  --reward-tone: #add185;
  display: flex;
  min-width: 0;
}
.watch-shelf-trigger {
  display: grid;
  grid-template-rows: auto minmax(2.3em, 1fr) auto;
  justify-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--reward-tone) 46%, #333729);
  border-radius: 8px;
  padding: 4px 4px 6px;
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--reward-tone) 15%, transparent), transparent 68%), #18271f;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.watch-shelf-trigger[aria-expanded="true"], .watch-shelf-trigger:focus-visible {
  border-color: var(--reward-tone);
  outline: 1px solid var(--reward-tone);
  outline-offset: -2px;
}
.watch-shelf-figure { position: relative; display: grid; place-items: center; width: min(100%, 94px); aspect-ratio: 1; }
.watch-shelf-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.watch-shelf-quantity {
  position: absolute;
  inset: auto 0 0 auto;
  max-width: 100%;
  border: 1px solid var(--reward-tone);
  border-radius: 6px;
  padding: 1px 4px;
  background: #17231a;
  color: #fff3c9;
  font-size: .75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.watch-shelf-name { align-self: center; color: #fff0ce; font-size: .875rem; line-height: 1.15; overflow-wrap: anywhere; }
.watch-shelf-rarity { color: var(--reward-tone); font-size: .75rem; line-height: 1.15; }
.watch-shelf-preview {
  --reward-tone: #add185;
  position: fixed;
  z-index: 35;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  pointer-events: none;
}
.watch-shelf-preview[data-pinned="true"] { background: #080e0a44; }
.watch-shelf-preview-panel {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 510px, max(220px, calc(100dvh - 70px)));
  padding: clamp(12px, 3.6vw, 22px);
  border: 1px solid color-mix(in srgb, var(--reward-tone) 69%, #384c39);
  border-radius: 17px;
  background: radial-gradient(ellipse at 50% 39%, color-mix(in srgb, var(--reward-tone) 25%, transparent), transparent 68%),
    linear-gradient(151deg, #284135, #111c16 76%);
  box-shadow: inset 0 0 0 3px #15251bce, inset 0 0 0 4px #c2a3733b, 0 18px 50px #050b07ad;
}
.watch-shelf-preview-figure {
  display: grid;
  place-items: center;
  width: min(100%, 440px, max(110px, calc(100dvh - 156px)));
  aspect-ratio: 1;
}
.watch-shelf-preview-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px #08150db3);
}
.watch-shelf-preview-copy { display: grid; gap: 4px; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.watch-shelf-preview-copy h3 { margin: 0; color: #fff0cd; font: 750 clamp(1.2rem, 4.5vw, 1.75rem)/1.2 var(--display); }
.watch-shelf-preview-rarity { color: var(--reward-tone); font-size: .85rem; font-weight: 750; letter-spacing: .08em; }
.watch-shelf-preview-close {
  position: absolute;
  inset: 7px 7px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dbbd855e;
  border-radius: 50%;
  background: #203229d9;
  color: #f6e6c2;
  font-size: 1.4rem;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.watch-shelf-preview-close:is(:hover, :focus-visible) { background: #485640; }
.watch-competition { border-color: #dbb6729c; }
.watch-champion {
  margin: 0 0 7px;
  padding: 5px 8px;
  border: 1px solid #d7b87778;
  border-radius: 6px;
  background: linear-gradient(120deg, #6a552d71, #283927 74%);
  color: #ffe6aa;
  font-size: .88rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.watch-standings { display: grid; gap: 3px; max-height: 248px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.watch-standing {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #ceb17e32;
  border-radius: 6px;
  color: #e0d8c4;
  font-size: .83rem;
}
.watch-standing.is-leading { border-color: #dac99272; background: #ccb7771e; }
.watch-standing-rank, .watch-standing-points { text-align: right; font-variant-numeric: tabular-nums; }
.watch-standing-rank { color: #e0c998; font-weight: 780; text-align: center; }
.watch-standing-name { min-width: 0; overflow-wrap: anywhere; }
.watch-standing-points { color: #ffe5ad; white-space: nowrap; }
.watch-join + .watch-subtext { margin-top: 5px; }
.watch-join button:disabled { opacity: .55; }
.room-note-config summary {
  min-height: 42px;
  padding: 8px 0;
  color: var(--room-emphasis, var(--gold));
  cursor: pointer;
  font-weight: 740;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.room-note-config summary:focus-visible { outline: 2px solid var(--room-panel-edge, var(--gold)); outline-offset: 2px; }
.room-note-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 2px 0 5px;
  list-style: none;
}
.room-note-config-grid li { display: grid; gap: 4px; align-content: start; justify-items: center; min-width: 0; }
.room-note-config-grid li > .cash-note { width: min(100%, 148px); }
.room-note-config-grid li > span:last-child {
  color: var(--room-small-print, var(--ink));
  font-size: .8rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.room-watch[data-skin="print"],
body[data-skin="print"] #roomDialog {
  --room-panel: #3b2b24;
  --room-panel-edge: #a67b50;
  --room-panel-shadow: #26241b;
  --room-hardware: #493c2e;
  --room-primary: #edc78e;
  --room-primary-ink: #432b21;
  --room-emphasis: #fde6b9;
  --room-small-print: #e2d1ae;
  --room-corner: 3px;
  --room-rule: 1px;
}
.room-watch[data-skin="pixel"],
body[data-skin="pixel"] #roomDialog {
  --display: var(--ui);
  --room-panel: #18233d;
  --room-panel-edge: #8191b8;
  --room-panel-shadow: #11192d;
  --room-hardware: #2b3c60;
  --room-primary: #e9b2aa;
  --room-primary-ink: #281c36;
  --room-emphasis: #ffe4aa;
  --room-small-print: #e1e3f1;
  --room-corner: 0;
  --room-rule: 2px;
}
.room-watch:is([data-skin="print"], [data-skin="pixel"]) .watch-rating {
  border: var(--room-rule) solid var(--room-panel-edge);
  border-radius: var(--room-corner);
  background: var(--room-panel);
  box-shadow: inset 0 0 0 2px var(--room-panel-shadow);
}
.room-watch:is([data-skin="print"], [data-skin="pixel"]) .watch-rating[data-grade="jackpot"] { border-color: var(--rating-light); }
.room-watch:is([data-skin="print"], [data-skin="pixel"]) .watch-rating-step::before,
.room-watch:is([data-skin="print"], [data-skin="pixel"]) .watch-rating-step::after { border-radius: var(--room-corner); }
.room-watch:is([data-skin="print"], [data-skin="pixel"]) :is(.watch-cabinet, .watch-card, .watch-score, .watch-reel-frame, .watch-shelf-trigger, .watch-reward-card, .watch-standing, .watch-shelf-preview-panel, .watch-mod),
body:is([data-skin="print"], [data-skin="pixel"]) #roomDialog,
body[data-skin="pixel"] #machinePage:not([hidden]) ~ #roomDialog {
  border: var(--room-rule) solid var(--room-panel-edge);
  border-radius: var(--room-corner);
  background: var(--room-panel);
  box-shadow: inset 0 0 0 2px var(--room-panel-shadow);
  color: var(--room-small-print);
}
.room-watch:is([data-skin="print"], [data-skin="pixel"]) :is(.watch-home, .watch-join input, .watch-join button, .watch-header-controls .music-button, .watch-shelf-preview-close),
body:is([data-skin="print"], [data-skin="pixel"]) #roomDialog :is(button, input) {
  border: var(--room-rule) solid var(--room-panel-edge);
  border-radius: var(--room-corner);
  background: var(--room-hardware);
  color: var(--room-small-print);
  box-shadow: inset 0 -2px var(--room-panel-shadow);
}
.room-watch:is([data-skin="print"], [data-skin="pixel"]) .watch-join button,
body:is([data-skin="print"], [data-skin="pixel"]) #roomDialog .modal-action {
  background: var(--room-primary);
  color: var(--room-primary-ink);
  box-shadow: inset 0 -3px color-mix(in srgb, var(--room-primary) 70%, var(--room-primary-ink));
}
.room-watch:is([data-skin="print"], [data-skin="pixel"]) .watch-join button:not(:disabled):active,
body:is([data-skin="print"], [data-skin="pixel"]) #roomDialog button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: inset 0 2px var(--room-panel-shadow);
}
.room-watch:is([data-skin="print"], [data-skin="pixel"]) :is(h1, h2, h3, .watch-score strong),
body:is([data-skin="print"], [data-skin="pixel"]) #roomDialog :is(h2, h3) { color: var(--room-emphasis); }
.room-watch:is([data-skin="print"], [data-skin="pixel"]) :is(.watch-card-head > span, .watch-subtext, .watch-player, .watch-connection),
body:is([data-skin="print"], [data-skin="pixel"]) #roomDialog :is(.room-instructions, .room-join-form label) { color: var(--room-small-print); }
.room-watch[data-skin="pixel"] :is(.watch-cell, .watch-score-gain) {
  border-color: #697ba6;
  border-radius: 0;
  background: #273659;
}
.room-watch[data-skin="pixel"] :is(.watch-cell.is-match, .watch-standing.is-leading, .watch-shelf-trigger[aria-expanded="true"]) { border-color: var(--room-emphasis); }
.room-watch[data-skin="pixel"] .watch-champion {
  border: var(--room-rule) solid var(--room-panel-edge);
  border-radius: var(--room-corner);
  background: var(--room-hardware);
  color: var(--room-emphasis);
}
body[data-skin="pixel"] :is(#dialog, #summaryDialog) .pk-standing,
body[data-skin="pixel"] #summaryDialog .room-summary-button {
  border-color: var(--ink-edge);
  border-radius: 0;
  background: var(--ink-panel);
  color: var(--ink-text);
}
.room-watch[data-skin="pixel"] .watch-cell img { image-rendering: pixelated; }
.room-watch[data-skin="pixel"] .watch-paylines line { stroke-linecap: square; filter: drop-shadow(1px 1px #934b9f); }
.room-watch[data-skin="print"] .watch-paylines line { stroke: #a32c20; filter: drop-shadow(0 1px #ffe1a4); opacity: .72; }
.room-watch[data-skin="print"] .watch-paylines line.is-current { stroke: #bd3322; stroke-width: 3px; opacity: 1; }
.room-watch :is(.watch-reward-figure, .watch-shelf-figure, .watch-shelf-preview-figure) .cash-note {
  position: relative;
  z-index: 1;
  width: 100%;
}
.room-watch :is(.watch-reward-figure, .watch-shelf-figure, .watch-shelf-preview-figure) .cash-note img { position: absolute; }
.room-note-config .cash-note[data-digits="6"]:not([data-cash-tier="pk-wild"]),
.room-watch .cash-note[data-digits="6"]:not([data-cash-tier="pk-wild"]) { --cash-type: 9.7cqi; }
.watch-reward-card[data-kind="cash"] {
  --watch-reward-glow: 50% 42%;
  --watch-ticket-gutter: clamp(28px, 12%, 49px);
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 6px;
  padding-block: 10px 8px;
}
.watch-reward-card[data-kind="cash"] .watch-reward-figure {
  width: min(230px, calc(100% - 2 * var(--watch-ticket-gutter)));
  aspect-ratio: auto;
}
.watch-reward-card[data-kind="cash"] .watch-reward-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px 10px;
  width: 100%;
  text-align: center;
}
.watch-reward-card[data-kind="cash"] .watch-reward-rarity { justify-content: center; }
.watch-reward-card[data-kind="cash"] .watch-reward-name:not(.room-visually-hidden) { flex-basis: 100%; order: -1; }
.watch-reward-card[data-kind="cash"] > .prize-ceremony :is(.prize-ceremony-left, .prize-ceremony-right) {
  width: var(--watch-ticket-gutter);
  inset-block-start: 10px;
}
.has-cash-notes .watch-shelf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; grid-auto-flow: row; }
.watch-shelf-piece[data-kind="cash"] .watch-shelf-trigger { grid-template-rows: auto auto; align-content: start; gap: 5px; }
.watch-shelf-piece[data-kind="cash"] .watch-shelf-figure { width: min(100%, 148px); aspect-ratio: auto; }
.watch-shelf-note-meta { display: flex; grid-row: 1; justify-content: space-between; align-items: baseline; gap: 3px; width: 100%; }
.watch-shelf-note-count { color: var(--room-emphasis, var(--gold)); font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.watch-shelf-preview[data-kind="cash"] .watch-shelf-preview-figure {
  width: min(100%, 356px);
  aspect-ratio: auto;
  margin-block: 34px 9px;
}
.room-watch [data-kind="cash"] :is(.watch-reward-figure, .watch-shelf-preview-figure)::before { content: none; }

@media (max-width: 660px) {
  .room-watch { width: calc(100% - 20px); margin-top: max(14px, env(safe-area-inset-top)); }
  .watch-header { margin-bottom: 9px; }
  .watch-header .tool-button { min-height: 44px; }
  .watch-layout { grid-template-columns: 1fr; gap: 9px; }
  .watch-cell { aspect-ratio: 1.5; }
  .watch-shelf-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(81px, 24vw, 108px); max-height: none; }
  .summary-footer:has(.room-summary-button:not([hidden])) .modal-action { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .watch-reel-frame.is-rolling .watch-cell img, .watch-core-icon, .watch-paylines .is-current,
  .watch-rating-step, .watch-rating-step::before, .watch-rating-step::after, .watch-reward-card.is-new { animation: none; }
}
