:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #151922;
  --panel-2: #1d2430;
  --line: #303947;
  --text: #f6f1e8;
  --muted: #b8c0cb;
  --gold: #f7c66a;
  --green: #47d18c;
  --red: #ff6b6b;
  --cyan: #53c6f3;
  --violet: #b894ff;
  --ink: #0d1016;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --soft-line: rgba(255, 255, 255, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(247, 198, 106, 0.16), transparent 32rem),
    radial-gradient(circle at 86% 12%, rgba(83, 198, 243, 0.13), transparent 28rem),
    linear-gradient(180deg, #0b0d12 0%, #10131a 56%, #0b0d12 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 72%);
}

.site-link-bar {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 50;
  width: min(520px, calc(100% - 24px));
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px;
  background: rgba(11, 13, 18, 0.78);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.site-link-bar a,
.site-link-bar strong {
  min-width: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  padding: 8px 6px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-link-bar a {
  background: rgba(255, 255, 255, 0.05);
}

.site-link-bar strong {
  color: var(--ink);
  background: var(--gold);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.is-hidden {
  display: none !important;
}

.start-screen {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 16px 96px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  overflow: hidden;
}

.start-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.coin {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid rgba(13, 16, 22, 0.34);
  background: var(--gold);
  box-shadow: 0 18px 34px rgba(247, 198, 106, 0.22);
  opacity: 0.5;
  animation: floatCoin 7s ease-in-out infinite;
}

.coin-a {
  right: 9%;
  top: 9%;
}

.coin-b {
  left: 4%;
  bottom: 19%;
  width: 42px;
  height: 42px;
  animation-delay: -2s;
}

.coin-c {
  right: 18%;
  bottom: 8%;
  width: 34px;
  height: 34px;
  animation-delay: -4s;
}

.start-copy,
.character-card,
.start-actions,
.player-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 25, 34, 0.9);
  box-shadow: var(--shadow);
}

.start-copy {
  position: relative;
  z-index: 1;
  padding: 20px;
  min-height: 230px;
  display: grid;
  align-content: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.1), rgba(8, 10, 16, 0.92)),
    linear-gradient(135deg, #233142, #11161f 62%, #1d1a22);
}

.start-panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  opacity: 0.58;
}

.start-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.88), rgba(8, 10, 16, 0.4) 58%, rgba(8, 10, 16, 0.72)),
    linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.92));
}

.start-copy-text {
  position: relative;
  z-index: 1;
}

.start-copy h1 {
  max-width: 10ch;
  margin-bottom: 12px;
}

.start-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.character-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.character-card {
  min-height: 176px;
  padding: 12px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.character-card:hover,
.character-card.selected {
  border-color: rgba(247, 198, 106, 0.78);
  background: #202837;
}

.character-card.selected {
  outline: 2px solid var(--gold);
}

.character-card h2 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.character-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.character-card small,
.trait-pill,
.stat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  font-weight: 800;
}

.character-card small {
  margin-top: 8px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--gold);
}

.portrait {
  width: 76px;
  height: 118px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, #dca56f 0 18px, transparent 19px),
    linear-gradient(135deg, #384456, #111720);
}

.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  left: 20px;
}

.portrait::before {
  width: 36px;
  height: 54px;
  bottom: 18px;
  border-radius: 14px 14px 6px 6px;
  background: var(--cyan);
}

.portrait::after {
  width: 32px;
  height: 20px;
  right: 8px;
  bottom: 24px;
  left: auto;
  border-radius: 4px;
  background: var(--gold);
  transform: rotate(-8deg);
}

.portrait.coupon::before {
  background: #70d997;
}

.portrait.spreadsheet::before {
  background: #53c6f3;
}

.portrait.crypto::before {
  background: #b894ff;
}

.portrait.dividend::before {
  background: #f7c66a;
}

.portrait.has-photo {
  background: #090b10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portrait.has-photo::before,
.portrait.has-photo::after {
  display: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.character-card:hover .portrait img,
.character-card.selected .portrait img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.08);
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.stat-chip {
  padding: 0 8px;
  color: var(--muted);
  border: 1px solid var(--soft-line);
  background: rgba(9, 11, 16, 0.54);
  font-size: 0.72rem;
}

.trait-pill {
  margin-top: 8px;
  padding: 0 9px;
  color: var(--text);
  border: 1px solid rgba(247, 198, 106, 0.42);
  background: rgba(247, 198, 106, 0.12);
  font-size: 0.74rem;
}

.start-actions {
  position: fixed;
  right: 16px;
  bottom: 12px;
  left: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: rgba(13, 16, 22, 0.92);
  backdrop-filter: blur(12px);
}

.start-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.game-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 66px 12px 12px;
  display: grid;
  gap: 12px;
}

