:root {
  --bg: #0b0c10;
  --panel: #17191f;
  --panel-2: #20232c;
  --line: #343845;
  --ink: #f5f7fb;
  --muted: #a7adbb;
  --soft: #737b8d;
  --gold: #f4b740;
  --cyan: #54c6d6;
  --green: #68d391;
  --red: #ff6374;
  --shadow: rgba(0, 0, 0, .35);
  --font: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  --pixel-font: 'Press Start 2P', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, .48), var(--bg) 620px),
    radial-gradient(circle at 20% 10%, rgba(244, 183, 64, .16), transparent 28%),
    linear-gradient(180deg, rgba(84, 198, 214, .08), transparent 260px),
    url("./art/w16-market-floor.webp") center top / min(1900px, 128vw) auto no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

a { color: inherit; }

.hidden { display: none !important; }

.pixel-heading {
  font-family: var(--pixel-font);
  letter-spacing: 0.5px;
}

.app {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-head,
.topbar,
.gallery-topbar,
.action-row,
.stats-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.site-head {
  margin-bottom: 18px;
  min-height: 168px;
  padding: 24px;
  border: 2px solid rgba(84, 198, 214, .35);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(244, 183, 64, .06) 0%, transparent 40%),
    linear-gradient(90deg, rgba(8, 10, 15, .88), rgba(8, 10, 15, .46));
  box-shadow: 0 0 24px rgba(84, 198, 214, .12), 0 0 60px rgba(244, 183, 64, .06), 4px 4px 0 rgba(0, 0, 0, .4);
  position: relative;
  overflow: hidden;
}

.site-head::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--cyan));
  background-size: 200% 100%;
  animation: head-shimmer 4s linear infinite;
}

@keyframes head-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.site-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(84, 198, 214, .02) 2px, rgba(84, 198, 214, .02) 4px),
    radial-gradient(ellipse at 80% 20%, rgba(244, 183, 64, .05), transparent 50%);
  pointer-events: none;
}

.site-head h1,
.section-head h2,
.project-title-row h2 {
  margin: 0;
  letter-spacing: 0;
}

.site-head h1 {
  font-family: var(--pixel-font);
  font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  line-height: 1.6;
  background: linear-gradient(135deg, #ffe6ae, var(--gold), #fff8e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 20px rgba(244, 183, 64, .3));
}

.head-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(244, 183, 64, .2);
}

.surface,
.admin-panel,
.invest-panel,
.project-nav,
.pdf-frame-wrap,
.stat-box,
.notice,
.status {
  border: 2px solid var(--line);
  background: rgba(23, 25, 31, .96);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
}

.surface {
  border-radius: 2px;
  padding: 22px;
  position: relative;
}

.surface::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 198, 214, .15), transparent);
  pointer-events: none;
}

.section-head {
  margin-bottom: 18px;
}

.section-head p,
.muted,
small {
  color: var(--muted);
}

.admin-link,
.open-link,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--panel-2);
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--pixel-font);
  font-size: .6rem;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: border-color .2s, box-shadow .2s;
}

.admin-link:hover,
.open-link:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(84, 198, 214, .2);
}

.form-grid,
.claim-layout,
.question-grid,
.admin-grid,
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.span-2 { grid-column: 1 / -1; }

label span,
.field-title {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.step-tag {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: .55rem;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold), #e09520);
  color: var(--bg);
  padding: 3px 8px 3px 7px;
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(244, 183, 64, .2), 2px 2px 0 rgba(0, 0, 0, .3);
  position: relative;
}

.step-tag::after {
  content: '';
  position: absolute;
  top: 1px; left: 2px;
  right: 2px; height: 1px;
  background: rgba(255, 255, 255, .3);
}

.step-hint {
  font-size: .78rem;
  color: var(--muted);
  margin: 4px 0 10px;
  line-height: 1.5;
  padding-left: 10px;
  border-left: 2px solid rgba(244, 183, 64, .3);
}

.invest-step {
  padding: 14px 0;
  border-top: 1px solid rgba(52, 56, 69, .6);
  position: relative;
}

.invest-step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.invest-step:first-child {
  border-top: none;
}

.invest-step:first-child::before {
  display: none;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: #0f1117;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

textarea { resize: vertical; }

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(84, 198, 214, .28);
  border-color: var(--cyan);
}

button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 2px;
  padding: 10px 14px;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

button:hover:not(:disabled) {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(84, 198, 214, .15);
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: none;
  transition-duration: .05s;
}

button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.primary,
.tier-btn.active,
.tag-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #121212;
  box-shadow: 0 0 14px rgba(244, 183, 64, .2), 4px 4px 0 rgba(0, 0, 0, .3);
}

.hub-btn.accent {
  border-color: rgba(244, 183, 64, .5);
  background:
    linear-gradient(160deg, rgba(244, 183, 64, .15), rgba(244, 183, 64, .06)),
    linear-gradient(160deg, rgba(32, 35, 44, .95), rgba(17, 19, 24, .98));
  box-shadow: 0 0 18px rgba(244, 183, 64, .1), 4px 4px 0 rgba(0, 0, 0, .3);
}

.hub-btn.accent::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hub-btn.accent strong {
  color: var(--gold);
}

.hub-btn.accent:hover:not(:disabled) {
  border-color: rgba(244, 183, 64, .7);
  box-shadow: 0 0 32px rgba(244, 183, 64, .2), 0 12px 24px rgba(0, 0, 0, .4);
}

.ghost {
  background: transparent;
  width: auto;
}

.danger {
  background: rgba(255, 99, 116, .12);
  border-color: rgba(255, 99, 116, .45);
  color: #ffd7dc;
}

.status,
.notice {
  border-radius: 2px;
  padding: 10px 12px;
  color: var(--muted);
}

.status:empty,
.notice:empty {
  display: none;
}

.phase-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(84, 198, 214, .06), transparent, rgba(244, 183, 64, .06)),
    var(--panel-2);
  border: 2px solid var(--line);
  position: relative;
}

.phase-strip::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 183, 64, .2), transparent);
}

.round-clock-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: center;
  border: 2px solid rgba(244, 183, 64, .42);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(244, 183, 64, .12), rgba(84, 198, 214, .08)), rgba(13, 17, 26, .88);
  box-shadow: 0 0 16px rgba(244, 183, 64, .08), 4px 4px 0 rgba(0, 0, 0, .35);
}

.round-clock-panel.compact {
  margin: 12px 0;
}

.clock-copy strong {
  display: block;
  color: var(--ink);
}

.clock-copy p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
}

.clock-meter {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.clock-meter span {
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 1.4rem;
  font-weight: 400;
  text-align: right;
  line-height: 1;
  text-shadow: 0 0 12px rgba(244, 183, 64, .35);
}

.clock-bar,
.show-pressure-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .08);
}

.clock-bar i,
.show-pressure-bar i {
  display: block;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--gold));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: width .35s ease;
  position: relative;
}

.clock-bar i::after,
.show-pressure-bar i::after {
  content: '';
  position: absolute;
  top: 1px; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .18);
}

.round-clock-panel[data-pressure="hot"],
.round-clock-panel[data-pressure="final"] {
  border-color: rgba(255, 99, 116, .42);
}

.round-clock-panel[data-pressure="final"] .clock-meter span {
  color: #ffd7dc;
}

.round-clock-panel[data-pressure="final"] .clock-bar i,
.show-pressure-bar[data-pressure="final"] i {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hub-btn {
  min-height: 150px;
  text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(160deg, rgba(32, 35, 44, .95), rgba(17, 19, 24, .98));
}

.hub-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}

.hub-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .4;
}

.hub-btn:hover::before { opacity: .15; }

.hub-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: rgba(84, 198, 214, .5);
  box-shadow: 0 0 28px rgba(84, 198, 214, .18), 0 12px 24px rgba(0, 0, 0, .4);
}

.hub-btn:hover::after { opacity: .8; }

.hub-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(84, 198, 214, .2), rgba(244, 183, 64, .15));
  border: 1px solid rgba(84, 198, 214, .3);
  color: var(--cyan);
  font-size: 1rem;
  font-family: var(--pixel-font);
  font-weight: 400;
  text-shadow: 0 0 12px rgba(84, 198, 214, .4);
  position: relative;
}

.hub-btn.accent span {
  background: linear-gradient(135deg, rgba(244, 183, 64, .25), rgba(84, 198, 214, .15));
  border-color: rgba(244, 183, 64, .4);
  color: var(--gold);
  text-shadow: 0 0 12px rgba(244, 183, 64, .4);
}

.hub-btn strong {
  display: block;
  font-family: var(--pixel-font);
  font-size: .7rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  position: relative;
}

