/* Fonts live on this site (SIL OFL, see shared/fonts/LICENSE.txt): no wait on a third party before the page draws. */
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap; src: url("/shared/fonts/bungee-latin.woff2?v=5ec5c9e8c0") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap; src: url("/shared/fonts/bungee-latin-ext.woff2?v=772f3c5657") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/shared/fonts/rubik-latin.woff2?v=54dd8ad0f7") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/shared/fonts/rubik-latin-ext.woff2?v=ab757e9eec") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 900; font-display: swap; src: url("/shared/fonts/noto-jp-logo.woff2?v=cbfab05c5d") format("woff2"); unicode-range: U+3099, U+30AF-30B0, U+30B9-30BA, U+30C3, U+30C8-30C9, U+30E9, U+30EC-30ED; }
/* RetroSlug: dithered vaporwave bay behind old-computer windows. Cheap to draw: one image,
   solid colours, hard shadows (no blur, no gradients on big areas). */
:root {
  --ink: #1b1240;
  --paper: #e9e3f7;       /* window face */
  --paper-2: #f7f3ff;     /* inside of text boxes */
  --hi: #ffffff;          /* bevel highlight */
  --lo: #8b7fb3;          /* bevel shadow */
  --dark: #2a1d5c;        /* bevel outer shadow */
  --title-a: #2c1a8f;     /* title bar */
  --title-b: #c2309c;
  --pink: #ff5fa2;
  --cyan: #3ee6ff;
  --gold: #ffd84d;
  --display: "Bungee", Impact, sans-serif;
  --body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --jp: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: clip; }
/* stops phones zooming in when you tap chips or buttons quickly */
button, .btn, a, input, select, label { touch-action: manipulation; }
body {
  min-height: 100dvh;
  color: var(--ink);
  font: 400 17px/1.5 var(--body);
  background: #2b1b78 url("/shared/img/bay-wide.png?v=f2c9a5cc52") center / cover no-repeat;
  image-rendering: pixelated;
}
@media (max-aspect-ratio: 4/5) {
  body { background-image: url("/shared/img/bay-tall.png?v=9253cda582"); }
}
img { image-rendering: auto; }
/* night mode: same bay, moonlit */
html.night body { background-color: #050418; background-image: url("/shared/img/bay-night-wide.png?v=5bf7f8c50b"); }
@media (max-aspect-ratio: 4/5) {
  html.night body { background-image: url("/shared/img/bay-night-tall.png?v=be00a4046b"); }
}

/* day/night switch */
.daynight { position: relative; width: 62px; height: 30px; flex: none; border: 0; border-radius: 15px; cursor: pointer; padding: 0;
            background: #ffcf6b; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); transition: background-color .25s; }
.daynight .dn-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
                     box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .25s; }
.daynight .dn-sun, .daynight .dn-moon { position: absolute; top: 8px; width: 14px; height: 14px; border-radius: 50%; }
.daynight .dn-sun { right: 9px; background: #ff7a3d; box-shadow: 0 0 0 3px rgba(255,122,61,.35); }
.daynight .dn-moon { left: 9px; background: transparent; box-shadow: inset -4px -2px 0 0 #e8e4ff; opacity: 0; transition: opacity .25s; }
.daynight[aria-checked="true"] { background: #2a1d6a; }
.daynight[aria-checked="true"] .dn-knob { transform: translateX(32px); background: #e8e4ff; }
.daynight[aria-checked="true"] .dn-moon { opacity: 1; }
.daynight[aria-checked="true"] .dn-sun { opacity: 0; }
.daynight.floating { position: fixed; top: 12px; right: 12px; z-index: 40; }

/* ---- old-computer window ---- */
/* not on casino pages: games use "win" for winning results (messages, cards, roulette spots) */
:where(body:not(.casino)) .win { background: var(--paper); padding: 3px;
       box-shadow: inset -2px -2px 0 var(--dark), inset 2px 2px 0 var(--hi), inset -4px -4px 0 var(--lo), 6px 6px 0 rgba(15, 8, 50, .55); }
.win-title { display: flex; align-items: center; justify-content: space-between; gap: 8px;
             background: linear-gradient(90deg, var(--title-a), var(--title-b));
             color: #fff; font: 700 15px/1 var(--body); padding: 5px 5px 5px 8px; letter-spacing: .01em; }
.win-title .x { display: inline-grid; place-items: center; width: 20px; height: 18px; background: var(--paper); color: var(--ink);
                font: 700 13px/1 var(--body); box-shadow: inset -1px -1px 0 var(--dark), inset 1px 1px 0 var(--hi); }
.win-body { padding: 14px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
       font: 700 16px/1 var(--body); color: var(--ink); text-decoration: none; letter-spacing: .01em;
       background: var(--paper); border: 0; padding: 11px 18px;
       box-shadow: inset -2px -2px 0 var(--dark), inset 2px 2px 0 var(--hi), inset -3px -3px 0 var(--lo); }
.btn:hover { background: #fff; }
.btn:active { box-shadow: inset 2px 2px 0 var(--dark), inset -2px -2px 0 var(--hi); padding: 12px 17px 10px 19px; }
.btn.hot { background: var(--pink); color: #fff; }
.btn.hot:hover { background: #ff79b3; }
.btn:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- inputs ---- */
input { width: 100%; font: 400 17px var(--body); color: var(--ink); background: var(--paper-2); border: 0; padding: 10px 12px;
        box-shadow: inset 2px 2px 0 var(--dark), inset -2px -2px 0 var(--hi); }
input:focus { outline: 2px solid var(--pink); outline-offset: 0; }

/* ---- the logo ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
        font: 400 22px/1 var(--display); text-shadow: 2px 2px 0 var(--title-a); }
.logo img { width: 46px; height: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- admin announcements (site.js): banner across the top, 20s ---- */
#announce-box { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(620px, calc(100% - 24px)); }
.announce { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px 14px 18px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b)); color: #fff; border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 var(--dark); animation: announce-in .35s cubic-bezier(.2, 1.6, .4, 1); }
.announce b { font: 400 13px/1 var(--display); color: var(--gold); letter-spacing: .04em; flex: none; }
.announce-msg { flex: 1; font: 600 17px/1.3 var(--body); overflow-wrap: anywhere; }
.announce-x { border: 0; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.announce-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--gold); transform-origin: left; animation: announce-bar 20s linear forwards; }
@keyframes announce-in { from { transform: translateY(-30px) scale(.9); opacity: 0; } }
@keyframes announce-bar { to { transform: scaleX(0); } }
@media (max-width: 520px) { .announce { flex-wrap: wrap; } .announce b { width: 100%; } }