.command-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: rgba(13, 16, 22, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.command-bar div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.command-bar span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command-bar strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-panel,
.player-strip,
.tab-shell,
.objective-panel,
.boss-panel,
.city-panel,
.rival-panel,
.battle-panel,
.deal-panel,
.contract-panel,
.photo-panel,
.upgrade-panel,
.achievement-panel,
.strategy-panel,
.newswire-panel,
.market-board,
.story-card,
.trade-panel,
.feed {
  border: 1px solid var(--line);
  background: rgba(21, 25, 34, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.12), rgba(8, 10, 16, 0.9)),
    linear-gradient(135deg, #19202b, #0c0f16);
}

.hero-photo {
  position: absolute;
  inset: 34px 0 0;
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: 62% center;
  opacity: 0.34;
  filter: saturate(1.05) contrast(1.02);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 34px 0 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.82), rgba(8, 10, 16, 0.18) 52%, rgba(8, 10, 16, 0.48)),
    linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.84));
}

.ticker {
  min-height: 34px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 8px 12px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 13, 0.72);
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.ticker span {
  animation: slideTicker 22s linear infinite;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.skyline {
  position: absolute;
  inset: 34px 0 0;
  overflow: hidden;
}

.moon {
  width: 52px;
  height: 52px;
  position: absolute;
  right: 10%;
  top: 32px;
  border-radius: 50%;
  background: #f3dca1;
  box-shadow: 0 0 40px rgba(247, 198, 106, 0.42);
  animation: moonPulse 4s ease-in-out infinite;
}

.tower {
  position: absolute;
  bottom: 0;
  width: 15%;
  min-width: 62px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    repeating-linear-gradient(180deg, rgba(247, 198, 106, 0.72) 0 4px, transparent 4px 18px),
    linear-gradient(180deg, #293241, #111720);
}

.tower-a {
  left: 0;
  height: 44%;
}

.tower-b {
  left: 15%;
  height: 68%;
}

.tower-c {
  left: 34%;
  height: 54%;
}

.tower-d {
  right: 21%;
  height: 74%;
}

.tower-e {
  right: 2%;
  height: 48%;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 196px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  gap: 16px;
  padding: 24px;
}

.tab-shell {
  position: sticky;
  top: 83px;
  z-index: 4;
  padding: 8px;
  border-radius: 8px;
  background: rgba(13, 16, 22, 0.92);
  backdrop-filter: blur(14px);
}

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

.tab-button {
  min-height: 42px;
  position: relative;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 900;
}

.tab-button.active {
  border-color: rgba(247, 198, 106, 0.78);
  background:
    linear-gradient(135deg, rgba(247, 198, 106, 0.2), rgba(83, 198, 243, 0.08)),
    var(--panel-2);
  color: var(--text);
}

.tab-button.has-update::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

[data-tab-section] {
  animation: tabFade 180ms ease;
}

[data-tab-section].is-tab-hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: 3.1rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 320px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.72);
  backdrop-filter: blur(8px);
}

.avatar-wrap p {
  max-width: 18ch;
  margin: 0;
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.avatar {
  width: 90px;
  height: 118px;
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #090b10;
  animation: idleBounce 2.8s ease-in-out infinite;
}

.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
  object-position: center;
}

.avatar.has-photo .avatar-photo {
  display: block;
  animation: photoPulse 4.2s ease-in-out infinite;
}

.avatar.has-photo .avatar-head,
.avatar.has-photo .avatar-body,
.avatar.has-photo .avatar-case {
  display: none;
}

.avatar-head,
.avatar-body,
.avatar-case {
  position: absolute;
  display: block;
}

.avatar-head {
  width: 34px;
  height: 34px;
  left: 28px;
  top: 4px;
  border-radius: 50%;
  background: #dca56f;
  box-shadow: inset -7px -4px 0 rgba(0, 0, 0, 0.16);
}

