* { box-sizing: border-box; }
:root { --focus-x: 40%; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
button, a, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, .lk-search:focus-within {
  outline: 2px solid var(--lk-lime); outline-offset: 4px;
}
.header { display: flex; align-items: center; gap: 34px; min-height: 70px; position: relative; }
.header__heading-link, .header__heading-logo { display: block; }
.header__heading-logo { width: 116px; }
.list-menu { display: flex; gap: 4px; padding: 0; margin: 0; list-style: none; }
.header__menu-item { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; color: var(--lk-cream); text-decoration: none; }
.header__menu-item:hover { text-decoration: underline; text-underline-offset: 3px; }
#sound { margin-left: auto; min-height: 44px; padding: 8px 13px; font-size: 13px; gap: 8px; }
#sound::before { content: ''; width: 7px; height: 7px; background: var(--lk-teal); border-radius: 50%; }
#sound[aria-pressed=false]::before { background: var(--lk-muted); }
.mobile-menu { display: none; }
.lk-dig-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.game { position:relative; display:grid; max-width:1800px; margin:auto; isolation:isolate; }
#stage, .game-entry { grid-area:1 / 1; }
#stage { position:relative; height:min(calc(100svh - 120px),57vw,920px); overflow:hidden; background:var(--lk-panel); }
#stage::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,transparent 68%,#10191827); }
#screen, #screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#poster { position: absolute; height: 100%; width: auto; max-width: none; left: var(--focus-x); transform: translateX(-50%); }
.cabinet-controls { position:absolute; height:80%; aspect-ratio:1; top:10%; left:var(--focus-x); transform:translateX(-50%); pointer-events:none; z-index:1; }
.hit { position:absolute; transform:translate(-50%,-50%); border:0; background:transparent; pointer-events:auto; }
.hit.lever { left:94.48%; top:30.02%; width:max(44px,10%); height:max(44px,10%); border-radius:50%; }
.hit.spin-key { left:23.54%; top:68.71%; width:max(44px,20%); height:max(44px,6%); border-radius:4px; }
.hit.prizes-key, .hit.shop-key { width:max(44px,16%); height:max(44px,6%); border-radius:4px; }
.hit.prizes-key { left:46.21%; top:70.39%; }
.hit.shop-key { left:68.08%; top:72.02%; }
#key-feedback { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
#stage.live #key-feedback { display:none; }
#stage.spin-available:not(.live) .spin-key { background:radial-gradient(ellipse,#ffb15d1a,transparent 72%); }
#load { position:absolute; z-index:1; left:8px; bottom:8px; background:var(--lk-panel); color:var(--lk-cream); border-radius:4px; padding:5px 8px; font-size:12px; }
#load:empty, #notice:empty, #ack:empty { display:none; }
.game-entry {
  position:relative; align-self:start; justify-self:end; width:clamp(280px,26vw,360px);
  margin:clamp(22px,7svh,72px) clamp(20px,3.5vw,65px) 18px 0; padding:24px; z-index:2;
  color:var(--lk-ink); background:var(--lk-cream) url('/menu-stock.jpg') repeat;
  border:1px solid var(--lk-cream); border-radius:4px; transform:rotate(.65deg);
  box-shadow:0 2px 0 #8d7959,2px 9px 18px #17110a66;
}
.game-entry::before { content:''; position:absolute; inset:5px; border:1px solid #17232150; border-radius:2px; pointer-events:none; }
.game-entry .lk-eyebrow { color:var(--lk-ink); padding-bottom:8px; margin:0; border-bottom:1px solid #17232150; }
.card-title { display:flex; align-items:center; gap:10px; margin:12px 0 9px; }
.card-title img { width:clamp(38px,4vw,58px); height:auto; flex:none; transform:rotate(9deg); }
.game-entry h1 { color:var(--lk-ink); font-size:clamp(35px,3.2vw,46px); line-height:1.05; font-weight:600; margin:0; flex:1; }
.game-entry p { margin:0; }
.game-entry .intro { color:var(--lk-ink); font-size:16px; line-height:1.36; }
.game-entry .newsletter-cue { margin:8px 0 12px; font-size:14px; line-height:1.35; }
.game-entry .cue { margin:6px 0 0; color:var(--lk-panel); font-size:14px; }
.game-entry strong { font-weight:600; }
.game-entry #play { outline:none; }
.game-entry #play:hover { border-color:var(--lk-teal); }
.game-entry #play:focus-visible { outline:2px solid var(--lk-ink); outline-offset:3px; }
#room-invitation .card-title { margin-top:0; }
.room-activities { margin:10px 0 12px; padding-inline-start:18px; font-size:14px; line-height:1.35; }
.room-activities li + li { margin-top:5px; }
.room-activities li::marker { color:var(--lk-panel); }
.game-entry .invitation-actions { column-gap:16px; }
.invitation-actions button:focus-visible { outline:2px solid var(--lk-ink); outline-offset:3px; }
.game-entry .prize-saved { margin-top:6px; font-size:13px; }
.entry-links { display:flex; flex-wrap:wrap; column-gap:7px; align-items:center; margin-top:2px; }
.entry-links .lk-text-link { min-height:44px; color:var(--lk-ink); border:0; background:none; padding:0; text-decoration:underline; text-underline-offset:3px; font-size:13px; }
.entry-links .lk-text-link:hover { text-decoration-thickness:2px; }
.explore-link:not([hidden]) { display:inline-flex; align-items:center; gap:7px; }
.test-note:not([hidden]) { display:block; color:var(--lk-panel); font-size:12px; }
.game-entry #notice { color:var(--lk-ink); }
#notice, #ack { color:var(--lk-teal); margin-top:10px; }
dialog { position:fixed; }
dialog::backdrop { background:#101918c7; }
#close { float:right; width:44px; height:44px; min-height:44px; padding:0; margin-left:10px; font-size:25px; }
dialog h2 { font-size:clamp(29px,3.2vw,40px); font-weight:600; line-height:1.15; margin:0 0 14px; }
dialog p, dialog li { color:var(--lk-muted); }
dialog small { display:block; color:var(--lk-muted); line-height:1.5; }
dialog form { display:grid; gap:14px; }
dialog label { display:block; font-weight:600; }
dialog .lk-search { margin-top:6px; }
dialog .lk-search input { height:100%; outline:none; }
.check { display:flex; align-items:flex-start; gap:10px; padding:8px 0; font-size:14px; font-weight:400; }
.check input { margin-top:3px; accent-color:var(--lk-teal); width:18px; height:18px; flex:none; }
.actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.reward-kicker { min-height:44px; display:flex; align-items:center; margin:0; }
.reward-card { clear:both; display:grid; gap:22px; align-items:center; margin-bottom:18px; }
.reward-card:has(.prize-art) { grid-template-columns:minmax(84px,30%) 1fr; }
.reward-card h2 { margin:0; font-size:clamp(32px,5vw,44px); }
.reward-card .lk-extra-description { margin:8px 0 0; font-size:15px; line-height:1.45; max-width:42ch; }
.winning-reels { display:flex; align-self:flex-start; gap:2px; padding:3px; margin-bottom:10px; background:var(--lk-panel); border:1px solid var(--lk-line); border-radius:4px; }
.winning-reels img { display:block; width:30px; height:30px; object-fit:contain; padding:3px; background:var(--lk-cream); border-radius:2px; }
.reward-jackpot h2 { color:var(--lk-lime); font-size:clamp(40px,6vw,56px); }
.jackpot-subtitle { margin:4px 0 0; color:var(--lk-cream); font:600 clamp(20px,3vw,25px)/1.2 var(--font-heading-family); }
.reward-actions { display:grid; justify-content:start; }
@media(max-width:600px) { .reward-actions { justify-content:stretch; } }
.reward-code { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:10px 0; border-block:1px solid var(--lk-line); }
.reward-code code { color:var(--lk-cream); overflow-wrap:anywhere; }
#ack { border-left:2px solid var(--lk-teal); padding-left:12px; }
.error { color:var(--lk-cream); }
@media(max-width:989px) {
  .header { min-height:56px; justify-content:space-between; gap:8px; }
  .mobile-menu { display:block; min-height:44px; background:none; color:var(--lk-cream); border:0; padding:0 8px 0 0; }
  .header__heading-logo { width:93px; }
  .header__heading-link { position:absolute; left:50%; transform:translateX(-50%); }
  .header__inline-menu { display:none; position:absolute; z-index:5; inset:100% 0 auto; background:var(--lk-ink); padding:8px 12px; border:1px solid var(--lk-line); }
  .mobile-menu[aria-expanded=true] ~ .header__inline-menu { display:block; }
  .list-menu { flex-direction:column; gap:0; }
}
@media(max-width:900px), (max-aspect-ratio:1/1), (max-height:540px) {
  :root { --focus-x:48%; }
  .lk-wrap { width:calc(100% - 32px); }
  .lk-dig-nav { min-height:44px; }
  .lk-dig-nav>div { gap:14px; }
  .game { display:block; padding-bottom:10px; }
  #stage { height:min(clamp(260px,65vw,490px),60svh); }
  #stage::after { background:linear-gradient(0deg,#10191844,transparent 5%); }
  .game-entry { width:min(94%,520px); padding:14px 16px; margin:-5px auto 0; transform:none; }
  .card-title { margin:8px 0 6px; }
  .card-title img { width:36px; }
  .game-entry .lk-eyebrow { font-size:9px; margin-bottom:6px; }
  .game-entry h1 { font-size:36px; margin-bottom:8px; }
  .game-entry .intro { font-size:15px; max-width:none; }
  .game-entry .cue { font-size:14px; margin:6px 0 0; max-width:none; }
  #play { width:100%; }
  .entry-links { margin-top:4px; }
  .test-note { margin-top:1px; }
  .lk-crate-dialog { padding:20px; max-height:88svh; }
  .actions .lk-button { width:100%; }
  .reward-card { gap:14px; }
}
@media(max-width:600px) {
  .lk-dig-nav>div a:last-child { display:none; }
  #sound { min-width:78px; padding:6px 10px; }
}

#stage { touch-action:pan-y; }
.room-navigation { grid-area:1/1; z-index:3; align-self:end; justify-self:center; display:flex; align-items:center; justify-content:center; gap:4px; padding:3px; margin:0 0 10px; color:var(--lk-cream); background:#193328f0; border:1px solid #d9cba65c; border-radius:4px; }
.room-navigation button { color:inherit; background:transparent; border:0; border-radius:3px; min-height:44px; padding:5px 12px; font-weight:600; font-size:14px; }
.room-navigation button:hover,.room-navigation button:focus-visible { background:#f4e8c820; }
.room-navigation #your-prize { color:var(--lk-cream); border-inline-start:1px solid var(--lk-line); }
.room-navigation[hidden],.room-navigation button[hidden],.game-entry[hidden],.cabinet-controls[hidden] { display:none; }
.room-navigation [data-pack-name]:not([hidden]) { padding-inline:8px; font-weight:600; }
.sr-room { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
@media(max-width:900px),(max-aspect-ratio:1/1),(max-height:540px) {
 .room-navigation { margin:0; border:0; border-radius:0; padding:2px 4px; flex-wrap:wrap; }
 .room-navigation button { font-size:13px; padding:3px 7px; }
 .room-navigation:not([hidden])+.game-entry { margin-top:8px; }
}
@media(max-width:600px) and (orientation:portrait) {
 /* Keep room navigation and camera moves inside one steady phone viewport. */
 #stage { height:min(110vw,calc(100svh - 160px)); }
 .room-navigation { width:100%; }
}

#tv-hint { position:absolute; z-index:2; pointer-events:none; border-radius:3px; padding:4px 8px; color:var(--lk-cream); background:var(--lk-ink); font-size:13px; }
.tv-guide { width:min(380px,90vw); }
.tv-guide form { float:right; }
.tv-guide .tv-close { width:44px; height:44px; padding:0; font-size:24px; }
.tv-guide .tv-switches { display:flex; gap:8px; margin:16px 0; }
.tv-guide button, .tv-guide input { min-height:44px; }
.tv-guide input { width:100%; accent-color:var(--lk-teal); }
.tv-guide output { float:right; }
.tv-guide #tv-status:empty,.tv-guide [hidden] { display:none; }

.room-navigation { max-width:100%; }
.hifi-controls { position:absolute; z-index:3; left:clamp(8px,1.4vw,22px); top:clamp(8px,1.4vw,22px); width:min(322px,calc(100% - 16px)); padding:2px 12px; background:var(--lk-panel); color:var(--lk-cream); border:1px solid var(--lk-line); border-radius:4px; }
.hifi-controls [hidden],.hifi-controls[hidden] { display:none; }
.hifi-controls [data-deck-status] { display:block; padding-block:5px; color:var(--lk-muted); }
.hifi-controls [data-deck-status]:empty {display:none}
.record-bar,.record-settings { display:flex; align-items:center; flex-wrap:wrap; gap:4px 18px; }
.record-summary { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; margin-right:auto; padding:0; background:transparent; color:inherit; border:0; text-align:left; min-height:44px; }
.record-summary { display:grid; grid-template-columns:auto auto; gap:0 8px; }
.record-summary small { grid-row:2; }
.record-summary span { grid-column:2; grid-row:1/3; }
.record-settings label:first-child { grid-column:1/-1; }
.record-settings select { flex:1; min-width:0; }
.record-settings input[type=checkbox] { margin-left:0; }
.record-summary strong { font:600 22px/1.15 var(--font-heading-family); }
.record-summary small { color:var(--lk-muted); }
.record-summary[aria-expanded=true] span { transform:rotate(180deg); }
.hifi-controls .lk-text-link { min-height:44px; padding:0; border:0; background:transparent; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.record-settings { display:grid; grid-template-columns:1fr auto; gap:0 10px; border-top:1px solid var(--lk-line); padding:5px 0; }
.record-settings label { display:flex; align-items:center; gap:7px; min-height:44px; font-size:14px; }
.record-settings input,.record-settings select { accent-color:var(--lk-teal); }
.record-settings select,.pack-choice select { min-height:44px; padding:4px 6px; color:var(--lk-cream); background:var(--lk-panel); border:1px solid var(--lk-line); border-radius:4px; font:inherit; }
.record-settings input[type=range] { width:74px; min-width:0; }
.hifi-controls button:disabled { opacity:.45; cursor:default; }
.liner-paper { color:#293328; background:#eae4ce url('/records/liner-paper.webp') center / cover; inset:0; margin:auto; border:0; padding:16px clamp(18px,4vw,34px); width:min(60ch,calc(100% - 32px)); max-height:85svh; overflow:auto; overscroll-behavior:contain; box-shadow:0 12px 40px #10191855; }
.liner-paper::backdrop { background:#10191861; }
body:has(.liner-paper[open]) { overflow:hidden; }
.liner-masthead { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #24332844; gap:12px; }
.liner-masthead span { text-transform:uppercase; font-size:10px; letter-spacing:.12em; }
.liner-masthead button { min-height:44px; color:inherit; border:0; background:transparent; text-decoration:underline; cursor:pointer; }
.liner-paper h2 { margin:12px 0 4px; color:inherit; }
.liner-paper p { color:inherit; font-size:15px; line-height:1.55; margin:0 0 .75em; }
@media(max-width:600px) {
 .record-bar,.record-settings { gap:0 10px; }
 .record-summary { gap:1px 6px; display:grid; grid-template-columns:auto auto; }
 .record-summary small { grid-row:2; }
 .record-summary span { grid-column:2; grid-row:1/3; }
 .hifi-controls:has([data-expand][aria-expanded=true]) { width:calc(100% - 16px); max-width:400px; }
 .record-settings { display:flex; gap:0 8px; justify-content:space-between; padding-block:0; }
 .record-settings label:first-child { flex:1 1 48%; min-width:0; }
 .record-settings label:nth-child(2) { flex:0 0 38%; }
 .record-settings label:nth-child(2) input { flex:1; }
 .record-settings label:nth-child(3) { flex:1; }
 .record-settings .lk-text-link { margin-left:4px; }

}
#stage .crate-arrows { position:absolute; inset:0; z-index:2; pointer-events:none; }
.crate-arrows button { position:absolute; transform:translate(-50%,-50%); width:48px; height:48px; padding:0; display:grid; place-items:center; pointer-events:auto; touch-action:manipulation; cursor:pointer; background:#193328ed; color:var(--lk-cream); border:1px solid #dfcca1; border-radius:50%; font:600 25px/1 var(--font-body-family, sans-serif); }
.crate-arrows [data-prev-pack] { left:var(--left,10%); top:var(--arrow-y,50%); }
.crate-arrows [data-next-pack] { left:var(--right,90%); top:var(--arrow-y,50%); }
.crate-arrows button:hover,.crate-arrows button:focus-visible { background:var(--lk-cream); color:var(--lk-ink); }
#stage .crate-arrows[hidden] { display:none; }
.room-navigation [data-pack-name]:not([hidden]) { min-width:9ch; text-align:center; }


.cassette-hit { position:absolute; z-index:1; width:44px; height:44px; padding:0; transform:translate(-50%,-50%); background:transparent; border:0; border-radius:4px; }
.cassette-hit:focus-visible { outline-color:var(--lk-cream); }
[data-tape-hint],.tape-notes,.tape-reward { position:absolute; z-index:2; top:12px; right:12px; }
[data-tape-hint],.tape-notes { background:var(--lk-panel); color:var(--lk-cream); border-radius:4px; }
[data-tape-hint] { padding:4px 9px; pointer-events:none; }
.tape-notes { padding:6px 12px; }
.tape-reward { width:min(280px,32%); background:var(--lk-panel); color:var(--lk-cream); border:1px solid var(--lk-line); border-radius:4px; padding:16px; }
.tape-reward h2 { margin:0 26px 8px 0; font-size:24px; line-height:1.15; }
.tape-reward p { margin:0 0 12px; font-size:14px; line-height:1.4; }
.tape-reward small { display:block; margin-top:4px; color:var(--lk-muted); }
.tape-dismiss { position:absolute; right:2px; top:2px; width:44px; height:44px; background:transparent; color:inherit; border:0; font-size:22px; }
.tape-reward [hidden],.tape-notes[hidden] { display:none; }
@media(max-width:750px) {
 #stage[data-zone=cassette]:has(.tape-reward:not([hidden])) { display:flex; flex-direction:column; }
 #stage[data-zone=cassette]:has(.tape-reward:not([hidden])) #screen { position:relative; flex:1; min-height:0; }
 .tape-reward { position:relative; inset:auto; width:100%; flex:none; padding:9px 15px; }
 .tape-reward h2 { font-size:20px; margin-bottom:3px; }
 .tape-reward p { font-size:13px; margin-bottom:4px; }
 .tape-reward .lk-button,.tape-reward .lk-outline { min-height:44px; padding:5px 10px; }
}

.prize-art { display:grid; justify-items:center; align-items:center; padding:8px; background:var(--lk-cream); }
.prize-art img { width:100%; aspect-ratio:1; object-fit:contain; }
.prize-collection { grid-template-columns:1fr 1fr; gap:3px; }
.pack-choice { display:grid; gap:4px; }
.pack-choice select { color-scheme:dark; padding-inline:10px; max-width:100%; border-color:var(--lk-muted); }
.reward-share { display:flex; align-items:center; gap:18px; }
.reward-share button,.reward-code button { min-height:44px; padding:0 2px; background:transparent; border:0; text-decoration:underline; text-underline-offset:4px; }
#ack:empty { display:none; }
#modal { max-height:90dvh; overflow-y:auto; }
