/* Menu layout; game and result screens keep their existing layout. */
.wrap:has(#lobby:not([hidden])){
  max-width:760px;
  padding-top:clamp(1.9rem,5vh,2.85rem);
  padding-bottom:2rem;
}
.wrap:has(#lobby:not([hidden])) .head{
  margin-bottom:2.05rem;
}
#lobby{align-items:stretch;gap:.85rem}
#lobby .daily-row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;width:100%;
}
#lobby .daily-card{
  max-width:none;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:space-between;
  gap:.88rem;
  margin:0;
  padding:1.18rem 1.3rem;
  border-radius:16px;
  text-align:left;
  background:linear-gradient(135deg,rgba(var(--acc-rgb),.085),rgba(var(--acc-rgb),.03));
  border-color:rgba(var(--acc-rgb),.28);
  transition:background .16s,border-color .16s;
}
#lobby .daily-card:hover{
  background:linear-gradient(135deg,rgba(var(--acc-rgb),.125),rgba(var(--acc-rgb),.045));
  border-color:rgba(var(--acc-rgb),.46);
}
#lobby .daily-card.is-artist{
  background:linear-gradient(135deg,rgba(168,85,247,.1),rgba(168,85,247,.03));
  border-color:rgba(168,85,247,.32);
}
#lobby .daily-card.is-artist:hover{
  background:linear-gradient(135deg,rgba(168,85,247,.15),rgba(168,85,247,.045));
  border-color:rgba(168,85,247,.52);
}
#lobby .daily-card[data-done="win"]{
  border-color:rgba(37,224,125,.48);
}
#lobby .daily-card.is-artist[data-done="win"]{
  border-color:rgba(192,132,252,.56);
}
#lobby .daily-title-row{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.28rem;
}
#lobby .daily-heading{margin:0;min-width:0}
#lobby .daily-heading h2{font-size:1.28rem;line-height:1.2;margin:0}
#lobby .daily-heading .daily-meta{display:block;font-size:.83rem;color:#b4cbbd}
#lobby .daily-card.is-artist .daily-heading .daily-meta{color:#cbbde0}
#lobby .daily-done-badge{
  flex:none;padding:.18rem .55rem;border-radius:999px;font-size:.71rem;font-weight:800;
  background:rgba(37,224,125,.16);border:1px solid rgba(37,224,125,.4);color:#6df7ad;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
