[hidden] {
  display: none !important;
}

:root {
  --bg: #131120;
  --panel: #1d192c;
  --line: #ffffff12;
  --muted: #ada4bf;
  --lime: #bcf36a;
  --peach: #ff9973;
  --purple: #b394ff;
  --ink: #161021;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f4efff;
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 0%, #4b2d5225, transparent 55%), var(--bg);
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  color: inherit;
  background: transparent;
  border-radius: 12px;
  padding: 12px 18px;
  transition:
    transform 0.16s,
    background 0.16s,
    border 0.16s;
}
button:hover {
  background: #ffffff08;
  border-color: #ffffff35;
  transform: translateY(-2px);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
a {
  color: inherit;
}
p {
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(52px, 6.2vw, 100px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  font-weight: 850;
  margin-bottom: 28px;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1.13;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
}
em {
  font-style: normal;
  color: var(--peach);
}
small {
  font-size: 11px;
}
b,
strong {
  font-weight: 750;
}
.primary {
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  padding: 18px 24px;
  border: 0;
  box-shadow: 0 4px 0 #7aa447;
}
.primary:hover {
  background: #cdf894;
}
.secondary {
  background: #ffffff06;
  color: #eee7ff;
}
.wide {
  width: 100%;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.subtle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.topbar {
  height: 88px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.wordmark {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-decoration: none;
}
.wordmark span {
  font-size: 10px;
  vertical-align: top;
  position: relative;
  top: 4px;
  margin-left: 3px;
}
.session {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.session strong {
  font-size: 27px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.live {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 7px;
}
.live:before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.live.offline {
  color: var(--peach);
}
.header-actions {
  display: flex;
  gap: 8px;
}
.icon-button {
  font-size: 12px;
  padding: 10px;
}
.landing {
  padding: 72px 6%;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 88px);
}
.landing > h1,
.landing > .intro,
.landing > .home-actions,
.landing > .home-note {
  position: relative;
  z-index: 1;
}
.home-actions {
  display: flex;
  gap: 12px;
  margin: 34px 0 25px;
}
.home-note {
  color: var(--muted);
  font-size: 12px;
}
.floating-city {
  position: absolute;
  right: 5%;
  top: 110px;
  width: 46%;
  height: 450px;
  perspective: 900px;
  pointer-events: none;
}
.skyline {
  height: 350px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  transform: rotateX(15deg) rotateY(-28deg) rotateZ(4deg);
  border-bottom: 2px solid var(--purple);
  padding: 0 35px 10px;
  background: linear-gradient(0deg, #b394ff0b, transparent);
}
.skyline i {
  display: block;
  position: relative;
  width: 52px;
  height: calc(var(--height) * 30px);
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, #eee3 17px 20px),
    linear-gradient(90deg, #b394ff, #59437c);
  box-shadow: 18px -9px 0 #39294e;
  border: 1px solid #d9c6ff4f;
  border-radius: 3px 3px 0 0;
  animation: city-rise 0.9s both;
  animation-delay: calc(var(--i) * 0.1s);
}
.skyline i:nth-child(3n) {
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, #eee3 17px 20px),
    linear-gradient(90deg, #bcf36a, #3c653d);
  box-shadow: 18px -9px 0 #203a2a;
}
.skyline i:nth-child(4n) {
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, #eee3 17px 20px),
    linear-gradient(90deg, #ff9973, #8a4e46);
  box-shadow: 18px -9px 0 #523331;
}
.skyline i span {
  position: absolute;
  top: -30px;
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
}
.orbit {
  position: absolute;
  bottom: 0;
  display: flex;
  gap: 25px;
  font-size: 10px;
  color: var(--muted);
}
@keyframes city-rise {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.lobby-tv {
  padding: 65px 6%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8vw;
}
.lobby-tv h1 {
  font-size: clamp(55px, 5.4vw, 85px);
}
.lobby-roster {
  padding-top: 8px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-title h2,
.panel-title h3 {
  margin: 0;
}
.panel-title > span {
  font-size: 12px;
  color: var(--muted);
}
.join-block {
  display: flex;
  gap: 26px;
  margin: 35px 0;
  align-items: center;
}
.join-block img {
  width: 146px;
  height: 146px;
  border-radius: 12px;
  background: white;
}
.join-block small {
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.join-block a {
  display: block;
  font-weight: 750;
  text-decoration: none;
}
.room-code {
  display: block;
  font-size: 35px;
  letter-spacing: 0.16em;
  color: var(--lime);
  font-weight: 800;
  margin-top: 5px;
}
.join-block p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.rules-triplet {
  display: flex;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.rules-triplet span {
  font-size: 11px;
  color: var(--muted);
}
.rules-triplet b {
  display: block;
  font-size: 23px;
  color: #f3effa;
  margin-bottom: 5px;
}
.player-card {
  display: flex;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--owner);
  border-radius: 14px;
  gap: 15px;
  margin-bottom: 12px;
  position: relative;
  animation: arrive 0.35s both;
}
.portrait {
  display: inline-block;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background-image: url("/characters.jpg");
  background-size: 300% 200%;
  background-position: 0 0;
  border: 1px solid #ffffff25;
}
.portrait.bree {
  background-position: 50% 0;
}
.portrait.melenchon {
  background-position: 100% 0;
}
.portrait.delphine {
  background-position: 0 100%;
}
.portrait.rupaul {
  background-position: 50% 100%;
}
.player-card small,
.player-card b {
  display: block;
}
.player-card b {
  font-size: 17px;
}
.player-card small {
  color: var(--muted);
  margin-top: 6px;
}
.badge {
  color: var(--owner);
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-left: auto;
  border: 1px solid currentColor;
  padding: 5px 8px;
  border-radius: 20px;
}
.remove-player {
  position: absolute;
  right: -10px;
  top: -8px;
  border-radius: 50%;
  background: var(--bg);
  padding: 2px 7px;
  font-size: 18px;
}
.empty-player {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
  border: 1px dashed #ffffff18;
  border-radius: 14px;
  margin-bottom: 12px;
  color: #82788f;
  font-size: 12px;
}
.empty-player span {
  font-size: 24px;
}
.lobby-roster > .primary {
  margin-top: 20px;
}
.lobby-roster > .subtle {
  margin-top: 20px;
}
.ticker {
  overflow: hidden;
  height: 43px;
  border-bottom: 1px solid var(--line);
  background: #100e19;
}
.ticker > div {
  display: flex;
  gap: 34px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 95s linear infinite;
  align-items: center;
  height: 100%;
  font-size: 10px;
}
.ticker span {
  color: var(--muted);
  display: flex;
  gap: 10px;
}
.ticker b {
  color: #f4efff;
}
.ticker em {
  color: var(--lime);
  font-size: 10px;
}
.ticker em.down {
  color: var(--peach);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
.phase-bar {
  padding: 13px 42px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
}
.phase-bar > div {
  height: 3px;
  width: 160px;
  background: #ffffff10;
  border-radius: 5px;
  overflow: hidden;
  margin-right: auto;
}
.phase-bar i,
.phone-phase i {
  height: 100%;
  display: block;
  background: var(--lime);
  transition: width 0.3s;
}
.small-button {
  font-size: 11px;
  padding: 8px 12px;
}
.tv-main {
  padding: 0 42px 20px;
}
.tv-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 20px;
}
.tv-nav button {
  padding: 10px 17px;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  border-radius: 8px;
}
.tv-nav button.active {
  color: var(--lime);
  background: #bcf36a0e;
}
.room-chip {
  margin-left: auto;
  color: #7c728d;
  letter-spacing: 0.13em;
  font-size: 10px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.empire-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.empire-summary {
  padding: 15px;
  background: var(--panel);
  border-radius: 14px;
  border-top: 2px solid var(--owner);
  min-width: 0;
}
.empire-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.empire-person .portrait {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.empire-person b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empire-person small {
  font-size: 9px;
  color: var(--muted);
}
.empire-person > strong {
  font-size: 24px;
  color: var(--owner);
  margin-left: auto;
  text-align: right;
}
.empire-person > strong small {
  display: block;
  font-size: 8px;
}
.empire-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.empire-tags button {
  padding: 5px 7px;
  font-size: 9px;
  border-color: #ffffff10;
  border-radius: 5px;
}
.threat {
  margin-top: 12px;
  color: var(--peach);
  font-size: 10px;
  line-height: 1.5;
}
.threat .capbar {
  margin-top: 6px;
  height: 4px;
}
.combo {
  font-size: 9px;
  color: var(--lime);
  margin-top: 10px;
}
.board-wrap {
  position: relative;
  background:
    radial-gradient(ellipse at center, #34274b44, transparent 70%), #181524;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.board-label {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.board-label small {
  letter-spacing: 0;
  font-size: 10px;
}
.board {
  display: block;
  width: 100%;
  padding: 8px;
  min-height: 290px;
}
.plot {
  cursor: pointer;
  outline: none;
}
.plot > polygon:first-child {
  transition:
    fill 0.25s,
    stroke 0.25s;
}
.plot:hover > polygon:first-child,
.plot:focus-visible > polygon:first-child,
.plot.selected > polygon:first-child {
  fill: #ffffff12;
  stroke: #eee;
  stroke-width: 2;
}
.tower {
  animation: arrive 0.55s both;
  animation-delay: var(--delay);
  transform-box: fill-box;
  transform-origin: bottom center;
}
.plot:hover .tower {
  transform: translateY(-6px);
  transition: transform 0.2s;
}
.board-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 20px 20px;
  font-size: 10px;
  color: var(--muted);
}
.board-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.board-legend i,
.owner-list i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.board-legend i.neutral {
  background: #aba4b4;
}
.company-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 18px;
  align-self: start;
}
.company-detail .eyebrow {
  font-size: 9px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.company-detail .eyebrow span {
  background: none;
  width: auto;
  height: auto;
  font-size: 20px;
  color: var(--peach);
}
.company-detail h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.big-price {
  font-size: 35px;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 24px 0 20px;
}
.big-price small {
  display: block;
  letter-spacing: 0.12em;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.capbar {
  display: flex;
  height: 7px;
  border-radius: 5px;
  overflow: hidden;
  background: #5a536b;
  margin: 12px 0;
}
.capbar span {
  display: block;
  transition: width 0.6s;
}
.owner-list > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0;
}
.owner-list i {
  margin-right: 8px;
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}
.mini-stats small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.mini-stats b {
  font-size: 12px;
}
.npc-personality {
  background: #b394ff0a;
  border-left: 2px solid var(--purple);
  padding: 14px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
}
.npc-personality b {
  color: var(--purple);
}
.npc-personality p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.chart {
  width: 100%;
  display: block;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 11px;
}
.chart-head span {
  color: var(--muted);
}
.tv-footer {
  display: flex;
  gap: 25px;
  justify-content: center;
  padding: 28px 0 10px;
  color: #80758f;
  font-size: 9px;
  letter-spacing: 0.06em;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.market-card {
  padding: 20px;
  background: var(--panel);
  text-align: left;
  border-top: 2px solid var(--sector);
  min-height: 160px;
}
.market-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--sector);
  font-size: 10px;
}
.market-card > div:first-child b {
  font-size: 23px;
}
.market-card h3 {
  margin: 12px 0;
  font-size: 16px;
}
.market-card > strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.market-card > small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 8px;
}
.market-card .capbar {
  height: 4px;
  margin-bottom: 0;
}
.market-card.active {
  border-color: var(--sector);
  background: #ffffff07;
}
.bilan-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding: 34px 5%;
}
.bilan-lead > small {
  letter-spacing: 0.14em;
  color: var(--lime);
}
.bilan-lead h2 {
  font-size: 50px;
  margin: 20px 0;
}
.bilan-lead p {
  color: var(--muted);
  font-size: 14px;
}
.moment {
  padding: 16px;
  background: #bcf36a08;
  border: 1px solid #bcf36a22;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #d4eaba;
  animation: arrive 0.45s both;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
  margin: 14px 0;
  border-radius: 12px;
  border-left: 2px solid var(--owner);
}
.result-row > div b {
  display: block;
  font-size: 16px;
}
.result-row > div small {
  display: block;
  color: var(--lime);
  margin-top: 7px;
}
.result-row > strong {
  margin-left: auto;
  font-size: 30px;
  color: var(--owner);
  text-align: right;
}
.result-row > strong small {
  display: block;
  font-size: 8px;
  color: var(--muted);
}
.ledger {
  margin: 25px 5%;
  padding: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.ledger summary {
  cursor: pointer;
}
.ledger p {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ledger p:first-of-type {
  margin-top: 20px;
}
.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 20px 0;
}
.comparison-card {
  background: var(--panel);
  padding: 25px;
  border-radius: 16px;
  border-top: 2px solid var(--owner);
}
.comparison-card > .portrait {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}
.comparison-card h2 {
  margin-bottom: 8px;
}
.comparison-card > small,
.comparison-card > p {
  color: var(--muted);
  font-size: 12px;
}
.comparison-card .big-price {
  color: var(--owner);
  font-size: 55px;
}
.compare-holding {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.compare-holding b {
  color: var(--owner);
}
.notice {
  padding: 16px;
  margin: 18px 0;
  border: 1px solid #b394ff44;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  background: #b394ff09;
}
.boot {
  height: 100vh;
  display: grid;
  align-content: center;
  justify-content: center;
  text-align: center;
}
.boot p {
  color: var(--muted);
  font-size: 13px;
}
.boot > .wordmark {
  margin-bottom: 25px;
  font-size: 60px;
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #eee7f9;
  color: #161021;
  border-radius: 12px;
  padding: 16px 22px;
  max-width: 90vw;
  width: max-content;
  box-shadow: 0 10px 50px #0008;
  font-size: 13px;
  font-weight: 650;
  transition: 0.25s;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.reveal-back {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #0d0a18db;
  backdrop-filter: blur(14px);
  padding: 24px;
  overflow: auto;
}
.event-reveal {
  max-width: 600px;
  width: 100%;
  padding: 40px;
  background:
    radial-gradient(ellipse at top, #4f365155, transparent), var(--panel);
  border: 1px solid #ffffff20;
  border-radius: 24px;
  box-shadow: 0 30px 140px #0008;
  animation: reveal 0.4s both;
}
.event-reveal > small {
  letter-spacing: 0.13em;
  color: var(--lime);
}
.event-reveal h2 {
  font-size: 48px;
  margin: 15px 0;
  letter-spacing: -0.06em;
}
.event-symbol {
  font-size: 80px;
  color: var(--peach);
  line-height: 1;
  margin-top: 25px;
}
.event-reveal > p {
  color: var(--muted);
  font-size: 14px;
}
.event-reveal > .primary {
  margin-top: 28px;
}
.event-reveal > .secondary {
  margin-left: 10px;
}
.help h2 {
  font-size: 44px;
}
.help p {
  font-size: 13px;
}
.phone-join {
  max-width: 530px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.phone-join h1 {
  font-size: 56px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}
input,
select {
  display: block;
  width: 100%;
  background: #211c31;
  color: #f4efff;
  border: 1px solid #ffffff20;
  border-radius: 11px;
  padding: 15px 14px;
  margin-top: 9px;
  min-height: 50px;
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #b394ff18;
}
select {
  appearance: auto;
}
.phone-join h3 {
  margin: 26px 0 14px;
}
.character-list {
  display: grid;
  gap: 8px;
}
.character {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  text-align: left;
  background: var(--panel);
}
.character .portrait {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.character div {
  flex: 1;
}
.character b {
  font-size: 14px;
  display: block;
}
.character small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.character > span:last-child {
  color: var(--muted);
}
.character.chosen {
  border-color: var(--lime);
  background: #bcf36a08;
}
.character.chosen > span:last-child {
  color: var(--lime);
}
.character-powers {
  padding: 18px 0;
}
.character-powers p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.character-powers p span {
  color: var(--lime);
  margin-right: 7px;
}
.character-powers .malus,
.character-powers .malus span {
  color: var(--peach);
}
.joined-character > .portrait {
  width: 130px;
  height: 130px;
  border-radius: 25px;
  margin: 20px 0 35px;
  box-shadow: 0 0 60px #b394ff25;
}
.joined-character > p {
  color: var(--muted);
  font-size: 14px;
}
.lobby-mini {
  margin-top: 30px;
}
.lobby-mini .player-card .portrait {
  width: 36px;
  height: 36px;
}
.lobby-mini .player-card b {
  font-size: 13px;
}
.phone-phase {
  padding: 14px 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.09em;
}
.phone-phase b {
  color: var(--lime);
}
.phone-phase > div {
  height: 3px;
  width: 100%;
  background: #ffffff12;
}
.controller {
  max-width: 530px;
  margin: 0 auto;
  padding: 27px 24px 115px;
  min-height: 80vh;
}
.controller > h2 {
  font-size: 35px;
  letter-spacing: -0.05em;
}
.controller > .eyebrow {
  font-size: 9px;
}
.phone-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phone-identity .portrait {
  width: 68px;
  height: 68px;
  border: 2px solid var(--owner);
}
.phone-identity small {
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 9px;
}
.phone-identity h2 {
  font-size: 27px;
  margin: 6px 0 5px;
}
.phone-identity span {
  font-size: 11px;
  color: var(--muted);
}
.wallet-cash {
  padding: 28px 0 25px;
  border-bottom: 1px solid var(--line);
}
.wallet-cash > small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.wallet-cash strong {
  display: block;
  font-size: 48px;
  letter-spacing: -0.06em;
  margin: 7px 0;
}
.wallet-cash > span {
  font-size: 11px;
  color: var(--muted);
}
.dossiers {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.dossiers .panel-title h3 {
  font-size: 15px;
}
.dossiers .panel-title > span {
  color: var(--lime);
  font-size: 10px;
}
.dossier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 8px;
}
.dossier button {
  padding: 5px 10px;
  font-size: 17px;
}
.dossier small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 10px;
}
.council-draft {
  border-color: #b394ff40;
}
.council-draft > span:last-child {
  color: var(--purple);
}
.phone-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 18px;
}
.phone-section-title h3 {
  margin: 0;
}
.phone-section-title > span {
  font-size: 9px;
  color: var(--muted);
}
.holding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  flex-wrap: wrap;
  background: var(--panel);
  padding: 17px 16px;
  margin-bottom: 9px;
}
.holding > div:first-child {
  flex: 1;
}
.holding b {
  display: block;
  font-size: 13px;
}
.holding small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
  line-height: 1.4;
}
.holding > strong {
  font-size: 21px;
  color: var(--lime);
}
.holding .capbar {
  width: 100%;
  margin: 0;
  height: 4px;
}
.defense-actions {
  margin-top: 24px;
}
.defense-actions button {
  margin-bottom: 10px;
  font-size: 12px;
}
.phone-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #171321f5;
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: 10px 7px calc(9px + env(safe-area-inset-bottom));
  gap: 3px;
}
.phone-nav button {
  border: 0;
  border-radius: 10px;
  flex: 1;
  max-width: 100px;
  padding: 8px 3px;
  font-size: 9px;
  color: var(--muted);
}
.phone-nav button > span {
  display: block;
  font-size: 23px;
  margin-bottom: 4px;
}
.phone-nav button.active {
  color: var(--lime);
  background: #bcf36a0a;
}
.segmented {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin: 22px 0;
}
.segmented button {
  flex: 1;
  border: 0;
  font-size: 12px;
}
.segmented button.active {
  background: #b394ff25;
  color: #d8c5ff;
}
.quote-card {
  background: var(--panel);
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 20px 0;
}
.quote-card > span {
  color: var(--muted);
  font-size: 11px;
  display: block;
}
.quote-card > strong {
  font-size: 32px;
  display: block;
  letter-spacing: -0.05em;
  margin: 10px 0;
}
.quote-card > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.quote-card > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.controller form > .primary {
  font-size: 14px;
}
.controller form + .subtle {
  margin-top: 18px;
}
.milestone-steps {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  background: #b394ff0a;
  border-radius: 12px;
  border: 1px solid #b394ff18;
  margin: 24px 0;
}
.milestone-steps span {
  font-size: 10px;
  color: var(--muted);
}
.milestone-steps b {
  font-size: 22px;
  display: block;
  color: var(--purple);
  margin-bottom: 5px;
}
.policy-explainer {
  font-size: 12px;
  color: var(--muted);
  padding: 0 2px;
  margin: 10px 0 22px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}
.checkbox input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--lime);
}
.travel-visual {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse, #b394ff15, transparent);
}
.travel-visual > span {
  font-size: 44px;
  color: var(--peach);
  animation: float 4s ease-in-out infinite;
}
.travel-visual > b {
  color: var(--purple);
  letter-spacing: 0.15em;
  font-size: 18px;
}
.travel-orbit {
  position: absolute;
  width: 250px;
  height: 90px;
  border: 1px dashed #b394ff40;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.phone-result h1 {
  font-size: 44px;
  color: var(--lime);
  margin: 15px 0;
}
.phone-result > p {
  color: var(--muted);
  font-size: 13px;
}
.phone-result {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.mobile-controller .topbar {
  height: 68px;
  padding: 0 22px;
  gap: 12px;
}
.mobile-controller .wordmark {
  font-size: 22px;
}
.mobile-controller .session {
  gap: 10px;
  font-size: 9px;
}
.mobile-controller .session strong {
  font-size: 23px;
}
.mobile-controller .header-actions .icon-button:first-child {
  display: none;
}
.mobile-controller .icon-button {
  padding: 7px 10px;
}
.mobile-controller .live {
  font-size: 0;
  gap: 0;
}
.mobile-controller .live:before {
  width: 6px;
  height: 6px;
}
.mobile-controller .remove-player {
  display: none;
}
.mobile-controller .event-reveal {
  padding: 26px;
}
.mobile-controller .event-reveal h2 {
  font-size: 34px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@media (min-width: 1700px) {
  .tv-main {
    max-width: 1800px;
    margin: auto;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .board {
    max-height: 680px;
  }
  .company-detail h2 {
    font-size: 32px;
  }
}
@media (max-width: 1100px) {
  .lobby-tv {
    gap: 5vw;
    padding: 45px 4%;
  }
  .join-block {
    gap: 18px;
  }
  .join-block img {
    width: 120px;
    height: 120px;
  }
  .rules-triplet {
    gap: 18px;
  }
  .tv-main {
    padding: 0 22px 20px;
  }
  .topbar {
    padding: 0 25px;
  }
  .phase-bar {
    padding: 13px 25px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .company-detail {
    padding: 19px;
  }
  .empire-scores {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
  .empire-person {
    gap: 7px;
  }
  .empire-person .portrait {
    width: 29px;
    height: 29px;
  }
  .empire-person b {
    font-size: 11px;
  }
  .board-label {
    font-size: 8px;
  }
  .tv-footer {
    gap: 15px;
    font-size: 8px;
  }
  .floating-city {
    right: 0;
    opacity: 0.8;
  }
}
@media (max-width: 760px) {
  .landing {
    padding: 45px 24px 350px;
  }
  .landing h1 {
    font-size: 67px;
  }
  .landing .intro {
    font-size: 15px;
  }
  .home-actions {
    flex-direction: column;
    max-width: 400px;
  }
  .floating-city {
    width: 90%;
    top: auto;
    bottom: 15px;
    height: 290px;
    right: -10%;
    opacity: 0.65;
  }
  .skyline {
    height: 220px;
  }
  .skyline i {
    height: calc(var(--height) * 19px);
    width: 32px;
  }
  .orbit {
    display: none;
  }
  .topbar {
    padding: 0 20px;
    height: 72px;
  }
  .wordmark {
    font-size: 24px;
  }
  .session {
    gap: 10px;
    font-size: 9px;
  }
  .session strong {
    font-size: 23px;
  }
  .header-actions .icon-button:first-child {
    display: none;
  }
  .lobby-tv {
    display: block;
    padding: 35px 24px;
  }
  .lobby-tv h1 {
    font-size: 55px;
  }
  .lobby-tv .intro {
    font-size: 15px;
  }
  .lobby-roster {
    margin-top: 38px;
  }
  .join-block {
    gap: 16px;
  }
  .join-block img {
    width: 115px;
    height: 115px;
  }
  .join-block small {
    font-size: 8px;
  }
  .join-block a {
    font-size: 13px;
  }
  .join-block p {
    font-size: 10px;
  }
  .room-code {
    font-size: 28px;
  }
  .rules-triplet {
    justify-content: space-between;
    gap: 10px;
  }
  .rules-triplet span {
    font-size: 9px;
  }
  .game-layout {
    display: block;
  }
  .company-detail {
    margin-top: 18px;
  }
  .tv-main {
    padding: 0 14px 20px;
  }
  .tv-nav {
    gap: 3px;
    flex-wrap: wrap;
  }
  .tv-nav button {
    padding: 10px;
    font-size: 11px;
  }
  .room-chip {
    display: none;
  }
  .phase-bar {
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .phase-bar > span {
    font-size: 8px;
    width: 100%;
  }
  .phase-bar > div {
    width: 100px;
  }
  .board-label {
    padding: 16px;
    letter-spacing: 0.06em;
  }
  .board-label small {
    display: none;
  }
  .board {
    min-height: 0;
    padding: 4px;
  }
  .empire-scores {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 7px;
  }
  .empire-summary {
    padding: 12px;
  }
  .board-legend {
    gap: 12px;
    font-size: 9px;
  }
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .market-card {
    padding: 14px;
  }
  .market-card h3 {
    font-size: 13px;
  }
  .market-card > strong {
    font-size: 20px;
  }
  .bilan-grid {
    display: block;
    padding: 25px 10px;
  }
  .bilan-lead h2 {
    font-size: 37px;
  }
  .bilan-grid > section + section {
    margin-top: 32px;
  }
  .tv-footer {
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
  }
  .comparison {
    grid-template-columns: 1fr;
  }
  .event-reveal {
    padding: 26px;
  }
  .event-reveal h2 {
    font-size: 36px;
  }
  .event-reveal > .secondary {
    margin: 15px 0 0;
  }
  .help h2 {
    font-size: 34px;
  }
  .reveal-back {
    padding: 16px;
  }
  .session .live {
    font-size: 0;
    gap: 0;
  }
  .phone-join {
    padding: 28px 22px 45px;
  }
  .phone-join h1 {
    font-size: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Broadcast dashboard and private phone finances. */
.tv-dashboard .topbar {
  padding: 18px 32px;
  height: 76px;
}
.broadcast {
  padding: 12px 32px 16px;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.broadcast-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.broadcast-heading small {
  color: var(--purple);
  letter-spacing: 0.1em;
  font-size: 12px;
}
.broadcast-heading h1 {
  font-size: clamp(24px, 2.4vw, 42px);
  margin: 8px 0;
  letter-spacing: -0.03em;
}
.broadcast-clock {
  min-width: 205px;
  text-align: right;
}
.broadcast-clock > strong {
  font-size: 46px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.broadcast-clock > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0;
}
.broadcast-clock > div {
  height: 4px;
  background: #ffffff15;
  overflow: hidden;
  border-radius: 4px;
}
.broadcast-clock i {
  display: block;
  height: 100%;
  background: var(--lime);
  transition: width 0.3s;
}
.broadcast-scores {
  display: flex;
  gap: 12px;
}
.broadcast-player {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  background: linear-gradient(
    130deg,
    color-mix(in srgb, var(--owner) 13%, var(--panel)),
    var(--panel)
  );
  border: 1px solid color-mix(in srgb, var(--owner) 35%, transparent);
  border-radius: 16px;
  padding: 17px 18px;
  min-height: 112px;
}
.broadcast-player .portrait {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.broadcast-player-name {
  flex: 1;
  min-width: 0;
}
.broadcast-player-name b {
  display: block;
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.broadcast-player-name small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}
.hq-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--owner);
}
.broadcast-points {
  text-align: right;
  color: var(--owner);
}
.broadcast-points strong {
  font-size: 38px;
  line-height: 1;
}
.broadcast-points small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.dividend-pop {
  position: absolute;
  bottom: -8px;
  right: 15px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
}
.broadcast-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  flex: 1;
}
.broadcast-city {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.broadcast-city .board-wrap {
  padding: 12px 18px;
  margin: 0;
  flex: 1;
}
.broadcast-city .board {
  width: 100%;
  max-height: 330px;
  display: block;
}
.tv-dashboard .plot {
  cursor: default;
  pointer-events: none;
}
.broadcast-city .board-label {
  font-size: 12px;
}
.broadcast-city .board-legend {
  font-size: 12px;
  gap: 18px;
}
.broadcast-highlight {
  position: relative;
  border: 1px solid #b394ff30;
  background: linear-gradient(110deg, #b394ff12, #ffffff03);
  border-radius: 14px;
  padding: 16px 25px 18px 78px;
  min-height: 132px;
  animation: highlight-enter 0.5s ease-out;
}
.highlight-icon {
  position: absolute;
  left: 22px;
  top: 27px;
  font-size: 35px;
  color: var(--lime);
}
.broadcast-highlight > small {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--purple);
}
.broadcast-highlight h2 {
  font-size: 22px;
  margin: 6px 0;
}
.broadcast-highlight p {
  font-size: 15px;
  color: #d1c9df;
  margin: 0;
  line-height: 1.5;
}
.highlight-dots {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.highlight-dots i {
  height: 3px;
  width: 17px;
  background: #ffffff20;
  border-radius: 3px;
}
.highlight-dots .active {
  background: var(--lime);
}
.broadcast-ranking {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.broadcast-ranking .panel-title {
  display: block;
  margin: 0 0 14px;
}
.broadcast-ranking h2 {
  font-size: 22px;
  margin: 0 0 5px;
}
.broadcast-ranking .panel-title > span {
  font-size: 12px;
  color: var(--muted);
}
.rank-scroll {
  flex: 1;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 59px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  animation: highlight-enter 0.4s ease-out;
}
.rank-number {
  font-size: 22px;
  width: 27px;
  color: var(--owner);
}
.rank-person {
  flex: 1;
  font-weight: 700;
  font-size: 16px;
}
.rank-person small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.rank-row > strong {
  font-size: 24px;
  color: var(--owner);
}
.rank-row > strong small {
  display: block;
  font-size: 9px;
  text-align: center;
}
.ranking-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.market-pulse {
  display: grid;
  grid-template-columns: 1.3fr repeat(5, 1fr);
  gap: 10px;
}
.market-pulse > div,
.market-pulse > article {
  padding: 13px 15px;
  border-radius: 12px;
  background: #ffffff04;
  border: 1px solid var(--line);
}
.market-pulse small {
  font-size: 11px;
  color: var(--sector, var(--muted));
  display: block;
}
.market-pulse strong {
  display: block;
  font-size: 25px;
  margin: 4px 0;
}
.market-pulse span,
.market-pulse p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}
.broadcast-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 10px;
}
.broadcast-footer b {
  color: var(--lime);
  margin-right: 8px;
}
.phone-balance {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #1c2021f5;
  border-bottom: 1px solid #bcf36a55;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px #0004;
}
.phone-balance small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.phone-balance strong {
  font-size: 29px;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.phone-balance > div:last-child {
  text-align: right;
  font-size: 12px;
  color: #d9d2e5;
}
.phone-balance > div:last-child small {
  margin-top: 8px;
}
.finance-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 14px;
}
.finance-stats > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: var(--panel);
}
.finance-stats small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 6px;
}
.finance-stats b {
  font-size: 19px;
}
.finance-chart {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin: 12px 0;
}
.finance-chart > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.finance-chart h3 {
  font-size: 13px;
  margin: 0;
}
.finance-chart > div span {
  font-size: 11px;
}
.finance-chart svg {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.finance-chart p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 0;
}
.quote-remaining {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  background: #bcf36a0a;
  border: 1px solid #bcf36a30;
  border-radius: 9px;
  padding: 12px;
  margin: 0 0 16px;
  color: var(--lime);
}
.over-budget {
  color: var(--peach);
  border-color: #ff997350;
  background: #ff997310;
}
.organizer-controls {
  margin: 24px 20px 100px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mobile-controller .header-actions .icon-button:first-child {
  display: inline-flex;
}
.mobile-controller .remove-player {
  display: inline-flex;
}
.under-pressure,
.broadcast-highlight.danger {
  border-color: #ff997380;
  box-shadow: inset 0 0 22px #ff997312;
}
.under-pressure .hq-status {
  color: var(--peach);
}
.time-urgent [data-clock] {
  color: var(--peach);
  animation: danger-pulse 1s ease-in-out infinite;
}
.cash-celebration .phone-balance,
.cash-celebration .dividend-pop,
.cash-celebration .phone-result {
  animation: cash-bounce 0.65s ease-out 2;
}
.cash-celebration .broadcast-player {
  animation: cash-glow 1.2s ease-out 2;
}
.control-alarm .phone-balance,
.control-alarm .under-pressure {
  animation: danger-pulse 0.6s ease-in-out 4;
}
@keyframes highlight-enter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cash-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.025);
    filter: brightness(1.3);
  }
}
@keyframes cash-glow {
  50% {
    box-shadow: 0 0 28px #bcf36a50;
  }
}
@keyframes danger-pulse {
  50% {
    filter: brightness(1.5);
    box-shadow: inset 0 0 24px #ff997320;
  }
}
@media (min-width: 1600px) {
  .broadcast-main {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
  .broadcast-city .board {
    max-height: 450px;
  }
  .rank-row {
    min-height: 70px;
  }
  .rank-person {
    font-size: 20px;
  }
  .broadcast-highlight h2 {
    font-size: 26px;
  }
}
@media (max-width: 1100px) {
  .broadcast-main {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .broadcast-player {
    padding: 12px;
    gap: 8px;
  }
  .broadcast-player .portrait {
    width: 38px;
    height: 38px;
  }
  .broadcast-player-name b {
    font-size: 16px;
  }
  .broadcast-points strong {
    font-size: 28px;
  }
  .market-pulse {
    grid-template-columns: repeat(5, 1fr);
  }
  .market-pulse > div {
    display: none;
  }
}
@media (max-width: 760px) {
  .broadcast {
    padding: 15px;
  }
  .broadcast-main {
    grid-template-columns: 1fr;
  }
  .broadcast-scores {
    flex-wrap: wrap;
  }
  .broadcast-player {
    flex-basis: 40%;
  }
  .broadcast-heading h1 {
    font-size: 24px;
  }
  .broadcast-clock {
    min-width: 90px;
  }
  .broadcast-clock > strong {
    font-size: 30px;
  }
  .market-pulse {
    grid-template-columns: repeat(2, 1fr);
  }
  .broadcast-footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 761px) {
  .broadcast {
    height: calc(100vh - 76px);
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 12px;
  }
  .broadcast-main {
    min-height: 0;
  }
  .broadcast-city {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 0;
  }
  .broadcast-city .board-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .broadcast-city .board {
    flex: 1;
    height: 0;
    min-height: 0;
    max-height: none;
  }
  .broadcast-city .board-label {
    padding: 4px 4px 0;
  }
  .broadcast-city .board-legend {
    padding: 8px 4px;
  }
  .broadcast-ranking {
    min-height: 0;
    padding: 16px;
  }
  .rank-row {
    min-height: 0;
    height: calc((100vh - 520px) / 6);
    padding: 6px 0;
  }
  .broadcast-highlight {
    min-height: 120px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
.phone-pressure {
  padding: 14px;
  border: 1px solid #ff997370;
  background: #ff997310;
  border-radius: 12px;
  margin: 18px 0;
  color: var(--peach);
  font-size: 13px;
  line-height: 1.5;
}
.phone-ranking {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 15px;
  margin: 16px 0;
}
.phone-ranking summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.phone-ranking .rank-row {
  height: auto;
  min-height: 49px;
}
@media (min-width: 761px) {
  .rank-scroll {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .broadcast-ranking .rank-row {
    height: auto;
    flex: 1;
    min-height: 38px;
  }
  .broadcast-ranking .ranking-note {
    flex-shrink: 0;
    font-size: 10px;
  }
  .broadcast-ranking .panel-title {
    flex-shrink: 0;
  }
}
@media (min-width: 761px) and (max-height: 850px) {
  .tv-dashboard .topbar {
    height: 60px;
    padding: 10px 25px;
  }
  .broadcast {
    height: calc(100vh - 60px);
    padding: 10px 25px;
    gap: 8px;
  }
  .broadcast-heading h1 {
    font-size: 27px;
    margin: 5px 0;
  }
  .broadcast-heading small {
    font-size: 10px;
  }
  .broadcast-clock > strong {
    font-size: 34px;
  }
  .broadcast-clock > span {
    font-size: 10px;
  }
  .broadcast-player {
    min-height: 85px;
    padding: 12px;
  }
  .broadcast-player .portrait {
    width: 42px;
    height: 42px;
  }
  .broadcast-player-name b {
    font-size: 18px;
  }
  .broadcast-player-name small {
    font-size: 10px;
  }
  .broadcast-points strong {
    font-size: 30px;
  }
  .broadcast-highlight {
    min-height: 99px;
    padding: 10px 15px 10px 60px;
  }
  .broadcast-highlight h2 {
    font-size: 19px;
    margin: 4px 0;
  }
  .broadcast-highlight p {
    font-size: 12px;
  }
  .highlight-icon {
    left: 16px;
    top: 22px;
    font-size: 28px;
  }
  .highlight-dots {
    margin-top: 5px;
  }
  .broadcast-ranking {
    padding: 12px;
  }
  .broadcast-ranking h2 {
    font-size: 19px;
  }
  .broadcast-ranking .panel-title {
    margin-bottom: 5px;
  }
  .broadcast-ranking .rank-row {
    min-height: 0;
    padding: 3px 0;
  }
  .rank-person {
    font-size: 14px;
  }
  .rank-person small {
    font-size: 10px;
  }
  .rank-number {
    font-size: 18px;
  }
  .rank-row > strong {
    font-size: 20px;
  }
  .ranking-note {
    margin-top: 6px;
  }
  .market-pulse > div,
  .market-pulse > article {
    padding: 8px 12px;
  }
  .market-pulse strong {
    font-size: 20px;
    margin: 3px 0;
  }
  .market-pulse span,
  .market-pulse p {
    margin-top: 3px;
    font-size: 10px;
  }
}

/* Compact controller, illustrated companies and rotating TV views. */
.company-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
  flex-shrink: 0;
}
.ai-portrait {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 50%;
  background: #342b48;
  flex-shrink: 0;
}
.avatar-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.rank-row .portrait,
.rank-row .ai-portrait {
  width: 30px;
  height: 30px;
}
.rank-row {
  gap: 8px;
}
.rank-person {
  min-width: 0;
}
.rank-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-settings {
  position: relative;
  border-radius: 50%;
  padding: 0;
  border: 2px solid #b394ff55;
  background: none;
  width: 40px;
  height: 40px;
}
.profile-settings .portrait {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
}
.profile-settings i {
  position: absolute;
  bottom: -3px;
  right: -4px;
  background: var(--panel);
  border-radius: 50%;
  font-style: normal;
  font-size: 12px;
}
.mobile-controller .topbar {
  height: 58px;
  padding: 8px 15px;
  gap: 10px;
}
.mobile-controller .wordmark {
  font-size: 23px;
}
.mobile-controller .session {
  gap: 8px;
  font-size: 9px;
}
.mobile-controller .session > span:nth-child(2) {
  display: none;
}
.mobile-controller .session strong {
  font-size: 19px;
}
.mobile-controller .controller {
  padding: 16px 16px 88px;
}
.mobile-controller .phone-phase {
  padding: 8px 16px;
}
.mobile-controller .phone-balance {
  padding: 10px 16px;
}
.mobile-controller .phone-balance strong {
  font-size: 26px;
}
.mobile-controller .controller h2 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}
.trade-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.trade-title > span {
  font-size: 11px;
  color: var(--muted);
}
.mobile-controller .controller form {
  margin-top: 0;
}
.mobile-controller .controller label {
  margin-bottom: 10px;
}
.mobile-controller .controller input,
.mobile-controller .controller select {
  padding: 11px 12px;
  font-size: 15px;
}
.mobile-controller .controller .primary {
  padding: 13px 15px;
  font-size: 13px;
}
.mobile-controller .subtle {
  font-size: 11px;
  line-height: 1.5;
  margin: 10px 0;
}
.company-picker {
  margin: 0 0 12px;
}
.company-picker > button {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  background: var(--panel);
  border: 1px solid #b394ff40;
  border-radius: 12px;
  padding: 11px 12px;
}
.company-picker span {
  flex: 1;
}
.company-picker b {
  display: block;
  font-size: 16px;
}
.company-picker small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.company-picker i {
  font-size: 22px;
  color: var(--purple);
  font-style: normal;
}
.company-sheet {
  background: var(--panel);
  border: 1px solid #b394ff40;
  border-radius: 20px;
  padding: 20px;
  width: min(470px, calc(100vw - 24px));
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
}
.company-sheet h2 {
  font-size: 20px;
  margin: 0;
}
.company-sheet .panel-title {
  margin-bottom: 15px;
}
.company-sheet input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
}
.company-choices {
  overflow-y: auto;
  min-height: 0;
}
.company-choices button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: none;
}
.company-choices button[hidden] {
  display: none;
}
.company-choices span {
  flex: 1;
}
.company-choices b {
  font-size: 14px;
}
.company-choices small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.company-choices strong {
  font-size: 13px;
  color: var(--lime);
}
.quantity-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.quantity-row label {
  width: 94px;
  flex-shrink: 0;
}
.quantity-row > div {
  display: flex;
  flex: 1;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.quantity-row button {
  padding: 8px;
  font-size: 11px;
  border-radius: 7px;
  background: #ffffff09;
}
.quantity-row button:last-child {
  flex: 1;
  color: var(--lime);
}
.trade-quote {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8px;
  margin-bottom: 10px;
}
.trade-quote > span {
  font-size: 10px;
  color: var(--muted);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.trade-quote strong {
  display: block;
  color: #f4efff;
  font-size: 19px;
  margin-top: 3px;
}
.trade-quote .quote-remaining {
  display: block;
  margin: 0;
  padding: 10px;
  font-size: 10px;
}
.trade-quote .quote-remaining b {
  display: block;
  font-size: 19px;
  margin-top: 3px;
}
.compact-npc,
.lobby-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.compact-npc > span,
.lobby-person > div {
  flex: 1;
}
.compact-npc b,
.lobby-person b {
  font-size: 13px;
  display: block;
}
.compact-npc small,
.lobby-person small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.sim-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.sim-chart-head b {
  color: var(--purple);
}
.sim-candles {
  display: block;
  width: 100%;
  max-height: 115px;
  margin: 2px 0;
}
.sim-candles g {
  animation: candle-enter 0.45s both;
  animation-delay: calc(var(--i) * 0.025s);
}
.sim-candles g:last-child {
  animation: cash-glow 2s infinite;
}
.simulation-label {
  display: block;
  font-size: 8px;
  color: #9f91b4;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.chart-details {
  background: #ffffff03;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
}
.chart-details summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.mobile-controller .finance-stats {
  margin: 12px 0;
}
.mobile-controller .finance-stats > div {
  padding: 10px;
}
.mobile-controller .finance-stats b {
  font-size: 17px;
}
.mobile-controller .phone-identity {
  margin: 0 0 12px;
}
.mobile-controller .phone-identity .portrait {
  width: 42px;
  height: 42px;
}
.mobile-controller .phone-identity h2 {
  font-size: 21px;
}
.mobile-controller .phone-identity small {
  font-size: 8px;
}
.mobile-controller .phone-identity span {
  font-size: 11px;
}
.mobile-controller .phone-ranking {
  padding: 11px;
  margin: 10px 0;
}
.mobile-controller .phone-ranking summary {
  font-size: 12px;
}
.projection-panel {
  border: 1px solid #b394ff30;
  border-radius: 11px;
  background: #b394ff08;
  padding: 12px;
  margin: 12px 0;
}
.projection-panel .panel-title {
  margin: 0 0 10px;
}
.projection-panel .panel-title b {
  font-size: 12px;
}
.projection-panel .panel-title span {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--purple);
}
.projection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.projection-grid small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.projection-grid b {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}
.projection-panel details {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}
.projection-panel summary {
  cursor: pointer;
}
.mobile-controller .dossiers {
  margin-top: 14px;
  padding: 11px;
}
.mobile-controller .dossiers h3 {
  font-size: 12px;
}
.mobile-controller .dossier {
  padding: 8px 0;
  font-size: 12px;
}
.mobile-controller .phone-section-title {
  margin-top: 16px;
}
.mobile-controller .holding {
  padding: 11px;
  gap: 9px;
  margin: 7px 0;
}
.mobile-controller .holding > div {
  flex: 1;
  min-width: 0;
}
.mobile-controller .holding b {
  font-size: 13px;
}
.mobile-controller .holding small {
  font-size: 10px;
}
.mobile-controller .holding > strong {
  font-size: 19px;
}
.mobile-controller .holding .capbar {
  grid-column: 1/-1;
}
.mobile-controller .defense-actions {
  margin-top: 16px;
}
.mobile-controller .defense-actions button {
  padding: 11px;
  font-size: 11px;
}
.settings-title {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 8px 0 25px;
}
.settings-title .portrait {
  width: 60px;
  height: 60px;
}
.settings-title p {
  margin: 6px 0;
  font-size: 12px;
  color: var(--muted);
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-list a {
  color: var(--purple);
  font-size: 12px;
  padding: 10px 0;
  text-decoration: none;
}
.bulk-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.bulk-toolbar button {
  font-size: 11px;
  padding: 8px 12px;
  background: #ffffff08;
  border-radius: 8px;
}
.bulk-sales label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.bulk-sales .company-logo {
  width: 30px;
  height: 30px;
}
.bulk-sales label > span {
  flex: 1;
  min-width: 0;
}
.bulk-sales b {
  font-size: 12px;
}
.bulk-sales small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.bulk-sales input {
  width: 57px !important;
  padding: 8px !important;
}
.bulk-sales button {
  font-size: 10px;
  padding: 8px;
  color: var(--lime);
}
.lobby-programs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.lobby-programs button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.lobby-programs button.active {
  border-color: var(--purple);
  background: #b394ff15;
}
.lobby-programs button > span {
  font-size: 22px;
  color: var(--purple);
  width: 24px;
}
.lobby-programs button > div {
  flex: 1;
}
.lobby-programs b {
  font-size: 13px;
}
.lobby-programs small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.lobby-programs strong {
  font-size: 13px;
  color: var(--lime);
}
#tv-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 16px;
  background: #181524;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.stage-heading > b {
  font-size: 17px;
}
.stage-heading > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stage-heading small {
  font-size: 9px;
  color: var(--muted);
  margin-left: 6px;
}
.stage-heading i {
  height: 3px;
  width: 20px;
  background: #ffffff20;
  border-radius: 3px;
}
.stage-heading i.active {
  background: var(--purple);
}
.market-heatmap,
.ownership-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  flex: 1;
  min-height: 0;
  animation: highlight-enter 0.5s ease-out;
}
.market-heatmap article {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--move) 25%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--move) 7%, #181524);
  min-width: 0;
}
.market-heatmap .company-logo {
  width: 31px;
  height: 31px;
}
.market-heatmap article > div {
  flex: 1;
  min-width: 0;
}
.market-heatmap b {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-heatmap article > div small {
  font-size: 8px;
  color: var(--muted);
}
.market-heatmap strong {
  display: block;
  flex-basis: 100%;
  font-size: 20px;
  margin: 2px 0 0;
}
.market-heatmap strong small {
  font-size: 12px;
  float: right;
  color: var(--move);
  margin-top: 5px;
}
.ownership-grid article {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--owner) 30%, transparent);
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--owner) 7%, #181524);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ownership-grid article > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ownership-grid b {
  font-size: 12px;
  flex: 1;
}
.ownership-grid strong {
  color: var(--owner);
  font-size: 16px;
}
.ownership-grid .company-logo {
  width: 26px;
  height: 26px;
}
.ownership-grid .capbar {
  margin: 10px 0 6px;
  height: 5px;
  flex-shrink: 0;
}
.ownership-grid article > span {
  font-size: 10px;
  color: var(--muted);
  padding-right: 26px;
}
.ownership-grid .ai-portrait {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 23px;
  height: 23px;
}
.news-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
  animation: highlight-enter 0.5s ease-out;
}
.news-headline {
  border: 1px solid #b394ff40;
  background: linear-gradient(140deg, #b394ff19, #131120);
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
}
.news-headline > span {
  display: block;
  font-size: 43px;
  color: var(--peach);
  margin-bottom: 12px;
}
.news-headline > small {
  font-size: 10px;
  color: var(--purple);
  letter-spacing: 0.08em;
}
.news-headline h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 10px 0;
}
.news-headline p {
  font-size: 13px;
  color: #d1c9df;
  line-height: 1.6;
}
.news-transactions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.news-transactions article {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff03;
  overflow: hidden;
}
.news-transactions i {
  font-size: 24px;
  font-style: normal;
  color: var(--lime);
}
.news-transactions small {
  display: block;
  font-size: 8px;
  color: var(--purple);
  letter-spacing: 0.05em;
}
.news-transactions b {
  font-size: 15px;
  display: block;
  margin: 5px 0;
}
.news-transactions p {
  font-size: 11px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
@keyframes candle-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 761px) and (max-height: 850px) {
  #tv-stage {
    padding: 10px 12px;
  }
  .stage-heading {
    margin-bottom: 8px;
  }
  .stage-heading > b {
    font-size: 14px;
  }
  .market-heatmap,
  .ownership-grid {
    gap: 6px;
  }
  .market-heatmap article {
    padding: 7px;
    gap: 5px;
  }
  .market-heatmap .company-logo {
    width: 23px;
    height: 23px;
  }
  .market-heatmap b {
    font-size: 11px;
  }
  .market-heatmap strong {
    font-size: 16px;
  }
  .market-heatmap strong small {
    font-size: 10px;
    margin-top: 3px;
  }
  .ownership-grid article {
    padding: 8px;
  }
  .ownership-grid .company-logo {
    width: 20px;
    height: 20px;
  }
  .ownership-grid b {
    font-size: 10px;
  }
  .ownership-grid strong {
    font-size: 12px;
  }
  .ownership-grid .capbar {
    margin: 6px 0 4px;
  }
  .ownership-grid article > span {
    font-size: 8px;
  }
  .news-headline {
    padding: 13px;
  }
  .news-headline > span {
    font-size: 30px;
    margin-bottom: 5px;
  }
  .news-headline h2 {
    font-size: 21px;
  }
  .news-headline p {
    font-size: 11px;
  }
  .news-transactions article {
    padding: 9px;
    gap: 9px;
  }
  .news-transactions b {
    font-size: 12px;
  }
  .news-transactions p {
    font-size: 9px;
  }
}
@media (max-width: 1100px) {
  .market-heatmap,
  .ownership-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .market-heatmap article:nth-child(n + 13),
  .ownership-grid article:nth-child(n + 13) {
    display: none;
  }
}
@media (max-width: 760px) {
  .market-heatmap,
  .ownership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-heatmap article,
  .ownership-grid article {
    min-height: 90px;
  }
  .news-stage {
    grid-template-columns: 1fr;
  }
  .news-headline > span {
    font-size: 25px;
  }
  .news-headline h2 {
    font-size: 22px;
  }
  .mobile-controller .phone-nav button {
    padding: 8px 4px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sim-candles g {
    animation: none !important;
  }
}
.market-study {
  margin: 18px 0;
  padding: 13px;
  background: #63d8f30a;
  border: 1px solid #63d8f330;
  border-radius: 12px;
}
.market-study .panel-title {
  margin-bottom: 8px;
}
.market-study h3 {
  font-size: 14px;
  margin: 0;
}
.market-study .panel-title > span {
  font-size: 10px;
  color: #63d8f3;
}
.market-study > p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.study-targets {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.study-targets button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  font-size: 12px;
}
.study-targets button.active {
  border-color: #63d8f3;
  background: #63d8f315;
}
.study-targets .portrait {
  width: 28px;
  height: 28px;
}
.study-report {
  margin-top: 12px;
  border-top: 1px solid #63d8f320;
  padding-top: 10px;
}
.study-report summary {
  font-size: 12px;
  color: #63d8f3;
  cursor: pointer;
}
.study-report > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.study-report .company-logo {
  width: 28px;
  height: 28px;
}
.study-report > div > span {
  flex: 1;
}
.study-report b {
  font-size: 11px;
}
.study-report small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.study-report strong {
  font-size: 12px;
}
.mobile-controller .holding {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  row-gap: 5px;
}
.mobile-controller .holding > .company-logo {
  width: 32px;
  height: 32px;
}
.mobile-controller .holding > .capbar {
  grid-column: 1/-1;
  width: 100%;
}
.mobile-controller .phone-section-title {
  margin: 12px 0 8px;
  padding: 0;
  border-top: 0;
}
.mobile-controller .phone-section-title h3 {
  font-size: 15px;
}
.mobile-controller .dossier {
  min-height: 36px;
  border-radius: 8px;
  margin: 5px 0;
  padding: 7px 9px;
}
.mobile-controller .dossier button {
  width: 25px;
  height: 25px;
  padding: 0;
  font-size: 15px;
}
.mobile-controller .dossiers .panel-title {
  margin-bottom: 7px;
}
.mobile-controller .defense-actions {
  margin: 5px 0;
}
.mobile-controller .chart-details .defense-actions p {
  font-size: 10px;
}
@media (min-width: 761px) {
  .market-heatmap,
  .ownership-grid {
    grid-template-columns: repeat(var(--market-cols, 5), minmax(0, 1fr));
  }
  .market-heatmap article:nth-child(n + 13),
  .ownership-grid article:nth-child(n + 13) {
    display: flex;
  }
}

@media (min-width: 761px) {
  .market-heatmap {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  .market-heatmap article {
    min-height: 0;
  }
  .market-heatmap strong {
    line-height: 1.1;
  }
}

.global-actions {
  padding: 7px 16px;
  background: #181524;
  border-bottom: 1px solid var(--line);
}
.mobile-controller .global-actions .dossiers {
  margin: 0;
  padding: 0;
  border: 0;
}
.mobile-controller .global-actions .panel-title {
  margin: 0 0 3px;
}
.global-actions h3 {
  font-size: 11px;
  margin: 0;
}
.global-actions .dossier {
  padding: 4px 0;
  margin: 0;
  font-size: 11px;
  min-height: 0;
}
.global-actions .subtle {
  margin: 0;
  font-size: 10px;
}
.global-actions .dossier small {
  font-size: 9px;
  display: inline;
  margin-left: 5px;
}
.mobile-controller .phone-nav {
  grid-template-columns: repeat(4, 1fr);
}
.resource-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
  background: #bcf36a06;
}
.resource-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
.resource-card span,
.resource-card > small {
  color: var(--muted);
  font-size: 10px;
}
.resource-shock {
  margin-top: 7px;
  align-items: center;
}
.resource-shock > span {
  max-width: 58%;
}
.event-impacts {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.event-impacts > div {
  border-left: 2px solid currentColor;
  padding-left: 8px;
}
.event-impacts b {
  display: block;
  font-size: 11px;
}
.event-impacts span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.assembly-company {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}
.assembly-company header {
  display: flex;
  align-items: center;
  gap: 9px;
}
.assembly-company .company-logo {
  width: 32px;
  height: 32px;
}
.assembly-company small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.assembly-company article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
}
.assembly-company article b {
  font-size: 13px;
}
.assembly-company button {
  padding: 9px 12px;
  font-size: 11px;
}
.assembly-company button.selected {
  background: #bcf36a1a;
  border-color: var(--lime);
  color: var(--lime);
}
.assembly-wait {
  margin: auto;
  text-align: center;
  padding: 25px 12px;
}
.assembly-wait > span {
  font-size: 35px;
}
.assembly-wait h3 {
  margin: 12px 0 5px;
}
.assembly-wait p {
  color: var(--muted);
  font-size: 12px;
}
.assembly-agenda {
  display: grid;
  gap: 7px;
  flex: 1;
  min-height: 0;
}
.assembly-agenda article {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 0;
}
.assembly-agenda .company-logo {
  width: 32px;
  height: 32px;
}
.assembly-agenda b {
  font-size: 13px;
}
.assembly-agenda span,
.assembly-agenda small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
@media (min-width: 761px) and (max-height: 850px) {
  .news-headline p {
    font-size: 10px;
    line-height: 1.3;
  }
  .news-headline h2 {
    font-size: 19px;
    margin: 5px 0;
  }
  .news-headline > span {
    margin-bottom: 6px;
    font-size: 24px;
  }
}
.government-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0;
}
.government-sectors button {
  padding: 7px 9px;
  font-size: 11px;
}
.government-sectors button.selected {
  border-color: var(--lime);
  color: var(--lime);
  background: #bcf36a12;
}
.government-report {
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #63d8f360;
  border-radius: 12px;
  background: #63d8f308;
}
.government-report > small {
  display: block;
  color: #63d8f3;
  font-size: 9px;
  margin-bottom: 7px;
}
.government-report > b {
  display: block;
  font-size: 14px;
}
.government-report > p,
.government-report > span {
  font-size: 11px;
  color: var(--muted);
}
.news-headline {
  position: relative;
}
.news-headline > span {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}
.news-headline > small {
  padding-right: 25px;
  display: block;
}
.news-headline > p {
  margin: 6px 0;
}
.event-impacts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.event-impacts span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-impacts b {
  font-size: 10px;
}