.hub-btn small {
  position: relative;
  line-height: 1.6;
}

.tier-editor {
  display: grid;
  gap: 10px;
}

.tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.gallery-layout.no-project-nav {
  grid-template-columns: minmax(0, 1fr);
}

.host-stage {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(244, 183, 64, .42);
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(244, 183, 64, .16), rgba(84, 198, 214, .08)),
    rgba(10, 12, 18, .9);
  overflow: hidden;
}

.host-portrait {
  position: relative;
  min-height: 116px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: radial-gradient(circle, rgba(244, 183, 64, .22), rgba(0, 0, 0, .18) 62%);
}

.host-portrait.is-reacting {
  animation: host-pop .48s ease-out;
}

.host-avatar {
  width: 112px;
  height: 112px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .42));
}

.host-event-badge {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .36);
}

.host-copy h3,
.host-copy p {
  margin: 0;
}

.host-copy h3 {
  font-family: var(--pixel-font);
  font-size: .75rem;
  line-height: 1.6;
  color: #ffe6ae;
  text-shadow: 0 0 10px rgba(244, 183, 64, .2);
}

.host-copy p:not(.eyebrow) {
  color: var(--muted);
}

@keyframes host-pop {
  0% { transform: scale(.96) rotate(-1deg); }
  45% { transform: scale(1.08) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}

.portfolio-panel {
  border: 1px solid rgba(84, 198, 214, .35);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(84, 198, 214, .12), rgba(244, 183, 64, .08));
}

.stage-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(244, 183, 64, .36);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(244, 183, 64, .14), rgba(84, 198, 214, .08)), rgba(13, 17, 26, .9);
}

.stage-guide h3 {
  margin: 0;
  color: var(--ink);
}

.stage-guide p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
}

.unlock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 420px;
}

.unlock-list b {
  flex-basis: 100%;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: .52rem;
  font-weight: 400;
  letter-spacing: 0;
  text-align: right;
}

.unlock-list span {
  border: 1px solid rgba(104, 211, 145, .24);
  border-radius: 999px;
  padding: 4px 9px;
  color: #bff4d1;
  background: rgba(104, 211, 145, .055);
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}

.stage-unlock-track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.stage-unlock-track span {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 2px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, .035);
}

.stage-unlock-track span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(148, 163, 184, .45);
}

.stage-unlock-track span.done::before {
  background: var(--mint);
}

.stage-unlock-track span.current {
  border-color: rgba(244, 183, 64, .72);
  background: rgba(244, 183, 64, .12);
  box-shadow: 0 0 18px rgba(244, 183, 64, .08);
}

.stage-unlock-track span.current::before {
  background: var(--gold);
}

.stage-unlock-track b,
.stage-unlock-track small {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
}

.stage-unlock-track b {
  color: var(--ink);
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-unlock-track small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
}

.achievement-shelf,
.class-pulse-panel,
.lobby-scene,
.market-bounty-board {
  border: 2px solid rgba(84, 198, 214, .3);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(13, 17, 26, .88);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .3);
}

.lobby-scene {
  padding: 0;
  overflow: hidden;
  border-color: rgba(244, 183, 64, .34);
  background:
    linear-gradient(180deg, rgba(10, 13, 20, .92), rgba(11, 12, 16, .98)),
    radial-gradient(circle at 50% 30%, rgba(244, 183, 64, .12), transparent 46%);
}

.lobby-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(84, 198, 214, .2);
}

.lobby-head h3 {
  margin: 0;
  color: var(--ink);
}

.lobby-ticker {
  display: flex;
  flex: 1;
  max-width: 680px;
  gap: 8px;
  justify-content: flex-end;
  overflow: hidden;
}

.lobby-ticker span {
  flex: 0 0 auto;
  max-width: 260px;
  border: 1px solid rgba(244, 183, 64, .34);
  border-radius: 2px;
  padding: 5px 9px;
  color: #ffe6ae;
  background: rgba(244, 183, 64, .08);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-world-wrap {
  padding: 12px;
}

.lobby-world {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  max-height: 70vh;
  overflow: hidden;
  border: 1px solid rgba(84, 198, 214, .2);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(13, 16, 24, .25), rgba(13, 16, 24, .15)),
    url('./art/lobby/lobby_world_bg.jpg');
  background-size: cover;
  background-position: center;
}

.lobby-floor-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(84, 198, 214, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 198, 214, .08) 1px, transparent 1px);
  background-size: 8% 12%;
  transform: perspective(520px) rotateX(58deg) translateY(24%);
  transform-origin: 50% 100%;
  opacity: .18;
}

.lobby-stage-ring {
  position: absolute;
  left: 50%;
  top: 9%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18%;
  min-width: 150px;
  min-height: 58px;
  transform: translateX(-50%);
  border: 2px solid rgba(244, 183, 64, .56);
  border-radius: 2px;
  background: rgba(12, 15, 22, .86);
  box-shadow: 0 0 28px rgba(244, 183, 64, .14);
}

.lobby-stage-ring strong {
  color: #ffe6ae;
  font-family: var(--pixel-font);
  font-size: .55rem;
  line-height: 1.5;
}

.lobby-stage-ring span {
  color: var(--muted);
  font-size: .76rem;
}

.lobby-booth,
.lobby-avatar {
  position: absolute;
  left: clamp(96px, calc((var(--x) / 1920) * 100%), calc(100% - 132px));
  top: calc((var(--y) / 1080) * 100%);
}

.lobby-avatar {
  left: clamp(36px, calc((var(--x) / 1920) * 100%), calc(100% - 36px));
}

.lobby-booth {
  z-index: 4;
  display: grid;
  gap: 2px;
  width: clamp(116px, 12vw, 188px);
  min-height: 68px;
  opacity: 1;
  padding: 9px;
  transform: translate(-50%, -50%);
  text-align: left;
  border-color: rgba(84, 198, 214, .28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(8, 10, 15, .74)),
    rgba(18, 23, 31, .94);
}

.lobby-booth::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -14px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .26);
  filter: blur(4px);
  z-index: -1;
}

.booth-mascot {
  position: absolute;
  right: -18px;
  top: -34px;
  width: clamp(42px, 4.8vw, 70px);
  height: clamp(42px, 4.8vw, 70px);
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5));
  transform-origin: 50% 100%;
  animation: booth-mascot-idle 2.8s ease-in-out infinite;
  pointer-events: none;
}

.booth-sticker-stack {
  position: absolute;
  left: 8px;
  top: -38px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: min(176px, calc(100vw - 56px));
  pointer-events: none;
}

.booth-sticker-stack img {
  width: clamp(36px, 3.6vw, 54px);
  height: clamp(36px, 3.6vw, 54px);
  border: 2px solid rgba(244, 183, 64, .56);
  border-radius: 999px;
  background: rgba(245, 247, 251, .96);
  object-fit: contain;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .34);
}

.lobby-booth.tone-hot .booth-mascot,
.lobby-booth.is-live-target .booth-mascot {
  animation-name: booth-mascot-hype;
}

.lobby-booth.tone-risk .booth-mascot,
.lobby-booth.tone-out .booth-mascot {
  animation-name: booth-mascot-alert;
}