#lobby .daily-done-badge[hidden]{display:none}
#lobby .daily-done-badge.is-purple{
  background:rgba(168,85,247,.2);border-color:rgba(192,132,252,.45);color:#e9d5ff;
}
#lobby .daily-card[data-done="lose"] .daily-done-badge{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16);color:var(--dim);
}
#lobby .daily-note{margin:.32rem 0 0;font-size:.78rem;color:var(--dim);line-height:1.4;font-variant-numeric:tabular-nums}
#lobby #openDaily,
#lobby #openDailyArtist{
  width:100%;min-width:0;min-height:44px;padding:.62rem .9rem;box-shadow:none;white-space:nowrap;
  background:transparent;border:1px solid rgba(var(--acc-rgb),.6);color:var(--acc);font-size:.88rem;
}
#lobby #openDaily:hover{background:rgba(var(--acc-rgb),.1);border-color:var(--acc)}
#lobby #openDaily:active{background:rgba(var(--acc-rgb),.16)}
#lobby #openDailyArtist{
  border-color:rgba(168,85,247,.62);color:#d8b4fe;
}
#lobby #openDailyArtist:hover{background:rgba(168,85,247,.14);border-color:#d8b4fe}
#lobby #openDailyArtist:active{background:rgba(168,85,247,.2)}
#lobby .classic-section{
  position:relative;z-index:12;
  width:100%;padding:1.3rem 1.45rem;border-radius:16px;
  background:var(--surf);border:1px solid var(--line);
}
#lobby .classic-section:has(.multi-drop.is-open){z-index:40}
#lobby .classic-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.95rem;flex-wrap:wrap}
#lobby .classic-title-group{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
#lobby .classic-heading h2{margin:0;font-size:1.35rem;line-height:1.2}
#lobby .mode-pill{
  padding:.2rem .58rem;border-radius:999px;font-size:.72rem;font-weight:700;
  background:rgba(var(--acc-rgb),.12);border:1px solid rgba(var(--acc-rgb),.28);color:var(--acc-l);
}
#lobby .mode-pill.is-gold{
  background:rgba(245,177,61,.13);border-color:rgba(245,177,61,.3);color:#ffd06b;
}
#lobby .classic-seg{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06);padding:3px}
#lobby .classic-seg button{padding:.32rem .8rem;font-size:.76rem;border-radius:999px;color:var(--dim)}
#lobby .classic-seg button:hover{color:var(--ink)}
#lobby .classic-seg button[aria-pressed="true"]{background:rgba(255,255,255,.11);color:var(--ink)}
#lobby .classic-seg button[data-classic-tab="artist"][aria-pressed="true"]{background:rgba(61,182,245,.18);color:#8ad8ff}
#lobby .classic-controls{display:grid;grid-template-columns:minmax(0,1fr) 172px;align-items:center;gap:1.2rem}
#lobby .subcontrols{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
#lobby .drop{min-width:0;width:100%}
#lobby .drop.multi-drop{position:relative;display:block}
#lobby .drop.multi-drop::after{display:none}
#lobby .drop.multi-drop.is-open{z-index:60}
#lobby .multi-btn{
  width:100%;min-height:46px;font-size:.88rem;font-weight:600;
  padding:.65rem .95rem;border-radius:999px;
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  color:var(--dim);text-align:left;cursor:pointer;
  transition:background .16s,border-color .16s,color .16s;
}
#lobby .multi-btn:hover{background:rgba(255,255,255,.085);color:var(--ink)}
#lobby .multi-btn:focus-visible{outline:none;border-color:rgba(var(--acc-rgb),.65)}
#lobby .multi-btn[data-on="1"]{
  background:rgba(var(--acc-rgb),.11);border-color:rgba(var(--acc-rgb),.44);color:var(--ink);
}
#lobby .multi-btn[aria-expanded="true"]{
  background:rgba(255,255,255,.1);border-color:rgba(var(--acc-rgb),.58);color:var(--ink);
}
#lobby .multi-lbl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#lobby .multi-chev{
  width:16px;height:16px;flex:none;color:var(--dim);
  transition:transform .2s cubic-bezier(.2,.9,.3,1),color .16s;
}
#lobby .multi-btn[data-on="1"] .multi-chev,
#lobby .multi-btn[aria-expanded="true"] .multi-chev{color:var(--acc-l)}
#lobby .multi-btn[aria-expanded="true"] .multi-chev{transform:rotate(180deg)}
#lobby .multi-menu{
  position:absolute;top:calc(100% + 7px);left:0;z-index:70;
  min-width:max(100%,216px);max-width:min(280px,calc(100vw - 28px));
  padding:.4rem;border-radius:16px;
  background:linear-gradient(170deg,rgba(14,34,24,.98),rgba(7,17,12,.99));
  border:1px solid rgba(var(--acc-rgb),.28);
  box-shadow:0 24px 56px -12px rgba(0,0,0,.92),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  display:flex;flex-direction:column;gap:2px;
  animation:popMenu .16s cubic-bezier(.2,.9,.3,1);
}
#lobby #eraDrop .multi-menu{left:auto;right:0}
#lobby .multi-menu[hidden]{display:none}
@keyframes popMenu{from{opacity:0;transform:translateY(-4px) scale(.98)}}
body[data-anim="off"] #lobby .multi-menu{animation:none}
#lobby .multi-opt{
  width:100%;min-height:36px;padding:.44rem .62rem;border-radius:10px;
  display:flex;align-items:center;gap:.58rem;text-align:left;
  background:transparent;border:1px solid transparent;
  color:var(--dim);font-size:.83rem;font-weight:500;cursor:pointer;
  transition:background .12s,color .12s,border-color .12s;
}
#lobby .multi-opt:hover{background:rgba(255,255,255,.065);color:var(--ink)}
#lobby .multi-opt.is-on{
  background:rgba(var(--acc-rgb),.12);border-color:rgba(var(--acc-rgb),.24);
  color:var(--ink);font-weight:600;
}
#lobby .multi-check{
  width:16px;height:16px;border-radius:5px;flex:none;
  display:grid;place-items:center;
  border:1.5px solid rgba(255,255,255,.24);background:rgba(255,255,255,.03);
  color:#041e10;transition:background .12s,border-color .12s;
}
#lobby .multi-opt.is-on .multi-check{
  background:var(--acc);border-color:var(--acc);
}
#lobby .multi-check svg{width:11px;height:11px;opacity:0;transform:scale(.75);transition:opacity .12s,transform .12s}
#lobby .multi-opt.is-on .multi-check svg{opacity:1;transform:scale(1)}
#lobby .multi-opt-all .multi-check{border-radius:999px}
#lobby .multi-sep{height:1px;margin:.24rem .35rem;background:rgba(255,255,255,.08)}
#lobby .multi-foot{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  margin-top:.22rem;padding:.38rem .25rem .1rem .5rem;
  border-top:1px solid rgba(255,255,255,.08);
}
#lobby .multi-count{font-size:.72rem;color:var(--dim);font-weight:600}
#lobby .multi-done{
  margin-left:auto;min-height:30px;padding:.24rem .72rem;border-radius:999px;
  background:rgba(var(--acc-rgb),.16);border:1px solid rgba(var(--acc-rgb),.36);
  color:var(--acc-l);font-size:.74rem;font-weight:700;cursor:pointer;
  transition:background .14s,color .14s;
}
#lobby .multi-done:hover{background:var(--acc);color:#041e10}
#lobby .drop select{
  width:100%;min-height:46px;font-size:.88rem;padding:.65rem 2rem .65rem .95rem;
  border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06);
}
#lobby .drop select:hover{background:rgba(255,255,255,.085)}
#lobby .drop select[data-on="1"]{background:rgba(255,255,255,.1);border-color:rgba(var(--acc-rgb),.42);color:var(--ink)}
#lobby .start{margin:0;width:100%;min-height:46px;padding:.65rem 1rem;box-shadow:none;font-size:.88rem}
#lobby .poolinfo{margin:.75rem 0 0;min-height:0;text-align:left;line-height:1.45;font-size:.78rem;color:var(--dim)}
#lobby .poolinfo.warn{color:var(--warn)}
#lobby .artist-panel{
  display:grid;grid-template-columns:minmax(0,1fr) 172px;align-items:center;gap:1.2rem;
}
#lobby .artist-panel-copy{min-width:0}
#lobby .artist-panel-copy b{display:block;font-size:.94rem;font-weight:700;color:var(--ink);margin-bottom:.15rem}
#lobby .artist-panel-copy span{display:block;font-size:.8rem;color:var(--dim);line-height:1.4}
#lobby .artist-cta{
  width:100%;min-height:46px;padding:.65rem 1rem;border-radius:999px;
  background:#3db6f5;color:#04121b;font-weight:700;font-size:.88rem;
  display:inline-flex;align-items:center;justify-content:center;gap:.38rem;
  transition:background .16s,transform .16s;
}
#lobby .artist-cta:hover{background:#5ec8ff}
#lobby .artist-cta:active{transform:scale(.97)}
#lobby .artist-cta svg{width:16px;height:16px;flex:none}
#lobby .duel-card-wide{
  width:100%;margin:0;padding:1.25rem 1.45rem;border-radius:16px;
  display:grid;grid-template-columns:minmax(0,1fr) 172px;align-items:center;gap:1.2rem;text-align:left;
  background:linear-gradient(135deg,rgba(245,177,61,.075),rgba(255,255,255,.025));
  border:1px solid rgba(245,177,61,.26);
  transition:background .16s,border-color .16s;
}
#lobby .duel-card-wide:hover{
  background:linear-gradient(135deg,rgba(245,177,61,.12),rgba(255,255,255,.04));
  border-color:rgba(245,177,61,.48);
}
#lobby .duel-card-copy{min-width:0}
#lobby .duel-card-title{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin-bottom:.32rem}
#lobby .duel-card-title h2{margin:0;font-size:1.3rem;line-height:1.2;color:var(--ink)}
#lobby .duel-card-copy p{margin:0;font-size:.82rem;color:var(--dim);line-height:1.4}
#lobby .duel-cta-pill{
  width:100%;min-height:46px;padding:.65rem .9rem;border-radius:999px;
  background:transparent;border:1px solid rgba(245,177,61,.58);color:#ffd06b;
  font-size:.88rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  transition:background .16s,border-color .16s;
}
#lobby .duel-card-wide:hover .duel-cta-pill{background:rgba(245,177,61,.12);border-color:#ffd06b}
#lobby .duel-cta-pill svg{width:16px;height:16px;flex:none}
#lobby :is(button,select):focus-visible{outline:2px solid var(--acc);outline-offset:4px}
.title-with-ico{display:inline-flex;align-items:center;gap:.48rem;min-width:0}
.title-ico{width:20px;height:20px;flex:none;display:block;opacity:.95}
.title-ico.is-green{color:#35e88b}
.title-ico.is-gold{color:#ffd06b}
.title-ico.is-purple{color:#d8b4fe}
.btn-ico{width:14px;height:14px;flex:none;display:block;opacity:.88}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:.44rem}
.icon-btn .btn-ico{width:15px;height:15px}
#lobby .classic-seg button,
#duel .duel-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:.38rem}
#lobby .classic-seg button[aria-pressed="true"] .btn-ico,
#duel .duel-tabs button[aria-pressed="true"] .btn-ico{opacity:1}
.menu-stats{display:none}
.foot-menu-links{display:none}
.wrap:has(#lobby:not([hidden])) .foot-menu-links{display:flex;align-items:center;gap:1.05rem}
.wrap:has(#lobby:not([hidden])) .menu-stats{display:inline-flex;align-items:center;gap:.36rem;min-height:40px;padding:.4rem .2rem;background:transparent;border:0;color:var(--dim);font:inherit;font-size:.82rem}
.wrap:has(#lobby:not([hidden])) .menu-stats:hover{color:var(--acc)}
.wrap:has(#lobby:not([hidden])) .foot{width:100%;justify-content:space-between;margin-top:.55rem}
.wrap:has(#lobby:not([hidden])) .foot button:focus-visible{outline:2px solid var(--acc);outline-offset:4px}
.wrap:has(#lobby:not([hidden])) .vol{display:none}
.feedback-link{display:inline-flex;align-items:center;gap:.36rem}
.wrap:has(#lobby:not([hidden])) .feedback-link{min-height:40px;padding:.4rem .2rem;font-size:.82rem}
@media(max-width:560px){
  .wrap:has(#lobby:not([hidden])){padding:1.45rem 1rem 1.45rem}
  .wrap:has(#lobby:not([hidden])) .head{margin-bottom:1.35rem}
  .wrap:has(#lobby:not([hidden])) .logo{font-size:clamp(2.1rem,8.5vw,2.85rem)}
  #lobby{gap:.75rem}
  #lobby .daily-row{grid-template-columns:minmax(0,1fr);gap:.6rem}
  #lobby .daily-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:.98rem 1.05rem;gap:.65rem}
  #lobby .daily-title-row{justify-content:flex-start;flex-wrap:wrap;gap:.4rem;margin-bottom:.2rem}
  .title-ico{width:18px;height:18px}
  #lobby .daily-heading h2{font-size:1.1rem}
  #lobby .daily-heading .daily-meta{font-size:.79rem}
  #lobby .daily-note{font-size:.73rem;margin-top:.22rem}
  #lobby #openDaily,
  #lobby #openDailyArtist{width:auto;min-height:40px;padding:.52rem .82rem;font-size:.81rem;min-width:0;max-width:136px;white-space:normal}
  #lobby .classic-section{padding:1.05rem}
  #lobby .classic-heading{gap:.65rem}
  #lobby .classic-seg{width:100%;display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,.96fr) minmax(0,.88fr)}
  #lobby .classic-seg button{min-height:36px;padding:.38rem .24rem;font-size:.73rem;gap:.24rem;white-space:nowrap}
  #lobby .classic-seg button .btn-ico{width:12px;height:12px}
  #lobby .classic-controls{grid-template-columns:1fr;gap:.65rem}
  #lobby .subcontrols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
  #lobby .drop{max-width:none}
  #lobby .start{width:100%}
  #lobby .artist-panel{grid-template-columns:1fr;gap:.7rem}
  #lobby .duel-card-wide{grid-template-columns:minmax(0,1fr);padding:1.05rem 1.1rem;gap:.75rem}
  #lobby .duel-card-title h2{font-size:1.12rem}
  #lobby .duel-cta-pill{width:100%}
}
@media(max-width:350px){
  #lobby .daily-card{grid-template-columns:minmax(0,1fr)}
  #lobby #openDaily,
  #lobby #openDailyArtist{width:100%;max-width:none;justify-self:stretch}
}

/* Audio feedback stays visible while a request is pending or has failed. */
#retrySong,#resultRetry{min-height:44px;margin-top:.75rem}
#status{max-width:48ch;line-height:1.5;overflow-wrap:anywhere}
#resultAudioStatus{margin:0 0 .75rem;line-height:1.5}
#resultRetry{margin:0 0 1rem}
.playbtn[data-s="loading"]:disabled{filter:none;opacity:.8;cursor:wait}

/* ===== Main game arena: Mystery Vinyl + 5-slot board (Classic, Custom, Daily) ===== */
.wrap:has(#game:not([hidden])){
  max-width:860px;
  padding-top:clamp(1.6rem,4.5vh,2.4rem);
  padding-bottom:2rem;
}
.wrap:has(#game:not([hidden])) .head{margin-bottom:1.45rem}
.wrap:has(#game:not([hidden])) #game{align-items:stretch}
#game .gamebar{margin-bottom:1rem}
#game .backbtn{
  min-height:40px;padding:.45rem .95rem .45rem .72rem;border-radius:999px;
  background:var(--surf);border:1px solid var(--line);
}
#game .backbtn:hover{background:var(--surf2);border-color:rgba(var(--acc-rgb),.4)}
#game .gamemode{
  padding:.26rem .68rem;border-radius:999px;
  background:rgba(255,255,255,.045);border:1px solid var(--line);
  color:var(--dim);font-size:.74rem;font-weight:600;
}
#game .steps.live{
  display:grid;grid-template-columns:repeat(var(--step-cols,5),minmax(0,1fr));gap:.45rem;
  width:100%;margin:0 0 1.05rem;padding:0;
}
#game .steps.live.many{
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;
  gap:.38rem;width:100%;max-width:100%;
  overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  padding:.26rem .18rem .58rem;margin:0 0 .7rem;
  scrollbar-width:thin;
  scrollbar-color:rgba(var(--acc-rgb),.42) transparent;
}
#game .steps.live.many::-webkit-scrollbar{height:5px}
#game .steps.live.many::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px}
#game .steps.live.many::-webkit-scrollbar-thumb{background:rgba(var(--acc-rgb),.42);border-radius:999px}
#game .steps.live .arrow{display:none}
#game .steps.live li{
  width:100%;justify-content:center;
  padding:.44rem .35rem;border-radius:999px;
  font-size:.78rem;font-weight:700;
  color:var(--c,var(--dimmer));
  background:color-mix(in srgb,var(--c,var(--dimmer)) 13%,var(--bg));
  border:1.5px solid color-mix(in srgb,var(--c,var(--dimmer)) 24%,transparent);
}
#game .steps.live.many li{
  flex:1 0 46px;width:auto;min-width:46px;
  padding:.4rem .62rem;
  font-variant-numeric:tabular-nums;
}
#game .steps.live li.now{
  color:#05130c;background:var(--c);border-color:var(--c);
  box-shadow:0 6px 22px -6px var(--c);
}
#game .steps.live li.win{
  color:var(--c);border-color:var(--c);
  background:color-mix(in srgb,var(--c) 9%,transparent);
}
#game .steps.live li.lose{
  color:color-mix(in srgb,var(--c) 78%,transparent);
  border-color:color-mix(in srgb,var(--c) 35%,transparent);
  background:transparent;
}
.daily-game-pill{
  align-self:center;margin:0 0 1rem;
  display:inline-flex;align-items:center;gap:.48rem;
  padding:.36rem .92rem;border-radius:999px;font-size:.76rem;font-weight:700;
  background:rgba(var(--acc-rgb),.14);border:1px solid rgba(var(--acc-rgb),.34);color:var(--acc-l);
}
.daily-game-pill:has(.sp-pill-cover){padding:.24rem .86rem .24rem .28rem}
.sp-pill-cover{
  width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none;
  border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);
}
.arena-grid{
  display:grid;grid-template-columns:280px minmax(0,1fr);gap:1rem;align-items:stretch;width:100%;
}
.vinyl-card{
  padding:1.3rem 1.2rem;border-radius:20px;
  background:linear-gradient(160deg,rgba(var(--acc-rgb),.085),rgba(255,255,255,.025));
  border:1px solid rgba(var(--acc-rgb),.28);
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;gap:1rem;
}
.vinyl-top{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  font-size:.76rem;color:var(--dim);
}
.vinyl-top .stagenow{margin:0;text-align:left;font-size:.78rem;color:var(--dim);font-family:var(--fs)}
.vinyl-top .stagenow b{color:var(--ink)}
.clip-pill{
  flex:none;padding:.2rem .58rem;border-radius:999px;
  background:rgba(var(--acc-rgb),.15);border:1px solid rgba(var(--acc-rgb),.3);
  font-size:.74rem;font-weight:700;color:var(--acc-l);font-variant-numeric:tabular-nums;
}
.clip-pill small{color:rgba(var(--acc-rgb),.75);font-weight:600}
.spot-track{
  margin:0;width:100%;height:auto;overflow:visible;
  display:flex;flex-direction:column;align-items:stretch;
}
.track-bar-row{
  position:relative;width:100%;height:22px;display:flex;align-items:center;
  overflow:hidden;border-radius:999px;
}
.spot-track .track-rail{
  position:relative;width:100%;height:20px;border-radius:999px;
  background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.07);
  overflow:hidden;box-shadow:inset 0 2px 5px rgba(0,0,0,.35);
}
.spot-track .track-fill{
  border-radius:0;box-shadow:none;
  background:linear-gradient(90deg,var(--acc-d),var(--acc));
  transition:width .3s ease,opacity .22s ease;
}
.vinyl-card:has(.playbtn.playing) .spot-track .track-fill{opacity:.32}
.track-played{
  position:absolute;left:0;top:0;height:100%;width:0;z-index:1;
  background:linear-gradient(90deg,var(--acc-d),var(--acc-l));
}
.spot-track .track-seams{position:absolute;inset:0;z-index:2;pointer-events:none}
.spot-track .track-seams i{
  position:absolute;top:0;bottom:0;height:100%;width:1.5px;border-radius:0;
  background:rgba(4,12,8,.78);transform:translateX(-50%);
}
.spot-track .track-head{height:22px;z-index:3}
.spot-track .track-head::before{
  left:-1.5px;width:3px;height:22px;border-radius:99px;
  background:#f2fff8;box-shadow:0 0 10px 1px rgba(var(--acc-rgb),.95);
}
.track-caret-row{position:relative;width:100%;height:24px;margin-top:3px}
.track-caret{
  position:absolute;top:0;left:6%;transform:translateX(-50%);
  width:0;height:0;
  border-left:4.5px solid transparent;border-right:4.5px solid transparent;
  border-bottom:5.5px solid var(--acc);
  transition:left .3s ease;
}
.track-caret-lbl{
  position:absolute;top:8px;left:8%;transform:translateX(-50%);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.74rem;font-weight:800;color:var(--acc-l);line-height:1;
  white-space:nowrap;font-variant-numeric:tabular-nums;
  transition:left .3s ease;
}
.vinyl-card .player{width:100%;justify-content:center;padding:.25rem 0}
.spot-play-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center}
.vinyl-card .playbtn{
  position:relative;z-index:1;width:112px;height:112px;
  box-shadow:0 0 36px -6px rgba(var(--acc-rgb),.65);
}
.vinyl-card .playbtn.playing{box-shadow:0 0 0 12px rgba(var(--acc-rgb),.15),0 0 42px -4px rgba(var(--acc-rgb),.8)}
.vinyl-card .playbtn svg{width:44%;height:44%}
.vinyl-card .spot-readout{
  position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:1.02rem;font-weight:800;color:var(--acc-l);
  white-space:nowrap;font-variant-numeric:tabular-nums;
  text-shadow:0 0 18px rgba(var(--acc-rgb),.35);
}
.vinyl-foot{width:100%;display:flex;flex-direction:column;align-items:center;gap:.35rem}
.vinyl-foot .status{margin:0;min-height:1.25em;font-size:.78rem;color:var(--dim)}
.vinyl-foot #retrySong{margin-top:.25rem}

.guess-card{
  padding:1.2rem;border-radius:20px;background:var(--surf);border:1px solid var(--line);
  display:flex;flex-direction:column;gap:.75rem;min-width:0;
}
#game .guessbar{margin:0;width:100%;gap:.5rem}
#game .search{flex:1 1 100%}
#game #q{
  padding:.78rem 2.4rem .78rem 2.65rem;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:.92rem;
}
#game #q:focus{border-color:rgba(var(--acc-rgb),.55);background:rgba(255,255,255,.08)}
#game .guesses{display:none!important}
.board-slots{list-style:none;margin:0;padding:0;display:grid;gap:.44rem;flex:1}
.slot{
  display:flex;align-items:center;gap:.62rem;min-height:42px;padding:.45rem .75rem;
  border-radius:11px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.025);
  font-size:.84rem;min-width:0;
}
.slot.active{background:rgba(var(--acc-rgb),.08);border-color:rgba(var(--acc-rgb),.45)}
.slot.near{background:rgba(245,177,61,.08);border-color:rgba(245,177,61,.4)}
.slot.wrong{background:rgba(242,85,90,.07);border-color:rgba(242,85,90,.32)}
.slot.right{background:rgba(var(--acc-rgb),.14);border-color:rgba(var(--acc-rgb),.48)}
.slot.skip{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.1)}
.slot.locked{opacity:.48}
.slot-n{
  flex:none;width:21px;height:21px;border-radius:6px;display:grid;place-items:center;
  background:rgba(255,255,255,.07);font-size:.72rem;font-weight:700;color:var(--dim);
}
.slot.active .slot-n{background:var(--acc);color:#04120a}
.slot.right .slot-n{background:rgba(var(--acc-rgb),.22);color:var(--acc)}
.slot.near .slot-n{background:rgba(245,177,61,.2);color:var(--warn)}
.slot.wrong .slot-n{background:rgba(242,85,90,.18);color:var(--bad)}
.slot-txt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot-txt b{font-weight:600;color:var(--ink)}
.slot-txt small{color:var(--dim)}
.slot-active-lbl,.slot-skip{color:var(--dim)}
.slot-pill.warn{
  flex:none;padding:.14rem .45rem;border-radius:999px;
  background:rgba(245,177,61,.16);color:var(--warn);font-size:.68rem;font-weight:700;
}
.slot-len{flex:none;font-size:.72rem;font-weight:700;color:var(--dimmer);font-variant-numeric:tabular-nums}
.slot-len.on{color:var(--acc)}
#game .skip-wide{
  width:100%;min-height:44px;border-radius:12px;padding:.6rem 1rem;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
}
#game .skip-wide:hover:not(:disabled){background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.18)}
.wrap:has(#game:not([hidden])) .foot{width:100%;justify-content:space-between;margin-top:1.45rem}
.wrap:has(#game:not([hidden])) .vol{background:var(--surf);border:1px solid var(--line);padding:.26rem .85rem .26rem .35rem}
@media(max-width:680px){
  .wrap:has(#game:not([hidden])){padding:1.05rem .9rem 1.25rem}
  .wrap:has(#game:not([hidden])) .head{margin-bottom:.75rem}
  .wrap:has(#game:not([hidden])) .logo{font-size:1.9rem}
  #game .gamebar{margin-bottom:.65rem}
  #game .gamemode{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #game .steps.live{gap:.24rem;margin-bottom:.68rem}
  #game .steps.live li{padding:.38rem .1rem;font-size:.63rem;letter-spacing:-.01em}
  #game .steps.live.many{gap:.32rem;margin-bottom:.52rem;padding:.18rem .1rem .46rem}
  #game .steps.live.many li{flex:1 0 40px;min-width:40px;padding:.36rem .52rem;font-size:.72rem}
  .daily-game-pill{margin-bottom:.65rem;padding:.28rem .78rem;font-size:.72rem}
  .arena-grid{grid-template-columns:1fr;gap:.68rem}
  .vinyl-card{
    padding:.82rem .92rem;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;
  }
  .vinyl-top{width:100%}
  .vinyl-top .stagenow{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .spot-track .track-rail{height:17px}
  .track-caret-row{height:21px;margin-top:2px}
  .vinyl-card .player{width:100%;justify-content:center;padding:.06rem 0}
  .vinyl-card .playbtn{width:84px;height:84px}
  .vinyl-card .spot-readout{font-size:.92rem;left:calc(100% + 10px)}
  .vinyl-foot{width:100%;align-items:stretch}
  .vinyl-foot .status{text-align:center;font-size:.75rem}
  .guess-card{padding:.85rem;gap:.55rem}
  #game .guessbar{margin-top:0}
  #game #q,#agQ,#artistQ{font-size:16px}
  .board-slots{gap:.34rem}
  .slot{min-height:38px;padding:.38rem .65rem;font-size:.8rem}
  .slot-txt{white-space:normal;overflow-wrap:anywhere}
  .wrap:has(#game:not([hidden])) .foot{margin-top:.95rem}
}
#coverPlay[aria-busy="true"] .cover-play svg{visibility:hidden}
#coverPlay[aria-busy="true"] .cover-play::after{
  content:'';position:absolute;width:24px;height:24px;border:2px solid currentColor;
  border-right-color:transparent;border-radius:50%;animation:spin .85s linear infinite;
}
.reveal{max-height:calc(100dvh - 2rem);overflow-y:auto;overflow-x:hidden;min-width:0}
.reveal :is(.r-title,.r-artist){max-width:100%;overflow-wrap:anywhere}
.dd-txt{overflow-wrap:anywhere}
.dd-txt small{white-space:normal;overflow-wrap:anywhere;color:var(--dim)}
@media(max-width:520px){
  .modal{padding:.75rem}
  .sheet:not(.run-sheet){max-height:calc(100dvh - 1.5rem);padding:2.75rem 1rem 1.25rem}
  .sheet:not(.run-sheet) .x{width:44px;height:44px;top:4px;right:4px}
  .sheet:not(.run-sheet) .r-actions{width:100%;gap:.75rem}
  .r-actions .btn{flex:1 1 100%;white-space:normal;min-height:48px}
  .guessbar{gap:.75rem;margin-top:1.25rem}
  .guessbar .search{flex-basis:100%}
  #q,#artistQ{font-size:16px;padding-right:3.75rem}
  .clear{width:44px;height:44px;right:6px}
  .dd{max-height:min(45dvh,320px)}
  .dd-item{min-height:56px}
  .guesses{margin-top:.85rem;gap:.38rem}
  .guesses li{min-height:40px;padding:.44rem .72rem;font-size:.83rem}
  .g-txt{white-space:normal;overflow-wrap:anywhere}
  .runlist:not(.run-shelf) .thumb{width:40px;height:40px}
  .runlist:not(.run-shelf) li{padding:.65rem;gap:.5rem}
  .runlist:not(.run-shelf) .at{padding:.3rem .45rem;max-width:5rem}
  #gameMode,#stageNow{overflow-wrap:anywhere;min-width:0}
}
body[data-anim="off"] #coverPlay[aria-busy="true"] .cover-play::after,
body[data-anim="off"] .duel-play .ico-load{animation:none}
body[data-anim="off"] #lobby .artist-cta,
body[data-anim="off"] #lobby .duel-card-wide,
body[data-anim="off"] #lobby .duel-cta-pill{transition:none}
@media(max-width:600px){
  .duel-prompt{margin-bottom:.9rem;font-size:.82rem}
  .duel-grid{grid-template-columns:1fr;gap:.55rem}
  .duel-card{padding:.95rem}
  #duelA{
    display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;text-align:left;gap:.75rem;
    padding:.75rem .95rem;
  }
  #duelA .duel-art-wrap{width:64px;height:64px;border-radius:10px}
  #duelA .duel-play{width:34px;height:34px}
  #duelA .duel-play svg{width:16px;height:16px}
  #duelA .duel-metric{margin-top:0;align-items:flex-end;text-align:right}
  #duelA .duel-year{font-size:1.45rem}
  #duelA .duel-sub{font-size:.64rem;white-space:nowrap}
  .duel-vs{padding:.22rem .65rem;font-size:.66rem}
  #duelB .duel-art-wrap{width:94px;height:94px}
  #duelB .duel-year{font-size:1.85rem}
  .duel-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== Stage reveal modal: Unified Compact Card (desktop + mobile) ===== */
#resultModal{background:rgba(4,11,7,.9);backdrop-filter:blur(10px)}
#resultModal .confetti{z-index:3}
#resultModal .artbg.on{opacity:.22}
#resultModal .reveal{
  width:min(468px,100%);padding:1.5rem 1.45rem 1.35rem;
  border-radius:24px;text-align:left;display:block;
  background:linear-gradient(170deg,rgba(16,34,24,.97),rgba(8,19,13,.99));
  border:1px solid rgba(var(--acc-rgb),.34);
  box-shadow:0 36px 90px -20px rgba(0,0,0,.92), inset 0 1px 0 rgba(255,255,255,.08);
  max-height:calc(100dvh - 2rem);overflow-y:auto;overflow-x:hidden;
}
#resultModal .reveal.lose{border-color:rgba(242,85,90,.36)}
#resultModal .reveal .x{
  position:absolute;top:14px;right:14px;z-index:3;
  width:36px;height:36px;border-radius:999px;display:grid;place-items:center;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
  color:var(--dim);font-size:1.3rem;line-height:1;
}
#resultModal .reveal .x:hover{background:rgba(255,255,255,.14);color:#fff}
.reveal-grid{
  display:grid;grid-template-columns:146px minmax(0,1fr);gap:.92rem 1.05rem;align-items:center;
}
.reveal-sleeve{position:relative;grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:flex-start;width:146px}
.reveal-disc{
  display:block;
  position:absolute;right:6px;z-index:0;width:110px;height:110px;border-radius:50%;overflow:hidden;
  background:#09100c;
  border:1px solid rgba(255,255,255,.22);box-shadow:0 12px 28px rgba(0,0,0,.82);
  transition:transform .38s cubic-bezier(.2,.9,.3,1);
}
.reveal-disc::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:
    conic-gradient(from 0deg,transparent 0deg,rgba(255,255,255,.24) 28deg,transparent 62deg,transparent 170deg,rgba(255,255,255,.18) 202deg,transparent 236deg,transparent 360deg),
    repeating-radial-gradient(circle,transparent 0 3.5px,rgba(255,255,255,.09) 4px 5px),
    radial-gradient(circle,#13211a 0 65%,#070d09 100%);
  animation:spin 3.2s linear infinite;animation-play-state:paused;
}
.reveal-sleeve:has([data-playing="1"]) .reveal-disc{transform:translateX(10px)}
.reveal-sleeve:has([data-playing="1"]) .reveal-disc::before{animation-play-state:running}
#resultModal .cover-wrap{
  position:relative;z-index:2;width:116px;height:116px;margin:0;border-radius:14px;
  background:#0b1911;
}
#resultModal .cover{width:116px;height:116px;border-radius:13px;box-shadow:0 16px 36px -10px rgba(0,0,0,.88)}
#resultModal .cover-ring{
  border-radius:14px;
  box-shadow:0 0 0 2.5px rgba(var(--acc-rgb),.82), 0 16px 36px -10px rgba(var(--acc-rgb),.42);
}
#resultModal .reveal.lose .cover-ring{
  box-shadow:0 0 0 2.5px rgba(242,85,90,.78), 0 16px 36px -10px rgba(242,85,90,.34);
}
#resultModal .cover-play{width:44px;height:44px}
#resultModal .cover-play svg{width:18px;height:18px}
.reveal-info{display:contents}
.reveal-head{display:contents}
.reveal-tags{
  grid-column:1 / -1;grid-row:1;
  display:flex;align-items:center;gap:.48rem;flex-wrap:wrap;
  padding-right:2.55rem;min-height:28px;
}
.reveal-copy{
  grid-column:2;grid-row:2;min-width:0;
  display:flex;flex-direction:column;gap:.26rem;justify-content:center;
}
#resultModal .kicker{margin:0;font-size:.72rem;font-weight:800;letter-spacing:.14em}
#resultModal .badge{
  margin:0;padding:.22rem .66rem;border-radius:999px;font-size:.72rem;font-weight:700;
  letter-spacing:.03em;text-transform:none;transform:none;animation:none;
  background:rgba(var(--acc-rgb),.15);border:1px solid rgba(var(--acc-rgb),.36);
  color:var(--acc-l);text-shadow:none;box-shadow:none;
}
#resultModal .badge.lose{
  background:rgba(242,85,90,.14);border-color:rgba(242,85,90,.38);color:#ff8a8e;
  transform:none;text-shadow:none;box-shadow:none;
}
#resultModal .r-title{font-size:clamp(1.24rem,3vw,1.48rem);line-height:1.16}
#resultModal .r-artist{margin:0;font-size:.83rem;line-height:1.4}
#resultModal .streak-note{margin:.28rem 0 0;width:fit-content;max-width:100%;font-size:.71rem;white-space:nowrap}
.reveal-body{grid-column:1 / -1;grid-row:3;min-width:0;display:flex;flex-direction:column;gap:.72rem}
#resultModal #resultAudioStatus{margin:0;text-align:left;font-size:.8rem}
#resultModal #resultRetry{margin:0;align-self:flex-start}
#resultModal .challenge-comparison{margin:0;font-size:.82rem;text-align:left}
#resultModal .r-actions{margin:0;display:flex;flex-direction:column-reverse;gap:.55rem}
#resultModal .r-actions .btn{width:100%;min-height:46px;padding:.65rem 1rem;font-size:.88rem}
#resultModal #next{flex:1 1 auto;min-width:118px}
.reveal-foot{
  display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:nowrap;
  padding-top:.72rem;border-top:1px solid rgba(255,255,255,.08);
}
#resultModal .listenlink{
  margin:0;border-bottom:0;font-size:.78rem;color:var(--dim);
  display:inline-flex;align-items:center;gap:.36rem;white-space:nowrap;flex:none;
}
#resultModal .listenlink:hover{color:var(--ink);text-decoration:underline}
#resultModal .report-song{
  margin:0;padding:.2rem 0;min-height:32px;font-size:.78rem;
  display:inline-flex;align-items:center;gap:.36rem;white-space:nowrap;flex:none;
}
@media(max-width:560px){
  #resultModal .reveal{padding:1.25rem 1.1rem 1.1rem;border-radius:20px}
  #resultModal .reveal .x{top:10px;right:10px;width:34px;height:34px}
  .reveal-grid{grid-template-columns:112px minmax(0,1fr);gap:.8rem .82rem;align-items:center}
  .reveal-sleeve{width:112px}
  .reveal-disc{width:84px;height:84px;right:4px}
  .reveal-sleeve:has([data-playing="1"]) .reveal-disc{transform:translateX(7px)}
  #resultModal .cover-wrap{width:88px;height:88px;border-radius:13px}
  #resultModal .cover{width:88px;height:88px;border-radius:12px}
  #resultModal .cover-ring{border-radius:13px}
  #resultModal .cover-play{width:36px;height:36px}
  #resultModal .cover-play svg{width:15px;height:15px}
  .reveal-tags{padding-right:2.35rem;gap:.42rem}
  .reveal-copy{gap:.22rem}
  #resultModal .r-title{font-size:1.15rem;line-height:1.18}
  #resultModal .r-artist{font-size:.77rem;line-height:1.38}
  #resultModal .streak-note{font-size:.67rem;padding:.2rem .52rem;margin-top:.22rem}
  .reveal-body{gap:.66rem}
  .reveal-foot{padding-top:.65rem}
}
body[data-anim="off"] .reveal-disc{transition:none}
body[data-anim="off"] .reveal-disc::before,
body[data-anim="off"] .fan-disc::before{animation:none}

