/* scenes.css — the picture beside the welcome page's line: one scene for each kind of game, turning every 5 seconds
 * (owner, 2026-11-16: "make it dynamic with pages moving every 5 sec and each page shows a game style"; the hand in the
 * club's Jumbo cards on the Noir back, Tawleh set up as it starts, a small Battleship; Kaly and June on voice through all
 * of them (owner: "add 2 person talking … Kaly and June"); "brass"). Everything is sized by the scene's own width (cqw), so it draws the same on a phone and a computer, and
 * every colour is here: the page's Content-Security-Policy refuses colours written in the page. js/scenes.js turns it. */
.scene{--gold-hi:#e2be78;--gold-lo:#8c6d33;--walnut:#3a2414;--walnut-hi:#6b4122;--card-ink:#1d1a17;--red:#b8322a;--navy:#1f3550;
  position:relative;width:100%;max-width:520px;aspect-ratio:1/0.86;container-type:inline-size;margin:0 auto 11cqw}
.scene .glow{position:absolute;inset:4% 2% 6%;border-radius:50%;background:radial-gradient(closest-side,rgba(201,164,92,.34),rgba(201,164,92,.08) 60%,transparent)}

/* the pages: one shown at a time, fading into the next */
.scene .pg{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility 0s .7s}
.scene .pg.on{opacity:1;visibility:visible;transition:opacity .7s ease}
.scene .caption{position:absolute;left:0;right:0;bottom:-9cqw;display:flex;align-items:center;justify-content:center;gap:2.4cqw;flex-wrap:wrap}
.scene .caption .name{font-size:max(11px,2.6cqw);letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:var(--gold-hi)}
.scene .caption .list{font-size:max(11px,2.6cqw);color:var(--muted)}
.scene .pick{display:flex;gap:1.4cqw}
.scene .pick button{width:max(10px,2.2cqw);height:max(10px,2.2cqw);border-radius:50%;border:0;padding:0;background:var(--line);cursor:pointer}
.scene .pick button[aria-current="true"]{background:var(--gold)}
.scene .pick button:focus-visible{outline:2px solid var(--gold-hi);outline-offset:2px}
.scene .timer{position:absolute;left:30%;right:30%;bottom:-11.5cqw;height:max(2px,.5cqw);border-radius:99px;background:var(--line);overflow:hidden}
.scene .timer i{display:block;height:100%;width:0;background:var(--gold)}

/* voice chat: Kaly and June talking, the sound of it */
.scene .voice{position:absolute;left:0;top:3%;z-index:2;display:flex;align-items:center;gap:2cqw;padding:1.5cqw 2.4cqw 1.5cqw 1.5cqw;border-radius:99px;
  background:rgba(18,14,11,.92);border:.25cqw solid var(--gold-lo);box-shadow:0 1.6cqw 3cqw rgba(0,0,0,.5);transform:rotate(-4deg)}