.booth-sign {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.booth-meta,
.booth-tier {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booth-tier {
  color: #bff4d1;
}

.booth-current-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(104, 211, 145, .55);
  border-radius: 2px;
  padding: 2px 5px;
  color: #c9f8d8;
  background: rgba(104, 211, 145, .12);
  font-size: .66rem;
  font-weight: 900;
}

.booth-heat {
  position: relative;
  display: block;
  width: 100%;
  height: 15px;
  margin-top: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2px;
  background: rgba(0, 0, 0, .28);
}

.booth-heat i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.booth-heat b {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 4px;
  color: var(--ink);
  font-size: .62rem;
  font-weight: 900;
  line-height: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}

.booth-heat.level-cold i {
  background: rgba(167, 173, 187, .42);
}

.booth-heat.level-spark i {
  background: linear-gradient(90deg, rgba(84, 198, 214, .72), rgba(84, 198, 214, .95));
}

.booth-heat.level-warm i {
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.booth-heat.level-hot i,
.booth-heat.level-viral i {
  background: linear-gradient(90deg, var(--gold), #ff6374);
}

.booth-heat.level-viral {
  box-shadow: 0 0 12px rgba(255, 99, 116, .32);
}

.booth-badges {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  border-radius: 2px;
  padding: 2px 5px;
  color: #ffe6ae;
  background: rgba(244, 183, 64, .1);
  font-size: .65rem;
  font-weight: 900;
}

.lobby-booth.tone-invested,
.lobby-booth.tone-current {
  border-color: rgba(104, 211, 145, .72);
  box-shadow: 0 0 16px rgba(104, 211, 145, .13);
}

.lobby-booth.tone-hot {
  border-color: rgba(244, 183, 64, .74);
  box-shadow: 0 0 18px rgba(244, 183, 64, .14);
}

.lobby-booth.tone-risk {
  border-color: rgba(255, 99, 116, .7);
  box-shadow: 0 0 18px rgba(255, 99, 116, .12);
}

.lobby-booth.tone-out {
  opacity: .7;
  border-color: rgba(167, 173, 187, .32);
}

.lobby-booth.tone-bot {
  border-color: rgba(84, 198, 214, .62);
}

.lobby-booth.is-current {
  animation: lobby-current 1.8s ease-in-out infinite;
}

.lobby-booth.is-live-target {
  z-index: 8;
  border-width: 2px;
  animation: lobby-current 1.15s ease-in-out infinite;
}

.lobby-booth.is-live-target::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(244, 183, 64, .36);
  border-radius: 4px;
  background: radial-gradient(circle at center, rgba(244, 183, 64, .18), transparent 62%);
  animation: live-target-ping 1.2s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

.lobby-booth.is-live-target.live-risk::before {
  border-color: rgba(255, 99, 116, .44);
  background: radial-gradient(circle at center, rgba(255, 99, 116, .18), transparent 62%);
}

.lobby-booth.is-live-target.live-bot::before {
  border-color: rgba(84, 198, 214, .44);
  background: radial-gradient(circle at center, rgba(84, 198, 214, .18), transparent 62%);
}

.booth-live-badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(244, 183, 64, .46);
  border-radius: 2px;
  padding: 2px 5px;
  color: var(--gold);
  background: rgba(244, 183, 64, .1);
  font-family: var(--pixel-font);
  font-size: .48rem;
  font-weight: 400;
}

@keyframes lobby-current {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24); }
}

@keyframes live-target-ping {
  0% { transform: scale(.92); opacity: .86; }
  100% { transform: scale(1.18); opacity: 0; }
}

.lobby-avatar {
  z-index: 6;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: lobby-idle 3.4s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes lobby-idle {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}

.lobby-avatar img {
  width: clamp(42px, 5.2vw, 72px);
  height: clamp(42px, 5.2vw, 72px);
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .42));
}

.lobby-avatar.is-hero img {
  width: clamp(52px, 6.4vw, 86px);
  height: clamp(52px, 6.4vw, 86px);
}

.lobby-avatar.is-self {
  z-index: 10;
  animation: lobby-self-hop 1.35s ease-in-out infinite;
}

.lobby-avatar.is-self img {
  filter: drop-shadow(0 0 14px rgba(104, 211, 145, .52)) drop-shadow(0 8px 12px rgba(0, 0, 0, .45));
}

.lobby-avatar.is-ghost {
  opacity: .58;
}

.lobby-avatar small {
  margin-top: -4px;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(5, 6, 8, .72);
  color: var(--ink);
  font-size: .68rem;
  white-space: nowrap;
}

.avatar-bubble {
  position: absolute;
  right: -10px;
  top: -8px;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 2px solid rgba(244, 183, 64, .42);
  border-radius: 999px;
  background: rgba(245, 247, 251, .94);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
  font-size: 1.45rem;
}

.lobby-you-badge {
  position: absolute;
  left: -9px;
  top: -8px;
  border: 2px solid rgba(104, 211, 145, .55);
  border-radius: 999px;
  padding: 2px 5px;
  color: #0b1116;
  background: #c9f8d8;
  font-family: var(--pixel-font);
  font-size: .46rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

.lobby-self-ping {
  position: absolute;
  left: calc((var(--x) / 1920) * 100%);
  top: calc((var(--y) / 1080) * 100%);
  z-index: 3;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lobby-self-ping::before,
.lobby-self-ping::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 28px;
  border: 2px solid rgba(104, 211, 145, .38);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: self-ping 1.45s ease-out infinite;
}

.lobby-self-ping::after {
  animation-delay: .42s;
}

.lobby-self-ping span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  transform: translateY(22px);
  border: 1px solid rgba(104, 211, 145, .48);
  border-radius: 2px;
  padding: 3px 6px;
  color: #c9f8d8;
  background: rgba(5, 8, 10, .76);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.lobby-avatar.is-live-crowd {
  z-index: 9;
  animation: lobby-live-hop 1.15s ease-in-out infinite;
}

.lobby-avatar.is-live-crowd img {
  filter: drop-shadow(0 10px 16px rgba(244, 183, 64, .32));
}

.lobby-live-burst {
  position: absolute;
  left: calc((var(--x) / 1920) * 100%);
  top: calc((var(--y) / 1080) * 100%);
  z-index: 10;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  max-width: 280px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(244, 183, 64, .52);
  border-radius: 2px;
  padding: 8px 10px;
  background:
    linear-gradient(100deg, rgba(244, 183, 64, .18), rgba(8, 10, 15, .82)),
    rgba(8, 10, 15, .9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
  animation: live-burst-pop .36s ease-out both;
  pointer-events: none;
}

.lobby-live-burst span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  font-size: 1.3rem;
}

.lobby-live-burst strong {
  min-width: 0;
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: .52rem;
  line-height: 1.55;
}

.lobby-reaction-speaker {
  position: absolute;
  left: calc((var(--x) / 1920) * 100%);
  top: calc((var(--y) / 1080) * 100%);
  z-index: var(--z, 40);
  width: 54px;
  height: 62px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: lobby-reaction-speaker-pop 2.7s ease-out var(--delay) both;
}

.lobby-reaction-speaker img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 52px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .42));
}

.lobby-reaction-burst {
  position: absolute;
  left: 50%;
  bottom: 44px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 46px;
  max-width: 190px;
  transform: translateX(-12%);
  border: 2px solid rgba(244, 183, 64, .58);
  border-radius: 999px 999px 999px 6px;
  padding: 5px 9px 5px 6px;
  background: rgba(245, 247, 251, .94);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .34), 0 0 18px rgba(244, 183, 64, .22);
  color: #10151c;
  white-space: nowrap;
}

.lobby-reaction-burst::after {
  content: '';
  position: absolute;
  left: 13px;
  bottom: -8px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(244, 183, 64, .58);
  border-bottom: 2px solid rgba(244, 183, 64, .58);
  background: rgba(245, 247, 251, .94);
  transform: rotate(45deg);
}

.lobby-reaction-speaker.side-left .lobby-reaction-burst {
  left: auto;
  right: 50%;
  transform: translateX(12%);
  border-radius: 999px 999px 6px 999px;
}

.lobby-reaction-speaker.side-left .lobby-reaction-burst::after {
  left: auto;
  right: 13px;
  border-right: 0;
  border-bottom: 0;
  border-left: 2px solid rgba(244, 183, 64, .58);
  border-top: 2px solid rgba(244, 183, 64, .58);
}

.lobby-reaction-burst b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.lobby-reaction-burst strong {
  min-width: 0;
  overflow: hidden;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-reaction-speaker.tone-risk .lobby-reaction-burst {
  border-color: rgba(255, 99, 116, .72);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .34), 0 0 20px rgba(255, 99, 116, .28);
}

.lobby-reaction-speaker.tone-risk .lobby-reaction-burst::after {
  border-color: rgba(255, 99, 116, .72);
}

.lobby-reaction-speaker.tone-bot .lobby-reaction-burst {
  border-color: rgba(84, 198, 214, .72);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .34), 0 0 20px rgba(84, 198, 214, .28);
}

.lobby-reaction-speaker.tone-bot .lobby-reaction-burst::after {
  border-color: rgba(84, 198, 214, .72);
}

.lobby-live-burst.tone-risk {
  border-color: rgba(255, 99, 116, .6);
  background:
    linear-gradient(100deg, rgba(255, 99, 116, .18), rgba(8, 10, 15, .82)),
    rgba(8, 10, 15, .9);
}

.lobby-live-burst.tone-bot {
  border-color: rgba(84, 198, 214, .6);
  background:
    linear-gradient(100deg, rgba(84, 198, 214, .2), rgba(8, 10, 15, .82)),
    rgba(8, 10, 15, .9);
}

