/* Watchparty interface: warm porcelain, soft violet, and tactile navigation.
   The venue stays three-dimensional; readable controls stay on a calm surface. */
:root {
  color-scheme:light;
  --ink:#f6f5f2;--panel:#fdfcfb;--raised:#f1eff8;--line:#e4e1ed;
  --text:#292733;--muted:#797482;--lime:#5e4dc4;--lime-deep:#46379d;
  --teal:#5e4dc4;--rose:#ad5377;--blue:#6258b4;
  --display:'DM Sans',Arial,sans-serif;
}
button,a,input {touch-action:manipulation}
button {transition:background .16s,box-shadow .16s,transform .16s}
button:active:not(:disabled) {transform:translateY(1px)}
:focus-visible {outline-color:#7564d3}
.vignette {background:linear-gradient(180deg,#10132322,transparent 36%,transparent 76%,#10132355)}
#loader {background:radial-gradient(ellipse at 75% 80%,#dad5f580,transparent 50%),#f8f7f4}
.loading-mark {font-size:40px;font-weight:800;letter-spacing:-.05em;color:#5246a7}
.loading-mark span {display:block;margin-top:18px;text-align:center;letter-spacing:.16em}
.loading-line {height:3px;border-radius:5px;background:#e4e0ef}
.arena-shell {position:fixed;inset:0;touch-action:none;overflow:hidden}
.topbar {inset:calc(env(safe-area-inset-top) + 10px) auto auto max(12px,env(safe-area-inset-left));height:54px;max-width:calc(100% - 72px);padding:4px 5px 4px 10px;gap:7px;background:#faf9f6f0;border:1px solid #ffffffb0;border-radius:19px;box-shadow:0 5px 20px #18112f29;z-index:12}
.brand {gap:4px}
.brand svg {width:23px;height:23px;color:#6151bf}
.brand > span {font:800 15px/1 var(--body);letter-spacing:-.045em}
.brand small {display:none}
.topbar .wallet {min-height:44px;padding:6px 9px;gap:5px;font-size:13px;white-space:nowrap}
.topbar .wallet svg {width:15px;height:15px}
.topbar .wallet small {font-size:8px}
#arena-menu-toggle {min-height:44px;min-width:44px;padding:6px 8px;gap:3px;font-size:11px;background:#f2eef9;border:0;box-shadow:none}
#arena-menu-toggle svg {width:13px;height:13px;transform:rotate(90deg)}
#arena-menu-toggle[aria-expanded=true] svg {transform:rotate(-90deg)}
.arena-menu {position:fixed;z-index:11;top:calc(env(safe-area-inset-top) + 71px);left:max(12px,env(safe-area-inset-left));width:min(312px,calc(100% - 24px));display:grid;gap:10px;padding:13px;border:1px solid #ffffffba;border-radius:20px;background:#faf9f6f7;box-shadow:0 12px 32px #18112f36}
.arena-menu .top-tools {justify-content:flex-start;flex-wrap:wrap;gap:5px;margin:0;padding-top:10px;border-top:1px solid #e8dfed}
.signal {background:#8c7bd9;box-shadow:none}
.header-event {padding:0;border:0;font-size:9px;letter-spacing:.09em}
.view-reset {position:fixed;z-index:16;top:calc(var(--visual-top,0px) + (10px + env(safe-area-inset-top)) * var(--visual-inverse,1));right:calc(var(--visual-right,0px) + max(12px,env(safe-area-inset-right)) * var(--visual-inverse,1));transform-origin:top right;scale:var(--visual-inverse,1);border-radius:16px}
.view-reset span {display:none}
.view-reset[data-zoomed] {width:auto;display:flex;align-items:center;gap:6px;padding:0 12px;font-size:12px}
.view-reset[data-zoomed] span {display:inline}
.arena-fit .arena-shell {width:var(--fit-width);height:var(--fit-height);transform:translate(var(--visual-left),var(--visual-top)) scale(var(--visual-inverse));transform-origin:top left}
.arena-fit dialog.app-dialog {inset:auto;top:var(--visual-center-y);left:var(--visual-center-x);margin:0;max-height:calc(var(--fit-height) - 20px);transform:translate(-50%,-50%) scale(var(--visual-inverse));animation:none}
.nav-button,.wallet,.icon-button,.subtle-button,.outline-button,.primary-button {
  min-height:44px;border-radius:16px;border-color:#e9e6ef;background:#fcfbf9;
  color:#514593;box-shadow:0 2px 5px #3d2b6e0a,inset 0 1px 0 #fff;font-weight:600;
}
.nav-button,.wallet,.subtle-button {padding:9px 14px}
.icon-button {width:44px;height:44px;min-height:44px}
.nav-button svg,.subtle-button svg,.icon-button {color:#7363b4}
.nav-button:hover,.icon-button:hover,.subtle-button:hover,.outline-button:hover,.wallet:hover {background:#f2effb;border-color:#d4cce9}
.wallet {background:#f0edf9;color:#5545aa;border:1px solid #e6dff6}
.wallet i {color:#796ba0;border-color:#d8d0e8}
.primary-button,.predict-button {border:1px solid #7868d4;background:linear-gradient(160deg,#8070db,#5b48b7);color:white;box-shadow:inset 0 1px 0 #b9adf6,0 5px 14px #51409c26}
.primary-button:hover:not(:disabled),.predict-button:hover {background:linear-gradient(160deg,#8979df,#6552c1)}
.predict-button {border-radius:22px;min-height:64px;gap:12px;padding:12px 18px}
.predict-button b {font:700 20px/1.1 var(--body);letter-spacing:-.025em}
.predict-button small {font-size:11px;font-weight:500;color:#e8e3ff}
.predict-button kbd {border-color:#c4b7ff77;color:#f8f4ff}
.location-hud {position:static;text-shadow:none;color:var(--text);pointer-events:auto}
.location-hud h1 {font-size:22px;letter-spacing:-.045em;line-height:1.1}
.location-line {color:#6f6380;margin:5px 0 8px}
.location-line svg {color:#8170ad}
.location-actions {display:flex;gap:7px;margin-top:4px;flex-wrap:wrap}
.location-actions .subtle-button {min-height:44px;background:#f2ecf8;border-color:#e7deef;border-radius:14px}
.location-actions .subtle-button[aria-current="location"] {background:#e7dcfa;border-color:#ac93d7;color:#503781}
.in-faker-hall .vignette {background:linear-gradient(180deg,#2114220a,transparent 70%,#21142220)}
.fire-prompt {pointer-events:none}
.fire-prompt button {pointer-events:auto;min-height:44px;border-color:#f6d294;background:#fff4dc;color:#59401e;box-shadow:0 5px 18px #291b19a0}
.fire-prompt button svg {color:#ac5e26}
.map-hud {border-radius:20px;background:#f7f5f1ed;border:1px solid #ffffff9a;padding:12px;box-shadow:0 6px 20px #17132821}
.map-title,.map-keys {color:#6b6383}
.map-title .icon-button {background:transparent;box-shadow:none;border:0}
.center-hud {bottom:28px;gap:10px}
.seat-controls {gap:7px}
.seat-controls .subtle-button {min-height:44px;border-radius:16px;padding-inline:14px}
.email-nudge {background:#faf8f5;border-color:#e5dff2;border-radius:20px;box-shadow:0 5px 20px #17132822}
.email-nudge .subtle-button,.email-nudge .icon-button {min-height:40px;height:40px;border:0;box-shadow:none}
.status-toast {background:#fcfbf9;border:1px solid #ddd6ed;border-radius:20px;box-shadow:0 12px 40px #16112c2a;padding:14px 16px;pointer-events:none}
.status-toast button {pointer-events:auto}
.arena-feed {top:250px}
.arena-feed span {background:#fbfaf8ed;color:#4e4369;border-left:3px solid #b2a5e7;border-radius:12px}
.drop-banner {border-radius:18px;background:#fbf3dc;color:#826333;border-color:#ede0b9;padding:10px 14px;pointer-events:none}
.app-dialog {background:radial-gradient(ellipse at 95% 0%,#e9e4fb77,transparent 45%),#fbfaf8;border:1px solid #fff;border-radius:28px;padding:28px;box-shadow:0 24px 100px #17102b44}
.app-dialog::backdrop {background:#1710285c;backdrop-filter:blur(4px)}
.app-dialog h2 {font:750 32px/1.12 var(--body);letter-spacing:-.055em;margin:6px 0 20px}
.dialog-close {right:15px;top:15px;width:44px;height:44px;min-height:44px;border:0;background:#f1eef6;box-shadow:none;border-radius:50%}
.eyebrow {color:#8b7aba;font-size:9px;letter-spacing:.12em}
.onboarding {padding:32px;width:min(430px,calc(100vw - 28px))}
.onboarding h2 {font-size:38px;margin:12px 0 10px;max-width:300px}
.onboard-subtitle {font-size:14px;line-height:1.5;margin-bottom:24px}
.field-label {color:#655e75;font-size:12px;font-weight:600}
input[type=text],input[type=email],input[type=search],select {
  background:#fffdfb;color:#322d41;border:1px solid #ded9e8;border-radius:14px;
  font-size:16px;min-height:48px;padding:12px 14px;margin:7px 0 16px;box-shadow:inset 0 1px 3px #281c4a05;
}
input::placeholder {color:#a09aa8}
.avatar-choice {gap:10px;margin-bottom:18px}
.avatar-choice label {min-height:88px;border:1px solid #e5e0ed;border-radius:19px;background:#f3f0f7;color:#686072;padding:12px;gap:11px}
.avatar-choice label:has(input:checked) {background:#ebe6fa;border-color:#ab9bdc;box-shadow:inset 0 0 0 1px #c4b7eb}
.avatar-silhouette {width:42px;height:49px;border-radius:16px;background:linear-gradient(150deg,#e5dfff,#cfc3f0)}
.avatar-silhouette::before {background:linear-gradient(#eee7ff,#a992dd);box-shadow:0 2px 3px #66519333}
.avatar-silhouette::after {background:linear-gradient(130deg,#a08be3,#6650b3)}
.avatar-silhouette.girl::before {box-shadow:-4px 4px 0 #a996d8,4px 4px 0 #a996d8}
.avatar-silhouette.girl::after {background:linear-gradient(130deg,#bda0e3,#8a65bb)}
#enter-arena {min-height:50px;border-radius:18px}
.onboard-gift {background:#f0edf8;color:#7864b2;border-radius:14px;font-size:11px;margin-top:16px}
.text-button {color:#6954b3;font-size:12px}
.prediction-header {margin-right:45px}
.live-pill {background:#fae8ee;color:#b75b7a;border-radius:10px;padding:5px 7px}
.team-buttons {gap:12px}
.team-pick,.team-pick.side-b {border:1px solid #e5dfed;border-radius:20px;background:#f1edf9;color:#7761b2;min-height:106px;padding:14px 16px;box-shadow:inset 0 1px #fff}
.team-pick.side-b {background:#f7eff3;color:#aa6c93}
.team-pick[aria-pressed=true] {border-color:#9e8bd2;box-shadow:inset 0 0 0 1px #9e8bd2,0 5px 13px #67529319;background:#e9e2fa}
.team-pick b {color:#383046;font:750 23px/1.2 var(--body);letter-spacing:-.04em;margin:7px 0}
.team-pick strong {font:750 26px/1 var(--body);letter-spacing:-.035em}
.team-pick span {letter-spacing:.07em;font-size:9px;font-weight:600}
.odds-source,.odds-detail {font-size:11px;line-height:1.5;margin-top:9px;color:#80788f}
.odds-detail {font-size:10px;color:#898191;margin-top:3px}
.open-position {background:#eee9f7;border:0;border-radius:14px;color:#67528f;padding:10px 12px;font-size:11px;line-height:1.5}
.stake-controls {margin-top:20px}
.stake-header {font-size:13px}
.stake-limit {font-size:11px;margin-top:5px}
#stake {height:34px;accent-color:#8471c9}
.stake-chips {gap:8px}
.stake-chips button {background:#f0edf6;color:#73618f;border-color:#e2dbed;border-radius:13px;min-height:44px;padding:8px 18px;font-size:12px}
.payout-preview {color:#685294;font-size:12px;margin-top:12px}
.prediction-actions {gap:9px}
.prediction-actions .primary-button {min-height:49px;border-radius:16px}
.prediction-actions .outline-button {min-height:49px;border-radius:16px;font-size:10px;padding-inline:13px}
.inline-status {line-height:1.45;font-size:11px}
.all-in-check {background:#f4eef7;color:#73528c;border-color:#e4d5eb;border-radius:16px;padding:12px}
.all-in-check p {color:#73528c}
.details-head p {font-size:12px;line-height:1.5}
.filter-row {gap:7px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:16px 0;padding-bottom:3px}
.filter-row button {white-space:nowrap;flex:none;border-radius:14px;min-height:44px}
.filter-row .selected {background:#e9e2f7;border-color:#c7b7e7;color:#6952a2}
.account-stats > div {background:#f2eef8;border-color:#e9e2f1;border-radius:20px;padding:18px}
.account-stats b {font:750 29px/1.1 var(--body);letter-spacing:-.05em;margin-bottom:5px}
.account-stats span {line-height:1.5;font-size:11px}
.leader-table th {font-size:9px;color:#978ba8}
.leader-table td {font-size:12px;padding:13px 5px}
.me-rank {background:#eee8f7;color:#705594;border-radius:14px;padding:12px}
.shop-grid {gap:12px}
.shop-item {padding:10px;border:1px solid #e7e1ee;background:#fcfafc;border-radius:20px;gap:7px}
.item-art {background:radial-gradient(ellipse,#ece4f8,#f6f2fa);border-radius:14px;min-height:90px}
.item-art::before {display:none}
.item-art svg {width:38px;height:38px;filter:drop-shadow(0 5px 3px #61518124);stroke-width:1.9}
.shop-item .outline-button {border-radius:13px;min-height:44px;font-size:11px}
.shop-item small {font-size:8px;line-height:1.5}
.shop-item b {font-size:12px;line-height:1.4;min-height:34px}
.reward-card {background:#f4f0f8;border-color:#e5dced;border-radius:20px;padding:17px}
.reward-card p {color:#8b7b9c;font-size:11px;line-height:1.7}
.reward-card progress {accent-color:#9582cc}
.stream-dock {background:#fbfaf8;border-color:#fff;border-radius:24px;box-shadow:0 10px 45px #1e173337;top:88px}
.dock-head {min-height:54px;padding:7px 12px;font-size:11px}
.dock-head button {width:40px;height:40px;min-height:40px;border-radius:50%}
.schedule-dialog h2 {margin-bottom:16px}
.match-timing {padding:13px 14px;border:1px solid #e9e0f4;border-radius:18px;background:#f5f0fa}
.timing-heading {display:flex;justify-content:space-between;color:#746486;font-size:11px;margin-bottom:9px}
.timing-heading span:last-child {color:#7d64ac}
.timing-main {display:flex;align-items:center;justify-content:space-between;gap:10px}
.timing-main>div {display:grid;gap:3px;min-width:0}
.timing-teams,.team-choice-label {display:flex;align-items:center;gap:6px;min-width:0}
.team-logo {width:27px;height:27px;flex:0 0 auto;object-fit:contain}
.team-choice-label .team-logo {width:30px;height:30px}
.timing-main strong {font-size:17px;font-weight:750;letter-spacing:-.03em;overflow-wrap:anywhere}
#timing-status {font-size:12px;color:#73647d}
#match-countdown {font-size:22px;font-weight:700;letter-spacing:-.04em;color:#7a61b9;font-variant-numeric:tabular-nums;white-space:nowrap}
#match-countdown.live {font-size:12px;color:#b56785}
.reset-line {display:flex;justify-content:space-between;gap:10px;border-top:1px solid #e3d9ed;padding-top:9px;margin-top:12px;font-size:11px;color:#73647d;font-variant-numeric:tabular-nums}
.reset-line b {font-weight:500;color:#7b6d8e}
#mobile-pick-summary {font-size:11px;color:#73647d;margin:8px 0 0;line-height:1.4}
.mobile-nav {display:none}
@media (max-width:700px), (max-width:1000px) and (max-height:540px) and (orientation:landscape) {
  .arena-menu .desktop-tool,.topbar .wallet small,.topbar .wallet i {display:none}
  .topbar .wallet {min-width:54px}
  .arena-fit dialog.app-dialog {top:var(--visual-bottom);width:var(--fit-width);transform:translate(-50%,-100%) scale(var(--visual-inverse));transform-origin:bottom center}
  .map-hud,.arena-feed {display:none}
  .center-hud {bottom:calc(env(safe-area-inset-bottom) + 70px);width:auto;gap:6px;pointer-events:none}
  .center-hud button {pointer-events:auto}
  .center-hud .predict-button {display:none}
  .seat-controls {gap:2px;border:1px solid #ffffffa0;border-radius:999px;background:#f9f7f3e0;box-shadow:0 5px 20px #2115362e;padding:0 3px}
  .seat-controls .subtle-button {min-height:44px;min-width:44px;padding:6px 9px;gap:5px;font-size:10px;border:0;border-radius:999px;background:transparent;box-shadow:none;white-space:nowrap}
  .seat-controls .subtle-button:hover:not(:disabled) {background:#f2ecf8}
  .email-nudge {max-width:min(216px,calc(100vw - 170px));border-radius:16px}
  .email-nudge .subtle-button {font-size:10px}
  .mobile-nav {display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));position:fixed;z-index:7;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom) + 9px);width:clamp(238px,calc(100vw - 46px),350px);height:53px;padding:3px 7px;border:1px solid #ffffffcc;border-radius:999px;background:#fbfaf7e8;box-shadow:0 6px 24px #1d12313d;transition:width .23s ease,height .23s ease,background .23s ease}
  .mobile-nav button {min-width:44px;min-height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:999px;box-shadow:none;background:transparent;color:#6e5b8c}
  .nav-orb {display:grid;place-items:center;width:38px;height:35px;border-radius:999px;transition:scale .23s ease}
  .nav-orb svg {width:21px;height:21px;stroke-width:1.9}
  .mobile-nav button[aria-current=page] .nav-orb {color:#5b4098;background:#e8dff6}
  .arena-interacting .mobile-nav {width:clamp(238px,calc(100vw - 84px),292px);height:49px;padding-block:1px;background:#fbfaf7c9}
  .arena-interacting .nav-orb {scale:.9}
  .arena-interacting .seat-controls .subtle-button span,.arena-interacting .email-nudge {display:none}
  .joystick {position:fixed;z-index:5;display:block;touch-action:none;left:14px;bottom:calc(env(safe-area-inset-bottom) + 124px);width:64px;height:64px;background:#fbf8f239;border:1px solid #ffffff66;box-shadow:inset 0 0 20px #30224711}
  #joystick-thumb {position:absolute;left:18px;top:18px;width:26px;height:26px;background:linear-gradient(145deg,#eee6ffcc,#a390c9aa);border:1px solid #f8f4ffc0}
  .mobile-jump {position:fixed;z-index:5;display:grid;right:14px;bottom:calc(env(safe-area-inset-bottom) + 124px);width:44px;height:44px;min-height:44px;border-radius:16px;background:#f6f0f6c9}
  .status-toast {left:14px;right:auto;top:calc(env(safe-area-inset-top) + 102px);bottom:auto;max-width:min(285px,calc(100vw - 28px));border-radius:14px;padding:7px 10px;gap:8px;background:#fcfbf2ed;z-index:8}
  .status-toast b {font-size:12px;line-height:1.25}
  .status-toast p {font-size:10px}
  .status-toast button {min-height:44px;padding:4px 8px}
  .drop-banner {top:calc(env(safe-area-inset-top) + 73px);left:14px;transform:none;max-width:calc(100vw - 28px);padding:5px 8px;font-size:9px;overflow:hidden;text-overflow:ellipsis}
  .app-dialog,.details-dialog,.details-dialog.shop-dialog,.compact-dialog {
    inset:auto 0 0;width:100%;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 20px);
    margin:0;border-radius:28px 28px 0 0;padding:26px 20px calc(env(safe-area-inset-bottom) + 24px);
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  }
  .app-dialog h2 {font-size:28px;margin-top:7px;letter-spacing:-.05em}
  .onboarding {inset:auto 0 0;padding:30px 24px calc(env(safe-area-inset-bottom) + 28px)}
  .onboarding h2 {font-size:35px}
  .onboarding .eyebrow {font-size:8px}
  .prediction-dialog {padding-top:12px}
  .sheet-handle {display:grid;place-items:center;height:19px;margin:-5px 40px 7px;touch-action:none}
  .sheet-handle i {background:#ded7e5;width:32px;height:4px;border-radius:4px}
  .prediction-dialog h2 {font-size:27px;margin-bottom:16px}
  .team-pick,.team-pick.side-b {min-height:103px;border-radius:19px;padding:12px 14px}
  .team-pick b {font-size:23px}
  .team-pick strong {font-size:25px}
  .details-head {margin-right:39px}
  .details-head h2 {overflow-wrap:anywhere}
  .detail-actions button {min-height:44px}
  .shop-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .stream-dock {top:calc(env(safe-area-inset-top) + 82px);right:8px;left:8px;width:auto}
  .dock-head {font-size:10px;gap:7px;padding-left:12px}
  .dock-head b {font-size:10px}
}
@media (max-width:360px) {
  .topbar .brand > span {display:none}
  .app-dialog,.details-dialog {padding-inline:16px}
  .avatar-choice label {padding:9px;gap:7px}
  .prediction-dialog h2 {font-size:25px}
  .timing-main strong {font-size:14px}
}
@media (max-width:1000px) and (max-height:540px) and (orientation:landscape) {
  .joystick,.mobile-jump {bottom:calc(env(safe-area-inset-bottom) + 70px)}
}

/* Arena interactions stay at the current zoom while sheets scroll normally. */
body,button,a,input {touch-action:manipulation}
#arena,#joystick,.model-view {touch-action:none}
.app-dialog {touch-action:pan-y}
.app-dialog.shop-dialog {touch-action:pan-x pan-y}
.shop-categories {display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:5px;margin:12px 0 18px}
.shop-categories .filter-row {margin:0;min-width:0;padding:4px 0 9px;touch-action:pan-x pan-y;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b4a1d8 transparent;-webkit-overflow-scrolling:touch}
.shop-categories .filter-row button {touch-action:pan-x pan-y}
.category-scroll {min-width:34px;min-height:44px;padding:0;border:1px solid #ddd5ed;border-radius:12px;background:#f2edf9;color:#6952a2;font-size:27px;line-height:1}
.shoutout-composer h3 {font-size:21px;letter-spacing:-.03em;margin:8px 0}
.shoutout-composer>p {font-size:14px;color:#776c87;line-height:1.5}
.shoutout-composer textarea {display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:100px;max-height:180px;padding:14px;border:1px solid #cfc3e2;border-radius:16px;background:white;color:#30293b;font:16px/1.5 var(--body);touch-action:pan-x pan-y}
.shoutout-composer textarea:focus {outline:2px solid #9b7add;outline-offset:2px}
.shoutout-meta {display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#82758e;margin:8px 0 18px}
.shoutout-preview {background:#211c30;color:#faf7ff;border:1px solid #665082;border-radius:18px;padding:18px;overflow-wrap:anywhere}
.shoutout-preview small {font-size:10px;letter-spacing:.13em;color:#cab4f2}
.shoutout-preview p {font-size:18px;line-height:1.4;margin:8px 0 0}
.shoutout-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shoutout-options article {display:flex;flex-direction:column;border:1px solid #e2dbea;border-radius:18px;padding:16px;background:#f5f1fa;min-width:0}
.shoutout-options b {font-size:16px}
.shoutout-options p {font-size:13px;line-height:1.45;color:#776c87;flex:1}
.shoutout-options small {font-size:11px;line-height:1.4;color:#82758e;margin-top:9px}
.shoutout-options button {font-size:14px;min-height:46px;padding:10px 8px}
input[type=text],input[type=email],input[type=number],select {font-size:16px}
#creator-button[hidden],.capture-tools[hidden],.track-reveal[hidden],.next-game-card[hidden],.win-count[hidden] {display:none!important}
#creator-button {background:#eee7fc;color:#6538ba}
#help-button {display:inline-grid}
.crowd-line {padding:8px 10px;margin:8px 0;background:#f2ecfb;border-radius:12px;color:#654597;font-weight:700;font-size:12px}
#tail-count:empty {display:none}
.board-tabs {display:flex;gap:6px;padding:4px;border-radius:16px;background:#f0edf5}
.board-tabs button {flex:1;border:0;background:transparent;min-height:44px}
.board-tabs button[aria-pressed=true] {background:white;color:#6638ba;box-shadow:0 3px 9px #3c255511}
.item-art {display:block;position:relative;overflow:hidden;min-height:110px;padding:0;aspect-ratio:1.22;width:100%;background:#181426;color:#fff}
.item-art img {width:100%;height:100%;object-fit:cover;display:block}
.item-art img[hidden] {visibility:hidden}
.item-art span {position:absolute;right:7px;bottom:7px;padding:5px 8px;border-radius:10px;background:#f9f6ffeb;color:#392562;font-size:10px;font-weight:800}
.shop-item.rarity-legendary {border-color:#e5bd75;background:linear-gradient(150deg,#fff7e6,#fdfaf5)}
.shop-item.rarity-mythic {border-color:#c5a2fa;background:linear-gradient(150deg,#fbecdb,#f3e8ff);box-shadow:0 4px 22px #a06eee25}
.rarity-legendary .item-art,.model-view.rarity-legendary {box-shadow:0 0 0 1px #c48a5d,0 0 22px #ffc97845}
.rarity-mythic .item-art,.model-view.rarity-mythic {box-shadow:0 0 0 1px #c69cfc,0 0 28px #ca91fa55}
.model-view {margin-top:14px;border-radius:23px;overflow:hidden;background:#151125;aspect-ratio:8/7;max-height:390px;cursor:grab}
.model-view canvas {width:100%;height:100%;display:block;object-fit:contain}
.creator-dialog {width:min(780px,calc(100vw - 36px));max-height:min(86dvh,760px);padding:25px;overflow:auto}
.creator-dialog h3 {font-size:14px;color:#5d4180;margin:16px 0 8px}
.creator-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.creator-scene {min-height:68px;padding:12px;text-align:left;border:1px solid #e3d9f3;border-radius:15px;background:#f8f4fe;color:#302140;display:grid;gap:4px}
.creator-scene:hover {background:#eee4fc}
.creator-scene b {font-size:13px}
.creator-scene span {font-size:11px;color:#6e617b;line-height:1.35}
.creator-dialog [data-stop-scene] {margin-top:15px}
.fx-canvas {position:fixed;inset:0;pointer-events:none;z-index:5}
.win-count {position:fixed;z-index:7;left:50%;top:47%;transform:translate(-50%,-50%);text-align:center;color:#fff7de;min-width:180px;pointer-events:none;text-shadow:0 3px 22px #090921,0 0 18px #edb64e88}
.win-count span {font-size:16px;font-weight:800;letter-spacing:.03em}
.win-count strong {display:block;font-size:clamp(40px,9vw,80px);font-variant-numeric:tabular-nums;line-height:1.05;color:#ffe4a1}
.win-count p {font-size:13px;margin:7px 0 0}
.win-count.fly-away {transition:transform .75s,opacity .75s;transform:translate(calc(36vw - 50%),calc(-38vh - 50%)) scale(.26);opacity:0}
.next-game-card,.track-reveal {position:fixed;z-index:10;right:24px;bottom:108px;width:min(390px,calc(100vw - 24px));background:#fcfaf8;border:1px solid #e7dbf7;border-radius:24px;box-shadow:0 12px 38px #100b2835;padding:17px;color:#2c2340}
.next-game-card .next-dismiss {position:absolute;right:9px;top:5px;min-height:38px;width:38px}
.next-game-card p {margin:10px 0 0}
.next-teams {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}
.next-teams button {display:grid;gap:3px;justify-items:center;min-height:54px}
.next-teams .underdog b {color:#8c5504}
.track-reveal {top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);text-align:center;max-width:290px;z-index:14}
.track-reveal .unlock-symbol {display:block;font-size:52px;color:#9e66e4;text-shadow:0 0 30px #bb77ff;animation:unlock-spin 2s ease-out}
.track-reveal b {display:block;margin-top:7px;font-size:22px}
.track-reveal p {font-size:12px;color:#756581}
.track-reveal .primary-button {margin:8px auto}
@keyframes unlock-spin {from {transform:rotateY(220deg) scale(.3);opacity:.3}to {transform:none;opacity:1}}
.stream-dock {z-index:80}
.sky-credit {display:none;position:fixed;right:18px;bottom:24px;font-size:10px;color:#e9e3fa;text-decoration:none;text-shadow:0 1px 6px #000;z-index:5}
.in-courtyard .sky-credit {display:block}
.capture-tools {position:fixed;bottom:calc(env(safe-area-inset-bottom) + 20px);left:50%;transform:translateX(-50%);z-index:15;display:flex;align-items:center;gap:8px;padding:5px;border-radius:19px;background:#faf7ffeb}
.capture-tools button {min-width:44px;min-height:44px;margin:0;white-space:nowrap}
.capture-tools .primary-button {width:auto}
.photo-mode :is(.topbar,.arena-menu,.view-reset,.arena-feed,.map-hud,.center-hud,.mobile-nav,.status-toast,.drop-banner,#joystick,#mobile-jump,.world-claim,.next-game-card) {display:none!important}
@media (max-width:700px) {
 .next-game-card {left:auto;right:14px;top:calc(env(safe-area-inset-top) + 102px);bottom:auto;width:min(272px,calc(100vw - 28px));padding:12px}
 body:has(.next-game-card:not([hidden])) .status-toast {top:calc(env(safe-area-inset-top) + 253px)}
 .creator-dialog {padding:22px 15px max(15px,env(safe-area-inset-bottom))}
 .item-art {min-height:90px}
 .sky-credit {bottom:calc(env(safe-area-inset-bottom) + 181px);right:13px;font-size:9px}
 .photo-mode .sky-credit {bottom:calc(env(safe-area-inset-bottom) + 82px)}
}
@media (max-width:365px) {.creator-grid{grid-template-columns:1fr}}
@media (max-height:520px) and (orientation:landscape) {.sky-credit{bottom:126px}}
@media (max-width:700px) and (max-height:530px) {
  body:has(.next-game-card:not([hidden])) .status-toast {visibility:hidden}
  .next-game-card {top:calc(env(safe-area-inset-top) + 128px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 206px);overflow:auto}
}
@media (prefers-reduced-motion:reduce) {.win-count.fly-away{transform:translate(-50%,-50%);transition:none}.track-reveal .unlock-symbol{animation:none}}

.rally-link {display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin-top:9px;padding:7px 10px;border:1px solid #e2d6f4;border-radius:13px;background:#f3ecfc;color:#514079;text-align:left;font:700 12px var(--body)}
.rally-link[hidden],.rally-shot[hidden],.reel-actions [hidden] {display:none}
.rally-link svg {width:15px;height:15px;color:#7856b9}
.rally-link span {margin-left:auto;font-size:10px;font-variant-numeric:tabular-nums;color:#6b568c}
.rally-link.rally-live {background:#e5f6e9;border-color:#c5e2cd;color:#245c39}
.rally-live span {color:#245c39}
.rally-dialog h2,.reel-dialog h2 {margin-bottom:10px}
.rally-dialog > p {line-height:1.45}
.rally-timing {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;padding:11px 12px;border-radius:14px;background:#f1ecf8;color:#544079;font-size:13px}
.rally-timing span {font-variant-numeric:tabular-nums}
.rally-teams {display:grid;gap:8px;margin-top:12px}
.rally-teams button {display:flex;justify-content:space-between;gap:10px;min-height:48px;text-align:left}
.rally-teams small {flex-shrink:0;font-size:10px;font-weight:700}
.rally-teams [data-rally-side=A] {border-color:#c6d9f9;background:#eef5ff;color:#23487d}
.rally-teams [data-rally-side=B] {border-color:#edcdd7;background:#fff1f5;color:#7b3651}
.rally-shot {position:fixed;z-index:11;left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));bottom:calc(env(safe-area-inset-bottom) + 24px);display:flex;align-items:center;justify-content:space-between;gap:12px;color:#f8eeff;pointer-events:none}
.rally-shot div {display:grid;gap:4px;padding:10px 15px;background:#150f29d9;border:1px solid #c0a9ed66;border-radius:15px}
.rally-shot span {font-size:9px;font-weight:800;letter-spacing:.14em;color:#e4cdfb}
.rally-shot b {font-size:18px}
.rally-shot button {min-height:44px;min-width:68px;pointer-events:auto}
.rally-cinema :is(.topbar,.arena-menu,.view-reset,.arena-feed,.map-hud,.center-hud,.mobile-nav,.status-toast,.drop-banner,#joystick,#mobile-jump,.world-claim,.next-game-card,.track-reveal,.win-count) {display:none!important}
.rally-cinema .sky-credit {bottom:calc(env(safe-area-inset-bottom) + 90px)}
.win-share-actions,.reel-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.win-share-actions .primary-button,.reel-actions .primary-button {width:auto;min-height:44px}
.reel-actions .primary-button {display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:8px 13px}
.reel-actions .outline-button {min-height:44px}
.reel-preview {height:min(48dvh,440px);aspect-ratio:9/16;margin:0 auto;overflow:hidden;border:1px solid #e2d3f6;border-radius:17px;background:#130f24}
.reel-preview :is(canvas,video) {display:block;width:100%;height:100%;object-fit:contain}
.reel-dialog .inline-status {margin:9px 0 0}
@media (max-width:700px) {
  .rally-link {min-height:44px;margin-top:7px}
  .reel-preview {height:min(43dvh,410px)}
}
@media (prefers-reduced-motion:reduce) {.mobile-nav,.nav-orb {transition:none}}
.unlock-art {height:105px;border-radius:16px;overflow:hidden;margin-bottom:11px;background:radial-gradient(ellipse at top,#a875eb,#1d1530 70%);animation:unlock-spin 2s ease-out}
.unlock-art img {height:100%;width:100%;object-fit:contain}
@media (prefers-reduced-motion:reduce) {.unlock-art{animation:none}}

/* Nearby prompts stay above movement controls without intercepting empty space. */
.interaction-prompt {pointer-events:none}
.interaction-prompt button {pointer-events:auto;white-space:nowrap;box-shadow:0 5px 18px #19152a66}
.in-faker-hall #hall-route {background:#f4e7d3;color:#684b30;border-color:#e6cfaa}
.in-faker-hall .map-title span {font-size:0}
.in-faker-hall .map-title span::after {content:'FAKER HALL';font-size:10px}
#prayer-prompt button {color:#674925;background:#fff4df;border-color:#e9cb8d}
#prayer-prompt kbd {font:inherit;font-size:10px;border:1px solid #c7ad7a;padding:2px 5px;border-radius:4px}
.prayer-close {position:fixed;z-index:12;bottom:calc(env(safe-area-inset-bottom) + 22px);left:50%;transform:translateX(-50%);color:#5b432c;background:#fff3dc;box-shadow:0 4px 24px #1c101980}
.prayer-cinema :is(.topbar,.arena-menu,.arena-feed,.map-hud,.center-hud,.mobile-nav,.status-toast,.drop-banner,.world-claim,#mobile-jump,#next-game-card) {display:none!important}
.prayer-cinema #joystick {opacity:.24}
.photo-mode .prayer-close {display:none!important}
/* A true viewing surface, independent of the 3D camera and recovered game zoom. */
dialog.stream-dock[open] {display:flex;visibility:visible;flex-direction:column;inset:0;margin:0;padding:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;background:#080a10;color:#f8f7ff;box-shadow:none;overflow:hidden;touch-action:manipulation}
dialog.stream-dock::backdrop {background:#080a10}
.stream-view {display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:#080a10;color:#f8f7ff}
dialog.stream-dock .dock-head {flex:none;gap:8px;padding:6px max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));padding-top:max(6px,env(safe-area-inset-top));min-height:52px;color:#e8e1ff}
dialog.stream-dock .dock-head b {margin-right:auto;white-space:nowrap;font-size:12px}
dialog.stream-dock .dock-head a {margin:0;color:#c6b4ff;font-size:11px}
dialog.stream-dock .dock-head button {flex:none;margin:0;min-height:40px}
dialog.stream-dock #stream-fullscreen {width:auto;padding:8px;gap:5px;font-size:11px;border-radius:12px}
dialog.stream-dock #stream-fullscreen svg {width:17px;height:17px}
dialog.stream-dock #stream-mount {flex:1;min-height:0;aspect-ratio:auto;display:block;overflow:hidden;background:#000}
dialog.stream-dock #stream-mount[hidden] {display:none}
dialog.stream-dock #stream-mount video {display:block;width:100%;height:100%;object-fit:contain;background:#000}
dialog.stream-dock #stream-error {margin:auto;padding:18px 24px;max-width:440px;color:#e4dcf4;font-size:14px;line-height:1.6;text-align:center}
.arena-fit dialog.stream-dock[open] {inset:auto;left:var(--visual-left);top:var(--visual-top);width:var(--fit-width);height:var(--fit-height);transform:scale(var(--visual-inverse));transform-origin:top left}
.stream-view:fullscreen {transform:none!important;inset:0!important;width:100%!important;height:100%!important}
@media(max-width:450px){dialog.stream-dock #stream-fullscreen span{display:none}dialog.stream-dock .dock-head b{font-size:11px}dialog.stream-dock .dock-head a{font-size:10px}}

/* Telescope mode keeps the sky interactive and the exit within thumb reach. */
.stargazing :is(.topbar,.arena-menu,.arena-feed,.map-hud,.center-hud,.mobile-nav,.status-toast,.drop-banner,.world-claim,#joystick,#mobile-jump,#next-game-card,.view-reset) {display:none!important}
.telescope-overlay {position:fixed;inset:0;z-index:8;pointer-events:none;background:radial-gradient(ellipse at center,transparent 31%,#03061132 62%,#030611d9 100%)}
.scope-reticle {position:absolute;left:50%;top:45%;width:34px;height:34px;border:1px solid #e8dbb84d;border-radius:50%;transform:translate(-50%,-50%)}
.scope-reticle::before,.scope-reticle::after {content:"";position:absolute;background:#e8dbb854}
.scope-reticle::before {height:1px;width:58px;top:16px;left:-13px}.scope-reticle::after {width:1px;height:58px;left:16px;top:-13px}
.telescope-tools {position:fixed;z-index:16;bottom:calc(env(safe-area-inset-bottom) + 24px);left:50%;transform:translateX(-50%);max-width:calc(100vw - 28px);width:max-content;display:grid;gap:13px;padding:15px 19px;border-radius:22px;background:#101629dd;border:1px solid #afa2db44;color:#f2effd;text-align:center;backdrop-filter:blur(12px)}
.telescope-tools>div:first-child {display:grid;gap:4px}.telescope-tools b {font-size:16px;font-weight:600;letter-spacing:.03em}.telescope-tools span {font-size:12px;color:#b7b9d1}
.scope-actions {display:flex;align-items:center;gap:9px}.scope-actions .icon-button {width:44px;height:44px;font-size:24px;line-height:1;padding:0}.scope-actions output {font-size:13px;min-width:38px}.scope-actions .subtle-button {font-size:12px;min-height:44px;padding:0 13px;white-space:nowrap}
.telescope-overlay[hidden],.telescope-tools[hidden] {display:none}
.stargazing #sky-credit {bottom:auto;top:calc(env(safe-area-inset-top) + 16px);color:#dbd7ee99}
@media(max-width:360px){.telescope-tools{padding:12px 10px}.scope-actions{gap:6px}.scope-actions output{min-width:32px}.scope-actions .subtle-button{font-size:11px;padding-inline:10px}}
