* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #070708;
  color: #f3efe6;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  overflow: hidden;
  touch-action: manipulation;
  overscroll-behavior: none;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#app {
  width: 480px;
  max-width: 480px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: #0a0a0c;
  transform-origin: center center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}
.hud-grid,
.hud-4,
.hud-3 {
  display: grid;
  gap: 1px;
  background: #2a2a2e;
  border-bottom: 1px solid #2a2a2e;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}
.stat {
  background: #0a0a0c;
  padding: 4px 6px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  min-width: 0;
}
.stat span {
  font-size: clamp(9px, 2.4vw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8680;
  white-space: nowrap;
}
.stat b {
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-grid > .stat:nth-child(-n+6) span { font-size: clamp(8.6px, 2.28vw, 11.4px); }
.hud-grid > .stat:nth-child(-n+6) b { font-size: clamp(12.4px, 3.04vw, 14.25px); }
.stat span.sub { margin-top: 0; }
#h-cold-wrap,
#h-laser-wrap,
#h-halve-wrap { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 0; align-items: baseline; }
.stat-opt,
.stat-user,
.stat-juke { display: flex; flex-direction: column; align-items: stretch; justify-content: stretch; padding: 2px; gap: 2px; min-height: 0; min-width: 0; }
.stat-juke.locked { opacity: 0.38; }
.juke-hud-title {
  font-size: 11px; letter-spacing: 0.03em; color: #fff6d0; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; padding: 0 2px; font-weight: 700;
}
.juke-hud-row { display: flex; gap: 3px; flex: 1 1 auto; min-height: 0; align-items: center; }
.juke-hud-btn {
  flex: 0 0 22px; width: 22px; min-width: 22px; min-height: 18px; border: 1px solid #3a3a40; background: #141416; color: #f3efe6;
  font: inherit; font-size: 10px; line-height: 1; cursor: pointer; padding: 0;
}
.juke-hud-btn:hover { border-color: #c8960a; color: #fff6d0; }
.juke-hud-btn.on { border-color: #c8960a; background: #c8960a; color: #09090b; }
#juke-hud-vol {
  flex: 1 1 auto; min-width: 0; height: 14px; margin: 0; padding: 0;
  accent-color: #c8960a; cursor: pointer; background: transparent;
}
.opt-btn { width: 100%; flex: 1 1 auto; min-height: 0; border: 1px solid #3a3a40; background: #141416; color: #fff6d0; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; line-height: 1.15; padding: 2px 4px; }
.opt-btn small { display: block; font-size: 8px; letter-spacing: 0; text-transform: none; font-weight: 700; color: #fff6d0; }
.user-link { color: #F2A900; text-decoration: none; font-size: 11px; font-weight: 700; }
.user-link:hover { text-decoration: underline; }
.opt-btn:disabled { opacity: 0.35; cursor: default; }
.opt-btn:not(:disabled):hover { border-color: #c8960a; color: #fff6d0; }
.hide { display: none !important; pointer-events: none !important; }
.speed-bar { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 4px; padding: 3px 8px; border-bottom: 1px solid #2a2a2e; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8680; max-width: 100%; min-height: 34px; }
.speed-bar button {
  flex: 1; min-width: 0;
  min-height: 28px; padding: 0 6px;
  text-transform: uppercase;
  border: 1px solid #3a3a40; background: #141416; color: #8a8680;
  font: inherit; cursor: pointer; letter-spacing: 0.06em;
}
.speed-bar button.on { border-color: #c8960a; background: #c8960a; color: #09090b; outline: none; }
.speed-bar button.ia-hit {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff, 0 0 14px rgba(255,255,255,0.55);
  color: #fff;
}
.speed-bar button.on.ia-hit {
  background: #f4f4f6;
  border-color: #fff;
  color: #09090b;
  box-shadow: 0 0 16px rgba(255,255,255,0.7);
}
.trades .ia-hit {
  outline: 2px solid #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.6);
  filter: brightness(1.22);
}
.caption {
  position: absolute; left: 10px; transform: none;
  top: 36px; max-width: 72%; z-index: 7; pointer-events: none;
  text-align: left; font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; color: #fff6d0;
  text-shadow: 0 0 4px #000, 0 1px 0 #000, 1px 1px 0 #000, -1px -1px 0 #000;
  background: rgba(10,10,12,0.88); border: 1px solid #3a3a40; padding: 5px 10px;
}
.ia-log { width: 100%; max-width: 420px; text-align: left; border: 1px solid #2a2a2e; background: #0e0e10; padding: 8px 10px; max-height: 160px; overflow-y: auto; }
.ia-log p { font-size: 11px; color: #b4b0a8; max-width: none; margin: 0 0 6px; line-height: 1.35; }
.ia-log .ia-when { color: #8a8680; margin-right: 6px; }
.ia-log .ia-act { color: #8eecff; }
.home { margin-left: auto; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #c8960a; text-decoration: none; border: 1px solid #2a2a2e; font-size: 16px; letter-spacing: 0; text-transform: none; }
.field { position: relative; width: 480px; height: 640px; flex: 0 0 640px; overflow: hidden; touch-action: manipulation; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#flap-layer { position: absolute; inset: 0; z-index: 7; display: none; touch-action: manipulation; }
.field.is-play #flap-layer { display: block; }
#clock-box { position: absolute; top: 8px; right: 12px; z-index: 6; pointer-events: none; text-align: right; }
#clock { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: #fff6d0; text-shadow: 0 0 4px #000, 0 1px 0 #000, 1px 1px 0 #000, -1px -1px 0 #000, 0 0 8px rgba(0,0,0,0.8); }
#h-candles { margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #c8c4bc; text-shadow: 0 0 4px #000, 0 1px 0 #000; }
.field.bear #c { animation: shake 0.16s infinite; }
.field.bear.swan-bear #c { animation: shake-hard 0.11s infinite; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
}
@keyframes shake-hard {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 4px); }
  40% { transform: translate(7px, -5px); }
  60% { transform: translate(-5px, -4px); }
  80% { transform: translate(5px, 3px); }
}
.banner { position: absolute; left: 50%; transform: translateX(-50%); max-width: 90%; text-align: center; font-size: 12px; background: rgba(10,10,12,0.85); border: 1px solid #2a2a2e; padding: 6px 12px; border-radius: 4px; pointer-events: none; z-index: 5; }
.banner.top {
  top: 8px; left: 10px; right: auto; transform: none; z-index: 8;
  width: max-content; max-width: calc(100% - 100px);
  display: flex; align-items: baseline; gap: 12px;
  white-space: nowrap; line-height: 1.2;
  letter-spacing: 0.04em; color: #c8960a;
}
#status-powers { color: #c8960a; }
#status-job { color: #6ec8e0; font-weight: 700; }
.banner.bot { bottom: 88px; }
.trades { position: absolute; left: 12px; right: 64px; bottom: 12px; z-index: 8; display: flex; flex-direction: column; gap: 6px; }
.lyric-stage {
  position: absolute; left: 12px; right: auto; bottom: 58px; z-index: 8;
  width: min(52%, 240px); max-width: 240px;
  pointer-events: none; text-align: left;
  padding: 4px 6px 6px;
  background: linear-gradient(180deg, rgba(10,10,12,0.04), rgba(10,10,12,0.28));
  border: 1px solid rgba(200,150,10,0.12);
}
.lyric-title {
  margin: 0 0 2px; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(200,150,10,0.55); text-align: left;
}
.lyric-side {
  margin: 0; min-height: 11px; font-size: 9px; color: rgba(106,102,96,0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lyric-now {
  margin: 1px 0 1px; min-height: 14px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em; color: rgba(138,134,128,0.7); line-height: 1.2;
}
.lyric-now .w { color: rgba(110,106,100,0.45); }
.lyric-now .w.on { color: rgba(255,246,208,0.7); text-shadow: none; }
.lyric-now .w.hot { color: rgba(200,150,10,0.85); text-shadow: none; }
.row { display: flex; gap: 8px; align-items: stretch; }
.buy, .sell, .pause, .cta { font: inherit; cursor: pointer; border: 0; }
.dock-spd,
#spd-2.dock-spd,
#spd-2.dock-spd.on,
#spd-2.dock-spd:disabled {
  flex: 0 0 45px; width: 45px; min-width: 45px; max-width: 45px;
  min-height: 45px; height: 45px; padding: 0;
  font-size: 17px; font-weight: 700; letter-spacing: 0;
  border: 1px solid rgba(200, 150, 10, 0.75);
  background: rgba(200, 150, 10, 0.12);
  color: rgba(240, 208, 96, 0.9);
  opacity: 1; filter: none;
}
.buy, .sell, .pause, .cta { font: inherit; cursor: pointer; border: 0; }
.cta { background: #c8960a; color: #120c02; min-height: 44px; padding: 0 16px; font-weight: 700; text-transform: uppercase; }
.play-alt { background: transparent; color: #f3efe6; border: 1px solid #c8960a; }
.mp-chip {
  position: absolute; top: 8px; right: 8px; z-index: 8;
  font-size: 10px; letter-spacing: 0.08em; font-weight: 700;
  color: #ffe7a0; background: rgba(10,10,12,0.72);
  border: 1px solid #c8960a; padding: 3px 8px; pointer-events: none;
}
.mp-list { list-style: none; width: 220px; max-width: 72%; margin: 8px auto; text-align: left; font-size: 12px; }
.mp-list li { padding: 6px 8px; border-bottom: 1px solid #2a2a2e; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.mp-list li.out { color: #8a8680; text-decoration: line-through; }
.mp-list li .hero-dot {
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 16px;
  border: 1px solid #0a0a0c; font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.mp-join {
  display: flex; gap: 6px; width: 196px; max-width: 62%;
  margin: 8px auto; justify-content: center; align-items: stretch;
  min-width: 0; box-sizing: border-box;
}
.mp-join input {
  flex: 1 1 72px; width: 72px; min-width: 0; min-height: 40px; font: inherit; text-transform: uppercase;
  letter-spacing: 0.12em; text-align: center; background: #141416; color: #f3efe6;
  border: 1px solid #c8960a; padding: 0 6px; box-sizing: border-box;
}
.speed-bar button:disabled { opacity: 0.38; pointer-events: none; filter: grayscale(0.7); }
.buy, .sell { flex: 1; min-height: 45px; height: 45px; font-size: 24px; font-weight: 700; white-space: nowrap; background: transparent; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.buy:disabled, .sell:disabled { opacity: 0.38; pointer-events: none; filter: grayscale(0.65); }
.buy { color: rgba(31, 138, 76, 0.75); border: 1px solid rgba(31, 138, 76, 0.75); background: rgba(31, 138, 76, 0.12); }
.sell { color: rgba(163, 58, 50, 0.75); border: 1px solid rgba(163, 58, 50, 0.75); background: rgba(163, 58, 50, 0.12); }
.buy, .sell { -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; appearance: none; -webkit-appearance: none; }
.buy, .buy:hover, .buy:focus, .buy:focus-visible, .buy:active, .buy.on, .buy:focus-visible:active {
  color: rgba(31, 138, 76, 0.75); background: rgba(31, 138, 76, 0.12); border-color: rgba(31, 138, 76, 0.75); outline: none; box-shadow: none; filter: none;
}
.sell, .sell:hover, .sell:focus, .sell:focus-visible, .sell:active, .sell.on, .sell:focus-visible:active {
  color: rgba(163, 58, 50, 0.75); background: rgba(163, 58, 50, 0.12); border-color: rgba(163, 58, 50, 0.75); outline: none; box-shadow: none; filter: none;
}
.pause {
  position: absolute; right: 12px; bottom: 12px; z-index: 8;
  min-width: 45px; min-height: 45px; width: 45px; height: 45px; padding: 0;
  background: rgba(10, 10, 12, 0.12); color: rgba(243, 239, 230, 0.75);
  border: 1px solid rgba(243, 239, 230, 0.35);
}
.field.perk-ui .pause { z-index: 20; color: #fff6d8; background: #c8960a; border-color: #f0d060; box-shadow: 0 0 0 3px rgba(200,150,10,0.45); }
.overlay { position: absolute; inset: 0; background: rgba(10,10,12,0.94); display: none; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 12px; padding: 24px 16px 32px; z-index: 12; overflow-y: auto; -webkit-overflow-scrolling: touch; pointer-events: auto; }
.overlay.open { display: flex !important; pointer-events: auto !important; }
.overlay.dock {
  inset: auto 8px auto 8px;
  top: 8px;
  max-height: 56%;
  background: rgba(10,10,12,0.675);
  border: 1px solid rgba(58,58,64,0.7);
  padding: 8px 8px 10px;
  gap: 5px;
}
.overlay.dock.chance-ui {
  max-height: 92%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 8px 10px 10px;
  gap: 5px;
  text-align: left;
  align-items: stretch;
  isolation: isolate;
  filter: none !important;
  background: rgba(22, 18, 12, 0.96);
}
.overlay.dock.chance-ui .chance-art {
  width: 168px;
  height: 168px;
  border-radius: 18px;
  object-fit: contain;
  background: #3a3020;
  align-self: center;
  margin: 0 auto;
  display: block;
  filter: none !important;
  mix-blend-mode: normal !important;
}
.overlay.dock.chance-ui h1 { text-align: left; }
.overlay.dock.chance-ui p.k { text-decoration: underline; color: #f3efe6; }
.overlay.dock.chance-ui p { font-size: 12.1px; line-height: 1.38; max-width: none; text-align: left; }
.overlay.dock.chance-ui .arc-body {
  font-size: 12.1px;
  line-height: 1.38;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  white-space: pre-wrap;
}
.overlay.dock.chance-ui .arc-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding: 8px 0 4px;
  text-align: center;
}
.overlay.dock.chance-ui .arc-actions .cta {
  width: 72%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.overlay.dock h1 { font-size: 14px; margin: 0; }
.overlay.dock p { font-size: 11px; margin: 0; }
.overlay.dock .perk-list .cta { min-height: 32px; font-size: 10px; }
.chance-art {
  width: 184px; height: 184px; border-radius: 18px;
  object-fit: contain; border: 2px solid #c8960a;
  background: #3a3020; flex: 0 0 auto;
  filter: none; mix-blend-mode: normal;
}
.overlay.dock .chance-art { width: 72px; height: 72px; }
.overlay.dock .opt-item { min-height: 30px; font-size: 11px; }
.overlay.dock .opt-menu { gap: 4px; }
.overlay.dock .cta { min-height: 30px; min-width: 0; padding: 0 10px; font-size: 11px; }
.overlay .cta { position: relative; z-index: 13; touch-action: manipulation; min-height: 48px; min-width: 160px; }
.overlay h1 { font-size: 28px; letter-spacing: -0.03em; }
.overlay p { font-size: 14px; color: #b4b0a8; max-width: 420px; line-height: 1.45; }
.juke-now { font-size: 14px; color: #f3efe6; font-weight: 700; max-width: none; white-space: normal; overflow: visible; line-height: 1.3; }
.juke-track { min-height: 36px; width: 100%; text-align: left; padding: 6px 10px; border: 1px solid #2a2a2e; background: #0e0e10; color: #b4b0a8; font: inherit; font-size: 11px; cursor: pointer; white-space: normal; line-height: 1.3; }
.aw-box { width: 100%; max-width: 360px; text-align: left; border: 1px solid #2a2a2e; background: #0e0e10; padding: 8px 10px; }
.aw-box summary { cursor: pointer; color: #c8960a; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.aw-box p { margin: 6px 0 0; font-size: 12px; }
.awards p { margin: 0 0 6px; font-size: 12px; max-width: none; }
.overlay .count { font-size: 72px; color: #c8960a; }
.overlay ul { width: 100%; max-width: 360px; text-align: left; font-size: 12px; border: 1px solid #2a2a2e; padding: 12px; list-style: none; }
.overlay li { display: flex; justify-content: space-between; padding: 2px 0; }
.overlay .k { color: #8a8680; }
.cta { min-height: 44px; padding: 0 22px; background: #c8960a; color: #09090b; font-weight: 700; }
.overlay-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.recap-tabs { display: flex; gap: 8px; width: 100%; max-width: 360px; }
.recap-tabs .cta { flex: 1; min-width: 0; min-height: 36px; }
.recap-tabs .cta.on { background: #c8960a; color: #09090b; border-color: #f0d060; }
#run-tape { width: 100%; max-width: 420px; height: 228px; background: #0a0a0c; border: 1px solid #2a2a2e; display: block; }
.recap-list { width: 100%; max-width: 360px; }
.overlay .home { margin-left: 0; }
.perk-list { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 360px; }
.perk-list .cta {
  width: 100%; font-size: 12px; min-height: 52px; background: #1a1a1e; color: #f3efe6; border: 1px solid #3a3a40;
  text-transform: none; line-height: 1.25;
}
.perk-name { display: block; text-transform: uppercase; font-weight: 700; }
.perk-desc { display: block; text-transform: lowercase; font-weight: 500; font-size: 11px; color: #b4b0a8; margin-top: 2px; }
.perk-list .cta.on .perk-desc { color: #3a3010; }
.perk-list .cta.on { background: #c8960a; color: #09090b; border-color: #f0d060; outline: 3px solid #fff2b0; }
.field.perk-ui .overlay { pointer-events: none; padding-bottom: 88px; }
.field.perk-ui .overlay > * { pointer-events: auto; }

#now-playing {
  position: absolute; left: 12px; right: auto; top: auto; bottom: 82px;
  z-index: 8; pointer-events: none; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #fff6d0;
  text-shadow: 0 0 4px #000, 0 1px 0 #000; max-width: 70%;
}
.juke.retro { width: 100%; max-width: 420px; border: 2px solid #c8960a; background: linear-gradient(#1a1208, #0c0c0e); padding: 12px 12px 10px; text-align: center; box-shadow: inset 0 0 0 1px #3a2a10, 0 8px 24px rgba(0,0,0,0.45); }
.juke-track { min-height: 36px; height: auto; width: 100%; text-align: left; padding: 6px 10px; border: 1px solid #2a2a2e; background: #0e0e10; color: #b4b0a8; font: inherit; font-size: 11px; cursor: pointer; white-space: normal; line-height: 1.3; }
.juke-track.on { border-color: #c8960a; color: #fff6d0; background: #1a1608; }
.juke-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.juke-prog { height: 8px; background: #1a1a1e; border: 1px solid #3a3a40; overflow: hidden; }
.juke-prog-bar { height: 100%; width: 0; background: #c8960a; }
.juke-times { display: flex; justify-content: space-between; font-size: 10px; color: #8a8680; margin: 4px 0 0; }
.juke-lab { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #c8960a; margin-bottom: 4px; }
.juke-now { font-size: 14px; color: #f3efe6; font-weight: 700; max-width: none !important; white-space: normal; line-height: 1.35; }
.juke-gen { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8680; margin-bottom: 8px; }
.juke-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.juke-btn { min-height: 40px; min-width: 44px; padding: 0 12px; border: 1px solid #3a3a40; background: #1a1a1e; color: #f3efe6; font: inherit; cursor: pointer; }
.juke-play { min-width: 88px; background: #c8960a; color: #09090b; border-color: #f0d060; font-weight: 700; }
.overlay.dock.juke-ui {
  max-height: 92%;
  overflow-y: auto;
  gap: 4px;
  padding: 6px 8px 8px;
}
.overlay.juke-ui .juke.retro { padding: 8px 8px 6px; }
.overlay.juke-ui .juke-list { max-height: none; overflow: visible; }
.overlay.juke-ui .juke-lab { margin-bottom: 2px; }
.overlay.juke-ui .juke-gen { margin-bottom: 4px; }
.opt-item, .mute-tog { text-transform: uppercase; }
.juke-track.dim { opacity: 0.4; text-decoration: line-through; }
.juke-move.on { border-color: #a33a32; color: #ffb4ac; background: #1a0c0c; }
.juke-play.on { background: #f0d060; color: #09090b; box-shadow: 0 0 0 2px #fff2b0; }
.juke-btn.on#juke-pause, #juke-pause.on { border-color: #c8960a; color: #09090b; background: #c8960a; }
.juke-line { display: flex; gap: 4px; align-items: stretch; }
.juke-line.on .juke-track { border-color: #c8960a; color: #fff6d0; background: #1a1608; }
.juke-track { min-height: 32px; flex: 1; text-align: left; padding: 0 10px; border: 1px solid #2a2a2e; background: #0e0e10; color: #b4b0a8; font: inherit; font-size: 11px; cursor: pointer; }
.juke-move { min-width: 28px; min-height: 32px; border: 1px solid #2a2a2e; background: #141416; color: #8a8680; font: inherit; cursor: pointer; }
.mute-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 420px; }
.mute-tog { min-height: 40px; flex: 1; min-width: 140px; padding: 0 10px; border: 1px solid #3a3a40; background: #141416; color: #b4b0a8; font: inherit; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.mute-tog.on { border-color: #a33a32; color: #ffb4ac; background: #1a0c0c; }
.help { max-width: 420px; text-align: left; font-size: 13px; line-height: 1.45; color: #d4d0c8; }
.help p { margin: 0 0 10px; display: flex; gap: 10px; align-items: flex-start; }
.help-ico {
  flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 0;
}
.help-ico svg { display: block; }
.opt-menu { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 280px; }
.opt-item { min-height: 30px; }
.dca-tog.ai-lit, .buy.ai-lit, .sell.ai-lit, #trend-btn.ai-lit,
.buy.ai-lit:hover, .buy.ai-lit:focus, .buy.ai-lit:active, .buy.ai-lit.on,
.sell.ai-lit:hover, .sell.ai-lit:focus, .sell.ai-lit:active, .sell.ai-lit.on {
  color: #fff; background: #c8c4bc; box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255,255,255,0.55);
}
.lang-sw { display: flex; gap: 6px; justify-content: center; margin: 0 0 8px; }
.lang-sw button { min-width: 40px; min-height: 32px; border: 1px solid #3a3a40; background: #141416; color: #f3efe6; cursor: pointer; }
.aw-on { color: #f3efe6; }
.aw-off { color: #6a6660; }
.juke-btn.ico { min-width: 44px; min-height: 40px; padding: 0; font-size: 16px; line-height: 1; color: #8a8680; background: #141416; border-color: #2a2a2e; }
.juke-btn.ico.on { color: #09090b; background: #c8960a; border-color: #f0d060; box-shadow: 0 0 0 2px rgba(240,208,96,0.35); }
.juke-btn.ico.juke-play { color: #8a8680; background: #141416; min-width: 48px; }
.juke-btn.ico.juke-play.on { color: #09090b; background: #f0d060; border-color: #fff2b0; }
.juke-arm {
  flex: 0 0 28px; width: 28px; min-width: 28px; min-height: 28px; height: 28px;
  padding: 0; border: 1px solid #2a2a2e; background: #141416; color: #4f9d6e;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.juke-arm.on { color: #4f9d6e; border-color: #1f8a4c; }
.juke-arm.off { color: #c45c4a; border-color: #a33a32; background: #1a0c0c; }
.juke-line { display: flex; gap: 6px; align-items: center; }
.juke-line.dim .juke-track { opacity: 0.45; text-decoration: line-through; }
.juke-line .juke-track { flex: 1; width: auto; min-height: 32px; }
.auth-modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(10,10,12,0.86);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.auth-modal.open { display: flex !important; pointer-events: auto !important; z-index: 9999; }
.auth-card {
  width: min(360px, 100%); background: #121214; border: 1px solid #c8960a;
  padding: 18px 16px; display: flex; flex-direction: column; gap: 8px;
}
.auth-card h2 { margin: 0 0 6px; font-size: 18px; color: #f3efe6; }
.auth-card label { display: block; text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8680; }
.auth-card input {
  width: 100%; margin-top: 4px; min-height: 36px; padding: 0 10px;
  border: 1px solid #3a3a40; background: #0a0a0c; color: #f3efe6; font: inherit;
}
.auth-card .cta { width: 100%; }
.text-btn { background: none; border: 0; color: #c8960a; font: inherit; font-size: 12px; cursor: pointer; }
.auth-msg { min-height: 16px; font-size: 12px; color: #b4b0a8; margin: 0; }
.auth-msg.bad { color: #ff9b92; }
.auth-card .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.board { margin: 0; font-size: 11px; color: #b4b0a8; background: #0a0a0c; padding: 8px; border: 1px solid #2a2a2e; min-height: 64px; white-space: pre-wrap; }
.aw-box { text-align: left; font-size: 12px; border: 1px solid #2a2a2e; padding: 6px 8px; }
.aw-box summary { cursor: pointer; color: #c8960a; font-size: 12px; }
#profile-modal .auth-card { max-height: 82vh; overflow-y: auto; }
@media (max-width: 700px) {
  #profile-modal { align-items: flex-start; padding: 6px; }
  #profile-modal .auth-card {
    width: min(320px, 96vw);
    max-height: 68dvh;
    padding: 8px 10px;
    gap: 5px;
  }
  #profile-modal .auth-card h2 { font-size: 15px; margin: 0; }
  #profile-modal .auth-card label { font-size: 12px; }
  #profile-modal .auth-card input { min-height: 28px; }
  #profile-modal .auth-card .cta { min-height: 32px; font-size: 13px; }
  #profile-score-info { font-size: 13px; margin: 0; }
  #profile-awards { max-height: 22vh; overflow-y: auto; }
}

.board-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stats-mini {
  display: inline-block; font: inherit; font-size: 10px; letter-spacing: 0.08em;
  padding: 2px 8px; min-height: 22px; cursor: pointer;
  background: transparent; color: #f3efe6; border: 1px solid #c8960a;
}
.chart-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; font-size: 11px; }
.chart-opt { display: flex; align-items: center; gap: 4px; color: #c8c4bc; }
.chart-opt input { accent-color: #c8960a; }
.overlay .mp-join .cta,
.overlay .mp-cta {
  min-width: 0 !important; width: 196px; max-width: 62%; padding: 0 10px; font-size: 12px;
}
.overlay .mp-join .cta {
  width: auto !important; flex: 1 1 0; max-width: none; min-height: 40px; min-width: 0 !important;
  font-size: 11px; letter-spacing: 0.04em; padding: 0 8px;
}
.overlay.mp-ui { padding: 18px 28px 28px; align-items: center; }
.overlay.mp-ui .cta { min-width: 0; width: 196px; max-width: 62%; }
.overlay.mp-ui .mp-join { width: 196px; max-width: 62%; }
.overlay.mp-ui .mp-join .cta { width: auto; flex: 1 1 0; max-width: none; }
.mp-rules {
  width: 220px; max-width: 72%; margin: 6px auto 0; text-align: left;
  border: 1px solid #2a2a2e; background: #101012; padding: 8px;
}
.mp-rules summary {
  cursor: pointer; font-size: 11px; letter-spacing: 0.12em; color: #c8960a;
  text-transform: uppercase; font-weight: 700; list-style: none;
}
.mp-rules summary::-webkit-details-marker { display: none; }
.mp-rules summary::after { content: " ▾"; }
.mp-rules:not([open]) summary::after { content: " ▸"; }
.mp-rules h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.12em; color: #c8960a; text-transform: uppercase; }
.mp-rule { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; font-size: 11px; color: #c4c0b8; }
.mp-rule input[type="number"] {
  width: 56px; min-height: 32px; background: #0a0a0c; color: #f3efe6; border: 1px solid #3a3a40;
  font: inherit; text-align: center;
}
.mp-rule input:disabled { opacity: 0.55; }
.mp-w { display: grid; grid-template-columns: 1fr 48px; gap: 4px 8px; align-items: center; margin-top: 6px; }
.mp-w label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8680; }
.mp-w input { width: 48px; min-height: 28px; background: #0a0a0c; color: #f3efe6; border: 1px solid #3a3a40; font: inherit; text-align: center; }
.mp-w input:disabled { opacity: 0.55; }
.mp-mix-sum { margin: 4px 0 0; font-size: 10px; letter-spacing: 0.06em; color: #c8960a; }
.mp-mix-sum.bad { color: #c45c4a; }
.mp-rules .mute-row { width: 100%; max-width: none; gap: 4px; }
.mp-rules .mute-tog { min-height: 32px; font-size: 9px; padding: 0 6px; flex: 1 1 auto; min-width: 0; }
.mp-hud-list {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 8px;
  border-bottom: 1px solid #2a2a2e; min-height: 34px; align-items: center;
}
.mp-hud-list.hide { display: none !important; }
.mp-hud-list .mp-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #2a2a2e; background: #141416; padding: 3px 7px;
  font-size: 10px; letter-spacing: 0.04em; min-height: 26px; color: #f3efe6;
}
.mp-hud-list .mp-pill.out { opacity: 0.42; text-decoration: line-through; color: #8a8680; }
.mp-hud-list .mp-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.mp-hud-list .mp-pill.lead { border-color: #c8960a; color: #ffe7a0; }
#app.vs-on #perk-bar,
#app.vs-on #juke-hud,
#app.vs-on #opt-btn,
#app.vs-on #pause-btn { display: none !important; }
#app.vs-on #h-laser-wrap .sub,
#app.vs-on #h-fib,
#app.vs-on #h-cold-wrap .sub,
#app.vs-on #h-msig { display: none !important; }
.mp-modes { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 8px; }
.mp-mode {
  display: flex; align-items: center; gap: 6px; font-size: 11px; color: #c4c0b8;
  min-height: 26px; cursor: pointer;
}
.mp-mode.on { color: #ffe7a0; }
.mp-mode input { accent-color: #c8960a; }
.mp-rule select {
  min-height: 32px; background: #0a0a0c; color: #f3efe6; border: 1px solid #3a3a40;
  font: inherit; text-align: center; min-width: 56px;
}
.mp-rule select:disabled { opacity: 0.55; }
.overlay.dock.mp-spec {
  max-height: none; padding: 8px 8px 10px; gap: 6px;
}
.overlay.dock.mp-spec .overlay-actions {
  flex-direction: row; width: 100%; gap: 6px;
}
.overlay.dock.mp-spec .cta {
  min-width: 0 !important; width: auto; flex: 1; min-height: 40px; font-size: 11px; padding: 0 8px;
}
.overlay.dock.mp-spec p { max-width: none; margin: 0; font-size: 12px; }
