:root {
  --desktop: #6d8fc4;
  --desktop-dark: #243e77;
  --desktop-light: #a8c0e4;
  --panel: #d8e2f1;
  --panel-2: #eef3fb;
  --ink: #101827;
  --muted: #40506a;
  --line: #17264d;
  --shadow: #13244e;
  --green: #4f9a65;
  --green-dark: #1c5d34;
  --red: #b84335;
  --yellow: #efd45b;
  --grey: #a7afbd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 25%, transparent 25% 50%, rgba(0, 0, 0, 0.08) 50% 75%, transparent 75%) 0 0 / 42px 42px,
    radial-gradient(circle at 50% 20%, #b8cef0, var(--desktop) 48%, #466ba8 100%);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.main-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 197, 49, 0.18), transparent 34%),
    linear-gradient(180deg, #07090e 0, #12151d 54%, #050609 100%);
}

.main-menu.hidden {
  display: none;
}

.cover-frame {
  position: relative;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 128px);
  aspect-ratio: 1080 / 1451;
  overflow: hidden;
  border: 3px solid #e2b946;
  border-radius: 4px;
  background: #050609;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.68);
}

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

.demo-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 7px 10px;
  border: 2px solid #f7fbff;
  background: linear-gradient(#f6d764, #b88416);
  color: #101827;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.65);
}

.menu-version-panel {
  position: fixed;
  left: 50%;
  bottom: 92px;
  display: grid;
  gap: 3px;
  width: min(520px, calc(100% - 32px));
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 2px solid #f7fbff;
  border-right-color: #1e315d;
  border-bottom-color: #1e315d;
  background: rgba(13, 26, 48, 0.92);
  color: #f8fbff;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.menu-version-panel strong {
  font-size: 0.96rem;
  text-transform: uppercase;
}

.menu-version-panel span,
.menu-version-panel small {
  display: block;
  color: #dbe8ff;
}

.menu-version-panel small {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.menu-actions {
  position: fixed;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
}

.menu-button,
.quickbar button,
.module-button,
.classic-button,
.tile-button,
.action-button,
.shop-card button,
.offer-card button {
  border: 2px solid #f7fbff;
  border-right-color: #1e315d;
  border-bottom-color: #1e315d;
  border-radius: 0;
  background: linear-gradient(#f7fbff, #9aa9c1);
  color: #14203c;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(12, 26, 60, 0.55);
}

.menu-button {
  flex: 1;
  min-height: 52px;
  font-size: 1rem;
}

.menu-button.primary,
.module-button.active,
.tile-button.active {
  background: linear-gradient(#fff5a9, #d4a923);
  color: #111;
}

.career-setup {
  display: grid;
  gap: 10px;
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
}

.setup-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.setup-tabs span {
  padding: 8px 12px;
  border: 2px solid #f7fbff;
  border-right-color: #1e315d;
  border-bottom-color: #1e315d;
  background: linear-gradient(#314c80, #16254e);
  color: #dbe8ff;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.setup-tabs span.active {
  background: linear-gradient(#fff5a9, #d4a923);
  color: #111;
}

.setup-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 3px solid #e2b946;
  background:
    linear-gradient(180deg, rgba(16, 28, 59, 0.94), rgba(9, 13, 25, 0.94)),
    #101c3b;
  color: #edf5ff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.68);
}

.setup-copy {
  text-align: center;
}

.setup-copy h1,
.name-card h1,
.newspaper-caption h1 {
  margin: 2px 0 8px;
  color: #fff5a9;
  font-family: "Courier New", monospace;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000;
}

.setup-copy p,
.name-card p,
.newspaper-caption p {
  margin: 0;
  color: #d9e9ff;
}

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

.avatar-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 3px solid #17264d;
  border-right-color: #050914;
  border-bottom-color: #050914;
  background: linear-gradient(#dbe9ff, #8ea7cb);
  color: #102043;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
}

.avatar-card.selected {
  border-color: #fff5a9;
  background: linear-gradient(#fff5a9, #d4a923);
}

.avatar-card img {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid #080d1c;
  object-fit: cover;
  image-rendering: pixelated;
}

.avatar-card strong,
.avatar-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-card strong {
  font-size: 0.92rem;
  text-transform: uppercase;
}

.avatar-card span {
  font-size: 0.76rem;
}

.setup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.setup-actions .menu-button {
  flex: 0 1 230px;
}

.name-card {
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 14px;
  border: 3px solid #b98442;
  background: rgba(13, 20, 39, 0.88);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
}

.name-card img {
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid #050914;
  object-fit: cover;
  image-rendering: pixelated;
}

.name-input {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 3px solid #17264d;
  background: #f7fbff;
  color: #101827;
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 3px 3px 0 rgba(0,0,0,0.18);
}

.newspaper-intro {
  position: relative;
  overflow: hidden;
  width: min(1120px, calc(100vw - 28px));
  aspect-ratio: 16 / 9;
  border: 3px solid #e2b946;
  background: #101c3b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.68);
}

.newspaper-intro img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.newspaper-caption {
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: min(430px, 44%);
  padding: 14px;
  border: 3px solid #b98442;
  background: rgba(19, 20, 27, 0.92);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.65);
}

.newspaper-caption .setup-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.newspaper-caption .menu-button {
  min-height: 42px;
  font-size: 0.78rem;
}

.city-map-hub {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  height: auto;
  min-height: 0;
  align-content: start;
  align-items: start;
  justify-items: center;
  padding: 0;
}

.map-view .city-map-hub {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  place-items: center;
}

.city-map-stage {
  position: relative;
  overflow: hidden;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  border: 4px solid #17264d;
  background: #17264d url("assets/city-map-pixel.png") center / cover no-repeat;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}

.city-map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.14), inset 0 0 75px rgba(0,0,0,0.28);
}

.city-hotspot {
  position: absolute;
  z-index: 7;
  display: block;
  min-width: 62px;
  min-height: 48px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid transparent;
  background: rgba(255, 223, 77, 0.01);
  color: #fff7c5;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 #000;
  box-shadow: none;
}

.map-view .city-hotspot {
  min-width: 70px;
  min-height: 54px;
}

.city-hotspot:hover,
.city-hotspot.selected {
  outline: 3px solid rgba(255, 223, 77, 0.95);
  outline-offset: -3px;
  background: rgba(255, 223, 77, 0.15);
  color: #fff;
}

.city-hotspot.current {
  border-color: rgba(255, 223, 77, 0.95);
  background: rgba(255, 223, 77, 0.1);
}

.hotspot-marker {
  position: absolute;
  left: 50%;
  bottom: -12px;
  display: none;
  min-width: 54px;
  padding: 2px 6px;
  transform: translateX(-50%);
  border: 2px solid #fff0a8;
  background: rgba(13, 20, 39, 0.92);
  color: #fff7c5;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.map-view .hotspot-marker {
  bottom: -15px;
  min-width: 68px;
  height: 31px;
  padding: 4px 7px;
  font-size: 0.72rem;
}

.city-hotspot:hover .hotspot-marker,
.city-hotspot.selected .hotspot-marker,
.city-hotspot.current .hotspot-marker {
  display: block;
}

.city-hotspot.current .hotspot-marker {
  background: rgba(80, 43, 14, 0.95);
  color: #ffdf4d;
}

.map-player {
  position: absolute;
  z-index: 8;
  --player-frame-w: 54px;
  --player-frame-h: 76px;
  --map-walk-duration: 860ms;
  width: var(--player-frame-w);
  height: var(--player-frame-h);
  pointer-events: none;
  transform: translate(-50%, -100%);
  transform-origin: center bottom;
  transition: left var(--map-walk-duration) linear, top var(--map-walk-duration) linear;
}

.map-view .map-player {
  --player-frame-w: 64px;
  --player-frame-h: 90px;
}

.city-player {
  filter: drop-shadow(3px 4px 0 rgba(0,0,0,0.6));
}

.map-player.facing-left {
  transform: translate(-50%, -100%) scaleX(-1);
}

.map-player-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("assets/player/FLS_animation_pixelart_01.png");
  background-repeat: no-repeat;
  background-size: calc(var(--player-frame-w) * 6) calc(var(--player-frame-h) * 2);
  background-position: calc(var(--player-frame-w) * -4) 0;
  image-rendering: pixelated;
}

.map-player.idle.down .map-player-frame {
  background-position: calc(var(--player-frame-w) * -4) 0;
}

.map-player.idle.side .map-player-frame {
  background-position: calc(var(--player-frame-w) * -4) calc(var(--player-frame-h) * -1);
}

.map-player.walking.down .map-player-frame {
  animation: playerWalkDown 0.66s steps(4) infinite;
}

.map-player.walking.side .map-player-frame {
  animation: playerWalkSide 0.66s steps(4) infinite;
}

@keyframes playerWalkDown {
  from { background-position: 0 0; }
  to { background-position: calc(var(--player-frame-w) * -4) 0; }
}

@keyframes playerWalkSide {
  from { background-position: 0 calc(var(--player-frame-h) * -1); }
  to { background-position: calc(var(--player-frame-w) * -4) calc(var(--player-frame-h) * -1); }
}

.city-action-dock {
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(190px, 0.9fr) minmax(260px, 1.25fr);
  gap: 8px;
  width: min(100%, 1180px);
  min-height: 96px;
  padding: 8px;
  border: 3px solid #b98442;
  background: rgba(19, 20, 27, 0.94);
  color: #f8f0c6;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
}

.map-view .city-action-dock h3 {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.map-view .city-action-dock p,
.map-view .dock-objective span {
  font-size: 0.72rem;
}

.map-view .dock-objective {
  padding: 5px;
}

.map-view .dock-objective strong {
  font-size: 0.84rem;
}

.map-view .city-action-dock .classic-button {
  min-height: 32px;
  font-size: 0.7rem;
  padding: 4px 5px;
}

.city-action-dock .label,
.city-action-dock p {
  color: #f1dc8a;
}

.city-action-dock h3 {
  margin: 2px 0 8px;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1;
}

.city-action-dock p,
.dock-objective span {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.18;
}

.dock-location,
.dock-objective {
  min-width: 0;
}

.dock-objective {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 6px;
  border: 2px solid rgba(255, 240, 168, 0.28);
  background: rgba(255, 240, 168, 0.1);
}

.dock-objective strong {
  color: #ffdf4d;
  font-size: 0.92rem;
  line-height: 1.1;
}

.city-action-dock .location-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: center;
}

.city-action-dock .classic-button {
  min-height: 34px;
  font-size: 0.75rem;
}

.context-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0 2px;
  padding: 6px 8px;
  border: 2px solid rgba(255, 240, 168, 0.45);
  background: rgba(255, 240, 168, 0.12);
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.context-status strong {
  color: #ffdf4d;
  white-space: nowrap;
}

.map-player-panel {
  position: absolute;
  left: 1.1%;
  top: 1.6%;
  z-index: 10;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 9px;
  width: 220px;
  padding: 7px;
  border: 3px solid #b98442;
  background: rgba(19, 20, 27, 0.92);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
  font-family: "Courier New", monospace;
  overflow: hidden;
  pointer-events: none;
}

.loop-objective {
  position: absolute;
  right: 1.2%;
  top: 1.4%;
  z-index: 10;
  pointer-events: none;
  width: min(300px, 32%);
  padding: 8px;
  border: 3px solid #b98442;
  background: rgba(19, 20, 27, 0.92);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
  font-family: "Courier New", monospace;
}

.loop-objective strong {
  display: block;
  margin: 3px 0 6px;
  color: #fff7c5;
  font-size: 0.76rem;
  line-height: 1.15;
}

.loop-objective p {
  margin: 6px 0 0;
  color: #f1dc8a;
  font-size: 0.62rem;
  line-height: 1.2;
}

.loop-objective .tag-row {
  gap: 4px;
}

.loop-objective .tag {
  padding: 2px 5px;
  font-size: 0.54rem;
}

.map-player-panel h3,
.map-player-panel strong,
.map-player-panel span {
  display: block;
  margin: 0;
  line-height: 1.08;
}

.map-player-panel h3 {
  color: #fff7c5;
  font-size: 0.74rem;
}

.map-player-panel strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-player-panel span {
  color: #e7f1ff;
  font-size: 0.58rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portrait-pixel {
  overflow: hidden;
  width: 64px;
  height: 64px;
  border: 3px solid #060912;
  background:
    linear-gradient(#5c3424 0 26%, transparent 26%),
    linear-gradient(90deg, transparent 26%, #8b552f 26% 74%, transparent 74%) 0 16px / 100% 18px no-repeat,
    linear-gradient(90deg, transparent 18%, #1f57a9 18% 82%, transparent 82%) 0 36px / 100% 18px no-repeat,
    #7890bf;
}

.portrait-pixel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.map-help,
.map-legend {
  position: absolute;
  z-index: 4;
  left: 1.2%;
  padding: 8px;
  border: 3px solid #b98442;
  background: rgba(19, 20, 27, 0.9);
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.15;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.55);
}

.map-help {
  top: 18%;
  width: 180px;
}

.map-help strong,
.map-help span {
  display: block;
}

.map-help strong {
  color: #fff7c5;
  margin-bottom: 4px;
}

.map-legend {
  bottom: 2%;
  width: 210px;
}

.map-legend span,
.map-legend b {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.map-legend span {
  width: 20px;
  height: 4px;
  border-top: 4px dashed #ffe24a;
}

.map-legend b {
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 999px;
}

.walk-path {
  position: absolute;
  z-index: 2;
  left: 48%;
  top: 54%;
  width: 25%;
  border-top: 7px dashed #ffe24a;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.72));
  pointer-events: none;
}

.walk-path.to-home { left: 14%; top: 75%; width: 32%; transform: rotate(168deg); }
.walk-path.to-gym { left: 20%; top: 28%; width: 22%; transform: rotate(115deg); }
.walk-path.to-stadium { left: 42%; top: 42%; width: 18%; transform: rotate(278deg); }
.walk-path.to-dealer { left: 63%; top: 34%; width: 20%; transform: rotate(330deg); }
.walk-path.to-travel { left: 75%; top: 33%; width: 16%; transform: rotate(4deg); }
.walk-path.to-bookstore { left: 29%; top: 52%; width: 20%; transform: rotate(180deg); }
.walk-path.to-furniture { left: 52%; top: 52%; width: 22%; transform: rotate(358deg); }
.walk-path.to-restaurant { left: 25%; top: 75%; width: 22%; transform: rotate(145deg); }
.walk-path.to-clothes { left: 42%; top: 69%; width: 12%; transform: rotate(115deg); }
.walk-path.to-bank { left: 53%; top: 68%; width: 12%; transform: rotate(50deg); }
.walk-path.to-clinic { left: 60%; top: 70%; width: 18%; transform: rotate(22deg); }
.walk-path.to-agency { left: 75%; top: 67%; width: 16%; transform: rotate(355deg); }

.location-panel,
.location-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.visual-card {
  text-align: center;
}

.pixel-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 78px;
  margin: 0 auto 8px;
  border: 3px solid #17264d;
  background: linear-gradient(#a9d7ff 0 48%, #6fb96f 48%);
}

.pixel-preview span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 42px;
  border: 3px solid #17264d;
  background: #fff4a6;
  font-weight: 900;
}

.item-preview {
  position: relative;
  width: 100%;
  height: 62px;
  border: 2px solid #17264d;
  background: linear-gradient(#dbe9ff, #99b7dc);
}

.item-preview span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
}

.item-preview.car span {
  width: 82px;
  height: 28px;
  border: 3px solid #111;
  background: #d93628;
}

.item-preview.moto span {
  width: 68px;
  height: 22px;
  border: 3px solid #111;
  background: #2f77d0;
}

.item-preview.house span {
  width: 70px;
  height: 44px;
  border: 3px solid #111;
  background: linear-gradient(135deg, #c96b45 0 35%, #fff1c4 35%);
}

.item-preview.furniture span {
  width: 74px;
  height: 28px;
  border: 3px solid #111;
  background: #bd674d;
}

.item-preview.tech span {
  width: 56px;
  height: 36px;
  border: 3px solid #111;
  background: #273447;
}

.item-preview.training span {
  width: 54px;
  height: 36px;
  border: 3px solid #111;
  background: #62aa68;
}

.classic-shell {
  display: grid;
  grid-template-rows: 52px 104px minmax(0, 1fr) 42px;
  gap: 8px;
  width: min(1360px, calc(100vw - 10px));
  height: 100vh;
  margin: 0 auto;
  padding: 5px 0;
}

.scoreboard {
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border: 2px solid #dceafe;
  border-right-color: #12245b;
  border-bottom-color: #12245b;
  background: linear-gradient(90deg, #18417f, #e9f2ff 48%, #18417f);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.club-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 10px;
  color: #fff;
}

.club-strip.right {
  justify-content: end;
  text-align: right;
}

.club-strip strong,
.club-strip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-strip span {
  color: #d9e9ff;
  font-size: 0.82rem;
}

.tiny-kit {
  flex: 0 0 32px;
  width: 32px;
  height: 38px;
  border: 2px solid #0d1834;
  background: repeating-linear-gradient(90deg, #f5f5f5 0 8px, #2f77d0 8px 16px);
}

.away-kit {
  background: repeating-linear-gradient(90deg, #e33434 0 8px, #f5f5f5 8px 16px);
}

.date-box {
  justify-self: center;
  min-width: 96px;
  padding: 6px;
  border: 2px solid #17264d;
  background: #fff;
  color: #111;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.date-box span {
  display: block;
  margin-top: 4px;
  color: #24406d;
  font-size: 0.52rem;
  line-height: 1;
  text-transform: uppercase;
}

.fixed-data {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  min-height: 104px;
  padding: 6px;
  border: 2px solid #dceafe;
  border-right-color: #12245b;
  border-bottom-color: #12245b;
  background: rgba(232, 241, 255, 0.88);
}

.data-cell,
.info-card,
.offer-card,
.shop-card,
.news-card {
  min-width: 0;
  border: 2px solid #ffffff;
  border-right-color: #64718d;
  border-bottom-color: #64718d;
  background: linear-gradient(#ffffff, #c9d6e8);
  padding: 5px 8px;
}

.data-cell .label,
.label {
  display: block;
  margin: 0 0 3px;
  color: #41516c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.data-cell strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.classic-desktop {
  grid-row: 3;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 260px;
  gap: 8px;
  min-height: 0;
}

.map-view .classic-shell {
  grid-template-rows: 44px 0 minmax(0, 1fr) 34px;
  gap: 4px;
  width: min(1440px, calc(100vw - 6px));
  padding: 3px 0;
}

.map-view .scoreboard {
  min-height: 44px;
}

.map-view .club-strip {
  padding: 3px 8px;
}

.map-view .tiny-kit {
  flex-basis: 26px;
  width: 26px;
  height: 32px;
}

.map-view .date-box {
  min-width: 82px;
  padding: 4px;
  font-size: 0.72rem;
}

.map-view .fixed-data {
  display: grid;
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.map-view .data-cell {
  padding: 4px 6px;
}

.map-view .data-cell .label {
  margin-bottom: 2px;
  font-size: 0.58rem;
}

.map-view .data-cell strong {
  font-size: 0.76rem;
  line-height: 1.04;
}

.map-view .fixed-data .data-cell:nth-child(n+7) {
  display: none;
}

.map-view .classic-desktop {
  grid-template-columns: minmax(0, 1fr);
}

.map-view .left-stack,
.map-view .right-stack {
  display: none;
}

.map-view .module-menu {
  padding: 6px;
}

.map-view .module-button {
  grid-template-columns: 28px 1fr;
  min-height: 44px;
  font-size: 0.78rem;
  padding: 4px 6px;
}

.map-view .module-button .icon {
  width: 28px;
  height: 28px;
}

.map-view .window-title {
  min-height: 34px;
  padding: 3px 7px;
}

.map-view .window-title h1 {
  font-size: 1rem;
}

.map-view .window-title .label {
  font-size: 0.58rem;
  margin-bottom: 1px;
}

.map-view .section-tools select {
  min-height: 26px;
  font-size: 0.82rem;
}

.map-view .window-body {
  overflow: hidden;
  padding: 3px;
}

.map-view .quickbar {
  gap: 5px;
  min-height: 34px;
  padding: 2px;
}

.map-view .quickbar button {
  min-height: 26px;
  font-size: 0.76rem;
}

.map-view .city-map-stage {
  width: min(100%, calc((100vh - 122px) * 1.777));
  max-width: 1440px;
}

.map-view .city-action-dock {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  width: auto;
  max-width: none;
  min-height: 74px;
  padding: 6px;
  background: rgba(19, 20, 27, 0.9);
  backdrop-filter: blur(1px);
}

.left-stack,
.right-stack,
.main-window {
  min-height: 0;
}

.module-menu {
  display: grid;
  gap: 7px;
  height: 100%;
  padding: 8px;
  border: 2px solid #dceafe;
  border-right-color: #12245b;
  border-bottom-color: #12245b;
  background: linear-gradient(#315a9f, #172f6d);
}

.module-button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  padding: 5px 8px;
  font-size: 0.84rem;
  text-align: left;
}

.module-button .icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #24345e;
  background: #dceafe;
  font-size: 1.05rem;
}

.main-window,
.side-window {
  border: 2px solid #dceafe;
  border-right-color: #12245b;
  border-bottom-color: #12245b;
  background: rgba(227, 238, 255, 0.9);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.main-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.window-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border-bottom: 2px solid #20386d;
  background: linear-gradient(90deg, #b2c6e8, #eef5ff);
}

.window-title h1,
.side-window h2 {
  margin: 0;
  color: #17264d;
  font-size: 1.15rem;
}

.window-body {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.right-stack {
  display: grid;
  grid-template-rows: 205px minmax(0, 1fr);
  gap: 8px;
}

.side-window {
  position: relative;
  overflow: hidden;
  padding: 10px 10px 10px 24px;
}

.side-window.grow {
  min-height: 0;
}

.vertical-title {
  position: absolute;
  left: 3px;
  top: 10px;
  writing-mode: vertical-rl;
  margin: 0;
  color: #13244e;
  font-size: 0.74rem;
  font-weight: 900;
  text-orientation: mixed;
  text-transform: uppercase;
}

.quickbar {
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  min-height: 42px;
  padding: 4px;
  border: 2px solid #dceafe;
  border-right-color: #12245b;
  border-bottom-color: #12245b;
  background: linear-gradient(90deg, #132b72, #254a99);
}

.quickbar button {
  min-height: 30px;
  font-size: 0.82rem;
}

.grid-two,
.grid-three,
.grid-four,
.tile-grid {
  display: grid;
  gap: 8px;
}

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

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

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

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

.tile-button {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 8px;
  text-align: left;
}

.tile-button .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #17264d;
  background: #eaf2ff;
  font-size: 1.35rem;
}

.tile-button span,
.classic-button span {
  display: block;
  color: #40506a;
  font-size: 0.75rem;
  text-transform: none;
}

.info-card h3,
.offer-card h3,
.shop-card h3,
.news-card h3 {
  margin: 0 0 6px;
  color: #17264d;
  font-size: 1rem;
}

.info-card p,
.offer-card p,
.shop-card p,
.news-card p {
  margin: 0;
  color: #40506a;
  font-size: 0.86rem;
  line-height: 1.28;
}

.tag-row,
.offer-actions,
.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.offer-actions,
.match-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid #8ea0bd;
  background: #edf3ff;
  color: #17264d;
  font-size: 0.76rem;
  font-weight: 900;
}

.tag.good {
  background: #dff1df;
  color: #15562d;
}

.tag.warn {
  background: #fff0b9;
  color: #73500f;
}

.tag.bad {
  background: #ffd9d2;
  color: #832d22;
}

.action-button,
.classic-button,
.shop-card button,
.offer-card button {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.action-button.green,
.offer-card button.accept {
  background: linear-gradient(#c9f1cf, #4f9a65);
}

.action-button.red,
.offer-card button.reject {
  background: linear-gradient(#ffd3cc, #b84335);
  color: #fff;
}

.career-control {
  display: grid;
  gap: 8px;
}

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

.compact-career-tabs .tile-button {
  grid-template-columns: 30px 1fr;
  min-height: 46px;
  padding: 5px;
  font-size: 0.76rem;
}

.compact-career-tabs .tile-button .icon {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

.compact-career-tabs .tile-button span:not(.icon) {
  display: none;
}

.career-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 10px;
  align-items: stretch;
  border: 3px solid #ffffff;
  border-right-color: #17264d;
  border-bottom-color: #17264d;
  background: linear-gradient(90deg, #132b72, #254f93);
  color: #f8fbff;
  padding: 10px;
}

.career-hero-panel .label,
.career-hero-panel p {
  color: #dfeeff;
}

.career-hero-panel h2 {
  margin: 2px 0 5px;
  font-size: 1.15rem;
  color: #ffffff;
}

.career-progress-card {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
  border: 2px solid #ffffff;
  border-right-color: #0f1f4c;
  border-bottom-color: #0f1f4c;
  background: rgba(229, 240, 255, 0.16);
}

.career-progress-card strong {
  font-size: 1.1rem;
}

.season-node-line {
  display: grid;
  grid-template-columns: repeat(19, 1fr);
  gap: 3px;
}

.season-node {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #e8f2ff;
  background: #e6edf8;
  color: #17264d;
  font-size: 0.55rem;
  font-weight: 900;
}

.season-node.played {
  background: #57a86d;
  color: #ffffff;
}

.season-node.current {
  background: #f1d057;
  color: #111111;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}

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

.career-next-card,
.career-state-card,
.career-role-card,
.career-event-card {
  min-height: 0;
}

.career-next-card {
  grid-column: span 2;
}

.career-event-card {
  grid-column: span 2;
}

.career-grid.lower {
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
}

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

.weekly-action,
.season-event-choice {
  display: grid;
  gap: 3px;
  min-height: 50px;
  padding: 6px;
  text-align: left;
  font-size: 0.76rem;
}

.weekly-action span,
.season-event-choice span {
  color: #40506a;
  font-size: 0.66rem;
  line-height: 1.15;
}

.meter-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
  font-size: 0.76rem;
  font-weight: 900;
}

.meter {
  height: 12px;
  border: 2px solid #17264d;
  background: #d4dceb;
}

.meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #50aa64, #e9c64f);
}

.meter-row.danger .meter i {
  background: linear-gradient(90deg, #e9c64f, #c74737);
}

.role-badge {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  margin-bottom: 6px;
  padding: 0 12px;
  border: 2px solid #17264d;
  background: linear-gradient(#fff2b3, #d9aa2f);
  color: #17264d;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-summary,
.career-week-event,
.career-event-empty {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #9baac2;
  background: rgba(248, 251, 255, 0.86);
}

.career-event-empty {
  display: grid;
  gap: 5px;
  color: #40506a;
}

.season-event-choices {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.summary-event {
  margin-top: 6px !important;
  font-weight: 900;
}

.season-calendar-list {
  display: grid;
  gap: 4px;
  max-height: 330px;
  overflow: auto;
  padding-right: 2px;
}

.season-calendar-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 88px;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid #9baac2;
  background: #f8fbff;
  font-size: 0.74rem;
}

.season-calendar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.season-calendar-row em {
  color: #40506a;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.season-calendar-row.played {
  background: #e2f2e2;
}

.season-calendar-row.current {
  border-color: #17264d;
  background: #fff1a8;
  box-shadow: inset 4px 0 0 #c74737;
}

.event-log {
  display: grid;
  gap: 7px;
  max-height: calc(100% - 28px);
  overflow: auto;
  margin: 8px 0 0;
  padding-left: 18px;
}

.event-log li {
  padding: 6px;
  border: 1px solid #9baac2;
  background: #f8fbff;
  font-size: 0.8rem;
  line-height: 1.22;
}

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

.shop-card {
  display: grid;
  gap: 7px;
}

.shop-card.owned {
  background: linear-gradient(#f7fff8, #bfdfc5);
}

.shop-view .classic-desktop {
  grid-template-columns: 150px minmax(0, 1fr);
}

.shop-view .classic-shell {
  grid-template-rows: 52px 0 minmax(0, 1fr) 42px;
}

.shop-view .fixed-data {
  min-height: 0;
  height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  visibility: hidden;
}

.shop-view .right-stack {
  display: none;
}

.shop-view .window-title {
  display: none;
}

.shop-view .window-body {
  overflow: hidden;
  padding: 8px;
}

.shop-mode {
  position: relative;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr) 118px;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 8px;
  border: 4px solid #1a2232;
  border-top-color: #fff0c7;
  border-left-color: #fff0c7;
  background:
    linear-gradient(180deg, #f0eadc, #cfc4ad),
    #ded4c2;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.45);
}

.shop-mode-header {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  min-height: 52px;
  border: 3px solid #0b1b33;
  border-top-color: #70a2dd;
  border-left-color: #70a2dd;
  background: linear-gradient(#2d72ad, #174979);
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.22);
}

.shop-mode-header h2 {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 1.85rem;
  line-height: 1;
  text-align: center;
  text-shadow: 3px 3px 0 #08213a;
}

.shop-close,
.shop-arrow,
.shop-side-arrow {
  display: grid;
  place-items: center;
  border: 3px solid #0b1b33;
  border-top-color: #d8ecff;
  border-left-color: #d8ecff;
  border-radius: 0;
  background: linear-gradient(#e25544, #a82521);
  color: #fff;
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-shadow: 2px 2px 0 #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.42);
}

.shop-close {
  justify-self: center;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
}

.shop-arrow {
  justify-self: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(#7696b5, #344d68);
}

.shop-mode-body {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  min-height: 0;
}

.shop-side-arrow {
  width: 48px;
  height: 76px;
  background: linear-gradient(#7696b5, #344d68);
  font-size: 1.45rem;
}

.shop-arrow:disabled,
.shop-side-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.visual-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(118px, 1fr);
  gap: 8px;
  min-height: 0;
}

.visual-product-card {
  display: grid;
  grid-template-rows: 22px minmax(0, 1fr) 28px;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 6px;
  border: 3px solid #756f65;
  border-top-color: #fff6df;
  border-left-color: #fff6df;
  background: linear-gradient(#eee3d0, #c6bba8);
  color: #17110c;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  text-align: center;
}

.visual-product-card.selected {
  outline: 4px solid #f0c338;
  background: linear-gradient(#fff0b5, #d0b05a);
}

.visual-product-card.owned {
  background: linear-gradient(#e5ffe5, #a6cfa9);
}

.visual-product-card strong {
  overflow: hidden;
  color: #15110c;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-image {
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 2px solid #3c382e;
  background: #c9d6e8;
  object-fit: contain;
  image-rendering: pixelated;
}

.visual-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  color: #15110c;
  font-family: "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 900;
}

.visual-price::before,
.shop-detail-price strong::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #1a6128;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #dbff6e, #43b83e 60%, #156928);
  box-shadow: 1px 1px 0 #000;
}

.shop-detail-panel {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 160px 200px;
  gap: 10px;
  align-items: center;
  min-height: 0;
  padding: 8px;
  border: 3px solid #756f65;
  border-top-color: #fff6df;
  border-left-color: #fff6df;
  background: linear-gradient(#efe8da, #d0c6b5);
}

.shop-detail-media {
  height: 92px;
  min-width: 0;
}

.shop-detail-copy {
  min-width: 0;
}

.shop-detail-copy h3 {
  margin: 0 0 4px;
  color: #15110c;
  font-family: "Courier New", monospace;
  font-size: 1.15rem;
}

.shop-detail-copy p {
  margin: 0;
  color: #342d24;
  font-size: 0.82rem;
  line-height: 1.18;
}

.shop-detail-price {
  display: grid;
  gap: 5px;
  padding-left: 10px;
  border-left: 2px solid #81776a;
  color: #17110c;
}

.shop-detail-price span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-detail-price strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Courier New", monospace;
  font-size: 1.18rem;
}

.shop-buy-button {
  min-height: 76px;
  border: 4px solid #33220a;
  border-top-color: #ffeaa0;
  border-left-color: #ffeaa0;
  background: linear-gradient(#ffd95a, #f29d20);
  color: #2a1700;
  font-family: "Courier New", monospace;
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.45);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
}

.shop-buy-button:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 980px) {
  .shop-mode {
    grid-template-rows: 48px minmax(0, 1fr) 160px;
  }

  .shop-mode-header h2 {
    font-size: 1.35rem;
  }

  .visual-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(104px, 1fr);
  }

  .shop-detail-panel {
    grid-template-columns: 88px minmax(0, 1fr) 132px;
    grid-template-rows: auto auto;
  }

  .shop-buy-button {
    grid-column: 1 / -1;
    min-height: 48px;
    font-size: 1.2rem;
  }

  .shop-detail-media {
    height: 76px;
  }
}

.item-preview.image {
  height: 96px;
}

.item-preview.image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.progress {
  overflow: hidden;
  height: 12px;
  margin-top: 5px;
  border: 2px solid #17264d;
  background: #d4dceb;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #50aa64, #e9c64f);
}

.fixture-list {
  display: grid;
  gap: 6px;
}

.press-journal {
  margin-top: 8px;
}

.journal-header,
.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.journal-header h2 {
  margin: 0;
  color: #17264d;
  font-size: 1.25rem;
}

.featured-news {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 3px solid #ffffff;
  border-right-color: #17264d;
  border-bottom-color: #17264d;
  background: linear-gradient(#fff6d6, #d6e4f4);
}

.news-avatar,
.news-thumb {
  flex: 0 0 auto;
  border: 2px solid #17264d;
  background: #f7f2df;
  object-fit: cover;
  image-rendering: pixelated;
}

.news-avatar {
  width: 74px;
  height: 74px;
}

.news-thumb {
  width: 42px;
  height: 42px;
}

.news-category {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 6px;
  border: 1px solid #17264d;
  background: #f1d84b;
  color: #17264d;
  font-size: 0.68rem;
  font-weight: 900;
}

.featured-news h3 {
  margin: 0 0 4px;
  color: #111a33;
  font-size: 1.25rem;
}

.featured-news p,
.featured-news strong,
.news-meta {
  margin: 0 0 6px;
}

.news-meta {
  color: #52617a;
  font-size: 0.74rem;
  font-weight: 700;
}

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

.rich-news-card h3 {
  margin: 0;
  font-size: 0.94rem;
}

.interview-panel blockquote {
  margin: 8px 0;
  padding: 8px;
  border-left: 4px solid #17264d;
  background: rgba(255, 255, 255, 0.5);
  color: #17264d;
  font-weight: 800;
}

.interview-options {
  display: grid;
  gap: 6px;
}

.interview-option {
  min-height: 52px;
  border: 2px solid #ffffff;
  border-right-color: #17264d;
  border-bottom-color: #17264d;
  background: linear-gradient(#ffffff, #bfd0e8);
  color: #17264d;
  text-align: left;
  cursor: pointer;
}

.interview-option strong,
.interview-option span {
  display: block;
}

.interview-option span {
  margin-top: 3px;
  color: #52617a;
  font-size: 0.72rem;
}

.fixture-row {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #92a3bf;
  background: #f7fbff;
  font-size: 0.84rem;
}

.match-result {
  min-height: 96px;
  padding: 8px;
  border: 2px solid #17264d;
  background: #0d162d;
  color: #f7fbff;
  font-family: "Courier New", monospace;
  white-space: pre-wrap;
}

.location-scene-overlay,
.matchday-overlay {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 22, 0.58);
  padding: 18px;
}

.location-scene-overlay {
  z-index: 50;
  background: rgba(4, 8, 18, 0.72);
}

.save-overlay {
  position: fixed;
  inset: 0;
  z-index: 56;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 11, 22, 0.66);
}

.save-overlay.hidden {
  display: none;
}

.location-scene-overlay.hidden {
  display: none;
}

.save-modal {
  width: min(1040px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 4px solid #10172b;
  background: #dbe6f4;
  box-shadow: 0 0 0 4px #f7fbff, 10px 10px 0 rgba(0, 0, 0, 0.45);
}

.save-modal.compact {
  width: min(620px, calc(100vw - 36px));
}

.save-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-bottom: 4px solid #10172b;
  background: linear-gradient(#2f6298, #172f64);
  color: #fff;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #10172b;
}

.save-modal-header h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 2.2rem);
}

.save-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 42px;
  height: 42px;
  border: 3px solid #10172b;
  background: #c73730;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.35), 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.save-name-field {
  display: grid;
  gap: 6px;
  margin: 14px;
  color: #17264d;
  font-weight: 800;
  text-transform: uppercase;
}

.save-name-field input {
  min-height: 40px;
  border: 3px solid #17264d;
  padding: 8px 10px;
  background: #f7fbff;
  font: inherit;
}

.save-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.save-slot {
  display: grid;
  gap: 8px;
  min-height: 190px;
  border: 3px solid #17264d;
  padding: 10px;
  background: linear-gradient(180deg, #f7fbff, #c8d7e8);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), 4px 4px 0 rgba(23, 38, 77, 0.32);
}

.save-slot.active {
  border-color: #c99a13;
  background: linear-gradient(180deg, #fff7c6, #d9c34b);
}

.save-slot.empty {
  align-content: center;
  text-align: center;
  color: #41506f;
}

.save-slot h3,
.save-slot p {
  margin: 0;
}

.save-slot-top {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 9px;
  align-items: center;
}

.save-slot-top img {
  width: 58px;
  height: 58px;
  border: 3px solid #10172b;
  object-fit: cover;
  background: #10172b;
  image-rendering: pixelated;
}

.save-slot dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
}

.save-slot dl div {
  min-width: 0;
  border: 2px solid #7f91ad;
  padding: 4px;
  background: rgba(255, 255, 255, 0.62);
}

.save-slot dt {
  font-size: 0.62rem;
  color: #41506f;
  text-transform: uppercase;
}

.save-slot dd {
  margin: 0;
  font-size: 0.72rem;
  color: #10172b;
}

.save-date {
  font-size: 0.72rem;
  color: #41506f;
}

.save-slot-actions,
.save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.save-slot button,
.save-actions button {
  min-height: 38px;
  border: 3px solid #10172b;
  padding: 7px 10px;
  background: linear-gradient(#f7fbff, #b4c3d8);
  color: #10172b;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}

.save-slot button.primary,
.save-actions button.primary {
  background: linear-gradient(#ffe870, #d9a11b);
}

.save-actions button.danger,
.save-slot button.danger {
  background: linear-gradient(#e87062, #b4332f);
  color: #fff;
}

.location-scene-modal {
  position: relative;
  width: min(70vw, 980px);
  min-width: 560px;
  overflow: hidden;
  border: 4px solid #10172b;
  background: #10172b;
  color: #f8f0c6;
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.35), 0 0 0 4px #d4d0c7;
  animation: matchday-pop 160ms ease-out;
}

.location-scene-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-bottom: 4px solid #10172b;
}

.location-scene-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.location-scene-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(#18243a, #0b1220);
  color: #f8f0c6;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #05080d;
}

.location-scene-title {
  position: absolute;
  left: 14px;
  top: 12px;
  max-width: calc(100% - 84px);
  padding: 8px 12px;
  border: 3px solid #b98442;
  background: rgba(11, 15, 26, 0.86);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.location-scene-title span {
  display: block;
  margin-bottom: 2px;
  color: #f1dc8a;
  font-size: 0.65rem;
}

.location-scene-title h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  line-height: 1;
  text-shadow: 2px 2px 0 #10172b;
}

.location-scene-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 3px solid #10172b;
  background: #c73730;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.35), 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.location-scene-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.45fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px 14px;
  background: linear-gradient(#1d314e, #0e1727);
}

.location-scene-footer p {
  margin: 0;
  color: #f8f0c6;
  font-size: 0.88rem;
  line-height: 1.28;
}

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

.location-scene-actions button {
  min-height: 44px;
  border: 3px solid #10172b;
  background: linear-gradient(#4e6f96, #244363);
  color: #fff;
  text-shadow: 2px 2px 0 #10172b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.location-scene-actions button.primary:first-child {
  background: linear-gradient(#ffd84f, #eaa319);
  color: #19170e;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

.location-scene-note {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 3px solid #10172b;
  background: rgba(248, 240, 198, 0.96);
  color: #14233a;
  font-size: 0.82rem;
  line-height: 1.32;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7);
}

.location-scene-note strong {
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.location-scene-note span {
  display: block;
}

.save-message {
  padding: 18px;
  color: #17264d;
  font-size: 0.98rem;
  line-height: 1.45;
}

.save-actions {
  padding: 0 18px 18px;
}

.save-empty-note {
  margin: 0 14px 14px;
  padding: 10px;
  border: 2px solid #17264d;
  background: #f7fbff;
  color: #17264d;
}

.matchday-overlay.hidden {
  display: none;
}

.matchday-modal {
  width: 50vw;
  min-width: 520px;
  max-width: 760px;
  border: 4px solid #10172b;
  background: #e7dfcf;
  box-shadow: 0 0 0 4px #f8f1dc, 10px 10px 0 rgba(0, 0, 0, 0.42);
  animation: matchday-pop 220ms ease-out;
  image-rendering: pixelated;
}

.matchday-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-bottom: 4px solid #10172b;
  background: linear-gradient(#23609b, #173d76);
  color: #fff;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #10172b;
}

.matchday-modal-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  letter-spacing: 0;
}

.matchday-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 42px;
  height: 42px;
  border: 3px solid #10172b;
  background: #c73730;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.35), 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.matchday-hero {
  position: relative;
  height: clamp(190px, 24vw, 310px);
  overflow: hidden;
  border-bottom: 3px solid #8d8371;
}

.matchday-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: matchday-zoom 6s ease-in-out infinite alternate;
}

.matchday-hero-copy {
  position: absolute;
  left: 16px;
  bottom: 14px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border: 3px solid #f4d24b;
  background: rgba(10, 15, 30, 0.84);
  color: #fff6a9;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.matchday-hero-copy span,
.matchday-hero-copy strong {
  display: block;
}

.matchday-hero-copy span {
  font-size: 0.76rem;
  color: #dfe9ff;
  text-transform: uppercase;
}

.matchday-hero-copy strong {
  margin-top: 3px;
  font-size: 1.08rem;
}

.matchday-info {
  padding: 12px 16px 8px;
  color: #17264d;
}

.matchday-info p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.matchday-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matchday-facts span {
  padding: 5px 8px;
  border: 2px solid #17264d;
  background: #f7fbff;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.matchday-actions {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px 14px 16px;
}

.matchday-actions button {
  min-height: 46px;
  border: 3px solid #10172b;
  background: linear-gradient(#4e6f96, #244363);
  color: #fff;
  text-shadow: 2px 2px 0 #10172b;
  font-size: 0.86rem;
}

.matchday-actions .matchday-primary {
  background: linear-gradient(#ffd84f, #eaa319);
  color: #19170e;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

@keyframes matchday-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes matchday-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.035);
  }
}

@media (max-width: 780px) {
  .save-slots {
    grid-template-columns: 1fr;
  }

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

  .matchday-modal {
    width: 90vw;
    min-width: 0;
  }

  .location-scene-modal {
    width: 92vw;
    min-width: 0;
  }

  .location-scene-footer {
    grid-template-columns: 1fr;
  }

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

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 52px;
  z-index: 50;
  max-width: min(560px, calc(100% - 28px));
  padding: 10px 14px;
  border: 2px solid #fff;
  background: #121a35;
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.62;
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

select {
  min-height: 30px;
  border: 2px solid #fff;
  border-right-color: #17264d;
  border-bottom-color: #17264d;
  background: #fff;
  font-weight: 900;
}

@media (max-width: 1050px) {
  body {
    overflow: auto;
  }

  .classic-shell {
    height: auto;
    min-height: 100vh;
  }

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

  .classic-desktop {
    grid-template-columns: 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

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

  .right-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .career-hero-panel,
  .career-grid,
  .career-grid.lower {
    grid-template-columns: 1fr;
  }

  .career-next-card,
  .career-event-card {
    grid-column: auto;
  }

  .compact-career-tabs,
  .weekly-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .scoreboard,
  .fixed-data,
  .grid-two,
  .grid-three,
  .grid-four,
  .shop-grid,
  .tile-grid,
  .quickbar {
    grid-template-columns: 1fr;
  }

  .module-menu,
  .right-stack {
    grid-template-columns: 1fr;
  }

  .menu-actions {
    position: static;
    width: min(420px, 100%);
    transform: none;
    flex-direction: column;
  }

  .menu-version-panel {
    position: static;
    width: min(420px, 100%);
    transform: none;
  }

  .season-node-line {
    grid-template-columns: repeat(10, 1fr);
  }

  .season-calendar-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .season-calendar-row em {
    grid-column: 2;
    text-align: left;
  }
}

.shop-view .left-stack,
.shop-view .right-stack {
  display: none;
}

.shop-view .classic-desktop {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.shop-view .quickbar {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.shop-view .classic-shell {
  height: 100vh;
  min-height: 100vh;
  grid-template-rows: 52px 0 minmax(0, 1fr) 42px;
}