@keyframes lobby-live-hop {
  0%, 100% { margin-top: 0; transform: translate(-50%, -50%) scale(1); }
  50% { margin-top: -10px; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes lobby-reaction-float {
  0% { opacity: 0; transform: translate(-50%, -36%) scale(.72); }
  14% { opacity: 1; transform: translate(-50%, -58%) scale(1.08); }
  68% { opacity: 1; transform: translate(-50%, -110%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(.92); }
}

@keyframes lobby-reaction-speaker-pop {
  0% { opacity: 0; transform: translate(-50%, -28%) scale(.72); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  72% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -82%) scale(.9); }
}

@keyframes lobby-self-hop {
  0%, 100% { margin-top: 0; transform: translate(-50%, -50%) scale(1); }
  50% { margin-top: -10px; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes self-ping {
  0% { opacity: .78; transform: translate(-50%, -50%) scale(.82); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

@keyframes live-burst-pop {
  0% { opacity: 0; transform: translate(-50%, -44%) scale(.88); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes booth-mascot-idle {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes booth-mascot-hype {
  0%, 100% { transform: translateY(0) scale(1) rotate(-4deg); }
  45% { transform: translateY(-8px) scale(1.06) rotate(5deg); }
  70% { transform: translateY(-3px) scale(1.02) rotate(-2deg); }
}

@keyframes booth-mascot-alert {
  0%, 100% { transform: translateX(0) rotate(0); }
  28% { transform: translateX(-3px) rotate(-5deg); }
  56% { transform: translateX(3px) rotate(5deg); }
}

.lobby-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: .8rem;
}

.lobby-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--soft);
}

.dot.invested { background: var(--green); }
.dot.hot { background: var(--gold); }
.dot.risk { background: var(--red); }
.dot.out { background: var(--muted); }

.lobby-event-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.lobby-event-card {
  min-height: 78px;
  border: 1px solid rgba(84, 198, 214, .24);
  border-radius: 2px;
  padding: 10px;
  background: rgba(8, 10, 15, .54);
}

.lobby-event-card strong {
  display: block;
  color: var(--ink);
  font-size: .9rem;
}

.lobby-event-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.lobby-event-card.tone-hot,
.lobby-event-card.tone-viral {
  border-color: rgba(244, 183, 64, .48);
  background: rgba(244, 183, 64, .08);
}

.lobby-event-card.tone-risk {
  border-color: rgba(255, 99, 116, .46);
  background: rgba(255, 99, 116, .08);
}

.lobby-event-card.tone-warm,
.lobby-event-card.tone-spark {
  border-color: rgba(104, 211, 145, .38);
  background: rgba(104, 211, 145, .07);
}

.show-lobby-scene .lobby-world {
  min-height: 430px;
  max-height: 58vh;
}

.achievement-head,
.pulse-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.achievement-head strong,
.pulse-head strong {
  display: block;
  color: var(--ink);
}

.achievement-head span,
.pulse-head span {
  border: 2px solid rgba(244, 183, 64, .34);
  border-radius: 2px;
  padding: 5px 9px;
  color: #ffe6ae;
  background: rgba(244, 183, 64, .08);
  font-family: var(--pixel-font);
  font-size: .55rem;
  font-weight: 400;
  white-space: nowrap;
}

.achievement-list,
.pulse-grid {
  display: grid;
  gap: 8px;
}

.achievement-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.achievement-badge {
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 2px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  padding: 8px;
  color: var(--soft);
  background: rgba(8, 10, 15, .54);
  text-align: center;
  transition: border-color .3s, box-shadow .3s;
}

.achievement-badge span {
  filter: grayscale(1);
  opacity: .54;
  font-size: 1.45rem;
}

.achievement-badge strong {
  font-size: .8rem;
}

.achievement-badge.unlocked {
  border-color: rgba(244, 183, 64, .65);
  color: #ffe6ae;
  background: linear-gradient(180deg, rgba(244, 183, 64, .16), rgba(84, 198, 214, .08));
  box-shadow: 0 0 12px rgba(244, 183, 64, .15);
  position: relative;
  overflow: hidden;
}

.achievement-badge.unlocked::after {
  content: '';
  position: absolute;
  inset: -50% -25%;
  width: 40%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .18) 45%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .18) 55%, transparent 60%);
  animation: badge-shine 4s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(250%); }
}

.achievement-badge.unlocked span {
  filter: none;
  opacity: 1;
}

.investor-style {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(244, 183, 64, .28);
  border-radius: 2px;
  padding: 10px;
  margin-bottom: 12px;
  background: rgba(244, 183, 64, .08);
}

.investor-style > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: rgba(0, 0, 0, .28);
  font-size: 1.55rem;
}

.investor-style p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.personal-quest-board {
  border: 1px solid rgba(84, 198, 214, .28);
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(84, 198, 214, .06);
}

.quest-role {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.quest-role > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: rgba(0, 0, 0, .28);
  font-size: 1.55rem;
}

.quest-role strong {
  color: var(--ink);
}

.quest-role p:not(.eyebrow),
.quest-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quest-card {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  padding: 10px;
  background: rgba(8, 10, 15, .46);
}

.quest-card.done {
  border-color: rgba(104, 211, 145, .62);
  background: linear-gradient(180deg, rgba(104, 211, 145, .12), rgba(8, 10, 15, .56));
}

.quest-card strong {
  color: var(--ink);
}

.quest-card span {
  color: #ffe6ae;
  font-size: .84rem;
  font-weight: 900;
}

.quest-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .06);
}

.quest-bar i {
  display: block;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.pulse-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bounty-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bounty-head strong {
  display: block;
  color: var(--ink);
}

.bounty-head span {
  border: 1px solid rgba(244, 183, 64, .34);
  border-radius: 2px;
  padding: 5px 9px;
  color: #ffe6ae;
  background: rgba(244, 183, 64, .08);
  font-weight: 800;
  white-space: nowrap;
}

.bounty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bounty-card {
  min-height: 122px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  padding: 10px;
  background: rgba(8, 10, 15, .5);
}

.bounty-card.done {
  border-color: rgba(104, 211, 145, .62);
  background: linear-gradient(180deg, rgba(104, 211, 145, .12), rgba(8, 10, 15, .56));
}

.bounty-card strong {
  color: var(--ink);
}

.bounty-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.bounty-card span {
  justify-self: start;
  color: #ffe6ae;
  font-size: .86rem;
  font-weight: 900;
}

.bounty-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .06);
}

.bounty-bar i {
  display: block;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.pulse-grid > div {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  padding: 10px;
  background: rgba(8, 10, 15, .5);
}

.pulse-grid span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.pulse-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.market-event-panel {
  border: 1px solid rgba(244, 183, 64, .38);
  border-radius: 2px;
  padding: 14px;
  margin-bottom: 14px;
  background: #11151d;
}

.market-event-panel.event-active {
  border-color: rgba(244, 183, 64, .75);
  box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .16), 0 14px 34px rgba(0, 0, 0, .28);
}

.market-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 128px;
  gap: 12px;
  align-items: center;
}

.market-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .32);
}

.market-head h3,
.market-head p {
  margin: 0;
}

.market-head p:not(.eyebrow) {
  color: var(--muted);
}

.combo-meter {
  border: 1px solid rgba(84, 198, 214, .28);
  border-radius: 2px;
  padding: 10px;
  background: rgba(84, 198, 214, .08);
  text-align: center;
}

.combo-meter span,
.combo-meter strong {
  display: block;
}

.combo-meter span {
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 10px rgba(244, 183, 64, .3);
}

.combo-meter strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: .88rem;
}

.market-prompt {
  margin-top: 12px;
  border-left: 4px solid var(--gold);
  padding: 8px 10px;
  background: rgba(244, 183, 64, .08);
  color: #ffe6ae;
  font-weight: 800;
}

.event-score-hint {
  margin-top: 8px;
  border: 1px solid rgba(84, 198, 214, .22);
  border-radius: 2px;
  padding: 8px 10px;
  color: #bcecf4;
  background: rgba(84, 198, 214, .07);
  font-size: .86rem;
  font-weight: 800;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mission-card {
  min-height: 106px;
  display: grid;
  gap: 8px;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  padding: 10px;
  background: rgba(8, 10, 15, .5);
}

.mission-card.done {
  border-color: rgba(104, 211, 145, .65);
  background: rgba(104, 211, 145, .1);
}

.mission-card.event-mission {
  border-color: rgba(244, 183, 64, .72);
  background: linear-gradient(180deg, rgba(244, 183, 64, .16), rgba(8, 10, 15, .62));
}

.mission-card.event-mission span {
  border-color: rgba(244, 183, 64, .46);
  background: rgba(244, 183, 64, .08);
}

.mission-card strong,
.mission-card span {
  font-weight: 900;
}

.mission-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.mission-card span {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 8px;
  color: var(--gold);
  font-size: .82rem;
}

.mission-card.done span {
  border-color: rgba(104, 211, 145, .45);
  color: var(--green);
}

.portfolio-head,
.portfolio-grid {
  display: grid;
  gap: 10px;
}

.portfolio-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 12px;
}