.avatar-body {
  width: 58px;
  height: 70px;
  left: 16px;
  bottom: 10px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(135deg, #6d7683, #2b3440);
}

.avatar-case {
  width: 36px;
  height: 24px;
  right: 4px;
  bottom: 22px;
  border-radius: 4px;
  background: var(--gold);
  transform: rotate(-7deg);
}

.avatar.level-2 .avatar-body {
  background: linear-gradient(135deg, #53c6f3, #1f5a77);
}

.avatar.level-3 .avatar-body {
  background: linear-gradient(135deg, #f7c66a, #825d20);
}

.avatar.level-4 .avatar-body {
  background: linear-gradient(135deg, #ffffff, #3d4654);
}

.avatar.coupon .avatar-body {
  background: linear-gradient(135deg, #70d997, #21643c);
}

.avatar.spreadsheet .avatar-body {
  background: linear-gradient(135deg, #53c6f3, #1f5a77);
}

.avatar.crypto .avatar-body {
  background: linear-gradient(135deg, #b894ff, #45316d);
}

.avatar.dividend .avatar-body {
  background: linear-gradient(135deg, #f7c66a, #825d20);
}

.player-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
}

.player-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.player-strip strong {
  color: var(--gold);
}

.photo-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 198, 106, 0.11), rgba(83, 198, 243, 0.08)),
    rgba(21, 25, 34, 0.88);
}

.photo-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.spotlight-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  animation: photoFloat 4.2s ease-in-out infinite;
}

.spotlight-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.spotlight-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.rail-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.rail-photo.selected {
  border-color: var(--gold);
  outline: 2px solid rgba(247, 198, 106, 0.55);
}

.rail-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

.stat {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
}

.stat span,
.meter label,
.trade-controls label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.32rem;
  letter-spacing: 0;
}

.accent-stat {
  background:
    linear-gradient(135deg, rgba(247, 198, 106, 0.16), rgba(83, 198, 243, 0.06)),
    var(--panel);
}

.intel-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.intel-strip article {
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 16, 22, 0.72);
}

.intel-strip span,
.deal-meta span,
.perk-card small,
.achievement small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.intel-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.meter-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 36, 48, 0.76);
}

.meter {
  display: grid;
  grid-template-columns: 84px 1fr 32px;
  align-items: center;
  gap: 8px;
}

progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #0d1016;
}

progress::-webkit-progress-bar {
  background: #0d1016;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

#stressBar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.market-board,
.story-card,
.objective-panel,
.boss-panel,
.city-panel,
.rival-panel,
.battle-panel,
.deal-panel,
.contract-panel,
.photo-panel,
.upgrade-panel,
.achievement-panel,
.strategy-panel,
.newswire-panel,
.live-market-panel,
.trade-panel,
.feed {
  padding: 14px;
  border-radius: 8px;
}

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

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--gold);
  font-weight: 900;
}

.icon-button:hover,
.primary-button:hover,
.secondary-button:hover {
  filter: brightness(1.08);
}

#chart {
  width: 100%;
  height: 180px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #090b10;
}

.assets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.asset {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.asset.selected {
  outline: 2px solid var(--gold);
}

.asset small {
  color: var(--muted);
}

.asset strong,
.asset span {
  display: block;
}

.deals,
.contracts,
.perks,
.objectives,
.city-map,
.strategy-grid,
.rivals,
.stock-grid,
.achievements {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.deal-card,
.contract-card,
.district-card,
.strategy-card,
.perk-card {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel-2);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.deal-card:hover,
.contract-card:hover,
.district-card:hover,
.strategy-card:hover,
.perk-card:hover {
  border-color: rgba(247, 198, 106, 0.72);
  background: #202837;
}

.deal-card:disabled,
.contract-card:disabled,
.district-card:disabled,
.strategy-card:disabled,
.perk-card:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.deal-card.used,
.contract-card.active-contract,
.perk-card.owned {
  border-color: rgba(71, 209, 140, 0.48);
  background: rgba(71, 209, 140, 0.08);
}

.deal-card strong,
.contract-card strong,
.district-card strong,
.strategy-card strong,
.perk-card strong,
.achievement strong {
  display: block;
}

.deal-card small,
.contract-card small,
.district-card small,
.strategy-card small,
.perk-card small {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.deal-meta,
.contract-meta,
.strategy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deal-meta span,
.contract-meta span,
.strategy-meta span,
.perk-card > span:last-child {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--soft-line);
  background: rgba(9, 11, 16, 0.5);
}

.strategy-panel {
  background:
    linear-gradient(135deg, rgba(83, 198, 243, 0.12), rgba(247, 198, 106, 0.07)),
    rgba(21, 25, 34, 0.88);
}

.contract-panel {
  background:
    linear-gradient(135deg, rgba(184, 148, 255, 0.13), rgba(247, 198, 106, 0.08)),
    rgba(21, 25, 34, 0.88);
}

.strategy-card.selected {
  outline: 2px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(247, 198, 106, 0.16), rgba(83, 198, 243, 0.08)),
    var(--panel-2);
}

.strategy-card span:first-child {
  display: grid;
  gap: 4px;
}

.contract-card.active-contract {
  box-shadow: inset 0 0 0 1px rgba(71, 209, 140, 0.18);
}

.live-market-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(83, 198, 243, 0.13), rgba(71, 209, 140, 0.08)),
    rgba(21, 25, 34, 0.88);
}