/* ====== Global Dark Scrollbar & Frosted Modal Unity ====== */
:root{color-scheme:dark}
*{scrollbar-width:thin;scrollbar-color:rgba(143,174,157,.26) transparent}
*::-webkit-scrollbar{width:6px;height:6px}
*::-webkit-scrollbar-track{background:transparent;margin:12px 0}
*::-webkit-scrollbar-thumb{background:rgba(143,174,157,.24);border-radius:999px}
*::-webkit-scrollbar-thumb:hover{background:rgba(143,174,157,.42)}
.modal{background:rgba(4,10,7,.78);backdrop-filter:blur(10px);overflow:clip}

/* ====== Run Result & Duel Summary: Unified Compact Card (PC + Mobile) ====== */
#runModal{--acc:#25e07d;--acc-l:#41f596;--acc-d:#12b862;--acc-rgb:37,224,125}
.sheet.run-sheet{
  width:min(440px,100%);
  max-height:calc(100dvh - 1.5rem);
  display:flex;flex-direction:column;
  overflow:hidden;
  padding:1.2rem 1.15rem 1.05rem;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(165deg,rgba(16,38,26,.96),rgba(7,17,12,.98));
  box-shadow:0 36px 90px -18px rgba(0,0,0,.92),inset 0 1px 0 rgba(255,255,255,.09);
  text-align:left;
}
.sheet.run-sheet .x{
  top:14px;right:14px;width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.11);
  color:var(--dim);font-size:1.25rem;display:grid;place-items:center;
}
.sheet.run-sheet .x:hover{background:rgba(255,255,255,.14);color:var(--ink)}