.portfolio-head span,
.mini-label,
.portfolio-empty {
  color: var(--muted);
  font-size: .9rem;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-grid > div {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  padding: 10px;
  background: rgba(8, 10, 15, .45);
}

.mini-label {
  margin: 0 0 4px;
}

.portfolio-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.portfolio-bets span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(244, 183, 64, .35);
  border-radius: 2px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, .25);
  font-weight: 700;
}

.portfolio-bets img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.project-nav {
  border-radius: 2px;
  padding: 10px;
  max-height: 78vh;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(23, 25, 31, .96), rgba(15, 17, 23, .98));
}

.project-nav button {
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
  background: #10131a;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}

.project-nav button:hover:not(:disabled) {
  transform: translateX(3px);
}

.project-nav button.done {
  border-color: rgba(104, 211, 145, .5);
}

.project-nav button.current {
  border-color: var(--gold);
}

.project-nav button.mark-hot {
  border-color: rgba(244, 183, 64, .8);
  box-shadow: inset 3px 0 0 var(--gold);
}

.project-nav button.mark-out {
  opacity: .72;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.pdf-frame-wrap {
  border-radius: 2px;
  overflow: hidden;
  min-height: 70vh;
  background: #050608;
}

.pdf-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 70vh;
  border: 0;
}

.image-page-stack {
  position: relative;
  padding: 12px;
  background: #111318;
}

.image-page-stack img {
  display: none;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 2px;
  background: #fff;
}

.image-page-stack img.active-page {
  display: block;
}

.slide-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #111318;
}

.slide-pager button {
  min-width: 72px;
  padding: 6px 14px;
  font-size: .85rem;
}

.slide-pager .page-indicator {
  font-size: .85rem;
  color: var(--muted);
  min-width: 60px;
  text-align: center;
}

.pdf-fallback {
  padding: 24px;
  color: var(--muted);
}

/* ── Maneki Helper ── */
.maneki-helper {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.maneki-helper img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: transform .15s;
}
.maneki-helper:hover img { transform: scale(1.12) rotate(-4deg); }
.maneki-helper:active img { transform: scale(.95); }
.maneki-bubble {
  max-width: 210px;
  padding: 8px 12px;
  border-radius: 8px 8px 2px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.maneki-bubble.show {
  opacity: 1;
  transform: translateY(0);
}
@keyframes maneki-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.maneki-helper.bounce img {
  animation: maneki-bounce .4s ease;
}

.invest-panel {
  border-radius: 2px;
  padding: 18px;
  margin-top: 14px;
  background:
    linear-gradient(180deg, rgba(23, 25, 31, .98), rgba(17, 19, 24, .99));
  border-color: rgba(84, 198, 214, .2);
}

.reaction-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.reaction-tools button.active {
  border-color: var(--gold);
  color: var(--gold);
}

.quick-reaction-section {
  display: grid;
  grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(104, 211, 145, .26);
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, rgba(104, 211, 145, .08), rgba(84, 198, 214, .05)),
    rgba(8, 10, 15, .42);
}

.quick-reaction-section .field-title,
.quick-reaction-section .step-hint {
  margin-bottom: 4px;
}

.quick-reaction-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.quick-reaction-btn {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px 6px;
  text-align: center;
  background: rgba(255, 255, 255, .035);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-reaction-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.quick-reaction-btn span {
  font-size: 1.28rem;
  line-height: 1;
}

.quick-reaction-btn strong {
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.25;
}

.quick-reaction-btn.tone-positive {
  border-color: rgba(244, 183, 64, .34);
}

.quick-reaction-btn.tone-critical {
  border-color: rgba(255, 99, 116, .32);
}

.invest-flow-nav {
  display: grid;
  grid-template-columns: minmax(180px, .36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(244, 183, 64, .26);
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(244, 183, 64, .08), rgba(84, 198, 214, .05)),
    rgba(8, 10, 15, .48);
}

.invest-flow-nav .field-title,
.invest-flow-nav .step-hint {
  margin-bottom: 4px;
}

.invest-flow-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
}

.invest-flow-tabs button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.invest-flow-tabs button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #10151c;
  background: rgba(245, 247, 251, .82);
  font-weight: 900;
}

.invest-flow-tabs button.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(244, 183, 64, .12);
  box-shadow: 0 0 18px rgba(244, 183, 64, .12);
}

.invest-flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
}

.invest-flow-actions button {
  width: auto;
  min-width: 120px;
}

.invest-flow-actions span {
  color: var(--muted);
  font-weight: 900;
}

.investment-state {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left-width: 5px;
  border-radius: 2px;
  padding: 10px 12px;
  margin: 12px 0 10px;
  background: rgba(8, 10, 15, .62);
}

.investment-state strong {
  color: var(--ink);
  font-size: .98rem;
}

.investment-state span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.investment-state.is-open {
  border-left-color: var(--cyan);
}

.investment-state.is-ready {
  border-color: rgba(244, 183, 64, .42);
  border-left-color: var(--gold);
  background: rgba(244, 183, 64, .08);
}

.investment-state.is-ready span,
.investment-state.is-invested span {
  color: #ffe6ae;
}

.investment-state.is-invested {
  border-color: rgba(104, 211, 145, .58);
  border-left-color: var(--green);
  background: rgba(104, 211, 145, .1);
}

.decision-card-section {
  border: 1px solid rgba(84, 198, 214, .24);
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(84, 198, 214, .06);
}

.decision-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.decision-card {
  min-height: 94px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 10px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(8, 10, 15, .7));
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.decision-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(84, 198, 214, .08), transparent 60%);
  opacity: 0;
  transition: opacity .2s;
}

.decision-card:hover::after { opacity: 1; }

.decision-card:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

.decision-card span {
  font-size: 1.45rem;
}

.decision-card strong {
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: .5rem;
  line-height: 1.5;
}

.decision-card small {
  color: var(--muted);
  font-size: .76rem;
}

.decision-card em {
  border: 1px solid rgba(244, 183, 64, .5);
  border-radius: 2px;
  padding: 2px 7px;
  color: #ffe6ae;
  background: rgba(244, 183, 64, .12);
  font-family: var(--pixel-font);
  font-size: .5rem;
  font-style: normal;
  font-weight: 400;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(244, 183, 64, .1); }
  50% { box-shadow: 0 0 14px rgba(244, 183, 64, .3); }
}

.decision-card.active {
  border-color: rgba(244, 183, 64, .72);
  background: linear-gradient(180deg, rgba(244, 183, 64, .18), rgba(84, 198, 214, .08));
  box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .14);
}

.decision-card.boosted {
  border-color: rgba(244, 183, 64, .78);
  box-shadow: inset 0 0 0 1px rgba(244, 183, 64, .18), 0 10px 24px rgba(244, 183, 64, .1);
}

.tier-buttons,
.phase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.stance-section {
  border: 1px solid rgba(244, 183, 64, .28);
  border-radius: 2px;
  padding: 12px;
  background: rgba(244, 183, 64, .06);
}

.stance-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stance-btn {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.stance-btn span {
  font-size: 1.35rem;
}

.stance-btn strong {
  color: var(--ink);
}

.stance-btn small {
  color: var(--muted);
  font-size: .78rem;
}

.stance-btn.active {
  border-color: var(--gold);
  background: rgba(244, 183, 64, .14);
}

.event-actions button {
  width: auto;
}

.tier-btn {
  width: auto;
  min-width: 160px;
  text-align: left;
}

.tier-btn strong,
.tier-btn span {
  display: block;
}

.tag-btn {
  width: 100%;
}

.reaction-btn {
  display: grid;
  grid-template-columns: 66px auto minmax(0, 1fr);
  gap: 4px 10px;
  min-width: 0;
  min-height: 104px;
  text-align: left;
  align-items: center;
}

.reaction-btn .reaction-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.reaction-sticker {
  grid-row: span 2;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}

.reaction-btn strong,
.reaction-btn small {
  min-width: 0;
  color: var(--ink);
}

.reaction-btn small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: .78rem;
}

.reaction-btn:hover:not(:disabled) {
  border-color: rgba(84, 198, 214, .35);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(8, 10, 15, .5));
}

.reaction-btn.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(244, 183, 64, .12), rgba(8, 10, 15, .5));
  box-shadow: 0 0 12px rgba(244, 183, 64, .12);
}