.live-market-panel .panel-actions {
  align-items: center;
}

#stockStatus {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(83, 198, 243, 0.28);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(83, 198, 243, 0.08);
  color: var(--cyan);
  font-size: 0.78rem;
  white-space: nowrap;
}

.stock-scoreboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.stock-scoreboard article {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(9, 11, 16, 0.54);
}

.stock-mission-board {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(184, 148, 255, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(12, 14, 20, 0.52);
}

.stock-mission-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.stock-mission-heading span {
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-mission-heading strong {
  color: var(--text);
  font-size: 0.82rem;
}

.stock-mission-heading button {
  grid-column: 1 / -1;
}

.stock-missions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.stock-mission {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(9, 11, 16, 0.48);
}

.stock-mission.complete {
  border-color: rgba(71, 209, 140, 0.52);
  background: rgba(71, 209, 140, 0.08);
}

.stock-mission strong,
.stock-mission small,
.stock-mission b {
  display: block;
}

.stock-mission small {
  margin-top: 3px;
  color: var(--muted);
}

.stock-mission > span:last-child {
  text-align: right;
}

.stock-mission b {
  color: var(--gold);
  font-size: 0.86rem;
}

.stock-scoreboard span,
.stock-card small,
.stock-trade-log {
  color: var(--muted);
}

.stock-scoreboard strong {
  font-size: 1.35rem;
}

#stockPnl.up {
  color: var(--green);
}

#stockPnl.down {
  color: var(--red);
}

.stock-card {
  min-height: 184px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel-2);
}

.stock-card.up {
  border-color: rgba(71, 209, 140, 0.42);
}

.stock-card.down {
  border-color: rgba(255, 107, 107, 0.42);
}

.stock-heading,
.stock-price-row,
.stock-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stock-heading strong {
  font-size: 1.08rem;
}

.stock-heading span,
.stock-change {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(9, 11, 16, 0.54);
  font-size: 0.78rem;
  font-weight: 900;
}

.stock-price-row strong {
  font-size: 1.8rem;
}

.stock-spark {
  height: 42px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 3px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 6px;
  background: rgba(9, 11, 16, 0.42);
}

.stock-spark i {
  min-height: 4px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--gold));
  opacity: 0.82;
}

.stock-change.up {
  color: var(--green);
}

.stock-change.down {
  color: var(--red);
}

.stock-actions {
  flex-wrap: wrap;
}

.stock-actions button {
  flex: 1 1 96px;
  min-height: 38px;
}

.stock-trade-log {
  display: grid;
  gap: 6px;
  max-height: 138px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}

.stock-trade-log li {
  border-top: 1px solid var(--soft-line);
  padding-top: 6px;
}

.newswire-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(71, 209, 140, 0.1), rgba(255, 107, 107, 0.07)),
    rgba(21, 25, 34, 0.88);
}

.wire-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.wire-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 58% center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  filter: saturate(1.04) contrast(1.02);
}

.wire-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.wire-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.wire-effect {
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid rgba(247, 198, 106, 0.28);
  border-radius: 8px;
  background: rgba(247, 198, 106, 0.09);
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.objective {
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 16, 22, 0.62);
}

.objective.complete {
  border-color: rgba(71, 209, 140, 0.55);
  background: rgba(71, 209, 140, 0.09);
}

.objective strong,
.objective small {
  display: block;
}

.objective small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.32;
}

.objective > span:last-child {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}

.objective.complete > span:last-child {
  color: var(--text);
  background: rgba(71, 209, 140, 0.28);
}

.boss-panel {
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(247, 198, 106, 0.08)),
    rgba(21, 25, 34, 0.88);
}

.boss-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.district-card.selected {
  outline: 2px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(247, 198, 106, 0.16), rgba(83, 198, 243, 0.08)),
    var(--panel-2);
}