.run-hero{
  flex:none;
  display:grid;grid-template-columns:auto minmax(0,1fr);
  column-gap:.88rem;row-gap:.34rem;align-items:center;
  padding:0 0 .78rem 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:.78rem;
}
.run-fan{position:relative;grid-column:1;grid-row:2;width:102px;height:74px;flex:none}
.run-fan.count-2{width:88px}
.run-fan.single{width:92px;height:76px}
.run-fan .fan-card{
  position:absolute;top:6px;width:58px;height:58px;border-radius:10px;object-fit:cover;
  background:linear-gradient(145deg,#132c1e,#0a1710);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 26px rgba(0,0,0,.68);
}
.run-fan .f1{left:0;transform:rotate(-8deg);z-index:1;filter:brightness(.74)}
.run-fan .f2{left:18px;top:2px;z-index:3;transform:scale(1.06)}
.run-fan .f3{left:36px;transform:rotate(8deg);z-index:2;filter:brightness(.82)}
.run-fan.count-2 .f1{left:0;transform:rotate(-7deg)}
.run-fan.count-2 .f2{left:20px;top:3px;transform:rotate(3deg)}
.run-fan.single .f2{left:0;top:1px;width:72px;height:72px;transform:none;z-index:2}
.fan-disc{
  position:absolute;right:0;top:6px;width:58px;height:58px;border-radius:50%;z-index:0;overflow:hidden;
  background:#09100c;border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 24px rgba(0,0,0,.65);transition:transform .35s cubic-bezier(.2,.9,.3,1);
}
.fan-disc::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:
    conic-gradient(from 0deg,transparent 0deg,rgba(255,255,255,.18) 28deg,transparent 62deg,transparent 170deg,rgba(255,255,255,.13) 202deg,transparent 236deg,transparent 360deg),
    repeating-radial-gradient(circle,transparent 0 2.5px,rgba(255,255,255,.07) 3px 4px),
    radial-gradient(circle,#111d16 0 65%,#070d09 100%);
  animation:spin 3.2s linear infinite;animation-play-state:paused;
}
.sheet.run-sheet:has(li.is-playing) .fan-disc{transform:translateX(8px)}
.sheet.run-sheet:has(li.is-playing) .fan-disc::before{animation-play-state:running}

.run-head{display:contents}
.run-kicker{
  grid-column:1 / -1;grid-row:1;justify-self:start;
  display:inline-block;width:fit-content;max-width:calc(100% - 2.75rem);
  padding:.22rem .66rem;border-radius:999px;
  font-size:.66rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  background:rgba(37,224,125,.12);border:1px solid rgba(37,224,125,.28);color:#41f596;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.run-kicker[data-mode="custom"]{
  background:rgba(61,182,245,.12);border-color:rgba(61,182,245,.32);color:#70ccff;
}
.run-kicker[data-mode="duel"]{
  background:rgba(245,177,61,.13);border-color:rgba(245,177,61,.32);color:#ffd06b;
}
.run-scoreline{grid-column:2;grid-row:2;display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;margin-top:0}
.sheet.run-sheet .verdict{
  margin:0;font-family:'Cabinet Grotesk',var(--fs);
  font-size:clamp(1.26rem,3vw,1.58rem);font-weight:800;letter-spacing:-.025em;color:var(--ink);
}
.sheet.run-sheet .verdict.lose{color:var(--ink)}
.sheet.run-sheet .runscore{margin:0;justify-content:flex-start;gap:.2rem}
.sheet.run-sheet .runscore b{
  font-family:'Cabinet Grotesk',var(--fs);font-size:clamp(1.75rem,4vw,2.15rem);
  color:#25e07d;text-shadow:0 0 28px rgba(37,224,125,.35);
}
#duelModal .runscore b{color:#ffd06b;text-shadow:0 0 28px rgba(245,177,61,.32)}
.sheet.run-sheet .runscore span{font-size:.84rem;color:var(--dim)}
.sheet.run-sheet #dailyResult,
.sheet.run-sheet .challenge-comparison{grid-column:1 / -1;grid-row:3;margin:.14rem 0 0;font-size:.82rem;line-height:1.45;text-align:left;max-width:none}

.runlist.run-shelf{
  margin:0;padding:0 2px 0 0;list-style:none;
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;
}
.runlist.run-shelf[data-many="true"]{
  max-height:min(44vh,360px);overflow-y:auto;padding-right:4px;
  overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent;
}
.runlist.run-shelf[data-many="true"]::-webkit-scrollbar{width:6px}
.runlist.run-shelf[data-many="true"]::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px}
.runlist.run-shelf[data-many="true"]::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px}
.runlist.run-shelf.duel-runlist{
  max-height:min(42vh,340px);overflow-y:auto;padding-right:4px;margin:0;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.runlist.run-shelf.duel-runlist:is([data-count="1"],[data-count="2"],[data-count="3"],[data-count="4"],[data-count="5"]){
  max-height:none;overflow:visible;padding-right:0;
}
.runlist.run-shelf[data-odd="true"] li:last-child{
  grid-column:1 / -1;
  display:grid;grid-template-columns:56px minmax(0,1fr) auto auto;grid-template-rows:auto auto;
  align-items:center;column-gap:.7rem;row-gap:.08rem;padding:.52rem .72rem;
}
.runlist.run-shelf[data-odd="true"] li:last-child .run-artwrap{display:contents}
.runlist.run-shelf[data-odd="true"] li:last-child .thumb{grid-column:1;grid-row:1 / 3;width:56px;height:56px;border-radius:10px}
.runlist.run-shelf[data-odd="true"] li:last-child .lvl{position:static;grid-column:2;grid-row:1;justify-self:start;padding:0;background:none;border:0;backdrop-filter:none;font-size:.63rem}
.runlist.run-shelf[data-odd="true"] li:last-child .txt{grid-column:2;grid-row:2;padding:0}
.runlist.run-shelf[data-odd="true"] li:last-child .run-playbtn{position:static;grid-column:3;grid-row:1 / 3;width:32px;height:32px}
.runlist.run-shelf[data-odd="true"] li:last-child .at{position:static;grid-column:4;grid-row:1 / 3;padding:.24rem .62rem;font-size:.73rem}
.runlist.run-shelf li{
  position:relative;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:.48rem;
  padding:.5rem;border-radius:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);
  text-align:left;
}
.runlist.run-shelf li.win{
  background:rgba(37,224,125,.06);border-color:rgba(37,224,125,.28);
}
.runlist.run-shelf li.lose{
  background:rgba(242,85,90,.035);border-color:rgba(242,85,90,.16);
}
.run-artwrap{
  position:relative;aspect-ratio:1;width:100%;border-radius:11px;overflow:hidden;
  background:rgba(255,255,255,.04);
}
.runlist.run-shelf .thumb{
  width:100%;height:100%;border-radius:11px;object-fit:cover;display:block;
  box-shadow:none;
}
.runlist.run-shelf .thumb.ph{display:grid;place-items:center}
.runlist.run-shelf .thumb.ph::after{font-size:1.8rem}
.runlist.run-shelf li.lose .thumb{filter:grayscale(.68) brightness(.72)}
.runlist.run-shelf li .lvl{
  position:absolute;top:6px;left:6px;z-index:2;
  padding:.16rem .46rem;border-radius:999px;
  background:rgba(5,14,10,.84);backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12);
  font-size:.58rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--lvl-c,#8fae9d);
}
.runlist.run-shelf li[data-diff="easy"]      {--lvl-c:#25e07d}
.runlist.run-shelf li[data-diff="medium"]    {--lvl-c:#e3c74a}
.runlist.run-shelf li[data-diff="hard"]      {--lvl-c:#f08a3c}
.runlist.run-shelf li[data-diff="expert"]    {--lvl-c:#ef5b60}
.runlist.run-shelf li[data-diff="impossible"]{--lvl-c:#9b7bf5}
.runlist.run-shelf li[data-diff="custom"]    {--lvl-c:#3db6f5}
.runlist.run-shelf li[data-diff="daily"]     {--lvl-c:#25e07d}
.runlist.run-shelf li[data-diff="duel"]      {--lvl-c:#f5b13d}
.runlist.run-shelf .at{
  position:absolute;bottom:6px;right:6px;z-index:2;
  padding:.17rem .48rem;border-radius:999px;
  font-size:.66rem;font-weight:800;line-height:1.15;
  background:rgba(37,224,125,.92);color:#042312;
}
.runlist.run-shelf li.lose .at{
  background:rgba(12,16,15,.88);color:#ff8f93;
  border:1px solid rgba(242,85,90,.42);backdrop-filter:blur(6px);
}
.runlist.run-shelf .txt{flex:0 0 auto;min-width:0;padding:0 .1rem;gap:1px}
.runlist.run-shelf .txt b{font-size:.82rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.runlist.run-shelf .txt small{font-size:.72rem;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 1-song showcase (Daily, 1-song Spotify, or early-finish 1-song run) */
.runlist.run-shelf[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.runlist.run-shelf[data-count="1"] li{
  display:grid;grid-template-columns:76px minmax(0,1fr) auto auto;grid-template-rows:auto auto;
  align-items:center;column-gap:.75rem;row-gap:.15rem;padding:.7rem .95rem;
}
.runlist.run-shelf[data-count="1"] .run-artwrap{display:contents}
.runlist.run-shelf[data-count="1"] .thumb{grid-column:1;grid-row:1 / 3;width:76px;height:76px;border-radius:12px}
.runlist.run-shelf[data-count="1"] li .lvl{position:static;grid-column:2;grid-row:1;justify-self:start;padding:0;background:none;border:0;backdrop-filter:none;font-size:.66rem;color:var(--lvl-c,#25e07d)}
.runlist.run-shelf[data-count="1"] .txt{grid-column:2;grid-row:2;padding:0}
.runlist.run-shelf[data-count="1"] .txt b{font-size:1rem;white-space:normal}
.runlist.run-shelf[data-count="1"] .txt small{font-size:.82rem;white-space:normal}
.runlist.run-shelf[data-count="1"] .run-playbtn{position:static;grid-column:3;grid-row:1 / 3;width:34px;height:34px}
.runlist.run-shelf[data-count="1"] .at{position:static;grid-column:4;grid-row:1 / 3;padding:.3rem .75rem;font-size:.78rem}

/* Daily 1-song showcase: kartu kompak 468px seragam dengan #resultModal */
.sheet.run-sheet[data-mode="daily"]{width:min(468px,100%)}
.sheet.run-sheet[data-mode="daily"] .runscore{display:none}
.sheet.run-sheet[data-mode="daily"] .run-hero{column-gap:.95rem;padding:0 0 .9rem 0;margin-bottom:.9rem}
.sheet.run-sheet[data-mode="daily"] .run-fan.single{width:104px;height:86px}
.sheet.run-sheet[data-mode="daily"] .run-fan.single .f2{
  width:82px;height:82px;top:1px;left:0;border-radius:13px;
  box-shadow:0 0 0 2px rgba(37,224,125,.72),0 14px 30px rgba(0,0,0,.72);
}
.sheet.run-sheet[data-mode="daily"][data-won="false"] .run-fan.single .f2{
  box-shadow:0 0 0 2px rgba(242,85,90,.72),0 14px 30px rgba(0,0,0,.72);
  filter:grayscale(.45) brightness(.8);
}
.sheet.run-sheet[data-mode="daily"] .fan-disc{width:76px;height:76px;top:4px;right:0}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] li{grid-template-columns:minmax(0,1fr) auto;padding:.68rem .9rem}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] .thumb{display:none}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] li .lvl{grid-column:1}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] .txt{grid-column:1}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] .at{grid-column:2}

.run-foot{
  flex:none;
  display:flex;flex-direction:column;align-items:stretch;gap:.5rem;
  margin-top:.82rem;padding-top:.78rem;border-top:1px solid rgba(255,255,255,.08);
}
.sheet.run-sheet .r-actions{
  margin:0;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.28fr);gap:.55rem;width:100%;
}
.sheet.run-sheet .r-actions .btn{width:100%;justify-content:center;text-align:center;min-height:44px;padding:.6rem .78rem;font-size:.85rem;white-space:nowrap}
.share-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.46rem;
  border-color:rgba(var(--acc-rgb),.48);color:var(--acc-l);
  background:rgba(var(--acc-rgb),.08);
}
.share-btn:hover{
  background:rgba(var(--acc-rgb),.16);border-color:var(--acc);color:#fff;
}
.share-btn svg{width:15px;height:15px;flex:none;fill:currentColor}
#duelModal .share-btn{
  border-color:rgba(245,177,61,.5);color:#ffd06b;background:rgba(245,177,61,.09);
}
#duelModal .share-btn:hover{
  background:rgba(245,177,61,.18);border-color:#ffd06b;color:#fff6dc;
}
#artistGame .share-btn{
  border-color:rgba(168,85,247,.52);color:#e4c4ff;background:rgba(168,85,247,.1);
}
#artistGame .share-btn:hover{
  background:rgba(168,85,247,.2);border-color:#c084fc;color:#fff;
}
#resultModal .r-actions #next{min-width:168px}
.sheet.run-sheet .run-foot-links{
  display:grid;grid-template-columns:1fr;gap:.55rem;width:100%;margin-left:0;
}
.sheet.run-sheet .customlink{width:100%;justify-content:center;text-align:center;margin:0;padding:.52rem .92rem;font-size:.82rem;min-height:42px;white-space:nowrap}
.sheet.run-sheet #backToMenu,
.sheet.run-sheet #duelMenu{
  color:var(--dim);border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.03);
}
.sheet.run-sheet #backToMenu:hover,
.sheet.run-sheet #duelMenu:hover{
  color:var(--ink);border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.07);
}
/* Daily modal is compact (580px): 2-button primary row + full-width Back to menu */
.sheet.run-sheet[data-mode="daily"] .run-foot{
  flex-direction:column;align-items:stretch;gap:.55rem;
}
.sheet.run-sheet[data-mode="daily"] .r-actions{
  display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.28fr);gap:.55rem;width:100%;margin-left:0;
}
.sheet.run-sheet[data-mode="daily"] .run-foot-links{
  display:grid;grid-template-columns:1fr;gap:.55rem;width:100%;margin-left:0;
}
.sheet.run-sheet[data-mode="daily"] .r-actions .btn,
.sheet.run-sheet[data-mode="daily"] .customlink{
  width:100%;justify-content:center;text-align:center;padding:.6rem .78rem;
}
@media(max-width:820px){
  .run-foot{flex-direction:column;align-items:stretch;gap:.55rem}
  .sheet.run-sheet .r-actions{
    display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.28fr);gap:.55rem;width:100%;margin-left:0;
  }
  .sheet.run-sheet .run-foot-links{
    display:grid;grid-template-columns:1fr;gap:.55rem;width:100%;margin-left:0;
  }
  .sheet.run-sheet .r-actions .btn,
  .sheet.run-sheet .customlink{width:100%;justify-content:center;text-align:center}
}