.reaction-btn.active .reaction-sticker {
  filter: drop-shadow(0 4px 12px rgba(244, 183, 64, .3));
  transform: scale(1.1);
  transition: transform .2s;
}

.reaction-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 80;
  pointer-events: none;
  display: grid;
  gap: 2px;
  width: min(320px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(244, 183, 64, .6);
  border-radius: 2px;
  padding: 10px 14px;
  background: rgba(245, 247, 251, .96);
  color: #111318;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
  transition: opacity .35s ease, transform .35s ease;
}

.reaction-toast.achievement-toast {
  border-color: rgba(104, 211, 145, .82);
  background: linear-gradient(135deg, rgba(245, 247, 251, .98), rgba(230, 255, 241, .98));
}

.reaction-toast span {
  color: #4b5563;
  font-size: .86rem;
}

.reaction-toast.fade {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px);
}

.question-grid {
  margin-top: 14px;
}

.action-row {
  justify-content: flex-end;
  margin-top: 14px;
}

.action-row button {
  width: auto;
}

.progress-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.progress-cluster span {
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--panel-2);
  color: var(--muted);
}

.admin-grid {
  margin-bottom: 14px;
}

.admin-panel {
  border-radius: 2px;
  padding: 16px;
}

.stage-admin-panel {
  border-color: rgba(244, 183, 64, .42);
  background: linear-gradient(135deg, rgba(244, 183, 64, .1), rgba(84, 198, 214, .07)), rgba(23, 25, 31, .96);
}

.stage-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.stage-step {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px;
  text-align: left;
}

.stage-step span {
  color: var(--muted);
  font-size: .75rem;
}

.stage-step strong {
  color: var(--ink);
  font-family: var(--pixel-font);
  font-size: .5rem;
}

.stage-step small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
}

.stage-step.done {
  border-color: rgba(104, 211, 145, .34);
  background: rgba(104, 211, 145, .08);
}

.stage-step.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(244, 183, 64, .12);
  box-shadow: 0 0 10px rgba(244, 183, 64, .15);
  animation: pulse-glow 2s ease-in-out infinite;
}

.stage-director {
  margin-top: 12px;
  border: 1px solid rgba(84, 198, 214, .24);
  border-radius: 2px;
  padding: 12px;
  background: rgba(10, 13, 20, .42);
}

.director-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.director-head h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1rem;
}

.director-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(244, 183, 64, .35);
  border-radius: 2px;
  padding: 5px 9px;
  color: var(--gold);
  background: rgba(244, 183, 64, .1);
  font-size: .78rem;
}

.director-script {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 2px;
  background: rgba(244, 183, 64, .09);
}

.director-script span,
.director-note span {
  color: var(--muted);
  font-size: .78rem;
}

.director-script strong,
.director-note strong {
  color: var(--ink);
  line-height: 1.55;
}

.director-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.director-note {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  background: rgba(255, 255, 255, .035);
}

.feature-toggle-panel {
  border-color: rgba(104, 211, 145, .36);
  background: linear-gradient(135deg, rgba(104, 211, 145, .1), rgba(84, 198, 214, .06)), rgba(23, 25, 31, .96);
}

.feature-toggle-panel p {
  margin: 0 0 12px;
  color: var(--muted);
}

.feature-toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.feature-toggle {
  min-height: 92px;
  display: grid;
  gap: 5px;
  justify-items: start;
  align-content: start;
  text-align: left;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
}

.feature-toggle span {
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: .48rem;
}

.feature-toggle strong {
  color: var(--ink);
}

.feature-toggle small {
  color: var(--muted);
  line-height: 1.35;
}

.feature-toggle.on {
  border-color: rgba(104, 211, 145, .58);
  background: rgba(104, 211, 145, .09);
}

.feature-toggle.on span {
  border-color: rgba(104, 211, 145, .55);
  color: #c8f8d8;
}

.feature-toggle.off {
  border-color: rgba(255, 99, 116, .45);
  background: rgba(255, 99, 116, .08);
}

.feature-toggle.off span {
  border-color: rgba(255, 99, 116, .55);
  color: #ffd7dc;
}

.bot-panel {
  border-color: rgba(84, 198, 214, .38);
  background: linear-gradient(135deg, rgba(84, 198, 214, .1), rgba(244, 183, 64, .06)), rgba(23, 25, 31, .96);
}

.bot-control-grid {
  display: grid;
  grid-template-columns: 150px 150px minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.bot-actions {
  margin-bottom: 10px;
}

.live-demo-panel {
  border-color: rgba(244, 183, 64, .42);
  background: linear-gradient(135deg, rgba(244, 183, 64, .12), rgba(84, 198, 214, .06)), rgba(23, 25, 31, .96);
}

.live-demo-panel p {
  margin: 0 0 12px;
  color: var(--muted);
}

.live-demo-target {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.live-demo-actions {
  margin-bottom: 10px;
}

.live-demo-actions button {
  min-width: 132px;
}

.market-signal-board {
  border: 1px solid rgba(244, 183, 64, .36);
  border-radius: 2px;
  padding: 16px;
  margin: 14px 0;
  background: linear-gradient(135deg, rgba(244, 183, 64, .12), rgba(84, 198, 214, .08)), rgba(18, 20, 27, .95);
}

.signal-head,
.leaderboard-title {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.signal-head h3,
.leaderboard-title h3 {
  margin: 0;
  color: var(--ink);
}

.signal-head p,
.leaderboard-title span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.signal-head button {
  width: auto;
  white-space: nowrap;
}

.signal-grid,
.recap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.signal-card,
.recap-grid > div {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  padding: 12px;
  background: rgba(8, 10, 15, .5);
}

.signal-card.primary {
  border-color: rgba(104, 211, 145, .42);
  background: rgba(104, 211, 145, .08);
}

.signal-card span,
.recap-grid span {
  display: block;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: .5rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.signal-card strong,
.recap-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.signal-card p,
.recap-card p {
  color: var(--muted);
}

.signal-rank-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.signal-rank-preview span {
  border: 1px solid rgba(244, 183, 64, .3);
  border-radius: 2px;
  padding: 6px 10px;
  color: #ffe6ae;
  background: rgba(244, 183, 64, .08);
  font-size: .86rem;
  font-weight: 800;
}

.stats-row {
  margin: 14px 0;
}

.stat-box {
  flex: 1;
  border-radius: 2px;
  padding: 16px;
  color: var(--muted);
}

.stat-box strong {
  display: block;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 1.2rem;
  animation: neon-breathe 2.4s ease-in-out infinite;
}

@keyframes neon-breathe {
  0%, 100% { text-shadow: 0 0 6px rgba(244, 183, 64, .2), 0 0 12px rgba(244, 183, 64, .08); }
  50% { text-shadow: 0 0 10px rgba(244, 183, 64, .45), 0 0 24px rgba(244, 183, 64, .15); }
}

.leaderboard,
.question-board {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.lb-item,
.question-item,
.feedback-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 2px;
  padding: 14px;
}

.lb-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.leaderboard-title {
  border: 1px solid rgba(84, 198, 214, .25);
  border-radius: 2px;
  padding: 12px 14px;
  background: rgba(84, 198, 214, .07);
}

.lb-rank {
  font-family: var(--pixel-font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gold);
  animation: neon-breathe 2.4s ease-in-out infinite;
}

.lb-amount {
  color: var(--green);
  font-family: var(--pixel-font);
  font-size: .65rem;
  font-weight: 400;
  white-space: nowrap;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: #10131a;
  border-radius: 2px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: .84rem;
}

.feedback-card h3 {
  margin-top: 0;
}

.verdict-card {
  border-color: rgba(244, 183, 64, .38);
}

.verdict-card strong {
  display: block;
  color: #ffe6ae;
  font-size: 1.12rem;
}

.lb-verdict {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.show-surface {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(244, 183, 64, .12), rgba(84, 198, 214, .08)),
    rgba(12, 14, 20, .96);
  position: relative;
}

body.show-mode .app {
  width: min(1260px, calc(100% - 20px));
  padding: 12px 0 24px;
}

body.show-mode .site-head {
  display: none;
}

body.show-mode .show-surface {
  gap: 10px;
  padding: 12px;
}

body.show-mode .show-hero {
  grid-template-columns: minmax(0, 1fr) 168px;
  padding: 12px 14px;
}

body.show-mode .show-hero h2 {
  font-size: clamp(.95rem, 2.1vw, 1.45rem);
  line-height: 1.55;
}

body.show-mode .show-hero p:not(.eyebrow) {
  margin-top: 4px;
  font-size: .96rem;
}

body.show-mode .show-clock strong {
  font-size: 1.35rem;
}

body.show-mode .show-director,
body.show-mode .show-event,
body.show-mode .show-live-feed {
  padding: 12px;
}

.show-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(84, 198, 214, .015) 2px, rgba(84, 198, 214, .015) 4px);
  pointer-events: none;
}

.show-hero,
.show-event,
.show-live-feed,
.student-live-feed,
.show-metrics,
.show-bounties,
.show-board {
  display: grid;
  gap: 14px;
}

.show-hero {
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: stretch;
  border: 1px solid rgba(244, 183, 64, .42);
  border-radius: 2px;
  padding: 18px;
  background:
    linear-gradient(100deg, rgba(244, 183, 64, .18), rgba(84, 198, 214, .08)),
    rgba(7, 9, 13, .78);
}

.show-director {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(84, 198, 214, .3);
  border-radius: 2px;
  padding: 16px;
  background: rgba(10, 13, 20, .5);
}

.show-director h3 {
  margin: 3px 0 5px;
  color: var(--ink);
}

.show-director p {
  margin: 0;
  color: var(--muted);
}

.show-director strong {
  color: var(--gold);
  line-height: 1.55;
}

.show-unlock-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.show-unlock-strip span {
  border: 1px solid rgba(104, 211, 145, .34);
  border-radius: 2px;
  padding: 5px 8px;
  color: #c9f8d8;
  background: rgba(104, 211, 145, .08);
  font-size: .78rem;
  font-weight: 900;
}

.show-rundown-call {
  justify-self: end;
  display: grid;
  gap: 5px;
  max-width: 560px;
  text-align: right;
}

.show-rundown-call span {
  justify-self: end;
  border: 1px solid rgba(244, 183, 64, .42);
  border-radius: 2px;
  padding: 4px 8px;
  color: var(--gold);
  background: rgba(244, 183, 64, .1);
  font-family: var(--pixel-font);
  font-size: .58rem;
}

.show-rundown-call small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.show-hero h2 {
  margin: 0;
  font-family: var(--pixel-font);
  font-size: clamp(1rem, 2.6vw, 1.8rem);
  line-height: 1.8;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .5), 0 0 20px rgba(244, 183, 64, .2);
}

.show-hero p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.show-clock {
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(84, 198, 214, .34);
  border-radius: 2px;
  background: rgba(8, 10, 15, .62);
  text-align: center;
}

.show-clock span {
  color: var(--cyan);
  font-family: var(--pixel-font);
  font-size: .55rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.show-clock strong {
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 1.6rem;
  text-shadow: 0 0 14px rgba(244, 183, 64, .4);
}

.show-clock small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.show-pressure-bar {
  width: calc(100% - 28px);
}

.show-event {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 2px;
  padding: 14px;
  background: rgba(8, 10, 15, .6);
}

.show-event.event-active {
  border-color: rgba(244, 183, 64, .68);
  background: linear-gradient(135deg, rgba(244, 183, 64, .14), rgba(8, 10, 15, .64));
}

.show-event img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 2px;
}

.show-event h3,
.show-card h3 {
  margin: 0;
  color: var(--ink);
}

.show-event p:not(.eyebrow),
.show-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.show-event strong {
  display: block;
  margin-top: 8px;
  color: #ffe6ae;
}

.show-live-feed,
.student-live-feed {
  border: 1px solid rgba(84, 198, 214, .3);
  border-radius: 2px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(84, 198, 214, .1), rgba(244, 183, 64, .06)),
    rgba(8, 10, 15, .58);
}

