@font-face { font-family: I; src: url("fonts/inter-sub.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #000; color: #fff;
  font-family: I, -apple-system, system-ui, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased;
  overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#safe { position: fixed; inset: 0; pointer-events: none; visibility: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 2; --u: 1; }
.card { position: absolute; background: rgba(0,0,0,.82); border: 1px solid #3c3c3c; border-radius: 0;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player { display: flex; flex-direction: column; justify-content: center; gap: calc(6px * var(--u)); padding: calc(7px * var(--u)) calc(9px * var(--u));
  transition: border-color .25s, box-shadow .25s, opacity .25s; opacity: .62; }
.player.active { border-color: #fff; opacity: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 calc(18px * var(--u)) rgba(255,255,255,.18); }
.player .row { display: flex; align-items: center; gap: calc(8px * var(--u)); }
.player.right .row { flex-direction: row-reverse; }
.player.right { align-items: flex-end; }
.av { width: calc(26px * var(--u)); height: calc(26px * var(--u)); flex: none; border: 1px solid #555; }
.av svg { display: block; width: 100%; height: 100%; }
.nm { display: flex; flex-direction: column; line-height: 1; gap: calc(3px * var(--u)); }
.player.right .nm { align-items: flex-end; }
.who { font-size: calc(15px * var(--u)); font-weight: 500; letter-spacing: -0.01em; }
.grp { font-size: calc(10px * var(--u)); color: #9a9a9a; letter-spacing: .06em; min-height: 1em; }
.tray { display: flex; gap: calc(3px * var(--u)); }
.player.right .tray { flex-direction: row-reverse; }
.slot { width: calc(14px * var(--u)); height: calc(14px * var(--u)); border-radius: 50%; border: 1px solid #3f3f3f; flex: none; position: relative; }
.slot img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); display: block; animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
.slot.eight { border-color: #bbb; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.center { text-align: center; padding: calc(6px * var(--u)) calc(12px * var(--u)); pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pot { font-size: calc(16px * var(--u)); font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.timer { font-size: calc(12px * var(--u)); color: #d0d0d0; margin-top: calc(4px * var(--u)); font-variant-numeric: tabular-nums; line-height: 1; }
.timer.low { color: #fff; font-weight: 600; }
.status { font-size: calc(10px * var(--u)); color: #9a9a9a; margin-top: calc(4px * var(--u)); letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.power { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; padding: calc(8px * var(--u)); touch-action: none; cursor: ns-resize; }
.power.v { flex-direction: column; }
.power.h { flex-direction: row; cursor: ew-resize; }
.label { font-size: calc(10px * var(--u)); color: #9a9a9a; letter-spacing: .08em; line-height: 1; }
.power.v .label { writing-mode: vertical-rl; transform: rotate(180deg); }
.track { position: relative; border: 1px solid #555; background: #0d0d0d; flex: 1; }
.power.v .track { width: calc(14px * var(--u)); margin-top: calc(8px * var(--u)); }
.power.h .track { height: calc(14px * var(--u)); margin-left: calc(10px * var(--u)); }
.fill { position: absolute; background: linear-gradient(var(--fdir, 0deg), #8a8a8a, #fff); box-shadow: 0 0 10px rgba(255,255,255,.45); }
.power.v .fill { left: 0; right: 0; top: 0; height: 0%; --fdir: 180deg; }
.power.h .fill { top: 0; bottom: 0; left: 0; width: 0%; --fdir: 90deg; }
.ticks { position: absolute; inset: 0; }
.ticks i { position: absolute; background: #333; display: block; }
.power.v .ticks i { left: 0; right: 0; height: 1px; }
.power.h .ticks i { top: 0; bottom: 0; width: 1px; }
.spin { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: calc(5px * var(--u)); padding: calc(8px * var(--u)); cursor: pointer; touch-action: manipulation; }
#spinball { width: calc(40px * var(--u)); height: calc(40px * var(--u)); display: block; }
.tag { position: absolute; font-size: calc(11px * var(--u)); color: #8a8a8a; letter-spacing: .06em; white-space: nowrap; line-height: 1; }
.toast { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); padding: calc(9px * var(--u)) calc(16px * var(--u));
  background: rgba(0,0,0,.86); border: 1px solid #fff; font-size: calc(14px * var(--u)); font-weight: 500; letter-spacing: .02em;
  opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.overlay { position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55);
  transition: opacity .25s; touch-action: none; }
.overlay.hidden { opacity: 0; pointer-events: none; }
.sheet { position: relative; padding: 22px 26px 18px; min-width: 240px; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(0,0,0,.92); border-color: #fff; transform: scale(1); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.overlay.hidden .sheet { transform: scale(.94); }
.title { font-size: 34px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.sub { font-size: 12px; color: #9a9a9a; letter-spacing: .08em; }
.result { font-size: 22px; font-weight: 500; text-align: center; line-height: 1.25; }
.result small { display: block; font-size: 12px; color: #9a9a9a; font-weight: 400; letter-spacing: .06em; margin-top: 4px; }
.btns { display: flex; gap: 10px; }
.btns.col { flex-direction: column; width: 100%; }
.btn { font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .01em; color: #000; background: #fff; border: 1px solid #fff; border-radius: 0;
  padding: 12px 22px; min-height: 44px; cursor: pointer; touch-action: manipulation; text-transform: lowercase; }
.btn.ghost { color: #fff; background: transparent; border-color: #5a5a5a; }
.btn.small { font-size: 12px; min-height: 36px; padding: 8px 14px; color: #9a9a9a; }
.btn:active { transform: scale(.98); }
.by { font-size: 11px; color: #8a8a8a; letter-spacing: .06em; margin-top: 4px; }
.hidden { display: none !important; }
.overlay.hidden { display: flex !important; }
.h { font-size: 13px; color: #9a9a9a; letter-spacing: .08em; }
#spinbig { width: min(62vw, 54vh, 260px); height: min(62vw, 54vh, 260px); touch-action: none; cursor: crosshair; }
#loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .1em; color: #777; z-index: 9; background: #000; transition: opacity .4s; }
#loading.done { opacity: 0; pointer-events: none; }
#fps { position: fixed; left: 4px; bottom: 4px; z-index: 9; font: 11px/1.2 ui-monospace, monospace; color: #0f0; background: rgba(0,0,0,.6); padding: 2px 4px; pointer-events: none; }
