/* Trigonix web: layout in design pixels (1080 wide = the phone at UMG DPI scale 1.0), scaled to fit. */
@font-face { font-family: 'Roboto'; font-weight: 700; font-style: normal; font-display: block; src: url(../assets/fonts/Roboto-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 400; font-style: normal; font-display: block; src: url(../assets/fonts/Roboto-Regular.woff2) format('woff2'); }

:root { --s: 0.333; color-scheme: only light; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #bd8d49; }
body { font-family: 'Roboto', Arial, sans-serif; font-weight: 700; color: #fff; user-select: none; -webkit-user-select: none;
  touch-action: none; overscroll-behavior: none; }
#floor { position: fixed; inset: 0; background: url(../assets/ui/bg03_menu.webp) repeat; background-size: calc(1080px * var(--s)) auto; }
#board { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#stage { position: absolute; left: 50%; top: 50%; width: 1080px; transform-origin: 50% 50%; pointer-events: none; }
#stage > * { pointer-events: auto; }
.layer { position: absolute; left: 0; top: 0; width: 1080px; height: 100%; overflow: hidden; }
.col { position: absolute; top: 0; left: 0; width: 1080px; height: 100%; }
#stage > .layer.passthru, #stage > .layer.passthru > .col { pointer-events: none; }
#stage > .layer.passthru > .col > * { pointer-events: auto; }
.abs { position: absolute; }
.img { position: absolute; background-repeat: no-repeat; background-size: 100% 100%; }
button { font: inherit; color: inherit; border: 0; padding: 0; margin: 0; background-color: transparent; cursor: pointer; outline: none; }
button:focus-visible { outline: 6px solid rgba(255,255,255,.85); outline-offset: 4px; }
.btn { position: absolute; display: flex; align-items: center; justify-content: center; background-repeat: no-repeat; background-size: 100% 100%;
  font-weight: 700; color: #fff; line-height: 1.1; text-align: center; }
.btnbg { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.btntxt { position: relative; pointer-events: none; white-space: pre-line; }
.btn:active .btnbg { opacity: .78; }
.btn:active { filter: brightness(.85); }
.btn[disabled] { cursor: default; }
.lbl { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; white-space: pre-line; }
.box { position: absolute; display: block; pointer-events: none; }
.dim { position: absolute; top: 0; bottom: 0; left: -4000px; right: -4000px; background: rgba(0,0,0,.6); }
.blur { position: absolute; top: 0; bottom: 0; left: -4000px; right: -4000px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.shield { position: absolute; top: 0; bottom: 0; left: -4000px; right: -4000px; }
input.speed { position: absolute; -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: pointer; }
input.speed::-webkit-slider-runnable-track { height: 4px; background: #2b1a08; border-radius: 2px; }
input.speed::-moz-range-track { height: 4px; background: #2b1a08; border-radius: 2px; }
input.speed::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 40px; margin-top: -18px; background: #5b3a0c; border: 2px solid #2b1a08; border-radius: 3px; }
input.speed::-moz-range-thumb { width: 14px; height: 38px; background: #5b3a0c; border: 2px solid #2b1a08; border-radius: 3px; }
input.speed:focus-visible { outline: 4px solid rgba(255,255,255,.8); outline-offset: 6px; }
.outline-brown { text-shadow: 0 0 1px #3b1a05, 3px 0 0 #3b1a05, -3px 0 0 #3b1a05, 0 3px 0 #3b1a05, 0 -3px 0 #3b1a05,
  2px 2px 0 #3b1a05, -2px 2px 0 #3b1a05, 2px -2px 0 #3b1a05, -2px -2px 0 #3b1a05; }
.ink { color: #6b2f0a; }
.hidden { display: none !important; }
.svgicon { position: absolute; pointer-events: none; }
a.store { position: absolute; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff;
  background: #111; border-radius: 22px; font-weight: 700; border: 3px solid #555; }
a.store:active { filter: brightness(.8); }
#splash { position: fixed; inset: 0; background: #000 center / contain no-repeat; z-index: 50; transition: opacity .35s; }
#rotate-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .spin, .pulse { animation: none !important; } }
@keyframes lightspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: lightspin 12s linear infinite; }
@keyframes ringflash { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.pulse { animation: ringflash 1s ease-in-out infinite; }
@keyframes popin { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
