/* Pin Drop: a neon-lit alley. */
:root {
  --bg0: #120c2c; --bg1: #3a1670; --bg2: #05030d;
  --accent: #ff4fa3; --accent2: #d81b7a; --accent-ink: #fff; --accent-shadow: #7d0b44;
  --panel: rgba(16, 10, 36, 0.78); --panel2: #160e30; --line: rgba(255, 255, 255, 0.13);
  --dim: #b0a6d0; --cyan: #38d9ff;
}
.btn.primary { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }

/* ---------------------------------------------------------------- the logo */
.logo { position: relative; display: inline-flex; flex-direction: column; align-items: center; font-family: var(--display); line-height: 0.84; transform: rotate(-4deg); }
.logo .l1, .logo .l2 { font-size: 64px; letter-spacing: 0.04em; color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--accent), 0 0 42px var(--accent), 0 6px 0 #3a0a2a; }
.logo .l2 { color: #e6fbff; text-shadow: 0 0 6px #fff, 0 0 18px var(--cyan), 0 0 42px var(--cyan), 0 6px 0 #0a2a3a; margin-left: 0.4em; }
.logo .pin { position: absolute; right: -0.55em; top: 0.1em; width: 0.42em; height: 1.25em; font-size: 64px; background: radial-gradient(ellipse 55% 30% at 50% 74%, #fff 60%, transparent 62%), radial-gradient(ellipse 34% 16% at 50% 14%, #fff 60%, transparent 62%), linear-gradient(#fff, #fff) 50% 40% / 30% 30% no-repeat; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)); transform: rotate(18deg); }
.logo .pin::after { content: ''; position: absolute; left: 30%; right: 30%; top: 30%; height: 0.06em; background: #ff2a4a; box-shadow: 0 0.1em 0 #ff2a4a; }
.logo.big .l1, .logo.big .l2, .logo.big .pin { font-size: clamp(72px, 22vw, 128px); }

/* ---------------------------------------------------------------- the HUD */
.now { flex: 1; min-width: 0; display: flex; justify-content: center; }
.now .pcard { max-width: 100%; padding-right: 8px; }
.now .tot { font-family: var(--display); font-size: 22px; color: #fff; margin-left: 6px; text-shadow: 0 0 12px var(--pc); }
.pindia { display: inline-flex; flex-direction: column; gap: 2px; margin-left: 8px; flex: none; }
.pindia span { display: flex; justify-content: center; gap: 2px; }
.pindia i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.pindia i.up { background: #fff; box-shadow: 0 0 5px #fff; }
.caption .pindia { vertical-align: middle; margin-left: 6px; }

.sheetbox { align-self: center; width: min(720px, calc(100% - 16px)); margin-top: 6px; cursor: pointer; }
.sheet { display: grid; gap: 3px; padding: 5px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.srow { display: grid; grid-template-columns: 54px repeat(9, minmax(0, 1fr)) minmax(0, 1.35fr) 34px; gap: 2px; align-items: stretch; border-radius: 8px; }
.srow.on { box-shadow: 0 0 0 2px var(--pc); }
.srow .sn { font-size: 11px; display: flex; align-items: center; padding-left: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 3px solid var(--pc); border-radius: 3px; }
.srow .st { font-family: var(--display); font-size: 13px; display: grid; place-items: center; color: #fff; }
.fr { display: flex; flex-direction: column; align-items: stretch; min-width: 0; background: rgba(255, 255, 255, 0.06); border-radius: 5px; overflow: hidden; }
.fr.live { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.fr .mk { display: flex; justify-content: flex-end; }
.fr .mk i { flex: 0 0 auto; width: 40%; max-width: 15px; min-width: 9px; font-style: normal; font-size: 9.5px; line-height: 13px; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #dcd6f5; }
.fr.last .mk i { width: 33%; }
.fr .mk i.x { color: var(--accent); font-weight: 900; }
.fr .mk i.sp { color: var(--cyan); font-weight: 900; }
.fr b { font-size: 11px; text-align: center; line-height: 15px; min-height: 15px; color: #fff; }
@media (max-width: 420px) { .srow { grid-template-columns: 40px repeat(9, minmax(0, 1fr)) minmax(0, 1.35fr) 28px; } .fr .mk i { font-size: 8.5px; } .fr b { font-size: 10px; } }

.speedo { position: absolute; right: max(10px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); padding: 6px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.speedo b { font-family: var(--display); font-size: 22px; color: var(--cyan); margin-right: 3px; }

.controls { position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, calc(100% - 20px)); display: grid; gap: 6px; justify-items: center; pointer-events: none; }
.controls > * { pointer-events: auto; }
.hookbox { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px 14px 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hookbox span { font-size: 22px; color: var(--dim); }
.hookbox small { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.hook { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
.hook::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), rgba(255, 255, 255, 0.2) 50%, var(--accent)); }
.hook::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), rgba(255, 255, 255, 0.2) 50%, var(--accent)); }
.hook::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9b8ff 40%, #6a35e8); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); }
.hook::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9b8ff 40%, #6a35e8); border: 2px solid #fff; }
.swipehint { margin: 0; padding: 5px 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); font-size: 13px; color: var(--dim); }
.swipehint b { color: #fff; }
.hud .emotes { position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: max(120px, calc(env(safe-area-inset-bottom) + 110px)); flex-direction: column; border-radius: 22px; }

.final { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.final li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--pc) 18%, rgba(255, 255, 255, 0.04)); border-left: 4px solid var(--pc); }
.final li span { font-family: var(--display); color: var(--dim); }
.final li em { font-style: normal; font-family: var(--display); font-size: 20px; color: #fff; }