.scene .voice .av{width:9.5cqw;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:600;font-size:4.6cqw;color:#fff;
  background:#9b3f6e;box-shadow:0 0 0 .5cqw #7fc79a}
.scene .voice .avs{display:flex}
.scene .voice .av.a2{margin-left:-3cqw;background:#2e7d8e}
.scene .voice .who{display:grid;line-height:1.1}
.scene .voice .who b{font-size:3.8cqw;color:var(--ink-strong)}
.scene .voice .who span{font-size:2.8cqw;color:#7fc79a}
.scene .voice .wave{display:flex;align-items:center;gap:.8cqw;height:7cqw}
.scene .voice .wave i{width:1.1cqw;border-radius:99px;background:var(--gold-hi);height:var(--h)}
.scene .voice .wave i:nth-child(1){--h:30%}.scene .voice .wave i:nth-child(2){--h:75%}.scene .voice .wave i:nth-child(3){--h:100%}
.scene .voice .wave i:nth-child(4){--h:55%}.scene .voice .wave i:nth-child(5){--h:85%}.scene .voice .wave i:nth-child(6){--h:40%}
.scene .voice .mic{width:6.4cqw;height:6.4cqw;border-radius:50%;background:var(--gold);display:grid;place-items:center}
.scene .voice .mic svg{width:58%;height:58%;fill:none;stroke:var(--on-gold);stroke-width:2.2;stroke-linecap:round}

/* ---------- card games: a hand of the club's Jumbo cards (cards.css .front-jumbo), the deck's Noir back, two dice ---------- */
.scene .pc{position:absolute;left:39%;bottom:12%;width:27cqw;aspect-ratio:5/7;border-radius:9% / 6.4%;overflow:hidden;transform-origin:50% 165%;
  background:linear-gradient(165deg,#ffffff 0%,#f7f7f8 45%,#e6e6e9 100%);color:#0d0d0d;box-shadow:0 0 0 .2cqw rgba(0,0,0,.18),0 2.4cqw 5cqw rgba(0,0,0,.55)}
.scene .pc.red{color:#e3161e}
.scene .pc .jr{position:absolute;left:12%;top:2.5%;font-family:'Oswald','Roboto Condensed','Arial Narrow',sans-serif;font-weight:600;font-size:11.6cqw;line-height:1;
  letter-spacing:-.02em;transform:scaleX(.92);transform-origin:0 0}
.scene .pc.wide .jr{left:8%;letter-spacing:-.06em}
.scene .pc svg{position:absolute;display:block;fill:currentColor}
.scene .pc .js{left:6%;top:35%;width:29%}
.scene .pc .jb{right:5%;bottom:7%;width:58%}
.scene .pc.c1{transform:rotate(-30deg)} .scene .pc.c2{transform:rotate(-15deg)} .scene .pc.c3{transform:rotate(0)}
.scene .pc.c4{transform:rotate(15deg)} .scene .pc.c5{transform:rotate(30deg)}
.scene .back{position:absolute;left:12%;bottom:20%;width:23cqw;aspect-ratio:5/7;border-radius:2cqw;transform:rotate(-58deg);
  background:radial-gradient(closest-side circle at 50% 50%,rgba(201,164,92,.6) 0 22%,transparent 25%),
    repeating-conic-gradient(from 0deg at 50% 50%,rgba(201,164,92,.32) 0 5deg,transparent 5deg 15deg),radial-gradient(ellipse at 50% 50%,#2a2622,#0e0d0c 75%);
  box-shadow:inset 0 0 0 .4cqw #0e0d0c,inset 0 0 0 .7cqw rgba(201,164,92,.7),0 2cqw 4cqw rgba(0,0,0,.5)}
.scene .back.b2{transform:rotate(-50deg) translate(1cqw,-.6cqw)}
.scene .die,.scene .tdie{position:absolute;aspect-ratio:1;background:linear-gradient(145deg,#ffffff,#e4dccb)}
.scene .die{width:10.5cqw;border-radius:2.2cqw;box-shadow:inset -.6cqw -.8cqw 0 rgba(0,0,0,.08),0 1.4cqw 2.4cqw rgba(0,0,0,.5)}
.scene .die.d1{left:3%;bottom:8%;transform:rotate(-16deg)}
.scene .die.d2{left:14%;bottom:1%;transform:rotate(9deg);width:9.5cqw}
.scene .die i,.scene .tdie i{position:absolute;width:20%;aspect-ratio:1;border-radius:50%;background:var(--card-ink)}
.scene .die .m,.scene .tdie .m{left:40%;top:40%;background:var(--red)}
.scene .die .tl,.scene .tdie .tl{left:14%;top:14%} .scene .die .tr,.scene .tdie .tr{right:14%;top:14%}
.scene .die .bl,.scene .tdie .bl{left:14%;bottom:14%} .scene .die .br,.scene .tdie .br{right:14%;bottom:14%}
.scene .die .ml,.scene .tdie .ml{left:14%;top:40%} .scene .die .mr,.scene .tdie .mr{right:14%;top:40%}

/* ---------- board & dice: Tawleh as it starts (each side 2 · 5 · 3 · 5), a small Battleship, a Liar's Dice cup ---------- */
.scene .tboard{position:absolute;left:9%;top:18%;width:68cqw;height:49cqw;border-radius:2cqw;padding:2.2cqw;transform:rotate(-3deg);
  background:linear-gradient(160deg,var(--walnut-hi),var(--walnut));box-shadow:0 3cqw 6cqw rgba(0,0,0,.6),inset 0 0 0 .4cqw var(--gold-lo);
  display:grid;grid-template-columns:1fr 3cqw 1fr}
.scene .half{position:relative;background:#e9dcbf;border-radius:.8cqw;box-shadow:inset 0 0 2cqw rgba(0,0,0,.25);overflow:hidden}
.scene .bar{background:linear-gradient(90deg,#2a190c,var(--walnut-hi),#2a190c)}
.scene .pts{position:absolute;left:0;right:0;height:44%;display:grid;grid-template-columns:repeat(6,1fr)}
.scene .pts.up{top:0} .scene .pts.dn{bottom:0}
.scene .pts i{clip-path:polygon(8% 0,92% 0,50% 100%);background:var(--red)}
.scene .pts i:nth-child(even){background:#3a2414}
.scene .pts.dn i{clip-path:polygon(50% 0,92% 100%,8% 100%)}
.scene .pts.dn i:nth-child(odd){background:#3a2414} .scene .pts.dn i:nth-child(even){background:var(--red)}
/* a checker: its point (k0–k5, a sixth of the half each) and its place on it (t0–t4 from the top edge, b0–b4 from the bottom) */
.scene .ck{position:absolute;width:4.3cqw;aspect-ratio:1;border-radius:50%;background:var(--c);
  box-shadow:0 .4cqw .6cqw rgba(0,0,0,.45),inset 0 0 0 .8cqw var(--c),inset 0 0 0 1cqw var(--ring)}
.scene .ck.w{--c:#f6eedc;--ring:rgba(0,0,0,.18)} .scene .ck.b{--c:#3b2212;--ring:rgba(226,190,120,.5)}
.scene .ck.k0{left:calc(0 * 16.667% + (16.667% - 4.3cqw) / 2)} .scene .ck.k4{left:calc(4 * 16.667% + (16.667% - 4.3cqw) / 2)}
.scene .ck.k5{left:calc(5 * 16.667% + (16.667% - 4.3cqw) / 2)}
.scene .ck.t0{top:.2cqw} .scene .ck.t1{top:4.5cqw} .scene .ck.t2{top:8.8cqw} .scene .ck.t3{top:13.1cqw} .scene .ck.t4{top:17.4cqw}
.scene .ck.b0{bottom:.2cqw} .scene .ck.b1{bottom:4.5cqw} .scene .ck.b2{bottom:8.8cqw} .scene .ck.b3{bottom:13.1cqw} .scene .ck.b4{bottom:17.4cqw}
.scene .tdie{width:6.4cqw;border-radius:1.4cqw;box-shadow:0 1cqw 1.8cqw rgba(0,0,0,.5)}
.scene .tdie.x1{left:34%;top:42%;rotate:14deg} .scene .tdie.x2{left:56%;top:44%;rotate:-10deg}
/* Tawleh's dice are red, with white pips, like casino dice (owner, 2026-11-17: "put the website dice in tawle in red") */
.scene .tdie{background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.28),rgba(255,255,255,0) 45%),linear-gradient(145deg,#e0262e,#a5121b 70%,#7e0d14);
  box-shadow:0 1cqw 1.8cqw rgba(0,0,0,.5),inset 0 .2cqw .3cqw rgba(255,255,255,.35),inset 0 -.3cqw .4cqw rgba(0,0,0,.3)}
.scene .tdie i,.scene .tdie .m{background:#fbf8f2;box-shadow:inset 0 .12cqw .15cqw rgba(0,0,0,.35)}
.scene .navale{position:absolute;left:0;bottom:-1%;width:19cqw;padding:1cqw;border-radius:1.4cqw;background:linear-gradient(160deg,#21456b,#0f2740);
  box-shadow:0 2cqw 3.4cqw rgba(0,0,0,.5),inset 0 0 0 .3cqw rgba(226,190,120,.5);transform:rotate(4deg)}
.scene .navale .g{position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:.35cqw}
.scene .navale .g i{aspect-ratio:1;border-radius:.4cqw;background:rgba(120,170,220,.22);display:grid;place-items:center}
.scene .navale .g i.miss::after{content:"";width:35%;aspect-ratio:1;border-radius:50%;background:#e9f2ff}
/* the boats lie across their squares (owner, 2026-11-17: "replace the red dots with actual boats", then "make the boats
 * look better, as real as it can get"): warships seen from above, drawn in SVG — a shaded hull with a pointed bow, its
 * shadow, wake and foam, the deck, the superstructure and bridge, the funnel, the gun turrets; a hit burns on the hull
 * with smoke drifting over the water */
.scene .navale .fleet{position:absolute;inset:0;display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(6,1fr);gap:.35cqw;pointer-events:none}
.scene .navale .boat{width:100%;height:100%;overflow:visible}
.scene .navale .boat.h3{grid-area:2/2/3/5}
.scene .navale .boat.v2{grid-area:5/5/7/6}
.scene .navale .nv-h0{stop-color:#b4bec8}.scene .navale .nv-h1{stop-color:#6e7a86}.scene .navale .nv-h2{stop-color:#353e48}
.scene .navale .nv-d0{stop-color:#a7b1bb}.scene .navale .nv-d1{stop-color:#7e8995}
.scene .navale .nv-s0{stop-color:#dde3e8}.scene .navale .nv-s1{stop-color:#a8b2bc}
.scene .navale .nv-t0{stop-color:#a9b3bd}.scene .navale .nv-t1{stop-color:#5a646e}
.scene .navale .nv-w0{stop-color:#ffffff;stop-opacity:.55}.scene .navale .nv-w1{stop-color:#ffffff;stop-opacity:0}
.scene .navale .nv-b0{stop-color:#120c08;stop-opacity:.95}.scene .navale .nv-b1{stop-color:#3b2a1e;stop-opacity:.75}.scene .navale .nv-b2{stop-color:#3b2a1e;stop-opacity:0}
.scene .navale .nv-f0{stop-color:#fff7c8}.scene .navale .nv-f1{stop-color:#ffab33}.scene .navale .nv-f2{stop-color:#d93a14}
.scene .navale .nv-wakefill{fill:url(#nv-wake)}
.scene .navale .nv-foam{fill:none;stroke:#eaf4ff;stroke-opacity:.5;stroke-width:1.6;stroke-linecap:round}
.scene .navale .nv-shadow{fill:#04101c;opacity:.55}
.scene .navale .nv-hull{fill:url(#nv-hull);stroke:#262d35;stroke-width:.8}
.scene .navale .nv-edge{fill:none;stroke:#f3f7fa;stroke-opacity:.55;stroke-width:.9}
.scene .navale .nv-deck{fill:url(#nv-deck)}
.scene .navale .nv-line{fill:none;stroke:#3c4652;stroke-opacity:.35;stroke-width:.7}
.scene .navale .nv-lb{fill:#f1f4f6;stroke:#7b8590;stroke-width:.5}
.scene .navale .nv-supbox{fill:url(#nv-sup);stroke:#6f7a85;stroke-width:.7}
.scene .navale .nv-bridge{fill:#e8edf1;stroke:#6f7a85;stroke-width:.7}
.scene .navale .nv-win{fill:none;stroke:#1d2c3a;stroke-width:1.6;stroke-linecap:round}
.scene .navale .nv-fun{fill:#5f6871;stroke:#3a424a;stroke-width:.7}
.scene .navale .nv-funtop{fill:#15191d}
.scene .navale .nv-mast{fill:#4a535c}
.scene .navale .nv-gun rect{fill:#4f5963}
.scene .navale .nv-gun ellipse{fill:url(#nv-tur);stroke:#3a434c;stroke-width:.7}
.scene .navale .nv-gun ellipse.nv-hl{fill:#ffffff;fill-opacity:.35;stroke:none}
.scene .navale .nv-burnfill{fill:url(#nv-burn)}
.scene .navale .nv-scar{fill:#0d0a08;opacity:.85}
.scene .navale .nv-glow{fill:#ff7a2a;opacity:.85}
.scene .navale .nv-flame{fill:url(#nv-fire)}
.scene .navale .nv-core{fill:#fffbe0}
.scene .navale .nv-smoke ellipse{fill:#2b2d30;opacity:.7}
@media (prefers-reduced-motion:no-preference){
  .scene .pg.on .navale .nv-flame{transform-box:fill-box;transform-origin:center;animation:nv-flick 1.1s ease-in-out infinite alternate}
  .scene .pg.on .navale .nv-hit+.nv-hit .nv-flame{animation-delay:-.5s}
}
@keyframes nv-flick{from{transform:scale(.9) rotate(-4deg)}to{transform:scale(1.08) rotate(5deg)}}
.scene .navale span{display:block;margin-top:.6cqw;font-size:1.5cqw;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--gold-hi);text-align:center}
.scene .cup{position:absolute;right:2%;bottom:1%;width:13cqw;height:15cqw;border-radius:1.4cqw 1.4cqw 3cqw 3cqw;background:linear-gradient(90deg,#5a2d16,#9a5a2c 45%,#5a2d16);
  box-shadow:0 2cqw 3cqw rgba(0,0,0,.5),inset 0 1.4cqw 0 -0.6cqw rgba(226,190,120,.5)}
.scene .cup::after{content:"LIAR’S DICE";position:absolute;left:0;right:0;top:44%;text-align:center;font-size:1.6cqw;letter-spacing:.14em;font-weight:700;color:var(--gold-hi)}
.scene .pawn{position:absolute;width:6.4cqw;height:11cqw}
.scene .pawn::before{content:"";position:absolute;left:24%;top:0;width:52%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--hi),var(--c) 60%)}
.scene .pawn::after{content:"";position:absolute;left:0;right:0;bottom:0;height:68%;border-radius:45% 45% 16% 16% / 60% 60% 16% 16%;
  background:linear-gradient(90deg,var(--c),var(--hi) 40%,var(--c));box-shadow:0 1cqw 1.6cqw rgba(0,0,0,.5)}
.scene .pawn.p1{--c:#8e2a22;--hi:#d9584b;left:40%;bottom:3%} .scene .pawn.p2{--c:#1f4a74;--hi:#4f86bf;left:47%;bottom:1%;transform:scale(.9)}

/* ---------- party games: a Categories sheet, a Sahra Votes card, Outsider's secret word, the quiz buzzer ---------- */
.scene .sheet{position:absolute;left:3%;top:24%;width:40cqw;padding:2.4cqw 2.6cqw;border-radius:1.2cqw;background:#fbf6ea;color:var(--card-ink);transform:rotate(-7deg);
  box-shadow:0 2.4cqw 4.4cqw rgba(0,0,0,.5);background-image:repeating-linear-gradient(transparent 0 5.1cqw,rgba(31,53,80,.16) 5.1cqw 5.3cqw)}
.scene .sheet .hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:1cqw}
.scene .sheet .hd span{font-size:2.1cqw;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:var(--navy)}
.scene .sheet .hd .clock{color:var(--red)}
.scene .sheet .hd .let{width:7.4cqw;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:4.6cqw;
  letter-spacing:0;background:var(--red);color:#fff}
.scene .sheet .row{display:flex;justify-content:space-between;align-items:baseline;height:5.3cqw;font-size:2.5cqw;color:#6c6253}
.scene .sheet .row b{font-family:'Caveat','Segoe Print','Bradley Hand',cursive;font-weight:700;font-size:3.8cqw;color:var(--navy)}
.scene .votes{position:absolute;right:2%;top:10%;width:31cqw;padding:2.4cqw 2.6cqw;border-radius:2cqw;background:linear-gradient(160deg,#6b3a8a,#3b1d52);color:#fff;
  transform:rotate(7deg);box-shadow:0 2cqw 4cqw rgba(0,0,0,.5),inset 0 0 0 .3cqw rgba(255,255,255,.15)}
.scene .votes .k{display:block;font-size:2.3cqw;letter-spacing:.2em;text-transform:uppercase;opacity:.8}
.scene .votes .q{display:block;font-family:var(--display);font-weight:600;font-size:4.2cqw;line-height:1.15;margin-top:.8cqw}
.scene .votes .hands{display:flex;gap:.8cqw;margin-top:1.4cqw;font-size:3.6cqw;line-height:1}
.scene .votes .hands b{white-space:nowrap;font-size:2.6cqw;font-weight:700;align-self:center;margin-left:auto;background:#fff;color:#3b1d52;border-radius:99px;padding:.4cqw 1.2cqw}
.scene .word{position:absolute;left:36%;bottom:4%;width:20cqw;aspect-ratio:5/7;border-radius:1.6cqw;background:linear-gradient(160deg,#2b6d58,#123a2e);transform:rotate(-3deg);
  box-shadow:0 2cqw 3.4cqw rgba(0,0,0,.5);display:grid;place-items:center;align-content:center;gap:.8cqw;color:#fff;text-align:center}
.scene .word b{font-size:9cqw;line-height:1;font-family:var(--display)}
.scene .word span{font-size:2cqw;letter-spacing:.16em;text-transform:uppercase;opacity:.85}
.scene .buzz{position:absolute;right:8%;bottom:5%;width:20cqw;height:13cqw}
.scene .buzz .base{position:absolute;left:0;right:0;bottom:0;height:5cqw;border-radius:50%;background:linear-gradient(90deg,#1b1714,#3b332c 50%,#1b1714);
  box-shadow:0 1.6cqw 2.6cqw rgba(0,0,0,.55)}
.scene .buzz .dome{position:absolute;left:12%;right:12%;bottom:2.2cqw;height:10cqw;border-radius:50% 50% 12% 12% / 70% 70% 12% 12%;
  background:radial-gradient(circle at 35% 25%,#ff8a7a,#d8312a 45%,#8c1a14)}
.scene .buzz .say{position:absolute;right:-4%;top:-36%;font-family:var(--display);font-weight:700;font-size:4cqw;color:var(--gold-hi);transform:rotate(10deg)}

/* movement, only for those who have not asked their device for less */
@media (prefers-reduced-motion:no-preference){
  .scene .timer i.run{animation:scene-fill 5s linear both}
  .scene .voice .wave i{animation:scene-talk 1.1s ease-in-out infinite}
  .scene .voice .wave i:nth-child(2n){animation-delay:.25s} .scene .voice .wave i:nth-child(3n){animation-delay:.5s}
  .scene .pg.play .pc{animation:scene-deal .9s cubic-bezier(.2,.8,.2,1) both}
  .scene .pg.play .pc.c1{animation-delay:.05s} .scene .pg.play .pc.c2{animation-delay:.12s} .scene .pg.play .pc.c3{animation-delay:.19s}
  .scene .pg.play .pc.c4{animation-delay:.26s} .scene .pg.play .pc.c5{animation-delay:.33s}
  .scene .pg.play .die,.scene .pg.play .pawn{animation:scene-drop .6s .55s ease-out both}
  .scene .pg.play .tboard{animation:scene-pop .6s ease-out both} .scene .pg.play .tdie{animation:scene-roll .7s .3s ease-out both}
  .scene .pg.play .navale,.scene .pg.play .cup{animation:scene-pop .5s .4s ease-out both}
  .scene .pg.play .sheet{animation:scene-slide .6s ease-out both} .scene .pg.play .votes{animation:scene-pop .5s .2s ease-out both}
  .scene .pg.play .word{animation:scene-pop .5s .35s ease-out both} .scene .pg.play .buzz{animation:scene-pop .5s .5s ease-out both}
}
@keyframes scene-fill{to{width:100%}}
@keyframes scene-talk{50%{height:20%}}
@keyframes scene-deal{from{transform:rotate(0) translateY(6cqw);opacity:0}}
@keyframes scene-drop{from{translate:0 -4cqw;opacity:0}}
@keyframes scene-pop{from{scale:.6;opacity:0}}
@keyframes scene-roll{from{translate:-10cqw -6cqw;rotate:-200deg;opacity:0}}
@keyframes scene-slide{from{translate:-6cqw 0;opacity:0}}