@media(max-width:680px){
  .sheet.run-sheet{padding:1.15rem .95rem .95rem;border-radius:20px;max-height:calc(100dvh - 1.5rem)}
  .sheet.run-sheet .x{top:10px;right:10px;width:36px;height:36px}
  .run-hero{gap:.78rem;padding:0 2.6rem .78rem 0;margin-bottom:.75rem}
  .run-kicker{font-size:.61rem;letter-spacing:.05em;padding:.16rem .5rem}
  .run-fan{width:98px;height:70px}
  .run-fan.count-2{width:84px}
  .run-fan.single{width:80px;height:66px}
  .run-fan .fan-card{width:54px;height:54px;top:6px;border-radius:9px}
  .run-fan .f2{left:16px;top:2px}
  .run-fan .f3{left:32px}
  .run-fan.count-2 .f2{left:17px}
  .run-fan.single .f2{width:62px;height:62px;top:2px}
  .fan-disc{width:54px;height:54px;top:6px}
  .run-scoreline{gap:.5rem}
  .sheet.run-sheet .verdict{font-size:1.18rem}
  .sheet.run-sheet .runscore b{font-size:1.72rem}
  .runlist.run-shelf,
  .runlist.run-shelf:is([data-count="2"],[data-count="3"],[data-count="4"],[data-count="5"]),
  .runlist.run-shelf.duel-runlist,
  .runlist.run-shelf.duel-runlist[data-count="5"]{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem;
  }
  .runlist.run-shelf li{padding:.42rem;gap:.36rem;border-radius:14px}
  .runlist.run-shelf[data-count="1"]{grid-template-columns:minmax(0,1fr)}
  .runlist.run-shelf[data-odd="true"] li:last-child{
    grid-column:1 / -1;
    display:grid;grid-template-columns:52px minmax(0,1fr) auto auto;grid-template-rows:auto auto;
    align-items:center;column-gap:.55rem;row-gap:.08rem;padding:.46rem .62rem;
  }
  .runlist.run-shelf[data-odd="true"] li:last-child .run-artwrap{display:contents}
  .runlist.run-shelf[data-odd="true"] li:last-child .thumb{grid-column:1;grid-row:1 / 3;width:52px;height:52px;border-radius:10px}
  .runlist.run-shelf[data-odd="true"] li:last-child .lvl{position:static;grid-column:2;grid-row:1;justify-self:start;padding:0;background:none;border:0;backdrop-filter:none;font-size:.62rem}
  .runlist.run-shelf[data-odd="true"] li:last-child .txt{grid-column:2;grid-row:2;padding:0}
  .runlist.run-shelf[data-odd="true"] li:last-child .run-playbtn{position:static;grid-column:3;grid-row:1 / 3;width:30px;height:30px}
  .runlist.run-shelf[data-odd="true"] li:last-child .at{position:static;grid-column:4;grid-row:1 / 3;padding:.24rem .58rem;font-size:.72rem}
  .runlist.run-shelf[data-count="1"] li{grid-template-columns:62px minmax(0,1fr) auto auto;column-gap:.58rem;padding:.6rem .75rem}
  .runlist.run-shelf[data-count="1"] .thumb{width:62px;height:62px}
  .runlist.run-shelf[data-count="1"] .run-playbtn{position:static;grid-column:3;grid-row:1 / 3;width:30px;height:30px}
  .runlist.run-shelf[data-count="1"] .at{grid-column:4}
  .sheet.run-sheet[data-mode="daily"] .run-hero{gap:.78rem;padding:0 2.6rem .8rem 0}
  .sheet.run-sheet[data-mode="daily"] .run-fan.single{width:84px;height:70px}
  .sheet.run-sheet[data-mode="daily"] .run-fan.single .f2{width:66px;height:66px;border-radius:11px}
  .sheet.run-sheet[data-mode="daily"] .fan-disc{width:62px;height:62px;top:4px}
  .sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] li{grid-template-columns:minmax(0,1fr) auto;padding:.6rem .78rem}
  .run-foot{flex-direction:column;align-items:stretch;gap:.48rem;margin-top:.75rem;padding-top:.72rem}
  .sheet.run-sheet .r-actions,
  #duelModal .sheet.run-sheet .r-actions{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.35fr);gap:.48rem;width:100%}
  .sheet.run-sheet .r-actions .btn{width:100%;min-width:0;min-height:44px;padding:.56rem .55rem;font-size:.79rem;white-space:nowrap;line-height:1.2;text-align:center}
  .sheet.run-sheet .run-foot-links{display:grid;grid-template-columns:1fr;gap:.48rem;width:100%}
  .sheet.run-sheet .customlink{width:100%;min-width:0;min-height:40px;padding:.48rem .5rem;font-size:.78rem;white-space:nowrap}
}
body[data-anim="off"] .fan-disc{transition:none}

/* ====== Music Duel Arena Polish (#duel) ====== */
#duelModeLabel{display:none}
#duel .duel-controls{
  display:flex;align-items:center;justify-content:center;gap:.55rem;flex-wrap:wrap;
  width:100%;margin:0 auto .95rem;
}
#duel .duel-controls .duel-tabs{margin:0}
.duel-hover-toggle{
  display:inline-flex;align-items:center;gap:.44rem;
  min-height:34px;padding:.32rem .78rem;border-radius:999px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.11);
  color:var(--dim);font:inherit;font-size:.75rem;font-weight:700;cursor:pointer;
  transition:background .16s,border-color .16s,color .16s;
}
.duel-hover-toggle:hover{border-color:rgba(255,255,255,.22);color:var(--ink)}
.duel-hover-toggle .dh-dot{
  width:7px;height:7px;border-radius:50%;flex:none;
  background:rgba(255,255,255,.28);transition:background .16s,box-shadow .16s;
}
.duel-hover-toggle[aria-checked="true"]{
  background:rgba(245,177,61,.12);border-color:rgba(245,177,61,.42);color:#ffd06b;
}
.duel-hover-toggle[aria-checked="true"] .dh-dot{
  background:#ffd06b;box-shadow:0 0 8px rgba(245,177,61,.85);
}
@media(hover:none),(pointer:coarse){
  .duel-hover-toggle{display:none}
}
#duel .backbtn{
  min-height:40px;padding:.45rem .95rem .45rem .72rem;border-radius:999px;
  background:var(--surf);border:1px solid var(--line);
}
#duel .backbtn:hover{background:var(--surf2);border-color:rgba(245,177,61,.45)}
#duel .duel-grid{max-width:780px;margin:0 auto;gap:1rem}
#duel .duel-card{
  position:relative;padding:1.45rem 1.25rem 1.25rem;border-radius:22px;gap:.82rem;
  background:linear-gradient(165deg,rgba(255,255,255,.048),rgba(255,255,255,.02));
}
#duel .duel-art-wrap{
  width:148px;height:148px;border-radius:16px;
  border:1px solid rgba(255,255,255,.1);
  transition:box-shadow .22s,transform .22s;
}
#duel .duel-card.playing .duel-art-wrap{box-shadow:0 0 0 2px rgba(245,177,61,.75),0 18px 36px -10px rgba(245,177,61,.42)}
#duel .duel-card.ok .duel-art-wrap{box-shadow:0 0 0 2px rgba(37,224,125,.8),0 18px 36px -10px rgba(37,224,125,.42)}
#duel .duel-card.no .duel-art-wrap{box-shadow:0 0 0 2px rgba(242,85,90,.8),0 18px 36px -10px rgba(242,85,90,.38)}
#duel .duel-play{background:rgba(5,16,11,.78);border:1.5px solid rgba(255,255,255,.28)}
#duel .duel-metric{
  width:100%;margin-top:0;padding:.88rem 1rem;border-radius:14px;
  background:rgba(245,177,61,.08);border:1px solid rgba(245,177,61,.24);
}
#duel #duelA .duel-metric{flex:1;justify-content:center}
#duel #duelB .duel-metric{
  padding:.68rem 1rem;background:rgba(255,255,255,.028);border:1px dashed rgba(255,255,255,.12);
}
#duel #duelB.ok .duel-metric{background:rgba(37,224,125,.1);border:1px solid rgba(37,224,125,.34)}
#duel #duelB.no .duel-metric{background:rgba(242,85,90,.1);border:1px solid rgba(242,85,90,.34)}
#duel .duel-vs{
  width:38px;height:38px;padding:0;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
}
#duel .duel-actions{margin-top:0}
.wrap:has(#duel:not([hidden])) .foot,
.wrap:has(#artistGame:not([hidden])) .foot{width:100%;justify-content:space-between;margin-top:1.25rem}
.wrap:has(#duel:not([hidden])) .vol,
.wrap:has(#artistGame:not([hidden])) .vol{background:var(--surf);border:1px solid var(--line);padding:.26rem .85rem .26rem .35rem}
@media(max-width:600px){
  .wrap:has(#duel:not([hidden])){padding:1.05rem .9rem 1.25rem}
  .wrap:has(#duel:not([hidden])) .head{margin-bottom:.75rem}
  .wrap:has(#duel:not([hidden])) .logo{font-size:1.9rem}
  #duel .gamebar{margin-bottom:.65rem}
  #duel .duel-controls{margin-bottom:.65rem}
  #duel .duel-hover-toggle{display:none}
  #duel .duel-tabs{width:100%;max-width:340px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #duel .duel-tabs button{min-height:36px;padding:.4rem .5rem;font-size:.77rem;white-space:nowrap}
  #duel .duel-prompt{margin-bottom:.65rem;font-size:.8rem}
  #duel .duel-card{padding:.85rem;gap:.55rem;justify-content:flex-start}
  #duel #duelA{grid-template-columns:56px minmax(0,1fr) auto;gap:.62rem;padding:.72rem .82rem}
  #duel #duelA .duel-art-wrap{width:56px;height:56px;border-radius:10px}
  #duel #duelA .duel-tag{white-space:nowrap;font-size:.61rem;letter-spacing:.07em}
  #duel #duelA .duel-title{font-size:.94rem;line-height:1.2}
  #duel #duelA .duel-artist{font-size:.76rem}
  #duel #duelA .duel-metric{flex:0 0 auto;width:auto;padding:0;background:none;border:0}
  #duel #duelA .duel-year{font-size:1.3rem}
  #duel #duelA .duel-sub{font-size:.62rem}
  #duel #duelB .duel-art-wrap{width:84px;height:84px;border-radius:13px}
  #duel #duelB .duel-metric{padding:.52rem .85rem}
  #duel #duelB .duel-year{font-size:1.65rem}
  #duel .duel-vs{width:auto;height:auto;padding:.2rem .62rem;border-radius:999px}
  .wrap:has(#duel:not([hidden])) .foot{margin-top:.95rem}
}

/* ====== Secondary Modals Unity (#statsModal, #customModal, #feedbackModal) ====== */
.sheet:not(.run-sheet){
  width:min(468px,100%);
  border-radius:26px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(165deg,rgba(16,38,26,.96),rgba(7,17,12,.98));
  box-shadow:0 36px 90px -18px rgba(0,0,0,.92),inset 0 1px 0 rgba(255,255,255,.09);
  padding:1.65rem 1.7rem 1.5rem;
}
.sheet:not(.run-sheet) .x{
  top:14px;right:14px;width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.11);
  color:var(--dim);font-size:1.25rem;display:grid;place-items:center;
}
.sheet:not(.run-sheet) .x:hover{background:rgba(255,255,255,.14);color:var(--ink)}

#customModal .sheet.custom{text-align:center}
#customModal .custom-h{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  margin:0 0 1.2rem;padding:.24rem .78rem;border-radius:999px;
  background:rgba(61,182,245,.12);border:1px solid rgba(61,182,245,.32);
  color:#70ccff;font-size:.72rem;letter-spacing:.12em;
}
#customModal :is(.custom-lbl,.custom-field,.custom-results,.custom-quick){text-align:left}
.custom-field .search-ico{
  position:absolute;left:.95rem;top:50%;transform:translateY(-50%);
  width:17px;height:17px;color:var(--dimmer);pointer-events:none;
}
.custom-field:focus-within .search-ico{color:#70ccff}
#customModal #artistQ{padding:.82rem 2.75rem .82rem 2.6rem}

#statsModal .sheet{width:min(548px,100%)}
#statsModal h2{margin:0 0 .85rem;font-family:'Cabinet Grotesk',var(--fs);font-size:1.55rem}
#statsModal .stats-tabs{margin:0 0 .75rem;max-width:100%}
#statsModal .stats-tabs button{
  display:inline-flex;align-items:center;justify-content:center;gap:.34rem;
  white-space:nowrap;padding:.42rem .66rem;font-size:.77rem;
}
#statsModal .stats-tabs button .btn-ico{width:13px;height:13px;opacity:.88}
#statsModal .stats-tabs button[aria-pressed="true"] .btn-ico{opacity:1}
#statsModal .statgrid div{
  background:rgba(255,255,255,.038);border:1px solid rgba(255,255,255,.07);border-radius:14px;
  padding:.82rem .35rem;
}
#statsModal .statgrid b{font-family:'Cabinet Grotesk',var(--fs);font-size:1.55rem}
#statsModal .dist .bar{border-radius:8px;background:rgba(255,255,255,.08)}
#statsModal .dist .bar.hot{background:linear-gradient(90deg,#12b862,#41f596);color:#042312}
#statsModal #reset{margin-top:1.15rem}

#feedbackModal .sheet.feedback-sheet{
  width:min(460px,100%);
  padding:1.55rem 1.55rem 1.4rem;
  border-radius:24px;
  border:1px solid rgba(37,224,125,.2);
  background:linear-gradient(165deg,rgba(14,35,24,.97),rgba(6,16,11,.99));
  box-shadow:0 32px 84px -16px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.08);
  text-align:left;
}
#feedbackModal .fb-head{margin:0 0 1.05rem;padding-right:2.4rem}
#feedbackModal h2{margin:0 0 .25rem;font-family:'Cabinet Grotesk',var(--fs);font-size:1.52rem;letter-spacing:-.01em}
#feedbackModal #feedbackIntro{margin:0;font-size:.82rem;color:var(--dim);line-height:1.45}
#feedbackModal .fb-song-chip{
  display:flex;align-items:center;gap:.5rem;margin:0 0 .9rem;padding:.52rem .75rem;border-radius:12px;
  background:rgba(37,224,125,.09);border:1px solid rgba(37,224,125,.26);color:#9bf8c6;font-size:.8rem;font-weight:700;
}
#feedbackModal .fb-song-chip[hidden]{display:none}
#feedbackModal .fb-song-chip svg{width:15px;height:15px;flex:none;color:var(--acc)}
#feedbackModal .fb-song-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#feedbackModal .fb-kicker{
  display:block;margin:0 0 .45rem;font-size:.69rem;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;color:var(--dim);
}
#feedbackModal .fb-pills{
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.36fr) minmax(0,.82fr);gap:.45rem;margin-bottom:1.05rem;
}
#feedbackModal .fb-pills.fb-pills-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#feedbackModal .fb-pill{
  display:inline-flex;align-items:center;justify-content:center;gap:.38rem;
  min-height:42px;padding:.48rem .55rem;border-radius:13px;cursor:pointer;
  background:rgba(255,255,255,.038);border:1px solid rgba(255,255,255,.1);
  color:var(--dim);font:inherit;font-size:.8rem;font-weight:700;white-space:nowrap;
  transition:background .16s,border-color .16s,color .16s,transform .12s;
}
#feedbackModal .fb-pill svg{width:15px;height:15px;flex:none;opacity:.8}
#feedbackModal .fb-pill:hover{background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.22);color:var(--ink)}
#feedbackModal .fb-pill[aria-pressed="true"]{
  background:rgba(37,224,125,.14);border-color:rgba(37,224,125,.66);color:#8ef7bd;
  box-shadow:0 0 0 1px rgba(37,224,125,.2) inset;
}
#feedbackModal .fb-pill[aria-pressed="true"] svg{opacity:1;color:var(--acc)}
#feedbackModal .fb-pill:active{transform:scale(.98)}
#feedbackModal .fb-msg-wrap{margin-bottom:.7rem}
#feedbackModal #feedbackMessage{
  min-height:112px;padding:.78rem .9rem;border-radius:14px;resize:vertical;
  background:rgba(4,13,9,.72);border:1px solid rgba(255,255,255,.12);
  color:var(--ink);font-size:.92rem;line-height:1.5;transition:border-color .16s,background .16s,box-shadow .16s;
}
#feedbackModal #feedbackMessage::placeholder{color:var(--dimmer)}
#feedbackModal #feedbackMessage:focus{
  outline:none;border-color:rgba(37,224,125,.62);background:rgba(5,16,11,.92);
  box-shadow:0 0 0 3px rgba(37,224,125,.12);
}
#feedbackModal .fb-meta-row{
  display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.45rem;
  font-size:.73rem;color:var(--dim);
}
#feedbackModal .fb-privacy{display:inline-flex;align-items:center;gap:.35rem}
#feedbackModal .fb-privacy svg{width:13px;height:13px;flex:none;opacity:.75}
#feedbackModal .fb-count{font-variant-numeric:tabular-nums;color:var(--dimmer);font-weight:600}
#feedbackModal .fb-count.is-near{color:#ffd06b}
#feedbackModal .fb-opt-row{margin:0 0 1rem}
#feedbackModal .fb-opt-toggle{
  display:inline-flex;align-items:center;gap:.4rem;padding:.24rem .1rem;border:0;background:none;
  color:var(--dim);font:inherit;font-size:.78rem;font-weight:600;cursor:pointer;
  transition:color .15s;
}
#feedbackModal .fb-opt-toggle:hover,
#feedbackModal .fb-opt-toggle.is-open{color:#8ef7bd}
#feedbackModal .fb-opt-toggle svg{width:14px;height:14px;flex:none}
#feedbackModal .fb-opt-panel{margin-top:.45rem}
#feedbackModal .fb-opt-panel[hidden]{display:none}
#feedbackModal #feedbackEmail{
  padding:.62rem .82rem;border-radius:12px;font-size:.9rem;
  background:rgba(4,13,9,.72);border:1px solid rgba(255,255,255,.12);color:var(--ink);
}
#feedbackModal #feedbackEmail:focus{
  outline:none;border-color:rgba(37,224,125,.62);box-shadow:0 0 0 3px rgba(37,224,125,.12);
}
#feedbackModal #sendFeedback{
  width:100%;min-height:46px;padding:.72rem 1.2rem;border-radius:999px;font-size:.92rem;font-weight:800;
}
#feedbackModal #feedbackStatus{margin:.65rem 0 0;font-size:.8rem;line-height:1.45;text-align:center}

