.sound-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #6885a46b;border-radius:30px;background:#0b1829ed;color:#e6edf7;padding:10px 15px;min-height:42px;font:600 12px inherit;cursor:pointer}.sound-control img{width:23px;height:23px;object-fit:contain}.lobby-sound-row{display:flex;justify-content:flex-end;margin:8px 0 14px}#cinema-hud .cinema-actions{display:flex;justify-content:center;gap:12px;pointer-events:auto}
#celebration{position:fixed;inset:0;z-index:1100;overflow:auto;background:radial-gradient(ellipse at 50% 35%,#233b55bb,transparent 60%),linear-gradient(125deg,#220c18,#06101c 45%,#041a30);color:#fff1cf;padding:clamp(14px,3vw,40px);isolation:isolate}#celebration[hidden]{display:none!important}body.celebrating{overflow:hidden}#celebration::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 5% 95%,#f14e0855,transparent 42%),radial-gradient(ellipse at 95% 70%,#009dff44,transparent 40%)}
.celebration-top{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1300px;margin:auto}.celebration-brand{font-size:12px;font-weight:800;letter-spacing:.2em;color:#d7b569}.celebration-tools{display:flex;gap:10px}.celebration-tools button{position:relative;z-index:2}#celebration-effects{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.celebration-body{max-width:1100px;margin:clamp(14px,4vh,60px) auto 0;text-align:center}.celebration-kicker{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:#d2b884}.celebration-title{margin:10px 0 20px;font-size:clamp(30px,5vw,70px);line-height:1.05;font-weight:950;letter-spacing:.03em;background:linear-gradient(#fff9d8 18%,#ffd068 60%,#ba7b1e);background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 #68421d)}.celebration-hero{display:flex;align-items:center;justify-content:center;gap:clamp(22px,5vw,80px);perspective:900px}.outcome-orbit{width:clamp(150px,23vw,280px);aspect-ratio:1;border-radius:50%;position:relative;display:grid;place-items:center;border:2px solid #f3cc74;box-shadow:0 0 0 7px #080f20,0 0 0 9px #987338,0 12px 45px #f19a2638;background:radial-gradient(circle at 35% 20%,#e03647,#860619 58%,#2e0b16)}.outcome-orbit[data-color=black]{background:radial-gradient(circle at 35% 20%,#466074,#101924 60%,#02050b)}.outcome-orbit[data-color=green]{background:radial-gradient(circle at 35% 20%,#2fd199,#036840 60%,#022720)}.outcome-number{font-weight:950;line-height:1;font-size:clamp(95px,16vw,200px);color:#fff5d5;text-shadow:1px 1px #dbc695,2px 2px #baa174,3px 3px #a18551,4px 4px #775d38,5px 5px #473823,0 16px 20px #0009;transform:translateY(-7px)}.outcome-caption{position:absolute;bottom:10%;font-size:10px;letter-spacing:.24em;font-weight:700;color:#ffe7ae}.winner-portrait{width:clamp(96px,12vw,155px);aspect-ratio:1;border:2px solid #f8d883;border-radius:50%;object-fit:cover;object-position:50% 15%;background:#0c2034;box-shadow:0 0 0 6px #7a622122,0 0 42px #fbca5444}.winner-portrait[hidden]{display:none}.winner-block{width:clamp(160px,30vw,400px);display:flex;align-items:center;flex-direction:column;gap:8px}.winner-crown{font-size:28px;color:#f6d064;line-height:1}.winner-name{font-size:clamp(22px,3vw,42px);overflow-wrap:anywhere;line-height:1.1;margin:0}.winner-label{font-size:11px;letter-spacing:.18em;color:#a9c2d9}.winner-prize{font-weight:800;font-size:clamp(23px,3vw,38px);color:#ffd36e}.celebration-detail{color:#b9c9d8;font-size:13px;max-width:800px;margin:22px auto;line-height:1.5}.rematch-card{max-width:820px;margin:22px auto 0;background:linear-gradient(120deg,#142235e8,#07111fef);border:1px solid #60768b70;border-radius:20px;padding:18px 24px;box-shadow:0 12px 50px #0005}.rematch-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;font-weight:700}.rematch-clock{color:#f8d787;font-variant-numeric:tabular-nums;font-size:22px}.rematch-progress{height:3px;margin:10px 0 16px;background:#374155;overflow:hidden;border-radius:3px}.rematch-progress span{display:block;background:linear-gradient(90deg,#f59e20,#ffe5a2);height:100%;transition:width .25s linear}.rematch-seats{display:flex;justify-content:center;gap:8px;margin:12px 0;flex-wrap:wrap}.rematch-seat{border:1px solid #42556b;border-radius:24px;display:flex;align-items:center;gap:7px;padding:5px 12px 5px 5px;font-size:12px;color:#b9c7d7}.rematch-seat img{width:26px;height:26px;border-radius:50%;object-fit:cover;background:#132339}.rematch-seat.accepted{border-color:#54d3a0;color:#84edbd}.rematch-actions{display:flex;gap:12px;justify-content:center}.rematch-actions button{flex:1;min-height:48px}.rematch-terms{font-size:11px;line-height:1.4;color:#9db1c7;margin:10px 0 0}.outcome-error{font-size:13px;color:#ffb8a3;margin:10px 0 0;min-height:1em}.celebration-enter .outcome-orbit{animation:outcome-arrival .8s cubic-bezier(.2,.8,.2,1) both}.celebration-enter .winner-block{animation:winner-arrival 1s .2s both}.celebration-enter .celebration-title{animation:winner-arrival .7s both}.celebration-diamond{width:25px;height:22px;display:inline-block;background:conic-gradient(from 40deg,#fff,#7bc5eb,#eaffff,#459ccc,#fff);clip-path:polygon(20% 0,80% 0,100% 35%,50% 100%,0 35%);vertical-align:middle;margin:0 14px}
@keyframes outcome-arrival{from{opacity:0;transform:rotateY(-65deg) scale(.6)}to{opacity:1;transform:rotateY(0) scale(1)}}@keyframes winner-arrival{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:550px) and (orientation:landscape){#celebration{padding:10px 20px}.celebration-top{max-width:1050px}.celebration-body{margin:5px auto 0;display:grid;grid-template-columns:1fr 1fr;column-gap:25px;align-items:center;max-width:1000px}.celebration-kicker{grid-column:1;font-size:9px}.celebration-title{grid-column:1;font-size:30px;margin:6px 0 10px}.celebration-hero{grid-column:1;gap:22px}.outcome-orbit{width:125px}.outcome-number{font-size:87px}.outcome-caption{font-size:8px}.winner-block{width:150px;gap:4px}.winner-portrait{width:67px}.winner-crown{display:none}.winner-name{font-size:21px}.winner-prize{font-size:22px}.winner-label{font-size:9px}.celebration-detail{grid-column:1;font-size:10px;margin:14px 0 0}.rematch-card{grid-column:2;grid-row:1/5;margin:0;padding:15px;width:100%;box-sizing:border-box}.rematch-heading{font-size:13px}.rematch-seats{gap:5px}.rematch-seat{font-size:10px}.rematch-actions{flex-direction:column;gap:7px}.rematch-actions button{min-height:42px;font-size:13px}.rematch-terms{font-size:10px}.outcome-error{font-size:11px}.celebration-tools button{min-height:34px;padding:6px 10px}.celebration-brand{font-size:10px}.celebration-diamond{width:17px;height:16px;margin:0 6px}}
@media(max-width:550px) and (orientation:portrait){.celebration-hero{gap:18px}.winner-block{width:145px}.celebration-brand{font-size:9px}.celebration-tools{gap:6px}.celebration-tools [data-sound-label]{display:none}.rematch-card{padding:16px}.rematch-actions{flex-direction:column}.celebration-title{font-size:32px}}
@media(prefers-reduced-motion:reduce){#celebration *{animation:none!important;transition:none!important}#celebration-effects{display:none}}
/* The closing screen sits in the browser's modal layer and also fits portrait. */
#continue-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 24px);overflow:auto;border-color:#d5ac58;background:linear-gradient(135deg,#17283e,#081321);box-shadow:0 0 65px #128ed438}
#continue-dialog h2{color:#ffe0a0;font-size:clamp(23px,4vw,32px)}#continue-dialog p{line-height:1.5;color:#c0d1e3}#continue-dialog button{display:block;width:100%;margin-top:12px;min-height:44px}#continue-dialog::backdrop{background:#030b16dc;backdrop-filter:blur(8px)}
@media(max-height:550px) and (orientation:landscape){.rematch-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px}.rematch-actions button{min-height:34px;padding:8px 6px;font-size:11px}.rematch-actions #celebration-leave{grid-column:1/-1}.rematch-card{padding:10px}.rematch-seats{margin:7px 0;gap:4px}.rematch-seat{font-size:9px;padding:3px 7px 3px 3px}.rematch-seat img{width:21px;height:21px}.rematch-progress{margin:6px 0}.rematch-terms{font-size:9px;margin-top:7px}.outcome-error{font-size:10px;margin-top:5px;min-height:0}.celebration-body{align-items:start}.celebration-detail{margin-top:8px}#continue-dialog{padding:16px 20px;width:min(620px,calc(100vw - 32px))}#continue-dialog h2{font-size:24px;margin:10px 0}#continue-dialog p{font-size:12px;margin:10px 0}#continue-dialog .terms{padding:10px}#continue-dialog button{min-height:36px;padding:8px;margin-top:7px}}
.match-end{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);text-align:center;border:1px solid #d5ac58;border-radius:26px;padding:32px;background:radial-gradient(ellipse at top,#2b2737,#071421 65%);color:#f7e8c7;box-shadow:0 0 80px #128ed438;overflow:auto}
.match-end::backdrop{background:#030b16dc;backdrop-filter:blur(9px)}
.match-end[open]{animation:match-end-in .5s cubic-bezier(.2,.8,.2,1)}
.match-end h2{font-size:clamp(26px,5vw,40px);margin:16px 0;color:#ffe3a0}.match-end p{color:#b5c9df;line-height:1.5}
.match-end-emblem{font-size:64px;color:#ffdc81;text-shadow:0 0 24px #ff8b30,0 0 60px #d83d31;animation:match-end-glow 1.6s ease-in-out infinite alternate}
.match-end-count{margin:24px 0 14px;color:#adc8e8}.match-end-count strong{display:inline-block;font-size:28px;color:#ffe295;min-width:24px}
.match-end-track{height:4px;margin:0 0 26px;border-radius:4px;background:#28364a;overflow:hidden}.match-end-track span{display:block;height:100%;background:linear-gradient(90deg,#ff8b30,#ffe1a0,#36ceff);transform-origin:left;transition:transform .25s linear}
.match-end .gold-button{width:100%}@keyframes match-end-in{from{opacity:0;transform:scale(.85) translateY(24px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes match-end-glow{to{transform:scale(1.12);text-shadow:0 0 35px #ffc757,0 0 80px #2fc5ff}}
@media(max-height:500px) and (orientation:landscape){.match-end{padding:18px 28px;width:min(680px,90vw)}.match-end-emblem{font-size:30px;float:left;margin:10px}.match-end h2{font-size:28px;margin:8px}.match-end-count{margin:8px}.match-end p{margin:8px}.match-end-track{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){.match-end[open],.match-end-emblem{animation:none}.match-end-track span{transition:none}}
