/* Reuse the rendered stage materials; all extra motion is bounded to a win. */
.concert-dialog{width:min(94vw,800px);max-width:94vw;max-height:92svh;border:2px solid #e2bc79;border-radius:22px;background:#180d26;box-shadow:0 24px 80px #0009,inset 0 0 0 4px #5e355840;overscroll-behavior:contain}
.concert-dialog::backdrop{background:#070310dc;backdrop-filter:none}
.concert-dialog .dialog-card{padding:26px 30px 30px;background:radial-gradient(ellipse at 50% 0,#63365c66,transparent 420px),linear-gradient(130deg,#251233,#110b1e);font-size:16px;line-height:1.55}
.concert-dialog .concert-heading{text-align:center;position:relative;padding:2px 30px 22px;margin-bottom:20px;border-bottom:1px solid #e3b97b59}
.concert-heading img{display:block;object-fit:contain;width:190px;height:auto;max-width:100%;margin:0 auto 14px}
.concert-heading .eyebrow{font-size:12px;letter-spacing:3px;color:#cdaac8}
.concert-dialog h2,.concert-dialog h3,.concert-dialog button,.concert-dialog strong,.concert-dialog .show-facts b{font-family:Bonanza,Arial,sans-serif;font-weight:400}
.concert-dialog h2{font-size:36px;line-height:1.18;margin:8px 0 0;color:#ffe4a6;text-shadow:0 2px #573137,0 4px #10091c}
.concert-dialog h3{font-size:24px;line-height:1.25;color:#ffe4af;margin:20px 0 12px}
.concert-dialog .dialog-close{position:absolute;z-index:4;right:14px;top:14px;width:42px;height:42px;padding:0;display:grid;place-items:center;border:1px solid #d6ae7480;border-radius:50%;background:linear-gradient(#59365c,#24142f);box-shadow:inset 0 1px #ffe8b64a;color:#ffe5ad;font-size:28px}
.concert-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;margin:0 0 22px;border:1px solid #d6ad6940;border-radius:13px;background:#0e091b;position:relative}
.concert-tabs button{min-height:48px;min-width:0;border:1px solid transparent;border-radius:8px;background:transparent;font-size:16px;color:#d3bcd9;line-height:1.3;padding:10px 5px}
.concert-tabs [aria-selected=true]{background:linear-gradient(#80506f,#4b2a4c);border-color:#efc985;color:#fff1c8;box-shadow:inset 0 1px #ffe8bc55}
.concert-tabs button:hover:not([aria-selected=true]){background:#51324c55;color:#fff0d5}
.concert-dialog [role=tabpanel]{animation:menuPanelIn .2s ease-out}
@keyframes menuPanelIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.instrument-icon{display:block;width:64px;height:64px;background:url('./assets/instruments-v2.webp') var(--pos)/400% 200% no-repeat;flex-shrink:0}
.show-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 20px}
.show-facts>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;border:1px solid #c6a77350;border-radius:12px;padding:14px 10px;background:linear-gradient(#4f2e5844,#28183144)}
.show-facts .instrument-icon,.show-facts img{width:76px;height:76px;object-fit:contain}
.show-facts b{font-size:20px;line-height:1.2;color:#ffe5a9;overflow-wrap:anywhere}.show-facts span{font-size:14px;color:#ddcbe8;line-height:1.4}
.concert-dialog .rtp-panel{margin-bottom:20px}.concert-dialog .rtp-heading h3{margin:0;font-size:20px}
.concert-dialog .demo-note,.table-hint{font-size:13px;line-height:1.55;color:#cdbed6}
.paytable-scroll{max-width:100%;overflow-x:auto;overscroll-behavior:contain;border:1px solid #c9a26066;border-radius:12px;background:#100a1b;scrollbar-color:#b6895a #1b1027}
.concert-dialog .paytable{font-variant-numeric:tabular-nums;font-size:15px;min-width:520px;margin:0}
.concert-dialog .paytable thead th{padding:14px 10px;background:#563049;color:#ffe6b6;font-family:Bonanza,Arial,sans-serif;font-weight:400;font-size:16px}
.concert-dialog .paytable tbody th{font-family:Bonanza,Arial,sans-serif;font-size:16px;font-weight:400;color:#fff1d1;text-align:left;padding:9px 10px;border-bottom:1px solid #ffffff18;white-space:nowrap}
.concert-dialog .paytable tbody th .instrument-icon{display:inline-block;vertical-align:middle;width:60px;height:60px;margin-right:10px}
.concert-dialog .paytable tbody td{padding:10px;color:#f7e7d1}
.concert-dialog .paytable tbody tr:nth-child(even){background:#6f44631a}
.concert-dialog .paytable tbody tr:hover{background:#81534426}
.concert-dialog .audio-control{padding:18px 16px;margin:14px 0;background:#492f4a35;border:1px solid #d8b07140;border-radius:12px;grid-template-columns:65px minmax(0,1fr) 52px}
.concert-dialog .audio-control input{accent-color:#f0c37b;min-width:0;height:26px}.concert-dialog .audio-control output{font-family:Bonanza,Arial,sans-serif;color:#ffe3a5;font-size:18px}
.concert-dialog .melody-preview>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.concert-dialog .melody-preview button,.concert-dialog .audio-mute{font-size:16px;min-height:46px;line-height:1.3;padding:12px;border-color:#d5b27b80;background:linear-gradient(#654363,#321c3d);box-shadow:inset 0 1px #ffe7ad33;color:#fff0c7}
.concert-dialog .audio-mute{width:100%;margin-top:10px}.concert-dialog .melody-preview #stopMelody{font-size:14px;min-height:40px;color:#d4c6e2}
.concert-dialog button:hover:not(:disabled){border-color:#ffe1a2}.concert-dialog button:active:not(:disabled){translate:0 1px}
.concert-dialog button:disabled{opacity:.5}
.wallet .bet-stat{background:none;border:0;text-align:inherit;padding:0;color:inherit;font:inherit;border-radius:4px}.wallet .bet-stat:hover:not(:disabled){color:#ffe0a5}.bet-stat>span i{font-style:normal;font-size:14px;color:#e3bc80}
.bet-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}
.bet-options button{font-size:20px;padding:16px 6px;min-height:60px;line-height:1.3;border-radius:12px;border:1px solid #d4b07866;background:linear-gradient(#432646,#20132f);box-shadow:inset 0 1px #ffe9b733;color:#e1cddd}
.bet-options [aria-pressed=true]{background:linear-gradient(#ffe4a8,#d8a761);border-color:#fff0c1;color:#351830;box-shadow:inset 0 2px #fff7d9,0 0 0 3px #8a583650}
.concert-dialog .chosen-bet{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0}.chosen-bet span{font-size:12px;letter-spacing:2px;color:#c5a8c7}.chosen-bet strong{font-size:48px;color:#ffe0a1;line-height:1.1;font-variant-numeric:tabular-nums}
.bet-breakdown{padding:16px 20px;margin:24px 0 8px;background:#0f0a1b;border:1px solid #c89e6759;border-radius:12px;font-size:16px}
.bet-breakdown>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;padding:6px 0}.bet-breakdown dd{margin:0;color:#ffe0a6;font-family:Bonanza,Arial,sans-serif;font-size:20px}
.concert-primary{display:block;width:100%;margin:20px 0 0;padding:17px;border:1px solid #ffebb8;border-radius:12px;background:linear-gradient(#efce92,#cd9653);box-shadow:inset 0 2px #fff1bc,0 3px #4b2938;color:#361a33;font-size:20px}
/* Each detail is a clipped piece of the original instrument bitmap. No new assets,
   filters or resting-cell transforms: the reel landing stays exactly as before. */
.instrument-detail{position:absolute;left:50%;top:50%;height:94%;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;opacity:0;z-index:1}
.instrument-detail i{position:absolute;inset:0;background:url('./assets/instruments-v2.webp') var(--pos)/400% 200% no-repeat}
.symbol.winner:not(.exploding) .instrument-detail{opacity:1}
.symbol[data-symbol=piano] .instrument-detail i{clip-path:polygon(14% 56%,29% 59%,30% 65%,14% 61%)}
.symbol[data-symbol=piano] .instrument-detail i:nth-child(2){clip-path:polygon(29% 59%,43% 63%,43% 69%,29% 65%)}
.symbol[data-symbol=piano] .instrument-detail i:nth-child(3){clip-path:polygon(43% 63%,55% 66%,55% 72%,43% 69%)}
.symbol[data-symbol=synth] .instrument-detail i{clip-path:polygon(15% 47%,29% 38%,42% 47%,32% 60%)}
.symbol[data-symbol=synth] .instrument-detail i:nth-child(2){clip-path:polygon(34% 56%,46% 43%,64% 54%,54% 73%)}
.symbol[data-symbol=synth] .instrument-detail i:nth-child(3){clip-path:polygon(56% 68%,68% 51%,80% 60%,75% 79%)}
.symbol[data-symbol=guitar] .instrument-detail i{clip-path:polygon(34% 65%,69% 22%,74% 25%,39% 72%)}
.symbol[data-symbol=headphones] .instrument-detail i{clip-path:polygon(4% 42%,43% 49%,62% 41%,89% 42%,90% 94%,9% 90%)}
.symbol[data-symbol=mic] .instrument-detail i{clip-path:polygon(42% 7%,78% 14%,78% 52%,34% 52%)}
.symbol[data-symbol=note] .instrument-detail i{clip-path:polygon(4% 59%,40% 58%,47% 94%,6% 97%)}
.symbol[data-symbol=equalizer] .instrument-detail i{clip-path:inset(15% calc(79% - var(--part)*18%) 13% calc(5% + var(--part)*18%))}
.symbol.winner[data-symbol=piano]::before,.symbol.winner[data-symbol=synth]::before,.symbol.winner[data-symbol=equalizer]::before{animation:instrumentHold .65s ease-out both}
.symbol.winner[data-symbol=guitar]::before{animation:guitarStrum .65s ease-out both}
.symbol.winner[data-symbol=mic]::before{animation:micBow .65s ease-out both}
.symbol.winner[data-symbol=headphones]::before{animation:headphoneBeat .65s ease-out both}
.symbol.winner[data-symbol=note]::before{animation:noteDance .65s ease-out both}
.symbol.winner[data-symbol=piano] .instrument-detail i,.symbol.winner[data-symbol=synth] .instrument-detail i{animation:keyPress .42s calc(var(--part)*.075s) ease-out both}
.symbol.winner[data-symbol=guitar] .instrument-detail i{animation:stringVibration .055s linear 9 alternate}
.symbol.winner[data-symbol=headphones] .instrument-detail i{animation:earBeat .24s ease-in-out 2 alternate}
.symbol.winner[data-symbol=mic] .instrument-detail i{animation:micGleam .5s ease-in-out both}
.symbol.winner[data-symbol=note] .instrument-detail i{animation:earBeat .27s ease-in-out 2 alternate}
.symbol.winner[data-symbol=equalizer] .instrument-detail i{animation:meterDance .4s calc(var(--part)*.04s) ease-in-out both}
.symbol.winner.exploding::before{animation:burstArtwork .28s ease-out forwards}
@keyframes instrumentHold{0%,100%{transform:translate(-50%,-50%)}35%{transform:translate(-50%,-52%)}}
@keyframes guitarStrum{0%,100%{transform:translate(-50%,-50%) rotate(0)}24%{transform:translate(-50%,-50%) rotate(-7deg)}55%{transform:translate(-50%,-50%) rotate(4deg)}}
@keyframes micBow{0%,100%{transform:translate(-50%,-50%) rotate(0)}35%{transform:translate(-50%,-50%) rotate(-6deg)}65%{transform:translate(-50%,-50%) rotate(3deg)}}
@keyframes headphoneBeat{0%,100%{transform:translate(-50%,-50%) scale(1)}30%,65%{transform:translate(-50%,-50%) scale(1.065)}48%{transform:translate(-50%,-50%) scale(1)}}
@keyframes noteDance{0%,100%{transform:translate(-50%,-50%) rotate(0)}30%{transform:translate(-50%,-57%) rotate(7deg)}60%{transform:translate(-50%,-48%) rotate(-4deg)}}
@keyframes keyPress{0%,100%{transform:none;opacity:0}25%,70%{transform:translateY(1.7%);opacity:1}}
@keyframes stringVibration{from{transform:translateX(-.6%);opacity:.65}to{transform:translateX(.6%);opacity:1}}
@keyframes earBeat{from{transform:scale(1);opacity:0}to{transform:scale(1.045);opacity:.9}}
@keyframes micGleam{0%,100%{opacity:0;transform:none}45%{opacity:.85;transform:translateY(-1%)}}
@keyframes meterDance{0%,100%{transform:none;opacity:0}35%{transform:translateY(calc(-2% - var(--part)*.6%));opacity:1}}
.portrait .instrument-detail{height:92%}
/* The same winning tier stays mounted through anticipation, count and finale. */
.game-shell>.win-banner{--count-progress:0}
.game-shell>.win-banner[data-show-phase=anticipation] .win-art,.game-shell>.win-banner[data-show-phase=anticipation]>span,.game-shell>.win-banner[data-show-phase=anticipation]>strong,.game-shell>.win-banner[data-show-phase=anticipation] .win-context,.game-shell>.win-banner[data-show-phase=anticipation] .win-count-track{visibility:hidden}
.game-shell>.win-banner[data-show-phase=anticipation]::before{opacity:.16}
.game-shell>.win-banner::after{animation:none;opacity:0;box-shadow:none;border-width:2px}
.game-shell>.win-banner[data-show-phase=counting]::after{animation:concertRing .85s ease-out both}
.game-shell>.win-banner[data-show-phase=counting] .win-art{animation:concertArt .65s cubic-bezier(.12,.75,.2,1) both}
.game-shell>.win-banner[data-show-phase=finale]::after{animation:concertRing .7s ease-out both}
.game-shell>.win-banner[data-show-phase=finale]::before{opacity:.7;transition:opacity .2s}
/* Reserve a separate footer below the artwork and its gold ornament. */
body:not(.portrait) .game-shell>.win-banner .win-art{top:1%;bottom:auto;height:76%}
body:not(.portrait) .game-shell>.win-banner:is([data-level=epic],[data-level=free])>strong{top:55.3%}
body:not(.portrait) .game-shell>.win-banner[data-level=sensational]>strong{top:58%}
.win-actions{position:absolute;left:0;right:0;bottom:6%;z-index:4;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.game-shell>.win-banner .win-actions .win-context,.game-shell>.win-banner .win-actions button{position:static;margin:0}
.win-count-track{width:220px;max-width:56%;height:3px;flex-shrink:0;background:#fff1bd14;border-radius:999px;overflow:hidden;z-index:4;opacity:.8;transition:opacity .2s ease}
.win-count-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b68c50,#ffe2a0);transform:scaleX(var(--count-progress));transform-origin:left;box-shadow:none}
.game-shell>.win-banner[data-show-phase=finale] .win-count-track{opacity:0}
.game-shell>.win-banner[data-level=big]::before{opacity:.22}
.game-shell>.win-banner[data-level=big] .celebration-stars{display:none}
.game-shell>.win-banner[data-level=big]>strong{background:none;border:0;box-shadow:none;text-shadow:0 3px #693649;padding:10px 24px}
.game-shell>.win-banner[data-level=big]>span{font-size:124px}
.game-shell>.win-banner button{min-width:200px}
.portrait .win-actions{bottom:15%;gap:16px}
.portrait .win-count-track{width:180px}
.portrait .game-shell>.win-banner[data-level=big]>span{font-size:clamp(36px,12vw,64px)}
.portrait .game-shell>.win-banner[data-level=big]>strong{font-size:44px;max-width:100%;padding:8px}
.fx-minimal .instrument-detail{display:none}
@media(max-width:520px){
 .concert-dialog{border-radius:16px}.concert-dialog .dialog-card{padding:18px 16px 22px}.concert-dialog .concert-heading{padding:0 25px 18px}.concert-heading img{width:155px;margin-bottom:10px}.concert-dialog h2{font-size:30px}.concert-tabs{gap:3px}.concert-tabs button{font-size:14px;padding:10px 3px}.show-facts{gap:8px}.show-facts b{font-size:17px}.show-facts span{font-size:13px}.show-facts .instrument-icon,.show-facts img{width:62px;height:62px}.concert-dialog .paytable{min-width:460px}.concert-dialog .paytable tbody th .instrument-icon{width:48px;height:48px;margin-right:7px}.bet-options{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.bet-options button{min-height:52px;font-size:20px;padding:10px}.concert-dialog .audio-control{padding:12px 10px;gap:8px;grid-template-columns:50px minmax(0,1fr) 48px}.concert-dialog .melody-preview button{font-size:14px}.chosen-bet strong{font-size:40px}
}
@media(prefers-reduced-motion:reduce){.instrument-detail{display:none!important}.symbol.winner::before,.concert-dialog [role=tabpanel]{animation:none!important}.game-shell>.win-banner::after{display:none}}
@media(max-width:520px){
 #betDialog .concert-heading{padding-bottom:12px;margin-bottom:12px}#betDialog .concert-heading img{width:112px;margin-bottom:6px}#betDialog .concert-heading h2{font-size:28px;margin-top:5px}#betDialog .chosen-bet{gap:4px}#betDialog .chosen-bet strong{font-size:36px}#betDialog .bet-options{margin:16px 0}#betDialog .bet-options button{min-height:48px}#betDialog .bet-breakdown{margin-top:16px;padding:10px 14px}#betDialog .concert-primary{margin-top:14px;padding:14px}
}
/* On phones each instrument keeps all four payout tiers on screen. */
@media(max-width:520px){
 .concert-dialog .paytable{display:block;min-width:0;width:100%}
 .concert-dialog .paytable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .concert-dialog .paytable tbody{display:grid;gap:10px;padding:10px}
 .concert-dialog .paytable tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #c6a5733b;border-radius:10px;overflow:hidden;background:#51324c20}
 .concert-dialog .paytable tbody th{grid-column:1/-1;padding:8px;display:flex;align-items:center;font-size:17px;white-space:normal;border-bottom:1px solid #c6a57326}
 .concert-dialog .paytable tbody th .instrument-icon{width:45px;height:45px;margin-right:8px}
 .concert-dialog .paytable tbody td{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0;border:0;font-size:13px;line-height:1.5}
 .concert-dialog .paytable tbody td::before{content:attr(data-count);font-size:12px;color:#c1a9cd;margin-bottom:3px}
}

/* Publisher link stays clear of the mobile game logo and the play controls. */
.mb-play-link{position:absolute;top:14px;right:24px;z-index:20;display:inline-flex;align-items:center;gap:.3em;min-height:44px;padding:0 12px;color:#fff1d2;font:800 24px/1 Arial,sans-serif;letter-spacing:1.5px;text-decoration:none;text-shadow:0 2px 8px #0009;border-radius:8px}
.mb-play-link span{color:#e9bc68}
.mb-play-link:hover{background:#271033aa;color:#fff}
.mb-play-link:focus-visible{outline:2px solid #6cecff;outline-offset:3px}
.portrait .mb-play-link{top:16px;right:10px;font-size:16px;letter-spacing:1px;padding:0 8px}
.portrait .brand{left:12px;transform:none;width:180px}