@media(max-width:520px){
  .sheet:not(.run-sheet),
  #feedbackModal .sheet.feedback-sheet{padding:1.35rem 1.1rem 1.2rem;border-radius:20px}
  .sheet:not(.run-sheet) .x{top:10px;right:10px;width:36px;height:36px}
  #customModal .custom-quick-head{flex-wrap:wrap;row-gap:.35rem}
  #customModal .custom-quick-clear{min-height:34px;padding:.28rem .58rem}
  #customModal .artist-chip{min-height:36px;padding:.42rem .78rem}
  #feedbackModal .fb-pill{font-size:.75rem;padding:.44rem .36rem;gap:.28rem;min-height:40px}
  #feedbackModal .fb-pill svg{width:14px;height:14px}
  #feedbackModal input:not([type=hidden]),
  #feedbackModal select,
  #feedbackModal textarea{font-size:16px}
  #feedbackModal #sendFeedback{width:100%;min-height:46px}
  #statsModal #reset{width:100%;min-height:42px}
}

/* ====== Friend Challenge Landing Card (#challengeIntro) ====== */
.challenge-card{
  width:min(490px,100%);
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:.75rem;
  padding:2rem 1.85rem 1.65rem;border-radius:26px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(165deg,rgba(16,38,26,.94),rgba(7,17,12,.97));
  box-shadow:0 32px 80px -20px rgba(0,0,0,.88),inset 0 1px 0 rgba(255,255,255,.09);
}
.challenge-kicker{
  display:inline-flex;align-items:center;padding:.22rem .72rem;border-radius:999px;
  font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  background:rgba(37,224,125,.12);border:1px solid rgba(37,224,125,.3);color:#41f596;
}
.challenge-card h2{margin:0;font-family:'Cabinet Grotesk',var(--fs);font-size:1.75rem;color:var(--ink)}
.challenge-card #challengeMessage{margin:0;font-size:.94rem;color:var(--dim)}
.challenge-card .laddernote{margin:.15rem 0 .45rem;font-size:.8rem;line-height:1.6}
.challenge-actions{width:100%;display:grid;gap:.55rem;margin-top:.2rem}
.challenge-actions .btn{width:100%;min-height:46px}
.challenge-actions .customlink{margin:0}

/* ====== Click-to-Play Summary Preview (#runModal & #duelModal) ====== */
.runlist.run-shelf li.has-preview{
  cursor:pointer;transition:transform .16s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.runlist.run-shelf li.has-preview:hover{
  transform:translateY(-2px);border-color:rgba(255,255,255,.22);
}
.runlist.run-shelf li.is-playing{
  border-color:rgba(37,224,125,.75);
  box-shadow:0 0 0 1px rgba(37,224,125,.35),0 14px 28px -12px rgba(37,224,125,.45);
}
.runlist.run-shelf.duel-runlist li.is-playing{
  border-color:rgba(245,177,61,.78);
  box-shadow:0 0 0 1px rgba(245,177,61,.35),0 14px 28px -12px rgba(245,177,61,.45);
}
.run-playbtn{
  position:absolute;bottom:6px;left:6px;z-index:2;
  width:28px;height:28px;padding:0;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(5,16,11,.84);backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.24);color:#e9f5ee;
  transition:transform .15s,background .15s,border-color .15s,color .15s;
}
.runlist.run-shelf li.has-preview:hover .run-playbtn{transform:scale(1.08);border-color:rgba(255,255,255,.42)}
.run-playbtn svg{width:13px;height:13px;fill:currentColor;display:none}
.run-playbtn .ico-play{margin-left:1.5px}
.run-playbtn .ico-load{fill:none;animation:spin .85s linear infinite}
.run-playbtn[data-s="idle"] .ico-play,
.run-playbtn[data-s="playing"] .ico-pause,
.run-playbtn[data-s="loading"] .ico-load{display:block}
.run-playbtn[data-s="playing"]{
  background:#25e07d;border-color:#52ffaa;color:#042312;
  box-shadow:0 0 16px rgba(37,224,125,.55);
}
.runlist.run-shelf.duel-runlist .run-playbtn[data-s="playing"]{
  background:#f5b13d;border-color:#ffd06b;color:#231402;
  box-shadow:0 0 16px rgba(245,177,61,.55);
}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] li{
  grid-template-columns:minmax(0,1fr) auto auto;column-gap:.6rem;
}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] .run-playbtn{
  position:static;grid-column:2;grid-row:1 / 3;width:34px;height:34px;
}
.sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] .at{grid-column:3}

@media(max-width:680px){
  .challenge-card{padding:1.55rem 1.2rem 1.35rem;border-radius:20px}
  .runlist.run-shelf[data-odd="true"] li:last-child{
    grid-template-columns:56px minmax(0,1fr) auto auto;column-gap:.55rem;
  }
  .runlist.run-shelf[data-odd="true"] li:last-child .run-playbtn{
    position:static;grid-column:3;grid-row:1 / 3;width:30px;height:30px;
  }
  .runlist.run-shelf[data-odd="true"] li:last-child .at{grid-column:4}
  .sheet.run-sheet[data-mode="daily"] .runlist[data-count="1"] li{
    grid-template-columns:minmax(0,1fr) auto auto;column-gap:.5rem;
  }
}
body[data-anim="off"] .run-playbtn .ico-load{animation:none}
body[data-anim="off"] .runlist.run-shelf li.has-preview,
body[data-anim="off"] .run-playbtn{transition:none}

.challenge-kicker[data-mode="duel"]{background:rgba(245,177,61,.13);border-color:rgba(245,177,61,.32);color:#ffd06b}
#duelModal .runscore{gap:.5rem}
#duel .gamemeta{flex-wrap:wrap}
#duelTarget{background:rgba(245,177,61,.12);border-color:rgba(245,177,61,.38);color:#ffd27d}
#duelTarget[data-passed="1"]{background:rgba(37,224,125,.14);border-color:rgba(37,224,125,.42);color:#41f596}
#statsModal .dist .n.duel{width:3.6rem}
#statsModal .badge-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.35rem;
}
.badge-card{
  display:flex;align-items:flex-start;gap:.6rem;text-align:left;
  padding:.68rem .72rem;border-radius:14px;
  background:rgba(255,255,255,.028);border:1px solid rgba(255,255,255,.07);
  opacity:.58;
}
.badge-card.is-earned{
  opacity:1;
  background:rgba(37,224,125,.08);border-color:rgba(37,224,125,.35);
}
.badge-card.is-earned[data-theme="blue"]{
  background:rgba(61,182,245,.09);border-color:rgba(61,182,245,.38);
}
.badge-card.is-earned[data-theme="gold"]{
  background:rgba(227,199,74,.08);border-color:rgba(227,199,74,.38);
}
.badge-card.is-earned[data-theme="purple"]{
  background:rgba(168,85,247,.10);border-color:rgba(168,85,247,.40);
}
.badge-ico{
  width:30px;height:30px;border-radius:10px;flex:none;
  display:grid;place-items:center;
  background:rgba(255,255,255,.06);color:var(--dim);
}
.badge-ico svg{width:16px;height:16px}
.badge-card.is-earned .badge-ico{background:rgba(37,224,125,.18);color:#58ffad}
.badge-card.is-earned[data-theme="blue"] .badge-ico{background:rgba(61,182,245,.20);color:#7fd4ff}
.badge-card.is-earned[data-theme="gold"] .badge-ico{background:rgba(227,199,74,.20);color:#ffe270}
.badge-card.is-earned[data-theme="purple"] .badge-ico{background:rgba(168,85,247,.22);color:#d8b4fe}
.badge-copy{min-width:0;display:flex;flex-direction:column;gap:.12rem}
.badge-copy b{font-size:.82rem;font-weight:700;color:var(--ink);line-height:1.2}
.badge-copy small{font-size:.71rem;color:var(--dim);line-height:1.3}
@media(max-width:520px){
  #statsModal .stats-tabs{
    width:100%;max-width:100%;border-radius:16px;
    display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;
  }
  #statsModal .stats-tabs button{min-height:36px;padding:.35rem .3rem;gap:.26rem;font-size:.72rem;white-space:nowrap}
  #statsModal .stats-tabs button .btn-ico{width:12px;height:12px}
  #statsModal .stats-tabs button:nth-child(1){grid-column:span 5}
  #statsModal .stats-tabs button:nth-child(2){grid-column:span 4}
  #statsModal .stats-tabs button:nth-child(3){grid-column:span 3}
  #statsModal .stats-tabs button:nth-child(4){grid-column:span 5}
  #statsModal .stats-tabs button:nth-child(5){grid-column:span 7}
  #statsModal .badge-grid{gap:.45rem}
  .badge-card{padding:.6rem .62rem;gap:.5rem}
  .badge-ico{width:26px;height:26px;border-radius:8px}
  .badge-ico svg{width:14px;height:14px}
  .badge-copy b{font-size:.77rem}
  .badge-copy small{font-size:.68rem}
}

/* ====== Arcade Row & Artist Detective (#openArtistGame & #artistGame) ====== */
body[data-diff="artist"]{--acc:#a855f7;--acc-l:#d8b4fe;--acc-rgb:168,85,247}
.challenge-kicker[data-mode="artist"],
.run-kicker[data-mode="artist"]{
  background:rgba(168,85,247,.15);border-color:rgba(168,85,247,.38);color:#d8b4fe;
}
#lobby .arcade-row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;width:100%;
}
#lobby .arcade-row .duel-card-wide{
  grid-template-columns:minmax(0,1fr);
  align-content:space-between;
  gap:.9rem;
  padding:1.2rem 1.3rem;
}
#lobby .mode-pill.is-purple{
  background:rgba(168,85,247,.15);border-color:rgba(168,85,247,.36);color:#d8b4fe;
}
#lobby .duel-card-wide.artist-detective-card{
  background:linear-gradient(135deg,rgba(168,85,247,.09),rgba(255,255,255,.025));
  border-color:rgba(168,85,247,.3);
}
#lobby .duel-card-wide.artist-detective-card:hover{
  background:linear-gradient(135deg,rgba(168,85,247,.14),rgba(255,255,255,.04));
  border-color:rgba(168,85,247,.52);
}
#lobby .duel-cta-pill.is-purple-cta{
  border-color:rgba(168,85,247,.58);color:#d8b4fe;
}
#lobby .duel-card-wide.artist-detective-card:hover .duel-cta-pill.is-purple-cta{
  background:rgba(168,85,247,.15);border-color:#d8b4fe;
}

.wrap:has(#artistGame:not([hidden])){
  max-width:780px;
  padding-top:clamp(1.6rem,4.5vh,2.4rem);
  padding-bottom:2rem;
}
.wrap:has(#artistGame:not([hidden])) .head{margin-bottom:1.3rem}
#artistGame{align-items:stretch;gap:.82rem;width:100%}
#artistGame .gamebar{margin-bottom:.15rem}
#artistGame .backbtn{
  min-height:40px;padding:.45rem .95rem .45rem .72rem;border-radius:999px;
  background:var(--surf);border:1px solid var(--line);
}
#artistGame .backbtn:hover{background:var(--surf2);border-color:rgba(168,85,247,.45)}
#artistGame .gamemeta{flex-wrap:wrap}
#agTargetPill{background:rgba(168,85,247,.14);border-color:rgba(168,85,247,.4);color:#e9d5ff}
#agTargetPill[data-passed="1"]{background:rgba(37,224,125,.14);border-color:rgba(37,224,125,.42);color:#41f596}
#agTriesPill{background:rgba(168,85,247,.16);border-color:rgba(168,85,247,.42);color:#e9d5ff}

.daily-game-pill.is-purple{
  margin:-.1rem 0 .1rem;
  background:rgba(168,85,247,.16);border-color:rgba(168,85,247,.38);color:#e9d5ff;
  font-variant-numeric:tabular-nums;
}
.daily-game-pill[hidden]{display:none}

.spotle-top-card{
  position:relative;z-index:20;
  padding:1.1rem 1.2rem;border-radius:20px;
  background:linear-gradient(165deg,rgba(168,85,247,.08),rgba(255,255,255,.025));
  border:1px solid rgba(168,85,247,.26);
  display:flex;flex-direction:column;gap:.8rem;
}
.spotle-search{position:relative;width:100%;flex:none}
#agQ{
  width:100%;padding:.82rem 2.5rem .82rem 2.65rem;border-radius:13px;
  background:rgba(7,17,12,.76);border:1px solid rgba(255,255,255,.13);
  color:var(--ink);font:inherit;font-size:.94rem;
}
#agQ:focus{outline:none;border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.18)}
#agQ:disabled{opacity:.55;cursor:not-allowed}
.spotle-dd{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;
  max-height:280px;overflow-y:auto;
  border-radius:15px;padding:.35rem;
  background:rgba(8,19,14,.98);border:1px solid rgba(168,85,247,.36);
  box-shadow:0 22px 48px rgba(0,0,0,.85);
}
.spotle-dd .dd-item{
  width:100%;display:flex;align-items:center;gap:.75rem;
  padding:.52rem .68rem;border-radius:10px;border:0;background:transparent;
  color:var(--ink);text-align:left;cursor:pointer;
}
.spotle-dd .dd-item:hover,
.spotle-dd .dd-item.sel{background:rgba(168,85,247,.16)}
.spotle-dd .dd-item.tried{opacity:.42;cursor:not-allowed}
.spotle-dd-art{
  width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);
}
.spotle-dd-meta{
  margin-left:auto;font-size:.73rem;font-weight:700;color:#d8b4fe;
  padding:.18rem .52rem;border-radius:999px;
  background:rgba(168,85,247,.12);border:1px solid rgba(168,85,247,.25);
  white-space:nowrap;
}