.student-live-feed {
  margin-bottom: 14px;
  border-color: rgba(104, 211, 145, .26);
  background:
    linear-gradient(135deg, rgba(104, 211, 145, .08), rgba(84, 198, 214, .06)),
    rgba(8, 10, 15, .54);
}

.student-live-feed .live-feed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-live-feed .live-combo-stage {
  grid-template-columns: 1fr;
}

.student-live-feed .live-combo-stage p {
  justify-self: start;
  text-align: left;
}

.student-live-feed .live-feed-card {
  min-height: 76px;
}

.live-feed-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.live-feed-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
}

.live-feed-head strong {
  border: 1px solid rgba(244, 183, 64, .42);
  border-radius: 2px;
  padding: 6px 9px;
  color: var(--gold);
  background: rgba(244, 183, 64, .08);
  font-family: var(--pixel-font);
  font-size: .5rem;
  font-weight: 400;
}

.live-combo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(244, 183, 64, .34);
  border-radius: 2px;
  padding: 12px 14px;
  background:
    linear-gradient(100deg, rgba(244, 183, 64, .14), rgba(84, 198, 214, .07)),
    rgba(8, 10, 15, .68);
}

.live-combo-stage div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.live-combo-stage span {
  display: inline-grid;
  min-width: 70px;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
  color: var(--gold);
  background: rgba(244, 183, 64, .1);
  font-family: var(--pixel-font);
  font-size: .72rem;
  font-weight: 400;
}

.live-combo-stage strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}

.live-combo-stage p {
  justify-self: end;
  margin: 0;
  color: #ffe6ae;
  font-weight: 900;
  line-height: 1.5;
  text-align: right;
}

.live-combo-stage.tone-risk {
  border-color: rgba(255, 99, 116, .48);
  background: linear-gradient(100deg, rgba(255, 99, 116, .14), rgba(8, 10, 15, .68));
}

.live-combo-stage.tone-risk span {
  color: var(--red);
  background: rgba(255, 99, 116, .1);
}

.live-combo-stage.tone-bot {
  border-color: rgba(84, 198, 214, .48);
  background: linear-gradient(100deg, rgba(84, 198, 214, .15), rgba(8, 10, 15, .68));
}

.live-combo-stage.tone-bot span {
  color: var(--cyan);
  background: rgba(84, 198, 214, .1);
}

.live-combo-stage.tone-waiting {
  border-color: rgba(255, 255, 255, .14);
}

.live-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.live-feed-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 2px;
  padding: 10px;
  background: rgba(8, 10, 15, .62);
}

.live-feed-card.is-latest {
  border-color: rgba(244, 183, 64, .58);
  box-shadow: 0 0 22px rgba(244, 183, 64, .12);
}

.live-feed-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  font-size: 1.45rem;
}

.live-feed-card strong {
  color: var(--ink);
}

.live-feed-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.live-feed-card small {
  color: var(--soft);
  font-weight: 800;
}

.live-feed-card.tone-hot {
  border-color: rgba(244, 183, 64, .42);
  background: rgba(244, 183, 64, .08);
}

.live-feed-card.tone-risk {
  border-color: rgba(255, 99, 116, .42);
  background: rgba(255, 99, 116, .08);
}

.live-feed-card.tone-bot {
  border-color: rgba(84, 198, 214, .48);
  background: rgba(84, 198, 214, .08);
}

.show-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.show-bounties {
  display: block;
  border: 1px solid rgba(244, 183, 64, .34);
  border-radius: 2px;
  padding: 14px;
  background: rgba(8, 10, 15, .58);
}

.show-metric,
.show-card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 2px;
  padding: 14px;
  background: rgba(8, 10, 15, .62);
}

.show-metric span,
.show-card > span {
  display: block;
  color: var(--muted);
  font-family: var(--pixel-font);
  font-size: .5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.show-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--pixel-font);
  font-size: 1.2rem;
  animation: neon-breathe 2.4s ease-in-out infinite;
}

.show-metric small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
}

.show-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.show-board.is-reveal-award {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.show-board.is-reveal-award .show-card {
  min-height: 168px;
}

.show-board.is-reveal-award .show-card.primary {
  grid-column: 1 / -1;
  min-height: 190px;
  display: grid;
  align-content: center;
  border-color: rgba(244, 183, 64, .72);
  background:
    linear-gradient(135deg, rgba(244, 183, 64, .22), rgba(104, 211, 145, .12)),
    rgba(8, 10, 15, .78);
}

.show-board.is-reveal-award .show-card.primary h3 {
  font-size: clamp(1.35rem, 3vw, 2.45rem);
  line-height: 1.35;
}

.show-board.is-reveal-award .show-card.primary p {
  color: #ffe6ae;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.show-card.primary {
  border-color: rgba(104, 211, 145, .46);
  background: linear-gradient(135deg, rgba(104, 211, 145, .14), rgba(84, 198, 214, .08));
}

.show-card.span-2 {
  grid-column: span 2;
}

.show-chip-row,
.show-rank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 10px;
}

.show-chip-row b,
.show-rank b {
  color: var(--gold);
}

