/* 0.98 Showcase theme. Arcade's colours, font and slant, with depth and motion: glass panels over a living
   background, lit edges, a breathing lime button, tiles that lift and catch the light, a wipe between
   screens and a result moment. showcase.js adds the layers named sc-*. Home keeps its own portrait wall.
   Motion = Off stops it all (themes.css); reduced motion too (end of this file). */
@property --sc-ang{syntax:'<angle>';inherits:false;initial-value:0deg}
[data-pack="showcase"]{--panel:rgba(22,25,38,.8);--bg2:rgba(16,18,27,.8);--dialog:rgba(15,17,25,.9);--m-rise:26px;--m-slide:46px;--m-med:300ms;--m-gap:42ms}
/* The page itself is see-through so the background layer shows behind it. */
html[data-pack="showcase"] body{background:transparent}
.sc-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.sc-bg[hidden],html:not([data-pack="showcase"]) :is(.sc-bg,.sc-fx){display:none}
.sc-aur{position:absolute;width:70vmax;height:70vmax;border-radius:50%}
.sc-a1{left:-20vmax;top:-30vmax;background:radial-gradient(closest-side,rgba(212,248,140,.13),transparent);animation:sc-drift1 22s ease-in-out infinite alternate}
.sc-a2{right:-25vmax;top:-10vmax;background:radial-gradient(closest-side,rgba(181,162,245,.17),transparent);animation:sc-drift2 27s ease-in-out infinite alternate}
.sc-a3{left:20vmax;bottom:-45vmax;background:radial-gradient(closest-side,rgba(143,211,255,.09),transparent);animation:sc-drift3 31s ease-in-out infinite alternate}
@keyframes sc-drift1{to{transform:translate(18vmax,14vmax) scale(1.2)}}
@keyframes sc-drift2{to{transform:translate(-16vmax,18vmax) scale(.85)}}
@keyframes sc-drift3{to{transform:translate(-14vmax,-12vmax) scale(1.15)}}
.sc-floor{position:absolute;left:-50%;right:-50%;bottom:-10%;height:55%;transform:perspective(500px) rotateX(62deg);transform-origin:50% 100%;background-image:linear-gradient(rgba(181,162,245,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(181,162,245,.11) 1px,transparent 1px);background-size:64px 64px;-webkit-mask-image:linear-gradient(transparent,#000 70%);mask-image:linear-gradient(transparent,#000 70%);animation:sc-floor 6s linear infinite}
@keyframes sc-floor{to{background-position:0 64px}}
.sc-rays{position:fixed;left:var(--sc-rx,50%);top:var(--sc-ry,40%);width:160vmax;height:160vmax;margin:-80vmax 0 0 -80vmax;background:repeating-conic-gradient(rgba(212,248,140,.08) 0 6deg,transparent 6deg 18deg);-webkit-mask-image:radial-gradient(closest-side,#000,transparent 70%);mask-image:radial-gradient(closest-side,#000,transparent 70%);opacity:0;transition:opacity .8s;animation:sc-spin-rays 40s linear infinite}
.sc-rays-on .sc-rays{opacity:1}
@keyframes sc-spin-rays{to{transform:rotate(360deg)}}
/* Sweep, spotlight and dust: behind the app, or just above Home's wall (under its content). */
.sc-fx{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.sc-sweep{position:fixed;top:-20%;bottom:-20%;width:30%;left:-40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.04) 45%,rgba(212,248,140,.06) 50%,transparent 60%);transform:skewX(var(--skew,-13deg));animation:sc-sweep 11s ease-in-out infinite}
@keyframes sc-sweep{0%,60%{left:-40%}100%{left:130%}}
/* The spotlight moves by transform on its own layer (showcase.js), so a pointer move restyles nothing else. */
.sc-glow{position:fixed;left:0;top:0;width:560px;height:560px;margin:-280px 0 0 -280px;border-radius:50%;background:radial-gradient(closest-side,rgba(212,248,140,.07),transparent);translate:50vw 40vh;transition:translate .5s cubic-bezier(.2,.85,.25,1);will-change:translate}
.sc-dust{position:fixed;inset:0;width:100vw;height:100vh}

/* Glass: the top bar, the round panel, windows and the result sheet. */
[data-pack="showcase"] :is(.topbar,#round-strip){background:rgba(10,11,16,.62);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom-color:rgba(255,255,255,.06)}
/* On Home the main screen waits under the top bar; the bar is solid there so none of it shows through (1.00). */
[data-pack="showcase"] body.home-on :is(.topbar,#round-strip){background:color-mix(in srgb,var(--bg) 96%,transparent)}
[data-pack="showcase"] :is(.notes,.result-sheet,dialog){-webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 50px rgba(0,0,0,.4)}
[data-pack="showcase"] :is(.home-card,.home-tile,.choice-tile,.variant-tile,.history-item,.play-card){box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 14px 36px rgba(0,0,0,.28)}
[data-pack="showcase"] :is(.home-tile,.choice-tile,.variant-tile):hover:not(:disabled){box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 18px 44px rgba(0,0,0,.4),0 0 30px rgba(212,248,140,.12)}
/* A line of light runs round the round panel, the Daily card and the result sheet. */
[data-pack="showcase"] :is(body.in-round .notes,#home-daily,.result-sheet):after{content:'';position:absolute;inset:0;padding:1px;pointer-events:none;z-index:5;background:conic-gradient(from var(--sc-ang),transparent 0 70%,rgba(212,248,140,.85) 80%,rgba(181,162,245,.85) 88%,transparent 95%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:sc-ang 6s linear infinite}
[data-pack="showcase"] #home-daily,:where([data-pack="showcase"] .result-sheet){position:relative}
@keyframes sc-ang{to{--sc-ang:360deg}}

/* The brand shines; the active tab glows. */
[data-pack="showcase"] .brand strong{background:linear-gradient(90deg,var(--lime),#fff 40%,var(--lime) 60%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:sc-text-shine 5s linear infinite}
@keyframes sc-text-shine{from{background-position:120% 0}to{background-position:-130% 0}}
[data-pack="showcase"] :is(.nav.active,body.home-on #home-nav){text-shadow:0 0 14px color-mix(in srgb,var(--lime) 55%,transparent)}

/* The lime button breathes and catches a passing light; the turn banner catches it too. */
[data-pack="showcase"] .cta:not(:disabled,#turn-banner,#answer-pill):before{animation:sc-breathe 2.8s ease-in-out infinite}
@keyframes sc-breathe{0%,100%{box-shadow:6px 6px 0 var(--purple),0 6px 24px color-mix(in srgb,var(--lime) 22%,transparent)}50%{box-shadow:6px 6px 0 var(--purple),0 8px 38px color-mix(in srgb,var(--lime) 42%,transparent)}}
[data-pack="showcase"] .cta:not(:disabled,#answer-pill):after{content:'';position:absolute;inset:0;z-index:-1;transform:skewX(var(--skew));background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.55) 50%,transparent 62%);background-size:300% 100%;background-repeat:no-repeat;animation:sc-cta-shine 3.6s ease-in-out infinite;pointer-events:none}
[data-pack="showcase"] #turn-banner:after{animation-duration:3.2s}
@keyframes sc-cta-shine{0%,55%{background-position:130% 0}100%{background-position:-40% 0}}

/* Tiles: they deal in from the middle, and the one under the pointer lifts, tilts and catches a sheen. */
[data-pack="showcase"] #cards.sc-deal>:nth-child(-n+48){animation:sc-deal .7s cubic-bezier(.2,.85,.25,1) backwards;animation-delay:calc(var(--sc-o,0) * 34ms)}
@keyframes sc-deal{from{opacity:0;transform:perspective(900px) translateY(34px) rotateY(-80deg) scale(.85)}}
[data-pack="showcase"] .cards .character{transition:transform .3s cubic-bezier(.2,.85,.25,1),box-shadow .3s}
[data-pack="showcase"] .cards :is(.tile-wrap:not(.out)>.character,.character:not(.out)):hover:not(:disabled){transform:perspective(800px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg)) translateY(-5px) scale(1.04);box-shadow:0 16px 36px rgba(0,0,0,.55),0 0 0 1px color-mix(in srgb,var(--lime) 70%,transparent),0 0 24px color-mix(in srgb,var(--lime) 25%,transparent);z-index:3}
[data-pack="showcase"] .cards :is(.tile-wrap:not(.out)>.character,.character:not(.out)):hover:not(:disabled):before{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.26) 48%,transparent 62%);background-size:260% 100%;background-repeat:no-repeat;animation:sc-sheen .8s cubic-bezier(.2,.85,.25,1) both}
@keyframes sc-sheen{from{background-position:150% 0}to{background-position:-50% 0}}
[data-pack="showcase"] :is(.private-card,.play-card,.guest-card):hover{transform:perspective(900px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg));transition:transform .2s}
/* Cuts: sparks fly off each tile, and a big answer sends a ring out from the panel. */
.sc-shard{position:fixed;z-index:70;width:6px;height:6px;margin:-3px 0 0 -3px;pointer-events:none;background:var(--lime);clip-path:polygon(50% 0,100% 100%,0 70%);animation:sc-shard .8s cubic-bezier(.15,.7,.3,1) forwards}
.sc-shard:nth-of-type(3n){background:var(--purple)}
@keyframes sc-shard{to{transform:translate(var(--dx),var(--dy)) rotate(var(--r));opacity:0}}
.sc-ring{position:fixed;z-index:70;width:0;height:0;border-radius:50%;pointer-events:none;border:2px solid color-mix(in srgb,var(--lime) 60%,transparent);box-shadow:0 0 40px color-mix(in srgb,var(--lime) 35%,transparent),inset 0 0 30px color-mix(in srgb,var(--lime) 20%,transparent);animation:sc-ring 1s cubic-bezier(.2,.85,.25,1) forwards}
@keyframes sc-ring{to{width:1600px;height:1600px;margin:-800px 0 0 -800px;opacity:0}}

/* Between screens: a dark sheet with a lilac and a lime edge slides away to the right. */
.sc-wipe{position:fixed;top:0;bottom:0;left:-30vw;width:160vw;z-index:90;pointer-events:none;transform:skewX(-13deg);animation:sc-wipe .52s cubic-bezier(.55,0,.2,1) forwards}
.sc-wipe i{position:absolute;top:0;bottom:0}
.sc-wipe i:nth-child(1){left:-64px;width:30px;background:var(--purple)}
.sc-wipe i:nth-child(2){left:-26px;width:26px;background:var(--lime)}
.sc-wipe i:nth-child(3){inset:0;background:var(--bg)}
@keyframes sc-wipe{from{translate:0}to{translate:175vw}}

/* The result moment: the title slams in, the portrait spins in, streamers burst (showcase.js). */
.sc-slam{animation:sc-slam .6s cubic-bezier(.25,1.3,.4,1) backwards .1s}
@keyframes sc-slam{from{opacity:0;transform:scale(2.6) translateY(-14px);filter:blur(8px)}}
.sc-flyin{animation:sc-flyin 1s cubic-bezier(.2,.85,.25,1) backwards}
@keyframes sc-flyin{0%{opacity:0;transform:perspective(900px) translateY(-80px) rotateY(540deg) scale(.4)}70%{transform:perspective(900px) rotateY(-10deg) scale(1.04)}}
[data-pack="showcase"] :is(.solo-result h3,.result-sheet .play-head h2,#play-panel .result-banner strong){text-shadow:0 0 28px color-mix(in srgb,var(--lime) 40%,transparent)}
.sc-burst{position:fixed;inset:0;width:100vw;height:100vh;z-index:80;pointer-events:none}

/* Still: nothing moves, nothing is drawn per frame. */
html[data-motion="off"] :is(.sc-dust,.sc-burst,.sc-wipe,.sc-shard,.sc-ring,.sc-glow){display:none}
@media(prefers-reduced-motion:reduce){
 :is(.sc-dust,.sc-burst,.sc-wipe,.sc-shard,.sc-ring,.sc-glow){display:none}
 [data-pack="showcase"] *,[data-pack="showcase"] *:before,[data-pack="showcase"] *:after,.sc-bg *{animation:none!important}
}
