*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:radial-gradient(ellipse at top,#490c38,#17051b 65%);color:#fff0fa;font:600 15px system-ui,sans-serif}main{min-height:100dvh;display:grid;place-items:center;padding:12px}.cabinet{width:min(100%,850px,calc((100dvh - 210px)*1.8));min-width:0;display:grid;gap:10px}.game-header{display:grid;gap:6px}.game-header img{width:100%;display:block;border-radius:12px}.toolbar{display:flex;justify-content:flex-end;gap:6px}button,.room,#checkout{font:inherit;color:#fff4fa;border:1px solid #d674b6;background:linear-gradient(#722054,#350c2e);border-radius:14px;padding:8px 14px;min-height:34px;cursor:pointer;text-decoration:none}button:disabled{opacity:.5}button:focus-visible,a:focus-visible{outline:2px solid white;outline-offset:2px}.machine-frame{padding:8px;border:3px solid #ffd391;border-radius:22px;background:linear-gradient(135deg,#8f4b24,#ffe0a0,#9f4a28,#ffda98);box-shadow:0 0 5px #fff2bd,0 0 14px #ff329e,inset 0 0 8px #fff0b3}.reels{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px;aspect-ratio:5/3;background:#20091f;border-radius:12px;overflow:hidden}.cell{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:6px;background:radial-gradient(#592343,#260b25);display:grid;place-items:center;color:#cc73ac}.cell img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cell small{position:absolute;inset:auto 0 0;padding:3px;background:#16091caa;font-size:clamp(7px,1.25vw,11px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}.cell.hit{--glow:#ffcb55;--wash:#ffca5544}.cell.hit[data-match-group="2"]{--glow:#5bdfff;--wash:#5bdfff44}.cell.hit img{animation:photo 1.35s ease-in-out infinite alternate}.cell.hit:after{content:'';position:absolute;inset:0;background:var(--wash);border:2px solid var(--glow);box-shadow:inset 0 0 15px var(--glow);animation:pulse 1.35s ease-in-out infinite alternate}.cell.dimmed img{filter:brightness(.3)}@keyframes photo{to{filter:brightness(1.7)}}@keyframes pulse{from{opacity:.3}to{opacity:1}}#paylines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:12}#paylines polyline{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.payline-outline{stroke-width:6}.payline-line{stroke-width:3;filter:drop-shadow(0 0 4px #00eaff)}.payline-label{font:bold 24px system-ui;paint-order:stroke;stroke:#18091f;stroke-width:4}.slutty-reel-overlay{position:absolute;overflow:hidden;z-index:9;background:#20091f}.slutty-reel-column{position:absolute;inset:0;will-change:transform}.slutty-reel-tile{position:relative;overflow:hidden;display:grid;place-items:center;background:#38122d;border-bottom:3px solid #f576c1}.slutty-reel-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cell.is-spinning{visibility:hidden}#gender{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}#gender button{padding:5px 2px;font-size:clamp(10px,1.6vw,14px);border-radius:30px}#gender button[aria-pressed=true]{background:linear-gradient(#ffe6a0,#e29b28);color:#2b0c22;border-color:#ffe6a0}#status{text-align:center;color:#ffe099;font-size:clamp(11px,2vw,16px);min-height:24px;display:grid;place-items:center}.controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.credit{text-align:center;min-width:0}.credit p{margin:0 0 5px;font-size:12px}#spin{width:88px;height:88px;border-radius:50%;border:4px double #ffdb8e;background:radial-gradient(circle at 40% 30%,#fa57b5,#8b075a 70%);box-shadow:0 0 15px #ff329e;display:grid;place-content:center;gap:0;font-size:19px}#spin span{font-size:28px;line-height:1}#auto{justify-self:end;font-size:12px}#auto span{display:block;color:#ff99d8}#wins{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}#wins:empty{display:none}.room{background:#f5d17b;color:#25101d;font-size:12px}dialog{width:min(420px,94vw);max-height:90dvh;overflow:auto;border:1px solid #d674b6;border-radius:18px;background:#250c25;color:#fff;padding:20px}dialog::backdrop{background:#09030cdd}dialog h2{text-align:center;font-size:18px}dialog button{margin:4px}dialog label{display:block;margin:10px 0}input:not([type=checkbox]):not([type=range]){width:100%;padding:10px;border-radius:8px;border:1px solid #b05a99;background:#17071c;color:white}.offer{display:flex;width:100%;justify-content:space-between;margin:5px 0}.line-rules{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;text-align:center}.mini-line{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;max-width:100px;margin:4px auto}.mini-line i{aspect-ratio:1;border:1px solid #c08c49}.mini-line i.active{background:#ffe083}[hidden]{display:none!important}@media(max-width:600px){main{padding:8px}.cabinet{width:100%;gap:8px}.machine-frame{padding:5px;border-radius:14px}.reels{gap:3px;aspect-ratio:5/3.6}.controls{gap:5px}#spin{width:78px;height:78px}.credit button,#auto{font-size:11px;padding:6px 8px}.toolbar button,#gender button{min-height:40px}}@media(max-height:480px) and (min-width:601px){.cabinet{width:min(100%,calc((100dvh - 175px)*2.1));gap:4px}.game-header img{max-height:48px;object-fit:contain}#spin{width:54px;height:54px;font-size:12px}#spin span{font-size:16px}}@media(prefers-reduced-motion:reduce){.cell.hit img,.cell.hit:after{animation:none}}
/* V37: original artwork, independent of the responsive game controls. */
body{background:radial-gradient(ellipse at 50% 12%,#500b39 0%,#21071f 48%,#130416 85%)}
main{padding:10px;min-height:100dvh}
.cabinet{width:min(100%,960px,calc((100dvh - 230px)*1.64));gap:8px;container-type:inline-size}
.game-header{position:relative;isolation:isolate;background:url('slutty_curtain_left_v37.webp') left top/auto 100% no-repeat,url('slutty_curtain_right_v37.webp') right top/auto 100% no-repeat;gap:3px}
.game-header img{width:82%;margin:auto;border-radius:0;max-height:none;object-fit:contain}
.toolbar{justify-content:flex-end;gap:5px}
.machine-frame{position:relative;isolation:isolate;aspect-ratio:1078/660;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.machine-frame::after{content:'';position:absolute;inset:0;background:url('slutty_frame_v37.webp') center/100% 100% no-repeat;pointer-events:none;z-index:20}
.machine-frame .reels{position:absolute;left:5.7%;right:3.6%;top:4.4%;bottom:4.3%;aspect-ratio:auto;border-radius:0;gap:0;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));background:#210b24;overflow:hidden}
.cell{border-radius:0;border-right:clamp(2px,.65cqw,7px) solid #25091f;border-bottom:clamp(2px,.55cqw,6px) solid #24091e;box-shadow:inset 0 -1px #a32a78}
.cell:nth-child(5n){border-right:0}.cell:nth-child(n+11){border-bottom:0}
.cell small{font-size:clamp(7px,1.25cqw,12px);background:linear-gradient(transparent,#16091cce)}
.slutty-reel-overlay{border-right:clamp(2px,.65cqw,7px) solid #25091f;pointer-events:none}.slutty-reel-overlay:last-of-type{border-right:0}
.slutty-reel-tile{border-bottom:clamp(2px,.55cqw,6px) solid #b73583}
#spin{width:clamp(76px,13cqw,118px);height:clamp(76px,13cqw,118px);padding:0;border:0;background:transparent url('slutty_spin_v37.webp') center/contain no-repeat;box-shadow:none;color:transparent;position:relative;overflow:hidden;transition:filter .2s,transform .2s}
#spin span{visibility:hidden}#spin:hover:not(:disabled){filter:brightness(1.15)}#spin:active:not(:disabled){transform:scale(.96)}#spin:disabled{opacity:.65}
.controls{background:linear-gradient(180deg,#4c1039aa,#1b071b 28%,#28091f 85%,#6b164a88);border-radius:16px;padding:5px 10px;box-shadow:inset 0 1px #b62c7b66,inset 0 -1px #e43c9766}
#gender button{min-height:34px;font-size:clamp(9px,1.6cqw,14px)}
#status{min-height:20px}#wins{max-width:100%}
@media(max-width:600px){main{padding:8px;place-items:center}.cabinet{width:100%;gap:7px}.game-header img{width:88%}.machine-frame{aspect-ratio:1078/800}.machine-frame .reels{gap:0}.toolbar button{min-height:34px}.controls{padding:5px}.credit p{font-size:11px}#gender button{font-size:clamp(9px,2.7cqw,13px);min-height:40px}}
@media(max-height:480px) and (min-width:601px){main{padding:5px}.cabinet{width:min(100%,calc((100dvh - 145px)*1.64));gap:3px}.game-header img{max-height:44px}.toolbar{position:absolute;right:-145px;top:0}.toolbar button{padding:4px 7px;font-size:10px;min-height:28px}.controls{padding:2px 5px}#spin{width:54px;height:54px}#gender button{min-height:25px;padding:2px}#status{min-height:15px;font-size:11px}}
@media(max-height:480px) and (min-width:601px) and (max-width:740px){.toolbar{position:static}.cabinet{width:min(100%,calc((100dvh - 176px)*1.64))}}
@media(min-width:601px) and (min-height:481px){.cabinet{width:min(100%,960px,calc((100dvh - 290px)*1.4))}}
@media(max-height:480px) and (min-width:741px){.cabinet{width:min(100%,calc((100dvh - 180px)*1.5))}}
@media(max-height:480px) and (min-width:601px) and (max-width:740px){.cabinet{width:min(100%,calc((100dvh - 205px)*1.5))}}
/* Confine the original curtain pieces to the logo strip, not the toolbar. */
.game-header{background:none}
.game-header::before,.game-header::after{content:'';position:absolute;z-index:-1;top:0;height:11.9cqw;aspect-ratio:112/155;background-size:100% 100%;background-repeat:no-repeat;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 14%,#000 68%,transparent),linear-gradient(to bottom,#000 0%,#000 72%,transparent);mask-composite:intersect}
.game-header::before{left:0;background-image:url('slutty_curtain_left_v37.webp')}
.game-header::after{right:0;background-image:url('slutty_curtain_right_v37.webp');mask-image:linear-gradient(to left,transparent,#000 14%,#000 68%,transparent),linear-gradient(to bottom,#000 0%,#000 72%,transparent)}
.game-header img{width:86%}
@media(max-width:600px){.game-header img{width:90%}.game-header::before,.game-header::after{height:13cqw}}
@media(max-height:480px) and (min-width:601px){.game-header::before,.game-header::after{height:min(11.9cqw,44px)}}

/* V38: mobile layout redesigned to behave like a real portrait slot machine. */
@media (max-width: 600px){
  html,body{min-height:100%;}
  body{
    background:
      radial-gradient(circle at 50% 0%, rgba(255,84,176,.22), transparent 30%),
      linear-gradient(180deg,#17061b 0%, #2a0922 22%, #130416 100%);
  }
  main{
    padding:8px 8px 12px;
    display:block;
  }
  .cabinet{
    width:min(100%,430px);
    margin:0 auto;
    gap:8px;
    display:grid;
    grid-template-areas:
      'header'
      'machine'
      'toolbar'
      'status'
      'gender'
      'controls'
      'wins';
    grid-template-columns:1fr;
  }
  .game-header{
    grid-area:header;
    gap:6px;
    padding-top:2px;
  }
  .game-header::before,.game-header::after{
    height:15.5cqw;
  }
  .game-header img{
    width:94%;
  }
  .toolbar{
    grid-area:toolbar;
    justify-content:center;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .toolbar button{
    min-height:42px;
    padding:0 8px;
    border-radius:14px;
    background:linear-gradient(180deg,#491237,#1c0719);
    border:1px solid #ff8fd1;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,61,165,.08);
    font-size:12px;
  }
  .machine-frame{
    grid-area:machine;
    aspect-ratio:1080/1180;
    filter:drop-shadow(0 6px 18px rgba(0,0,0,.32));
  }
  .machine-frame::after{
    background-size:100% 100%;
  }
  .machine-frame .reels{
    left:7.2%;
    right:5.1%;
    top:8.1%;
    bottom:22.7%;
  }
  .cell small{font-size:9px;padding:2px 0 3px;}
  #status{
    grid-area:status;
    min-height:40px;
    border-radius:14px;
    background:linear-gradient(180deg,#471237,#20081a);
    border:1px solid #ff95d4;
    color:#ffe9a8;
    padding:8px 12px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  }
  #gender{
    grid-area:gender;
    display:flex;
    overflow:auto hidden;
    gap:8px;
    padding:2px 1px;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  #gender::-webkit-scrollbar{display:none;}
  #gender button{
    flex:0 0 auto;
    min-width:84px;
    min-height:42px;
    padding:0 12px;
    border-radius:999px;
    font-size:12px;
  }
  .controls{
    grid-area:controls;
    display:grid;
    grid-template-columns:1fr 1.2fr 1fr;
    grid-template-areas:
      'credit spin auto'
      'store  spin auto';
    align-items:stretch;
    gap:8px;
    background:linear-gradient(180deg,#0e2037,#081625 58%,#0a1320 100%);
    border:2px solid #2ea6ff;
    border-radius:18px;
    padding:10px;
    box-shadow:0 0 0 1px rgba(106,205,255,.18), inset 0 0 24px rgba(34,126,201,.12);
  }
  .credit{
    grid-area:credit;
    min-width:0;
    border:1px solid #2b8ed9;
    border-radius:14px;
    background:linear-gradient(180deg,#0d2840,#081a2e);
    padding:8px 6px;
    display:grid;
    grid-template-rows:auto 1fr;
    align-content:stretch;
    gap:8px;
  }
  .credit p{
    margin:0;
    font-size:11px;
    line-height:1.2;
    color:#d3f2ff;
    text-align:center;
  }
  #balance{
    font-weight:800;
    font-size:18px;
    color:#ffe48e;
  }
  .credit #storeOpen{
    width:100%;
    min-height:58px;
    padding:0 6px;
    border-radius:14px;
    background:linear-gradient(180deg,#123a59,#0a233a);
    border:1px solid #59baff;
    display:grid;
    place-items:center;
    font-size:13px;
    letter-spacing:.02em;
  }
  #spin{
    grid-area:spin;
    align-self:center;
    justify-self:center;
    width:min(31vw,126px);
    height:min(31vw,126px);
    min-width:104px;
    min-height:104px;
  }
  #auto{
    grid-area:auto;
    width:100%;
    border-radius:14px;
    min-height:100%;
    display:grid;
    place-items:center;
    align-content:center;
    gap:4px;
    background:linear-gradient(180deg,#0d2840,#081a2e);
    border:1px solid #2b8ed9;
    font-size:13px;
    padding:8px 6px;
  }
  #auto span{
    font-size:18px;
    color:#ffd5ec;
  }
  #wins{
    grid-area:wins;
    justify-content:center;
    gap:8px;
  }
  .room{
    min-height:40px;
    border-radius:999px;
    background:linear-gradient(180deg,#ffe28b,#e1a732);
    color:#28101e;
    border-color:#ffe08a;
  }
  .slutty-reel-overlay,
  .slutty-reel-tile{border-radius:0;}
}

/* V39: requested mobile fixes */
.mobile-menu-toggle{display:none}
#gender .gicon{display:inline-block;line-height:1}
#gender .glabel{display:inline-block}
@media (max-width: 600px){
  .game-header{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    position:relative;
  }
  .game-header img{
    width:100%;
    margin:0 auto;
    justify-self:center;
  }
  .mobile-menu-toggle{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border-radius:14px;
    justify-self:end;
    align-self:start;
    background:linear-gradient(180deg,#50123c,#22091f);
    border:1px solid #ff93d3;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
    font-size:22px;
    line-height:1;
    z-index:6;
  }
  .toolbar{
    position:absolute;
    right:0;
    top:52px;
    z-index:7;
    width:min(180px,56vw);
    grid-area:unset;
    display:none;
    grid-template-columns:1fr;
    gap:8px;
    padding:10px;
    background:linear-gradient(180deg,#3a0c2d,#170616);
    border:1px solid #ff8fd1;
    border-radius:16px;
    box-shadow:0 14px 32px rgba(0,0,0,.34);
  }
  .cabinet.menu-open .toolbar{display:grid}
  .toolbar button{min-height:42px}

  /* Info box above frame, styled as info panel instead of a button */
  #status{
    margin-top:2px;
    min-height:0;
    padding:10px 14px;
    border-radius:12px;
    background:linear-gradient(180deg,rgba(92,16,62,.72),rgba(36,9,28,.88));
    border:1px solid rgba(255,145,212,.55);
    color:#ffe8a1;
    font-size:13px;
    letter-spacing:.02em;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  }

  /* Correct the distorted frame ratio */
  .machine-frame{
    aspect-ratio:1078/660;
    width:100%;
  }
  .machine-frame .reels{
    left:5.7%;
    right:3.6%;
    top:4.4%;
    bottom:4.3%;
  }

  /* Compact gender icons, not giant text pills */
  #gender{
    justify-content:center;
    gap:10px;
    overflow:visible;
    padding:0;
  }
  #gender button{
    min-width:54px;
    width:54px;
    height:54px;
    min-height:54px;
    padding:0;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(180deg,#5b1445,#2a0b24);
    border:1px solid #ff90d3;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  }
  #gender .glabel{display:none}
  #gender .gicon{
    font-size:22px;
    font-weight:700;
  }
  #gender button[aria-pressed=true]{
    background:linear-gradient(180deg,#ffe6a0,#e29b28);
    color:#34111f;
    border-color:#ffe6a0;
  }

  /* Keep controls lower, after icons */
  .controls{margin-top:2px}
}
@media (min-width: 601px){
  #mobileMenuToggle{display:none !important}
  .toolbar{display:flex !important;position:static !important;width:auto !important;padding:0 !important;background:none !important;border:0 !important;box-shadow:none !important}
}

/* V40: elevate the header stacking context, not just its children. */
@media (max-width:600px){
  .cabinet .game-header{position:relative;z-index:100;overflow:visible;}
  .cabinet .machine-frame{z-index:0;}
  .cabinet #mobileMenuToggle{position:relative;z-index:102;}
  .cabinet #mobileMenuPanel{z-index:101;}
}

/* V41: consistent icon-only dialog close controls. */
dialog:has(.dialog-close){padding-top:50px;position:fixed;}
dialog .dialog-close{position:absolute;top:8px;right:8px;width:34px;height:34px;min-height:34px;padding:0;margin:0;display:grid;place-items:center;border-radius:50%;z-index:2;}
dialog .dialog-close svg{display:block;pointer-events:none;}

/* V42: center the original banner across the full mobile header. */
@media (max-width:600px){
  .cabinet .game-header{grid-template-columns:minmax(0,1fr);padding:0 50px;min-height:44px;align-items:center;}
  .cabinet .game-header > img{display:block;width:100%;height:auto;margin:0 auto;justify-self:center;max-width:100%;}
  .cabinet #mobileMenuToggle{position:absolute;top:0;right:0;z-index:102;}
  .cabinet #mobileMenuPanel{top:52px;right:0;z-index:101;}
}

/* V43: readable mobile menu labels; desktop unchanged. */
.mobile-menu-label{display:none}
@media(max-width:600px){
 .cabinet #mobileMenuPanel{width:min(220px,80vw);gap:6px;}
 .cabinet #mobileMenuPanel .desktop-menu-icon{display:none}
 .cabinet #mobileMenuPanel .mobile-menu-label{display:inline}
 .cabinet #mobileMenuPanel button{width:100%;min-height:44px;padding:10px 14px;text-align:left;font-size:13px;white-space:normal;}
}

/* V44: compact shop icon, using the existing offer dialog. */
.cabinet .credit #storeOpen{display:inline-grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0 auto;justify-self:center;border-radius:12px}
.cabinet .credit #storeOpen svg{display:block;width:24px;height:24px;pointer-events:none}

/* V45: blue shopping icon next to the mobile hamburger. */
.cabinet .game-header > #storeOpen{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;border-radius:14px;color:#42b7ff;background:linear-gradient(180deg,#123653,#081b30);border:1px solid #42b7ff;justify-self:end}
.cabinet .game-header > #storeOpen svg{display:block;width:24px;height:24px;pointer-events:none}
@media(max-width:600px){
 .cabinet .game-header{padding-inline:98px;min-height:44px}
 .cabinet .game-header > #storeOpen{position:absolute;top:0;right:50px;z-index:102}
 .cabinet .credit{grid-template-rows:auto;align-content:center}
 .cabinet .controls{grid-template-areas:'credit spin auto';}
}

/* V46: desktop header actions share one compact row; mobile untouched. */
@media(min-width:601px){
 .cabinet .game-header{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:5px;row-gap:4px;align-items:center;}
 .cabinet .game-header > img{grid-column:1/-1;grid-row:1;justify-self:center;}
 .cabinet .game-header > #storeOpen{grid-column:1;grid-row:2;justify-self:end;width:34px;height:34px;min-height:34px;border-radius:12px;}
 .cabinet .game-header > #storeOpen svg{width:20px;height:20px;}
 .cabinet .game-header > #mobileMenuPanel{grid-column:2;grid-row:2;justify-self:end;align-items:center;gap:5px;}
 .cabinet .game-header > #mobileMenuPanel button{height:34px;min-height:34px;padding-block:0;}
 .cabinet #status{margin:0;min-height:20px;}
}

/* V47: move the gender filter above the slot frame on desktop only. */
@media (min-width:601px){
 .cabinet > .game-header{order:0;}
 .cabinet > #status{order:1;}
 .cabinet > #gender{order:2;}
 .cabinet > .machine-frame{order:3;}
 .cabinet > #wins{order:4;}
 .cabinet > .controls{order:5;}
}


/* V48: move gender filter above the slot frame in responsive view as well. */
@media (max-width:600px){
 .cabinet > .game-header{order:0;}
 .cabinet > #status{order:1;}
 .cabinet > #gender{order:2;}
 .cabinet > .machine-frame{order:3;}
 .cabinet > #wins{order:4;}
 .cabinet > .controls{order:5;}
}

/* V49: desktop only: top-aligned cabinet, compact header, text-only gender buttons. */
@media(min-width:601px){
 main{align-items:start;justify-items:center;padding-top:0;}
 .cabinet{gap:4px;}
 .cabinet .game-header{row-gap:0;}
 .cabinet #gender .gicon{display:none;}
 .cabinet #gender .glabel{display:inline;}
 .cabinet #status{min-height:16px;margin:0;padding:0;}
}

/* V50: desktop actions within the logo row, no second header row. */
@media(min-width:601px){
 .cabinet .game-header{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;column-gap:5px;row-gap:0;min-height:34px;}
 .cabinet .game-header > img{grid-column:1/-1;grid-row:1;width:min(86%,max(0px,calc(100% - 370px)));margin:0 auto;justify-self:center;align-self:center;}
 .cabinet .game-header > #storeOpen{grid-column:2;grid-row:1;z-index:2;}
 .cabinet .game-header > #mobileMenuPanel{grid-column:3;grid-row:1;z-index:2;}
}
/* Preserve room for the logo on compact landscape/desktop cabinets. */
@media(min-width:601px){
 .cabinet .game-header > img{width:min(86%,max(35%,calc(100% - 370px)));}
}
@container (max-width: 570px){
 @media(min-width:601px){
  .cabinet .game-header > img{grid-column:1;justify-self:start;width:100%;margin:0;}
 }
}

/* V51: direct mobile audio toggles; desktop unchanged. */
.mobile-audio-controls{display:none}
@media(max-width:600px){
 .cabinet #mobileMenuPanel #settingsOpen{display:none}
 .cabinet #mobileMenuPanel .mobile-audio-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .cabinet #mobileMenuPanel .mobile-audio-controls button{display:grid;place-items:center;padding:0;min-height:44px}
 .mobile-audio-controls svg{pointer-events:none}
 .mobile-audio-controls .audio-slash{display:none}
 .mobile-audio-controls button[aria-pressed="false"]{color:#b991ae}
 .mobile-audio-controls button[aria-pressed="false"] .audio-slash{display:block;stroke:#ff83b9;stroke-width:2.5;paint-order:stroke}
}



/* V57: free play only; keep previous header and game alignment. */
.cabinet{align-content:start;}
@media(min-width:601px){main{align-content:start;}.cabinet .game-header{grid-template-columns:minmax(0,1fr) auto;}.cabinet .game-header > #mobileMenuPanel{grid-column:2;}.cabinet .game-header > img{width:min(86%,max(35%,calc(100% - 290px)));}}
@media(max-width:600px){.cabinet{grid-template-areas:'header' 'gender' 'status' 'machine' 'wins' 'controls';grid-template-rows:none;}.cabinet .game-header{padding-inline:50px;}.cabinet > #wins:empty{display:none;}}


/* V64: desktop SPIN box uses the existing mobile blue design. */
@media (min-width:601px){
 .cabinet > .controls{
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:stretch;gap:18px;
  background:linear-gradient(180deg,#0e2037,#081625 58%,#0a1320 100%);
  border:2px solid #2ea6ff;border-radius:18px;padding:10px;
  box-shadow:0 0 0 1px rgba(106,205,255,.18),inset 0 0 24px rgba(34,126,201,.12);
 }
 .cabinet > .controls > .credit{
  min-width:0;border:1px solid #2b8ed9;border-radius:14px;
  background:linear-gradient(180deg,#0d2840,#081a2e);
  padding:8px 6px;display:grid;place-items:center;
 }
 .cabinet > .controls #balance{margin:0;font-weight:800;font-size:18px;line-height:1.2;color:#ffe48e;text-align:center;}
 .cabinet > .controls > #spin{align-self:center;justify-self:center;}
 .cabinet > .controls > #auto{
  width:100%;min-height:100%;border-radius:14px;display:grid;
  place-items:center;align-content:center;gap:4px;
  background:linear-gradient(180deg,#0d2840,#081a2e);
  border:1px solid #2b8ed9;font-size:13px;padding:8px 6px;
 }
 .cabinet > .controls > #auto span{font-size:18px;color:#ffd5ec;}
}

/* V65: desktop-only audio controls, four equal-height boxes. */
.desktop-audio-toggle{display:none;}
@media(min-width:601px){
 .cabinet #mobileMenuPanel #settingsOpen{display:none;}
 .cabinet > .controls{grid-template-columns:minmax(0,1fr) 56px auto 56px minmax(0,1fr);grid-template-areas:'credit music spin sound auto';align-items:center;gap:clamp(4px,1.2vw,18px);}
 .cabinet > .controls > .credit{grid-area:credit;}
 .cabinet > .controls > #desktopMusic{grid-area:music;}
 .cabinet > .controls > #spin{grid-area:spin;}
 .cabinet > .controls > #desktopSound{grid-area:sound;}
 .cabinet > .controls > #auto{grid-area:auto;}
 .cabinet > .controls > .credit,.cabinet > .controls > #auto,.cabinet > .controls > .desktop-audio-toggle{height:56px;min-height:56px;max-height:56px;align-self:center;}
 .cabinet > .controls > .desktop-audio-toggle{display:grid;place-items:center;width:56px;padding:0;border:1px solid #2b8ed9;border-radius:10px;background:linear-gradient(180deg,#0d2840,#081a2e);color:#ffe48e;}
 .cabinet > .controls > .desktop-audio-toggle svg{pointer-events:none;}
 .cabinet > .controls > .desktop-audio-toggle .audio-slash{display:none;}
 .cabinet > .controls > .desktop-audio-toggle[aria-pressed="false"]{color:#8497ae;}
 .cabinet > .controls > .desktop-audio-toggle[aria-pressed="false"] .audio-slash{display:block;stroke:#ff83b9;stroke-width:2.5;}
 .cabinet > .controls > #auto{gap:0;line-height:1.15;padding:4px 2px;}
 .cabinet > .controls > #auto[aria-pressed="true"]{border-color:#6ddfff;background:linear-gradient(180deg,#164866,#10344e);}
 .cabinet > .controls > #auto[aria-pressed="true"] span{color:#89f4ce;}
 .cabinet > .controls > #auto,.cabinet > .controls > .desktop-audio-toggle{transition:background 160ms,border-color 160ms,box-shadow 160ms;}
 @media(hover:hover){
  .cabinet > .controls > #auto:not(:disabled):hover,.cabinet > .controls > .desktop-audio-toggle:not(:disabled):hover{background:#194664;border-color:#67d4ff;box-shadow:0 0 10px #2ea6ff88;}
 }
 .cabinet > .controls #balance{font-size:clamp(10px,2vw,18px);overflow-wrap:anywhere;}
}


/* V71: original intro nightclub behind the game, not the intro modal. */
.game-header{background:none;}
.game-header::before,.game-header::after{content:none;}
@media (min-width:601px){
 body{isolation:isolate;background:#190719;}
 body::before,body::after{
  content:'';position:fixed;top:0;bottom:0;
  width:min(50vw,88.8417vh);z-index:-1;pointer-events:none;
  background-image:url('slutty_nightclub_v29.webp');
  background-repeat:no-repeat;background-size:auto 100%;
 }
 body::before{left:0;background-position:left center;
  mask-image:linear-gradient(to right,#000 0%,#000 72%,transparent 100%);}
 body::after{right:0;background-position:right center;
  mask-image:linear-gradient(to left,#000 0%,#000 72%,transparent 100%);}
}

/* V72: responsive nightclub background; preserve the game layout. */
@media (max-width:600px){
 body{isolation:isolate;background:#190719;}
 body::before,body::after{
  content:'';position:fixed;top:0;bottom:0;width:50vw;
  z-index:-1;pointer-events:none;
  background-image:url('slutty_nightclub_v29.webp');
  background-repeat:no-repeat;
  background-size:auto 100%;
 }
 body::before{left:0;background-position:left center;
  mask-image:linear-gradient(to right,#000 0%,#000 70%,transparent 100%);}
 body::after{right:0;background-position:right center;
  mask-image:linear-gradient(to left,#000 0%,#000 70%,transparent 100%);}
}

/* V76: game rules dialog only. */
#help #introReplay {
    display: block;
    margin-inline: auto;
}
#help .dialog-close {
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
#help .dialog-close:hover,
#help .dialog-close:focus-visible {
    background: #a32b77;
    border-color: #ff9ed6;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 91, 183, .65);
}
@media (prefers-reduced-motion: reduce) {
    #help .dialog-close { transition: none; }
}