.spotle-controls-row{
  display:flex;align-items:center;justify-content:space-between;gap:.65rem .75rem;flex-wrap:wrap;
}
.spotle-actions{
  display:inline-flex;align-items:center;gap:.45rem;margin-left:auto;flex-wrap:wrap;
}
.spotle-hint-btn,.spotle-giveup-btn{
  min-height:36px;padding:.38rem .85rem;border-radius:999px;font-size:.78rem;font-weight:700;
  display:inline-flex;align-items:center;gap:.38rem;white-space:nowrap;
}
.spotle-hint-btn svg{width:14px;height:14px;flex:none}
.spotle-hint-btn:not(:disabled){
  border-color:rgba(168,85,247,.52);color:#e4c4ff;
  background:rgba(168,85,247,.14);
}
.spotle-hint-btn:not(:disabled):hover{
  border-color:rgba(192,132,252,.78);background:rgba(168,85,247,.24);color:#f5e8ff;
}
.spotle-hint-btn:disabled{
  opacity:.52;cursor:not-allowed;color:var(--dim);
  border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.03);
}
.spotle-hint-box{
  display:flex;flex-wrap:wrap;gap:.45rem;
  margin-top:.75rem;padding-top:.75rem;
  border-top:1px solid rgba(168,85,247,.2);
}
.spotle-hint-chip{
  display:inline-flex;align-items:center;gap:.42rem;
  padding:.34rem .72rem;border-radius:999px;font-size:.78rem;line-height:1.3;
  background:rgba(168,85,247,.14);border:1px solid rgba(192,132,252,.36);color:#f2e6ff;
}
.spotle-hint-chip small{
  font-size:.66rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#cfa2ff;
}
.spotle-hint-chip b{font-weight:700;color:#fff}
.spotle-legend{
  display:flex;align-items:center;gap:.75rem;font-size:.75rem;color:var(--dim);font-weight:600;
}
.spotle-legend span{display:inline-flex;align-items:center;gap:.35rem}
.spotle-legend .dot{width:9px;height:9px;border-radius:50%;display:inline-block}
.spotle-legend .dot.exact{background:#25e07d;box-shadow:0 0 8px rgba(37,224,125,.6)}
.spotle-legend .dot.close{background:#f5b13d;box-shadow:0 0 8px rgba(245,177,61,.6)}
.spotle-legend .dot.miss{background:rgba(255,255,255,.28)}

.spotle-result-banner{
  padding:1.15rem 1.25rem;border-radius:20px;
  background:linear-gradient(145deg,rgba(37,224,125,.12),rgba(168,85,247,.1));
  border:1px solid rgba(37,224,125,.38);
  display:flex;flex-direction:column;align-items:stretch;gap:.88rem;
}
.spotle-result-banner[data-won="0"]{
  background:linear-gradient(145deg,rgba(242,85,90,.1),rgba(168,85,247,.08));
  border-color:rgba(242,85,90,.35);
}
.spotle-result-main{display:flex;align-items:center;gap:.95rem;min-width:0}
.spotle-result-art{
  width:68px;height:68px;border-radius:50%;object-fit:cover;flex:none;
  border:2px solid rgba(37,224,125,.65);box-shadow:0 10px 24px rgba(0,0,0,.55);
}
.spotle-result-banner[data-won="0"] .spotle-result-art{border-color:rgba(242,85,90,.6)}
.spotle-result-copy{min-width:0;display:flex;flex-direction:column;gap:.2rem;text-align:left}
.spotle-result-copy h3{
  margin:0;font-family:'Cabinet Grotesk',var(--fs);font-size:1.38rem;font-weight:800;color:var(--ink);
}
.spotle-result-copy p{margin:0;font-size:.82rem;color:var(--dim)}
.ag-challenge-note{color:#e9d5ff !important;font-weight:600}
.spotle-result-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;width:100%;
  padding-top:.82rem;border-top:1px solid rgba(255,255,255,.08);
}
.spotle-result-actions:has(> .btn[hidden]){grid-template-columns:1fr}
.spotle-result-actions #agNextBtn{order:-1}
.spotle-result-actions .btn{width:100%;justify-content:center;text-align:center;min-height:44px;padding:.58rem .9rem;font-size:.85rem}

.spotle-board{display:flex;flex-direction:column;gap:.7rem;width:100%}
.spotle-empty{
  padding:1.85rem 1.2rem;border-radius:18px;text-align:center;
  border:1px dashed rgba(255,255,255,.12);background:rgba(255,255,255,.02);
  color:var(--dim);font-size:.86rem;line-height:1.5;
}
.spotle-guess-card{
  padding:.85rem 1rem;border-radius:18px;
  background:rgba(255,255,255,.032);border:1px solid rgba(255,255,255,.08);
  display:flex;flex-direction:column;gap:.68rem;
}
.spotle-guess-card.is-winner{
  border-color:rgba(37,224,125,.45);
  box-shadow:0 0 0 1px rgba(37,224,125,.2),0 14px 32px -12px rgba(37,224,125,.28);
}
.spotle-guess-head{
  display:flex;align-items:center;justify-content:space-between;gap:.65rem;
}
.spotle-guess-who{display:flex;align-items:center;gap:.65rem;min-width:0}
.spotle-guess-avatar{
  width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;
  border:1px solid rgba(255,255,255,.18);
}
.spotle-guess-name{
  font-family:'Cabinet Grotesk',var(--fs);font-size:1.05rem;font-weight:800;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.spotle-guess-num{
  font-size:.72rem;font-weight:700;color:var(--dim);
  padding:.16rem .5rem;border-radius:999px;background:rgba(255,255,255,.05);
}
.spotle-tiles{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.48rem;
}
.sp-tile{
  padding:.52rem .4rem;border-radius:12px;text-align:center;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.16rem;
  min-width:0;
}
.sp-tile small{
  font-size:.62rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;
  color:var(--dim);
}
.sp-tile b{
  font-size:.82rem;font-weight:800;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
.sp-tile.exact{
  background:rgba(37,224,125,.16);border-color:rgba(37,224,125,.48);
}
.sp-tile.exact small{color:#8ef7bd}
.sp-tile.exact b{color:#41f596}
.sp-tile.close{
  background:rgba(245,177,61,.16);border-color:rgba(245,177,61,.48);
}
.sp-tile.close small{color:#fde68a}
.sp-tile.close b{color:#ffd06b}

.spotle-result-art{cursor:pointer;transition:transform .18s ease,box-shadow .22s ease}
.spotle-result-art:hover{transform:scale(1.04)}
.spotle-result-art[data-playing="1"]{box-shadow:0 0 0 3px rgba(155,123,245,.55),0 0 22px rgba(155,123,245,.5)}

/* ====== Spotify Playlist Custom Panel ====== */
.spotify-panel{display:flex;flex-direction:column;gap:.65rem;padding-top:.1rem}
.spotify-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:stretch}
.spotify-field{position:relative;display:flex;align-items:center;min-width:0}
.spotify-ico{
  position:absolute;left:.85rem;width:18px;height:18px;color:var(--dim);pointer-events:none;flex:none;
  display:grid;place-items:center;transition:color .18s;
}
.spotify-ico svg{width:18px;height:18px;display:none}
.spotify-field[data-src="neutral"] .ico-pl-neutral,
.spotify-field:not([data-src]) .ico-pl-neutral{display:block}
.spotify-field[data-src="spotify"] .ico-pl-spotify{display:block}
.spotify-field[data-src="spotify"] .spotify-ico{color:#25e07d}
.spotify-field[data-src="spotify"] #spotifyUrl{border-color:rgba(37,224,125,.48);background:rgba(37,224,125,.06)}
.spotify-field[data-src="apple"] .ico-pl-apple{display:block}
.spotify-field[data-src="apple"] .spotify-ico{color:#fa586a}
.spotify-field[data-src="apple"] #spotifyUrl{border-color:rgba(250,88,106,.52);background:rgba(250,88,106,.07)}
.spotify-field[data-src="youtube"] .ico-pl-youtube{display:block}
.spotify-field[data-src="youtube"] .spotify-ico{color:#ff5449}
.spotify-field[data-src="youtube"] #spotifyUrl{border-color:rgba(255,84,73,.52);background:rgba(255,84,73,.07)}
#spotifyUrl{
  width:100%;min-height:46px;padding:.68rem 2.4rem .68rem 2.55rem;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--ink);
  font:inherit;font-size:.9rem;outline:none;transition:border-color .16s,background .16s;
}
#spotifyUrl::placeholder{color:var(--dimmer)}
#spotifyUrl:focus{border-color:rgba(var(--acc-rgb),.58);background:rgba(255,255,255,.08)}
.spotify-go{min-height:46px;padding:0 1.35rem;border-radius:12px;font-weight:800;white-space:nowrap}
.spotify-hint{margin:0;font-size:.76rem;color:var(--dim);line-height:1.4}
.spotify-hint.err{color:#ff8a8e}
.recent-playlists{display:flex;flex-direction:column;gap:.45rem;margin-top:.15rem;padding-top:.55rem;border-top:1px solid rgba(255,255,255,.07)}
.recent-pl-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.recent-pl-lbl{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--dimmer)}
.recent-pl-clear{
  padding:.18rem .52rem;border-radius:999px;font-size:.72rem;font-weight:600;
  color:var(--dim);background:transparent;border:1px solid transparent;cursor:pointer;
  transition:color .15s,background .15s,border-color .15s;
}
.recent-pl-clear:hover{color:var(--text);background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.1)}
.recent-pl-list{display:flex;flex-wrap:wrap;gap:.4rem}
.recent-pl-chip{
  display:inline-flex;align-items:center;gap:.42rem;max-width:100%;min-height:34px;
  padding:.32rem .68rem .32rem .48rem;border-radius:999px;
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.1);
  color:var(--text);font-size:.78rem;font-weight:600;line-height:1.2;cursor:pointer;
  transition:background .16s,border-color .16s,transform .12s;
}
.recent-pl-chip:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.22)}
.recent-pl-chip:active{transform:scale(.98)}
.recent-pl-chip:disabled{opacity:.55;cursor:wait}
.recent-pl-art{width:18px;height:18px;border-radius:4px;object-fit:cover;flex:none;background:var(--surf2)}
.recent-pl-dot{width:8px;height:8px;border-radius:50%;flex:none;background:#1ed760}
.recent-pl-chip[data-src="apple"] .recent-pl-dot{background:#fc3c44}
.recent-pl-chip[data-src="youtube"] .recent-pl-dot{background:#ff4e45}
.recent-pl-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:175px}
.recent-pl-cnt{font-size:.69rem;font-weight:700;color:var(--dim);padding:.06rem .36rem;border-radius:999px;background:rgba(255,255,255,.07);flex:none}
.spotify-rounds-row{
  display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;
}
.spotify-rounds-lbl{
  font-size:.78rem;font-weight:700;color:var(--dim);
}
.spotify-rounds-seg{
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06);padding:3px;
}
.spotify-rounds-seg button{
  padding:.3rem .72rem;font-size:.76rem;border-radius:999px;color:var(--dim);
  font-variant-numeric:tabular-nums;
}
.spotify-rounds-seg button:hover{color:var(--ink)}
.spotify-rounds-seg button[aria-pressed="true"]{
  background:rgba(37,224,125,.18);color:#8ef7bd;
}
.spotify-rounds-custom{
  width:84px;min-height:34px;padding:.3rem .65rem;border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--ink);
  font:inherit;font-size:.78rem;font-weight:700;text-align:center;
  font-variant-numeric:tabular-nums;outline:none;
  transition:border-color .16s,background .16s,color .16s;
}
.spotify-rounds-custom::placeholder{color:var(--dimmer);font-weight:600}
.spotify-rounds-custom:focus,
.spotify-rounds-custom.active{
  border-color:rgba(37,224,125,.55);background:rgba(37,224,125,.12);color:#8ef7bd;
}
.spotify-rounds-custom::-webkit-outer-spin-button,
.spotify-rounds-custom::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.spotify-rounds-custom{-moz-appearance:textfield}

.leave-sheet{width:min(400px,100%);text-align:center}
.leave-sheet h2{margin:0 0 .35rem;padding:0 1.65rem}
.leave-summary{margin:0 0 1.1rem;font-size:.86rem}
.leave-actions{display:flex;flex-direction:column;gap:.55rem;align-items:stretch}
.leave-actions .btn{width:100%;min-height:44px}
.leave-exit-link{
  margin-top:.15rem;min-height:40px;padding:.5rem .6rem;border:0;background:none;
  color:var(--dim);font:inherit;font-size:.84rem;font-weight:600;cursor:pointer;
}
.leave-exit-link:hover{color:#ff8a8e;text-decoration:underline}

/* ====== Settings & Backup (#settingsModal) ====== */
#settingsModal .sheet.settings-sheet{width:min(480px,100%)}
#settingsModal h2{margin:0 0 .85rem;font-family:'Cabinet Grotesk',var(--fs);font-size:1.55rem;padding-right:2.4rem}
.set-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}
.set-row{
  display:flex;align-items:center;justify-content:space-between;gap:.9rem;
  padding:.68rem .85rem;border-radius:14px;
  background:rgba(255,255,255,.038);border:1px solid rgba(255,255,255,.07);
}
.set-copy{min-width:0;display:flex;flex-direction:column;gap:.1rem;text-align:left}
.set-copy b{font-size:.9rem;font-weight:700;color:var(--ink)}
.set-copy small{font-size:.76rem;color:var(--dim);line-height:1.35}
.set-switch{
  position:relative;flex:none;width:44px;height:26px;padding:0;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);
  transition:background .18s,border-color .18s;
}
.set-switch .set-knob{
  position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;
  background:#e9f5ee;box-shadow:0 2px 6px rgba(0,0,0,.45);
  transition:transform .18s cubic-bezier(.2,.9,.3,1),background .18s;
}
.set-switch[aria-checked="true"]{background:rgba(37,224,125,.85);border-color:#52ffaa}
.set-switch[aria-checked="true"] .set-knob{transform:translateX(18px);background:#04200f}
.set-switch:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.set-lang-seg{
  flex:none;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);padding:3px;
}
.set-lang-seg button{
  min-width:44px;min-height:28px;padding:.24rem .62rem;border-radius:999px;
  font-size:.76rem;font-weight:800;color:var(--dim);letter-spacing:.03em;
}
.set-lang-seg button:hover{color:var(--ink)}
.set-lang-seg button[aria-pressed="true"]{
  background:rgba(37,224,125,.2);color:#8ef7bd;
}
.set-h{margin:1.25rem 0 .3rem;font-family:'Cabinet Grotesk',var(--fs);font-size:1.05rem;font-weight:800;color:var(--ink)}
.set-note{margin:0 0 .65rem;font-size:.8rem;line-height:1.5}
.set-code{
  display:block;width:100%;min-height:78px;padding:.62rem .75rem;border-radius:12px;resize:none;
  background:rgba(5,16,11,.74);border:1px solid rgba(255,255,255,.14);color:var(--ink);
  font:500 .74rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all;outline:none;
  transition:border-color .16s;
}
.set-code::placeholder{color:var(--dimmer);font-family:var(--fs);font-size:.82rem}
.set-code:focus{border-color:rgba(37,224,125,.55)}
.set-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:.6rem}
.set-actions .btn{min-height:44px;padding:.55rem .6rem;font-size:.82rem;white-space:normal;line-height:1.2}
.set-actions .btn.is-armed{background:#25e07d;color:#042312;border-color:#52ffaa}
.set-msg{margin:.6rem 0 0;font-size:.8rem;line-height:1.45;color:var(--dim)}
.set-msg.ok{color:#8ef7bd}
.set-msg.err{color:#ff8a8e}
.set-danger{
  display:block;margin:1.1rem auto 0;min-height:40px;padding:.45rem .8rem;border:0;background:none;
  color:var(--dim);font:inherit;font-size:.8rem;font-weight:600;cursor:pointer;
}
.set-danger:hover{color:#ff8a8e;text-decoration:underline}
.set-danger.is-armed{color:#ff8a8e;font-weight:800;text-decoration:underline}
@media(max-width:520px){
  #settingsModal .set-code{font-size:16px}
  #settingsModal .set-row{padding:.62rem .75rem}
  .spotle-actions{width:100%;margin-left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
  .spotle-actions .spotle-hint-btn,.spotle-actions .spotle-giveup-btn{justify-content:center;width:100%;min-height:40px}
}
body[data-anim="off"] .set-switch,
body[data-anim="off"] .set-switch .set-knob{transition:none}

@media(max-width:680px){
  .wrap:has(#artistGame:not([hidden])){padding:1.05rem .9rem 1.25rem}
  .wrap:has(#artistGame:not([hidden])) .head{margin-bottom:.75rem}
  .wrap:has(#artistGame:not([hidden])) .logo{font-size:1.9rem}
  .wrap:has(#artistGame:not([hidden])) .foot{margin-top:.95rem}
  #lobby .arcade-row{grid-template-columns:minmax(0,1fr);gap:.75rem}
  #artistGame #agQ,.spotle-search input,#spotifyUrl,#spotifyRoundsCustom{font-size:16px}
  .spotify-input-row{grid-template-columns:1fr}
  .spotify-go{width:100%}
  .spotify-rounds-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.45rem .6rem}
  .spotify-rounds-lbl{grid-column:1;grid-row:1}
  .spotify-rounds-custom{grid-column:2;grid-row:1;width:96px;min-height:36px;padding:.24rem .6rem}
  .spotify-rounds-seg{grid-column:1 / -1;grid-row:2;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
  .spotify-rounds-seg button{min-height:36px;padding:.38rem .2rem;font-size:.78rem}
  .spotle-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .spotle-result-banner{flex-direction:column;align-items:stretch;padding:1rem}
  .spotle-result-actions{width:100%;display:flex;flex-direction:column-reverse;gap:.5rem}
  .spotle-result-actions .btn{width:100%;min-height:44px}
}

/* ====== Wave 66: Comprehensive Mobile UI Polish (<= 520px / <= 420px) ====== */
@media(max-width:680px){
  .wrap{padding-bottom:max(1.2rem,env(safe-area-inset-bottom))}
  .foot{margin-top:1.15rem}
  .modal{padding-bottom:max(.75rem,env(safe-area-inset-bottom))}
}
@media(max-width:520px){
  /* Song Game Arena: compact Play card (keeping readout beside Play button), crisp 5-stage pills, elevated dropdown */
  .vinyl-card{padding:.88rem .85rem .8rem;gap:.65rem}
  #game .steps.live{gap:.22rem;margin-bottom:.62rem}
  #game .steps.live li{padding:.36rem .16rem;font-size:.62rem;letter-spacing:-.01em}
  #game .dd{
    max-height:min(46vh,272px);
    box-shadow:0 20px 48px rgba(0,0,0,.86);
  }
  #game .dd-item{padding:.48rem .52rem;gap:.55rem}
  #game .dd-art{width:40px;height:40px}

  /* Result modal & Run/Duel Summary: single-row reveal footer (no wrap), clean 3-row hero, 2-col square cards */
  #resultModal .reveal-foot{gap:.6rem;justify-content:space-between;flex-wrap:nowrap}
  #resultModal #listen,
  #resultModal #reportSong{display:inline-flex;align-items:center;width:auto;margin:0;padding:.25rem 0;font-size:.76rem;white-space:nowrap;flex:none}
  .sheet.run-sheet .run-hero{
    display:grid;grid-template-columns:auto minmax(0,1fr);
    column-gap:.75rem;row-gap:.34rem;align-items:center;
    padding:0 0 .78rem 0;margin-bottom:.75rem;
  }
  .sheet.run-sheet .run-head{display:contents}
  .sheet.run-sheet .run-kicker{
    grid-column:1 / -1;grid-row:1;justify-self:start;
    max-width:calc(100% - 2.65rem);
    font-size:.62rem;letter-spacing:.06em;padding:.2rem .62rem;
  }
  .sheet.run-sheet .run-fan{grid-column:1;grid-row:2;width:82px;height:62px}
  .sheet.run-sheet .run-fan.count-2{width:74px}
  .sheet.run-sheet .run-fan.single{width:76px;height:62px}
  .sheet.run-sheet .run-fan .fan-card{width:48px;height:48px;top:6px;border-radius:9px}
  .sheet.run-sheet .run-fan .f2{left:14px;top:3px}
  .sheet.run-sheet .run-fan .f3{left:28px}
  .sheet.run-sheet .run-fan.count-2 .f2{left:16px}
  .sheet.run-sheet .run-fan.single .f2{width:58px;height:58px;top:2px}
  .sheet.run-sheet .fan-disc{width:48px;height:48px;top:6px}
  .sheet.run-sheet .run-scoreline{grid-column:2;grid-row:2;gap:.45rem;margin-top:0}
  .sheet.run-sheet #dailyResult,
  .sheet.run-sheet .challenge-comparison{
    grid-column:1 / -1;grid-row:3;margin:.12rem 0 0;font-size:.8rem;line-height:1.45;
  }
  .sheet.run-sheet .r-actions,
  #duelModal .sheet.run-sheet .r-actions{
    grid-template-columns:minmax(0,.84fr) minmax(0,1.42fr);gap:.48rem;width:100%;
  }
  .sheet.run-sheet[data-mode="daily"] .r-actions{
    grid-template-columns:1fr;
  }
  .sheet.run-sheet .run-foot-links{
    grid-template-columns:1fr;gap:.48rem;width:100%;
  }
  .sheet.run-sheet .r-actions .btn,
  .sheet.run-sheet .customlink{font-size:.77rem;padding:.52rem .48rem}

  /* Custom Artist modal: single-row header with matched pill actions */
  #customModal .custom-quick-head{flex-wrap:nowrap;align-items:center;gap:.45rem}
  #customModal .custom-quick-lbl{white-space:nowrap}
  #customModal .custom-quick-actions{gap:.32rem}
  #customModal .custom-quick-clear{
    min-height:30px;padding:.22rem .54rem;font-size:.71rem;
    background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.11);
    color:var(--ink);white-space:nowrap;
  }
  #customModal .artist-chip{min-height:34px;padding:.36rem .72rem;font-size:.78rem}

  /* Stats & Badges modal: breathable 1-col horizontal badges + crisp stat labels */
  #statsModal .statgrid small{font-size:.66rem;white-space:nowrap}
  #statsModal .badge-grid{grid-template-columns:1fr;gap:.45rem}
  #statsModal .badge-card{align-items:center;padding:.62rem .75rem;gap:.65rem}
  #statsModal .badge-ico{width:32px;height:32px;border-radius:10px}
  #statsModal .badge-ico svg{width:16px;height:16px}
  #statsModal .badge-copy b{font-size:.82rem}
  #statsModal .badge-copy small{font-size:.72rem;line-height:1.35}

  /* Settings modal: legible monospace backup box + balanced side-by-side buttons */
  #settingsModal .set-code{font-size:.76rem;line-height:1.48;min-height:76px;padding:.58rem .7rem}
  #settingsModal .set-actions .btn{font-size:.77rem;padding:.5rem .45rem;min-height:42px}

  /* Music Duel: comfortable vertical rhythm + safe header wrapping */
  #duel .duel-controls{margin-bottom:.65rem}
  #duel .duel-prompt{margin-bottom:.75rem;font-size:.82rem}
  #duel .duel-card{padding:.88rem .82rem;gap:.5rem}
  #duel .duel-grid{gap:.55rem}

  /* Artist Detective: uniform 6-tile height (no 2-line GLOBAL RANK) + crisp stacked result buttons */
  .spotle-tiles{gap:.38rem}
  .sp-tile{padding:.48rem .28rem;min-height:54px}
  .sp-tile small{font-size:.57rem;letter-spacing:.035em;white-space:nowrap}
  .sp-tile b{font-size:.78rem}
  .spotle-result-actions{
    display:grid;grid-template-columns:1fr;gap:.48rem;
  }
  .spotle-result-actions #agNextBtn{order:-1}
  .spotle-result-actions .btn{min-height:44px;padding:.56rem .75rem;font-size:.82rem;white-space:nowrap;line-height:1.2}
}
@media(max-width:420px){
  #duel .gamebar,#artistGame .gamebar{flex-wrap:wrap;row-gap:.4rem}
  #settingsModal .set-actions .btn{font-size:.74rem;padding:.48rem .38rem}
  .recent-pl-name{max-width:190px}
}

/* ====== Steam-Style Achievement Unlock Popup (#achToast) ====== */
.ach-toast{
  --ach-c:#25e07d;--ach-rgb:37,224,125;--ach-l:#8ef7bd;
  position:fixed;right:20px;bottom:20px;z-index:960;
  width:min(326px,calc(100vw - 24px));
  display:flex;align-items:center;gap:.72rem;text-align:left;
  padding:.66rem .9rem .74rem .76rem;border-radius:14px;overflow:hidden;cursor:pointer;
  background:linear-gradient(145deg,rgba(12,30,22,.97),rgba(6,15,11,.99));
  border:1px solid rgba(var(--ach-rgb),.55);
  box-shadow:0 24px 58px -12px rgba(0,0,0,.92),0 0 28px -6px rgba(var(--ach-rgb),.38),inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  transform:translate3d(115%,0,0);opacity:0;
  transition:transform .38s cubic-bezier(.16,1,.3,1),opacity .28s ease;
}
.ach-toast[hidden]{display:none}
.ach-toast.is-show{transform:translate3d(0,0,0);opacity:1}
.ach-toast[data-theme="blue"]{--ach-c:#3db6f5;--ach-rgb:61,182,245;--ach-l:#8ad8ff}
.ach-toast[data-theme="gold"]{--ach-c:#f5b13d;--ach-rgb:245,177,61;--ach-l:#ffe270}
.ach-toast[data-theme="purple"]{--ach-c:#a855f7;--ach-rgb:168,85,247;--ach-l:#e9d5ff}
.ach-toast::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg,transparent 25%,rgba(var(--ach-rgb),.18) 50%,transparent 75%);
  transform:translateX(-120%);
}
.ach-toast.is-show::before{animation:achShine 1.15s ease .15s forwards}
.ach-ico{
  flex:none;width:40px;height:40px;border-radius:10px;
  display:grid;place-items:center;color:var(--ach-l);
  background:linear-gradient(145deg,rgba(var(--ach-rgb),.32),rgba(var(--ach-rgb),.12));
  border:1px solid rgba(var(--ach-rgb),.52);
  box-shadow:0 0 20px -4px rgba(var(--ach-rgb),.55);
}
.ach-toast.is-show .ach-ico{animation:achPop .52s cubic-bezier(.18,1.35,.4,1) .08s both}
.ach-ico svg{width:20px;height:20px}
.ach-copy{min-width:0;display:flex;flex-direction:column;gap:.12rem;flex:1}
.ach-title{
  font-family:'Cabinet Grotesk',var(--fs);font-size:.96rem;font-weight:800;color:#fff;
  line-height:1.18;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ach-desc{
  font-size:.74rem;color:var(--dim);line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.ach-bar{
  position:absolute;left:0;right:0;bottom:0;height:2.5px;transform-origin:left center;
  background:linear-gradient(90deg,var(--ach-c),var(--ach-l));opacity:.85;
}
.ach-toast.is-show .ach-bar{animation:achTimer 4.2s linear forwards}
@keyframes achShine{to{transform:translateX(130%)}}
@keyframes achPop{0%{transform:scale(.62) rotate(-8deg)}65%{transform:scale(1.1) rotate(3deg)}100%{transform:scale(1) rotate(0)}}
@keyframes achTimer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media(max-width:560px){
  .ach-toast{
    left:50%;right:auto;bottom:max(12px,env(safe-area-inset-bottom));
    width:max-content;max-width:min(274px,calc(100vw - 36px));
    padding:.44rem .7rem .52rem .52rem;gap:.52rem;border-radius:12px;
    transform:translate3d(-50%,130%,0);
  }
  .ach-toast.is-show{transform:translate3d(-50%,0,0)}
  .ach-ico{width:30px;height:30px;border-radius:8px}
  .ach-ico svg{width:15px;height:15px}
  .ach-copy{gap:.05rem}
  .ach-title{font-size:.81rem;line-height:1.15}
  .ach-desc{font-size:.67rem;line-height:1.25;-webkit-line-clamp:1}
  .ach-bar{height:2px}
}

/* ====== Wave 76: Mobile Search Auto-Scroll Runway & Keyboard-Aware Dropdown ====== */
@media(max-width:760px){
  body.is-searching .wrap,
  .wrap:has(#q:focus,#dd:not([hidden])),
  .wrap:has(#agQ:focus,#agDD:not([hidden])){
    padding-bottom:52vh;
  }
  #game .dd,
  #artistGame .spotle-dd{
    max-height:min(42dvh,256px);
  }
}
