/* Butter Poker page: the launch screen, consent banner and loading screen sit
   over the canvas in a portrait stage. Sizes use game units (--u, 1/390 of the
   stage width) so the launch screen lines up with the in-game layout. Raylib
   sizes text by line height and CSS by em, so CSS font sizes here are about
   three quarters of the matching in-game sizes. */
@font-face{font-family:Wordmark;src:url(fonts/MusticaPro-SemiBold.otf) format("opentype");font-display:block}
@font-face{font-family:Sans;src:url(fonts/InstrumentSans-Regular.ttf) format("truetype");font-display:swap}
@font-face{font-family:Sans;font-weight:700;src:url(fonts/InstrumentSans-Bold.ttf) format("truetype");font-display:swap}
@font-face{font-family:SerifItalic;font-style:italic;font-weight:200 900;src:url(fonts/CrimsonPro-Italic.ttf) format("truetype");font-display:swap}
@font-face{font-family:Mono;src:url(fonts/IBMPlexMono-Medium.ttf) format("truetype");font-display:swap}
:root{--ink:#141414;--muted:#3a3a3a;--paper:#fff;--line:#cecece}
*{box-sizing:border-box}
html,body{margin:0;background:#eef0f2;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
/* In-app browsers (X, Instagram, ...) and phones: no long-press menus or text
   selection, no double-tap zoom, no grey tap flash. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{display:grid;place-items:center}
/* The stage is the game's 390 x 694 portrait box. Older webviews lack dvh
   (the visible viewport height) and container units, so each has a fallback:
   vh, and a unit computed from the viewport instead of the stage. */
#stage{position:relative;width:min(100vw,56.19597vh);height:min(177.94872vw,100vh);width:min(100vw,56.19597dvh);height:min(177.94872vw,100dvh);background:var(--paper);--u:calc(min(100vw,56.19597vh)/390)}
@supports (height:1dvh){#stage{--u:calc(min(100vw,56.19597dvh)/390)}}
@supports (width:1cqw){#stage{container-type:size;--u:calc(100cqw/390)}}
/* Android in-app browsers (X and others run pages in a WebView, "; wv)" in
   the user agent) float their own toolbar over the bottom of the page; keep
   the stage above it. web/page.js sets the class. */
html.app-toolbar body{place-items:start center}
html.app-toolbar #stage{width:min(100vw,calc((100vh - 110px)*.5619597));height:min(177.94872vw,calc(100vh - 110px));width:min(100vw,calc((100dvh - 110px)*.5619597));height:min(177.94872vw,calc(100dvh - 110px));--u:calc(min(100vw,(100vh - 110px)*.5619597)/390)}
@supports (width:1cqw){html.app-toolbar #stage{--u:calc(100cqw/390)}}
canvas{display:block;position:absolute;top:0;right:0;bottom:0;left:0;inset:0;width:100%;height:100%;background:var(--paper);touch-action:none;outline:none}
[hidden]{display:none!important}

/* Launch screen: the in-game title layout. */
#landing{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;background:var(--paper);color:var(--ink);font-family:Sans,system-ui,sans-serif}
.lockup{position:absolute;left:0;right:0;top:calc(207*var(--u));transform:translateY(-50%);display:flex;align-items:center;justify-content:center;gap:calc(14*var(--u))}
/* The SVG canvas has transparent margins; trim them so the visible logo and
   the words centre as one unit. */
.lockup img{width:calc(150*var(--u));height:calc(150*var(--u));margin:0 calc(-19.5*var(--u)) 0 calc(-19.1*var(--u))}
.lockup h1{margin:0;font:400 calc(46*var(--u))/1.2 Wordmark,Sans,sans-serif;letter-spacing:-.01em}
.sub{position:absolute;left:0;right:0;margin:0;text-align:center;font-family:Mono,ui-monospace,monospace;color:var(--muted);white-space:pre}
.sub.one{top:calc(339*var(--u));font-size:calc(8.2*var(--u));letter-spacing:calc(1.6*var(--u))}
.sub.two{top:calc(359*var(--u));font-size:calc(7.8*var(--u));letter-spacing:calc(1.2*var(--u))}
.btn{font:700 calc(14*var(--u)) Sans,system-ui,sans-serif;border-radius:calc(6*var(--u));cursor:pointer;border:calc(1.5*var(--u)) solid var(--ink);background:var(--paper);color:var(--ink)}
.btn.primary{background:var(--ink);color:var(--paper)}
.btn:focus-visible{outline:calc(2*var(--u)) solid var(--ink);outline-offset:calc(3*var(--u))}
#launch{position:absolute;left:calc(97*var(--u));top:calc(435*var(--u));width:calc(196*var(--u));height:calc(49*var(--u))}
.footer{position:absolute;left:0;right:0;top:calc(679*var(--u));margin:0;text-align:center;font:calc(6.7*var(--u))/1.2 Mono,ui-monospace,monospace;color:var(--muted);letter-spacing:calc(.5*var(--u))}
#changelog{position:absolute;left:50%;transform:translateX(-50%);top:calc(500*var(--u));font:calc(11*var(--u)) Sans,system-ui,sans-serif;color:var(--ink);text-underline-offset:calc(3*var(--u))}
.link{font:inherit;color:inherit;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer;letter-spacing:inherit}

/* Consent banner, at the foot of the launch screen. */
#consent{position:absolute;left:calc(16*var(--u));right:calc(16*var(--u));bottom:calc(34*var(--u));background:var(--paper);color:var(--ink);border:calc(1.5*var(--u)) solid var(--ink);border-radius:calc(12*var(--u));padding:calc(16*var(--u)) calc(18*var(--u)) calc(18*var(--u));box-shadow:0 calc(5*var(--u)) 0 rgba(0,0,0,.12);font-family:Sans,system-ui,sans-serif}
#consent h2{margin:0 0 calc(6*var(--u));font:700 calc(13*var(--u)) Sans,system-ui,sans-serif}
#consent p{margin:0 0 calc(14*var(--u));font-size:calc(11*var(--u));line-height:1.4;color:var(--muted)}
#consent .choices{display:flex;gap:calc(10*var(--u))}
#consent .btn{flex:1;height:calc(40*var(--u));font-size:calc(13*var(--u))}

/* Loading screen: the logo over a black-and-white bar. */
#status{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none;background:var(--paper)}
#status img{width:132px;height:132px}
#status .bar{width:168px;height:8px;border:1.5px solid var(--ink);border-radius:4px;background:var(--paper);overflow:hidden}
#status i{display:block;height:100%;width:0;background:var(--ink);transition:width .2s}