.district-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.district-meta span {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--soft-line);
  background: rgba(9, 11, 16, 0.5);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.perk-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.rival-card {
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 54px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 16, 22, 0.62);
}

.rival-card.player-rival {
  border-color: rgba(247, 198, 106, 0.72);
  background: rgba(247, 198, 106, 0.1);
}

.rival-rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.rival-photo {
  width: 54px;
  height: 54px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: #090b10;
}

.rival-card strong,
.rival-card small {
  display: block;
}

.rival-card small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.25;
}

.rival-card > span:last-child {
  text-align: right;
}

.battle-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(83, 198, 243, 0.12), rgba(247, 198, 106, 0.08)),
    rgba(21, 25, 34, 0.88);
}

.battle-scene {
  display: grid;
  gap: 12px;
}

.battle-empty {
  margin: 0;
  color: var(--muted);
}

.battle-arena {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: 260px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(247, 198, 106, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(247, 198, 106, 0.16), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(255, 107, 107, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.25), rgba(8, 10, 16, 0.9)),
    #10141d;
}

.battle-arena::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: 28%;
  left: -20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(247, 198, 106, 0.38), transparent);
  transform: rotate(-6deg);
}

.fighter-card,
.battle-target-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.74);
}

.fighter-card {
  grid-template-columns: 74px 1fr;
  align-items: center;
}

.fighter-card .hp-track,
.fighter-card > small {
  grid-column: 1 / -1;
}

.rival-fighter {
  border-color: rgba(255, 107, 107, 0.28);
}

.fighter-photo {
  width: 74px;
  height: 74px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: #090b10;
}

.fighter-card strong,
.battle-target-card strong,
.battle-move strong {
  display: block;
}

.fighter-card small,
.battle-target-card small,
.battle-move small {
  display: block;
  color: var(--muted);
  line-height: 1.3;
}

.battle-versus {
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(247, 198, 106, 0.56);
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  font-weight: 1000;
}

.hp-track {
  height: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hp-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 240ms ease;
}