.show-rank {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.show-rank em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.show-rank small {
  grid-column: 2 / -1;
  color: var(--muted);
}

.show-question {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 10px;
}

.show-question strong {
  display: block;
  color: var(--gold);
}

.show-question p {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.55;
}

.show-question.is-starred {
  border-color: rgba(244, 183, 64, .32);
  background: rgba(244, 183, 64, .06);
  margin-inline: -6px;
  padding: 10px 6px 0;
}

.show-footer {
  margin-top: 14px;
  border: 1px solid rgba(244, 183, 64, .28);
  border-radius: 2px;
  padding: 10px 12px;
  color: #ffe6ae;
  background: rgba(244, 183, 64, .08);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 860px) {
  .site-head,
  .topbar,
  .gallery-topbar,
  .action-row,
  .stats-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .claim-layout,
  .question-grid,
  .round-clock-panel,
  .admin-grid,
  .bot-control-grid,
  .feature-toggle-grid,
  .live-demo-target,
  .feedback-grid,
  .hub-grid,
  .quick-reaction-section,
  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .tier-row {
    grid-template-columns: 1fr;
  }

  .surface {
    padding: 16px;
  }

  .project-nav {
    max-height: none;
  }

  .portfolio-head,
  .portfolio-grid,
  .lobby-head,
  .stage-guide,
  .stage-unlock-track,
  .director-grid,
  .show-director,
  .show-hero,
  .show-event,
  .signal-head,
  .leaderboard-title,
  .host-stage,
  .market-head,
  .mission-grid,
  .pulse-grid,
  .bounty-grid,
  .quest-grid,
  .signal-grid,
  .recap-grid {
    grid-template-columns: 1fr;
  }

  .signal-head,
  .leaderboard-title {
    align-items: stretch;
    flex-direction: column;
  }

  .signal-head button {
    width: 100%;
  }

  .achievement-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .show-metrics,
  .live-feed-grid,
  .show-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-combo-stage {
    grid-template-columns: 1fr;
  }

  .live-combo-stage p {
    justify-self: start;
    text-align: left;
  }

  .show-director strong {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .show-rundown-call {
    justify-self: stretch;
    max-width: none;
    text-align: left;
  }

  .show-rundown-call span {
    justify-self: start;
  }

  .clock-meter span {
    text-align: left;
  }

  .achievement-head,
  .pulse-head,
  .bounty-head,
  .stage-guide,
  .project-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unlock-list {
    justify-content: flex-start;
    max-width: none;
  }

  .unlock-list b {
    text-align: left;
  }

  .host-portrait {
    min-height: 104px;
  }

  .market-icon {
    width: 72px;
    height: 72px;
  }

  .pdf-frame-wrap,
  .pdf-frame-wrap iframe {
    min-height: 64vh;
    height: 64vh;
  }

  .action-row button,
  .ghost {
    width: 100%;
  }

  .tag-selector {
    grid-template-columns: 1fr;
  }

  .reaction-btn {
    grid-template-columns: 64px auto minmax(0, 1fr);
    min-height: 102px;
  }

  .stance-selector {
    grid-template-columns: 1fr;
  }

  .decision-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-reaction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .invest-flow-nav {
    grid-template-columns: 1fr;
  }

  .invest-flow-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lb-item {
    grid-template-columns: 1fr;
  }

  .show-card.span-2 {
    grid-column: 1 / -1;
  }

  .lobby-ticker {
    justify-content: flex-start;
    max-width: none;
    overflow-x: auto;
  }

  .lobby-world-wrap {
    padding: 8px;
  }

  .lobby-world,
  .show-lobby-scene .lobby-world {
    min-height: 420px;
    aspect-ratio: 4 / 5;
  }

  .lobby-booth {
    width: clamp(104px, 34vw, 152px);
    left: clamp(78px, calc((var(--x) / 1920) * 100%), calc(100% - 96px));
  }

  .booth-mascot {
    right: -12px;
    top: -28px;
    width: clamp(38px, 10vw, 54px);
    height: clamp(38px, 10vw, 54px);
  }

  .lobby-event-wall {
    grid-template-columns: 1fr;
    padding: 0 8px 10px;
  }
}

@media (max-width: 520px) {
  .app {
    width: min(100% - 16px, 1180px);
    padding-top: 12px;
  }

  .site-head {
    min-height: 132px;
    padding: 18px;
  }

  .surface {
    padding: 12px;
  }

  .achievement-list {
    grid-template-columns: 1fr;
  }

  .live-feed-head {
    align-items: stretch;
    flex-direction: column;
  }

  .live-feed-grid {
    grid-template-columns: 1fr;
  }

  .quick-reaction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-combo-stage div {
    grid-template-columns: 1fr;
  }

  .live-combo-stage span {
    width: max-content;
  }

  .stage-flow {
    grid-template-columns: 1fr;
  }

  .achievement-badge {
    min-height: 58px;
    grid-template-columns: 36px minmax(0, 1fr);
    place-items: center start;
    text-align: left;
  }

  .portfolio-head span,
  .achievement-head span,
  .bounty-head span,
  .pulse-head span {
    white-space: normal;
  }

  .reaction-sticker {
    width: 44px;
    height: 44px;
  }

  .booth-mascot {
    right: -8px;
    top: -24px;
    width: 40px;
    height: 40px;
  }

  .head-links,
  .show-metrics,
  .show-board,
  .show-rank {
    grid-template-columns: 1fr;
  }

  .head-links {
    justify-content: flex-start;
  }

  .head-links .admin-link {
    min-height: 44px;
    padding: 9px 14px;
  }

  .show-clock {
    min-height: 112px;
  }

  .show-rank small {
    grid-column: auto;
  }

  .lobby-world,
  .show-lobby-scene .lobby-world {
    min-height: 380px;
  }

  .lobby-ticker span {
    max-width: 220px;
  }

  .lobby-avatar small {
    display: none;
  }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 2px solid var(--bg);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Particle FX: Screen Shake ── */
@keyframes screen-shake {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-4px, 2px); }
  20% { transform: translate(3px, -3px); }
  30% { transform: translate(-3px, 1px); }
  40% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 3px); }
  60% { transform: translate(3px, -1px); }
  70% { transform: translate(-1px, 2px); }
  80% { transform: translate(2px, -2px); }
  90% { transform: translate(-3px, 1px); }
}
.screen-shake { animation: screen-shake 0.4s ease-out; }

/* ── Golden Mode (Konami Egg) ── */
body.golden-mode .surface {
  border-color: rgba(244, 183, 64, .38);
  box-shadow: 0 0 18px rgba(244, 183, 64, .08), 4px 4px 0 var(--shadow);
}
body.golden-mode::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 183, 64, .04), transparent 60%);
  pointer-events: none;
  z-index: 9999;
}

/* ── Combo Overlay ── */
.combo-overlay {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 90;
  font-family: var(--pixel-font);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 2px;
  border: 2px solid var(--line);
  background: rgba(23,25,31,.92);
  color: var(--ink);
  pointer-events: none;
  transition: opacity .25s;
}
.combo-overlay.hidden { display: none; }
.combo-white { color: var(--ink); border-color: var(--line); }
.combo-gold  { color: var(--gold); border-color: var(--gold); text-shadow: 0 0 8px rgba(244,183,64,.4); }
.combo-cyan  { color: var(--cyan); border-color: var(--cyan); text-shadow: 0 0 10px rgba(84,198,214,.5); }
.combo-red   { color: var(--red); border-color: var(--red); text-shadow: 0 0 12px rgba(255,99,116,.6); box-shadow: 0 0 18px rgba(255,99,116,.25); }
.combo-num { display: inline-block; font-size: 1.4rem; margin-right: 4px; }
.combo-pop { animation: combo-scale .28s ease-out; }
@keyframes combo-scale {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ── Hidden Achievement Badges ── */
.hidden-badge {
  border: 2px dashed var(--line);
  border-radius: 2px;
  padding: 8px;
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--soft);
  background: rgba(8,10,15,.54);
  text-align: center;
  transition: border-color .3s, box-shadow .3s;
}
.hidden-badge span { filter: grayscale(1); opacity: .4; font-size: 1.45rem; }
.hidden-badge strong { font-size: .8rem; }
.hidden-badge.unlocked {
  border-style: solid;
  border-color: rgba(244,183,64,.65);
  color: #ffe6ae;
  background: linear-gradient(180deg,rgba(244,183,64,.16),rgba(84,198,214,.08));
  box-shadow: 0 0 12px rgba(244,183,64,.15);
}
.hidden-badge.unlocked span { filter: none; opacity: 1; }

/* ── Maneki Spin ── */
@keyframes maneki-spin-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(720deg); }
}
.maneki-spin img { animation: maneki-spin-rotate 1s ease-in-out !important; }