.hp-track.danger span {
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.battle-moves,
.battle-targets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.battle-move {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.68);
  color: var(--text);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.battle-move:hover {
  border-color: rgba(247, 198, 106, 0.72);
  background: #202837;
}

.battle-move:active {
  transform: scale(0.98);
}

.battle-move span {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  margin-bottom: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(247, 198, 106, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(247, 198, 106, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-target-card {
  grid-template-columns: 64px 1fr auto;
  align-items: center;
}

.battle-target-card .fighter-photo {
  width: 64px;
  height: 64px;
}

.battle-log {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.battle-log li {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.5);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

.achievement {
  min-height: 64px;
  padding: 12px;
  border: 1px dashed rgba(184, 192, 203, 0.3);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.46);
}

.achievement.unlocked {
  border-style: solid;
  border-color: rgba(247, 198, 106, 0.72);
  background: rgba(247, 198, 106, 0.11);
}

.achievement small {
  display: block;
  margin-top: 4px;
  line-height: 1.32;
}

.story-card p {
  color: var(--muted);
  line-height: 1.5;
}

.quest {
  padding: 12px;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: rgba(247, 198, 106, 0.1);
  font-weight: 800;
}

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

.action-card {
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.action-card:active,
.asset:active,
.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

.action-card:hover,
.asset:hover {
  border-color: rgba(247, 198, 106, 0.72);
  background: #202837;
}

.action-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card small {
  margin-top: 4px;
  color: var(--muted);
}

.trade-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

output {
  min-width: 72px;
  font-weight: 900;
  text-align: right;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(247, 198, 106, 0.18);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.compact {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.loss-screen {
  min-height: 100vh;
  padding: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 107, 0.18), transparent 34rem),
    linear-gradient(180deg, #0b0d12, #151018);
}

.loss-card {
  width: min(760px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 107, 107, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 107, 107, 0.09), transparent),
    rgba(21, 25, 34, 0.94);
  box-shadow: var(--shadow);
}

.loss-card h2 {
  margin-bottom: 10px;
  font-size: 2.3rem;
}

.loss-card p {
  color: var(--muted);
  line-height: 1.5;
}

.loss-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.loss-stats article,
.loss-tips {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.54);
}

.loss-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.loss-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.12rem;
}

.loss-tips ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.loss-tips li {
  margin-top: 5px;
}

.loss-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.feed ul {
  min-height: 170px;
  max-height: 280px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.feed li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  line-height: 1.35;
}

.feed li:first-child {
  border-top: 0;
  color: var(--text);
}

dialog {
  width: min(92vw, 430px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

dialog p {
  color: var(--muted);
  line-height: 1.5;
}

.pulse-win {
  animation: pulseWin 520ms ease;
}

.shake-loss {
  animation: shakeLoss 420ms ease;
}

@media (min-width: 760px) {
  .start-screen {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    padding: 70px 18px 18px;
  }

  .start-copy {
    min-height: 100%;
  }

  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .start-actions {
    position: sticky;
    right: auto;
    bottom: 10px;
    left: auto;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .loss-actions {
    grid-template-columns: 1fr 1fr;
  }

  .game-shell {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 70px 18px 18px;
  }

  .hero-panel,
  .command-bar,
  .player-strip,
  .tab-shell,
  .photo-panel,
  .battle-panel,
  .dashboard,
  .intel-strip,
  .meter-row,
  .strategy-panel,
  .contract-panel,
  .live-market-panel {
    grid-column: 1 / -1;
  }

  .player-strip {
    grid-template-columns: 0.8fr 1.4fr 1fr auto;
    align-items: center;
  }

  .photo-stage {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .spotlight-photo {
    height: 100%;
    min-height: 260px;
  }

  .hero-content {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  h1 {
    max-width: 16ch;
    font-size: 4.4rem;
  }

  .dashboard {
    grid-template-columns: repeat(6, 1fr);
  }

  .intel-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .assets {
    grid-template-columns: repeat(2, 1fr);
  }

  .stock-scoreboard {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .stock-mission-heading {
    grid-template-columns: 1fr auto auto;
  }

  .stock-mission-heading button {
    grid-column: auto;
  }

  .stock-missions {
    grid-template-columns: repeat(3, 1fr);
  }

  .battle-arena {
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    min-height: 300px;
  }

  .battle-versus {
    width: 58px;
    height: 58px;
  }

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

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

  .deal-panel,
  .city-panel,
  .upgrade-panel,
  .objective-panel,
  .boss-panel,
  .rival-panel,
  .battle-panel {
    align-self: start;
  }

  .achievement-panel {
    grid-column: 1 / -1;
  }

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

  .city-map {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .wire-layout {
    grid-template-columns: 0.88fr 1.12fr;
    align-items: stretch;
  }

  .wire-photo {
    height: 100%;
    min-height: 190px;
  }

  .story-card {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .battle-target-card {
    grid-template-columns: 58px 1fr;
  }

  .battle-target-card .fighter-photo {
    width: 58px;
    height: 58px;
  }

  .battle-target-card button {
    grid-column: 1 / -1;
  }

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

  .tab-shell {
    top: 126px;
    min-width: 0;
    overflow: hidden;
  }

  .tab-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tab-button {
    flex: 0 0 92px;
  }

  .command-bar button {
    grid-column: 1 / -1;
  }

  .command-bar strong {
    font-size: 0.78rem;
  }

  .section-title {
    align-items: flex-start;
  }

  .objective {
    grid-template-columns: 1fr;
  }

  .rival-card {
    grid-template-columns: auto 48px 1fr;
  }

  .rival-card > span:last-child {
    grid-column: 2 / -1;
    text-align: left;
  }

  .rival-photo {
    width: 48px;
    height: 48px;
  }

  .objective > span:last-child {
    justify-self: start;
  }
}

@media (min-width: 1040px) {
  .character-card {
    min-height: 204px;
  }

  .hero-panel {
    min-height: 270px;
  }

  .hero-content {
    min-height: 236px;
  }

  #chart {
    height: 220px;
  }

  .feed {
    grid-column: 2;
  }

  .achievement-panel {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes slideTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-84px);
  }
}

@keyframes moonPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes idleBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes tabFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photoFloat {
  0%,
  100% {
    filter: saturate(1) contrast(1);
    transform: translateY(0) scale(1);
  }
  50% {
    filter: saturate(1.12) contrast(1.04);
    transform: translateY(-4px) scale(1.015);
  }
}

@keyframes photoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes floatCoin {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(18deg);
  }
}

@keyframes pulseWin {
  0% {
    box-shadow: 0 0 0 rgba(71, 209, 140, 0);
  }
  50% {
    box-shadow: 0 0 34px rgba(71, 209, 140, 0.48);
  }
  100% {
    box-shadow: 0 0 0 rgba(71, 209, 140, 0);
  }
}

@keyframes shakeLoss {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
