:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(8, 13, 24, 0.78);
  --panel-strong: rgba(10, 17, 31, 0.94);
  --line: rgba(139, 187, 255, 0.18);
  --line-hot: rgba(0, 158, 255, 0.75);
  --text: #f0f6ff;
  --muted: #8c9bb2;
  --cyan: #00a6ff;
  --blue: #246bff;
  --violet: #a44cff;
  --magenta: #ff3dd0;
  --amber: #ffb020;
  --green: #25f5a6;
  --danger: #ff5c7a;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1120px;
  min-height: 660px;
  margin: 0;
  color: var(--text);
  font-family:
    "Microsoft YaHei UI",
    "Segoe UI",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 17% 10%, rgba(0, 132, 255, 0.2), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(169, 53, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #020308, #07101b 42%, #08060d);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shell {
  position: relative;
  display: grid;
  grid-template-columns: 156px minmax(620px, 1fr) 318px;
  grid-template-rows: minmax(0, 1fr) 60px;
  gap: 12px;
  width: min(1440px, calc(100vw - 28px));
  height: min(900px, calc(100vh - 28px));
  min-height: 632px;
  margin: 14px auto;
  padding: 14px;
  border: 1px solid rgba(65, 135, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 20%),
    rgba(2, 5, 12, 0.88);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(0, 160, 255, 0.18), transparent) 0 0 / 100% 1px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 15%);
  border-radius: inherit;
}

.rail,
.deck,
.detail,
.control-dock {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.rail {
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  overflow: hidden;
}

.brand {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px;
  color: #e8f8ff;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(0, 166, 255, 0.7);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(0, 120, 255, 0.35), rgba(164, 76, 255, 0.18));
  box-shadow: 0 0 24px rgba(0, 150, 255, 0.36);
  font-size: 12px;
  letter-spacing: 0;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.nav-item,
.chip,
.icon-button,
.stage-arrow,
.cabinet,
.cover,
.favorite,
.launch {
  border: 0;
  cursor: pointer;
}

.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr 26px;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9bacbf;
  text-align: left;
}

.nav-item b {
  color: #5d6f86;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(0, 166, 255, 0.48);
  background:
    linear-gradient(90deg, rgba(0, 120, 255, 0.42), rgba(0, 120, 255, 0.08)),
    rgba(10, 18, 34, 0.8);
  color: white;
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 22px rgba(0, 118, 255, 0.22);
}

.nav-item.active b {
  color: #9ee7ff;
}

.status-tower {
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.status-title,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
}

.meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.ring {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #07111d 58%, transparent 59%),
    conic-gradient(var(--cyan) calc(var(--value) * 1%), rgba(255, 255, 255, 0.12) 0);
  color: #dff8ff;
}

.ring.amber {
  background:
    radial-gradient(circle, #07111d 58%, transparent 59%),
    conic-gradient(var(--amber) calc(var(--value) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.ring b {
  font-size: 14px;
  line-height: 1;
}

.ring span {
  margin-top: -18px;
  color: var(--muted);
  font-size: 10px;
}

.mini-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.mini-line strong {
  color: var(--green);
}

.deck {
  display: grid;
  grid-template-rows: 62px minmax(280px, 1fr) 142px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.search {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  width: min(300px, 34%);
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(127, 183, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.76);
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.chips {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow: hidden;
}

.chip,
.icon-button {
  height: 34px;
  border: 1px solid rgba(127, 183, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.7);
  color: #9aabc0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  white-space: nowrap;
}

.chip span {
  color: #59708a;
  font-size: 11px;
}

.chip.active,
.icon-button:hover {
  border-color: rgba(0, 166, 255, 0.65);
  background: rgba(0, 112, 255, 0.26);
  color: white;
}

.icon-button {
  display: grid;
  width: 38px;
  place-items: center;
}

.tool-button {
  flex: 0 0 auto;
}

.tool-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.showcase {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 7, 16, 0.05), rgba(0, 0, 0, 0.54)),
    radial-gradient(ellipse at 50% 80%, rgba(0, 150, 255, 0.26), transparent 35%),
    linear-gradient(115deg, rgba(255, 176, 32, 0.1), transparent 20%, rgba(164, 76, 255, 0.12));
}

.is-playing .hero-stage,
.is-playing .stage-arrow {
  opacity: 0;
  pointer-events: none;
}

.showcase::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 64px 100%,
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 48px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 70%, transparent);
  opacity: 0.45;
}

.hero-stage {
  position: relative;
  width: 760px;
  height: 326px;
  perspective: 1100px;
}

.cover {
  --x: 0;
  --scale: 0.78;
  --rot: 0deg;
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: grid;
  grid-template-rows: 24px 1fr auto auto;
  width: 156px;
  height: 240px;
  padding: 10px;
  transform: translateX(calc(-50% + var(--x))) rotateY(var(--rot)) scale(var(--scale));
  transform-style: preserve-3d;
  border: 1px solid rgba(128, 187, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), transparent 35%),
    rgba(8, 13, 24, 0.94);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 220ms ease, filter 220ms ease, opacity 220ms ease;
}

.cover.side--2 {
  --x: -260px;
  --rot: 28deg;
  opacity: 0.66;
}

.cover.side--1 {
  --x: -145px;
  --rot: 18deg;
  opacity: 0.82;
}

.cover.side-1 {
  --x: 145px;
  --rot: -18deg;
  opacity: 0.82;
}

.cover.side-2 {
  --x: 260px;
  --rot: -28deg;
  opacity: 0.66;
}

.cover.active {
  --scale: 1.14;
  z-index: 5;
  border-color: rgba(0, 166, 255, 0.88);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(0, 150, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cover-system {
  justify-self: center;
  min-width: 56px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 166, 255, 0.18);
  color: #9decff;
  font-size: 11px;
  font-weight: 800;
}

.cover-image,
.cabinet-screen {
  display: block;
  min-height: 0;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(0, 166, 255, 0.28), rgba(255, 61, 208, 0.18)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45)),
    var(--shot, none) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cover-title {
  display: block;
  margin-top: 9px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
}

.cover-genre {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.stage-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: grid;
  width: 42px;
  height: 72px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(0, 166, 255, 0.28);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.65);
  color: #9ee7ff;
}

.stage-arrow:hover {
  background: rgba(0, 120, 255, 0.2);
}

.stage-arrow.left {
  left: 18px;
}

.stage-arrow.right {
  right: 18px;
}

.play-viewport {
  position: absolute;
  inset: 16px;
  z-index: 20;
  display: grid;
  grid-template-rows: 44px 1fr;
  border: 1px solid rgba(0, 166, 255, 0.52);
  border-radius: 8px;
  background: rgba(0, 2, 8, 0.88);
  box-shadow: 0 0 40px rgba(0, 132, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.play-viewport[hidden] {
  display: none;
}

.play-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 24, 0.9);
}

.play-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.play-toolbar strong {
  margin-left: 8px;
  color: #eef8ff;
  font-size: 14px;
}

.play-actions {
  display: flex;
  gap: 8px;
}

.play-actions button {
  height: 28px;
  border: 1px solid rgba(0, 166, 255, 0.32);
  border-radius: 8px;
  background: rgba(0, 118, 255, 0.16);
  color: #cdefff;
  cursor: pointer;
  font-size: 12px;
}

.play-actions button:hover {
  border-color: rgba(0, 166, 255, 0.8);
  background: rgba(0, 118, 255, 0.34);
}

.play-actions button.primary {
  border-color: rgba(37, 245, 166, 0.44);
  background: rgba(37, 245, 166, 0.14);
  color: #d8ffef;
}

.play-actions button.danger {
  border-color: rgba(255, 92, 122, 0.48);
  background: rgba(255, 92, 122, 0.14);
  color: #ffe0e7;
}

.play-actions button:disabled {
  cursor: default;
  opacity: 0.52;
}

.play-surface {
  position: relative;
  overflow: hidden;
  margin: 10px;
  border: 1px solid rgba(127, 183, 255, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #010308;
}

.emulator-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #010308;
}

.play-viewport.is-paused .emulator-frame {
  filter: saturate(0.5) brightness(0.52);
}

.play-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.is-playing .play-placeholder {
  display: none;
}

.play-placeholder span {
  color: rgba(0, 166, 255, 0.42);
  font-size: 12px;
  font-weight: 900;
}

.play-placeholder strong {
  margin-top: 8px;
  color: rgba(233, 245, 255, 0.72);
  font-size: 18px;
}

.pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 1px solid rgba(37, 245, 166, 0.2);
  background: rgba(0, 4, 10, 0.58);
  text-align: center;
  pointer-events: none;
}

.pause-overlay[hidden] {
  display: none;
}

.pause-overlay span {
  color: rgba(37, 245, 166, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.pause-overlay strong {
  color: #effff8;
  font-size: 24px;
}

.cabinet-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 18px;
  color: var(--muted);
}

.strip-head strong {
  color: #dff8ff;
}

.game-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 10px;
  height: 106px;
  padding: 0 18px 14px;
  overflow-x: auto;
  overflow-y: hidden;
}

.game-grid::-webkit-scrollbar {
  height: 8px;
}

.game-grid::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(0, 166, 255, 0.34);
}

.cabinet {
  display: grid;
  grid-template-rows: 50px 28px 16px;
  gap: 4px;
  min-width: 112px;
  padding: 7px;
  border: 1px solid rgba(127, 183, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(5, 10, 20, 0.86);
  text-align: left;
}

.cabinet.active,
.cabinet:hover {
  border-color: rgba(0, 166, 255, 0.76);
  box-shadow: 0 0 24px rgba(0, 150, 255, 0.28);
}

.cabinet-title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  padding-bottom: 92px;
  overflow-y: auto;
  overflow-x: hidden;
}

.detail::-webkit-scrollbar {
  width: 8px;
}

.detail::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(0, 166, 255, 0.28);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail h1 {
  margin: 5px 0 0;
  font-size: 23px;
  line-height: 1.08;
}

.favorite {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(127, 183, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: #b8c9df;
}

.favorite.active {
  border-color: rgba(255, 61, 208, 0.7);
  color: var(--magenta);
  filter: drop-shadow(0 0 10px rgba(255, 61, 208, 0.45));
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
}

.facts div {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.facts dt {
  color: var(--muted);
  font-size: 11px;
}

.facts dd {
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stars {
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0;
}

.stars .on {
  color: var(--amber);
}

.mapping-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mapping,
.skills {
  min-height: 0;
  padding: 9px;
  border: 1px solid rgba(0, 166, 255, 0.22);
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.62);
}

.mapping.violet {
  border-color: rgba(164, 76, 255, 0.36);
}

.mapping h2,
.skills h2 {
  margin: 0 0 7px;
  color: #cfeaff;
  font-size: 13px;
}

.mapping-grid {
  display: grid;
  gap: 4px;
}

.map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  color: #b8c6da;
  font-size: 12px;
}

kbd {
  display: inline-grid;
  min-width: 29px;
  min-height: 22px;
  place-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(132, 189, 255, 0.28);
  border-bottom-color: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  color: white;
  font: 700 11px/1 "Segoe UI", sans-serif;
}

.skills {
  min-height: 118px;
  overflow: hidden;
}

.skill {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  margin-bottom: 5px;
}

.skill span {
  display: grid;
  width: 26px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 166, 255, 0.16);
  color: #8ce9ff;
  font-size: 10px;
  font-weight: 900;
}

.skill p {
  margin: 0;
  color: #c3d1e1;
  font-size: 12px;
  line-height: 1.3;
}

.launch-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  right: 16px;
  bottom: 72px;
  left: 16px;
  z-index: 5;
  padding: 5px 2px;
  background: rgba(5, 9, 17, 0.82);
  backdrop-filter: blur(12px);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-row.secondary {
  color: #b6c8dc;
}

.toggle-row input {
  width: 38px;
  height: 20px;
  appearance: none;
  border: 1px solid rgba(0, 166, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.toggle-row input::before {
  display: block;
  width: 16px;
  height: 16px;
  margin: 1px;
  border-radius: 50%;
  background: #8b9bb0;
  content: "";
  transition: transform 140ms ease, background 140ms ease;
}

.toggle-row input:checked::before {
  transform: translateX(18px);
  background: var(--cyan);
}

.toggle-row input:disabled {
  cursor: default;
  opacity: 0.85;
}

.launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 50px;
  border: 1px solid rgba(0, 166, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 166, 255, 0.82), rgba(0, 88, 255, 0.58)),
    #005dff;
  box-shadow: 0 0 32px rgba(0, 132, 255, 0.44), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 19px;
  font-weight: 900;
  position: absolute;
  right: 16px;
  bottom: 24px;
  left: 16px;
  z-index: 5;
}

.launch:disabled {
  cursor: wait;
  filter: grayscale(0.5);
  opacity: 0.7;
}

.launch-message {
  min-height: 26px;
  margin: 0;
  color: #91a7bf;
  font-size: 12px;
  line-height: 1.35;
  position: absolute;
  right: 16px;
  bottom: 1px;
  left: 16px;
  z-index: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-message.error {
  color: var(--danger);
}

.import-panel {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 4, 12, 0.72);
  backdrop-filter: blur(10px);
}

.import-panel[hidden] {
  display: none;
}

.import-card {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid rgba(0, 166, 255, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(5, 10, 20, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

.import-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.import-head strong {
  display: block;
  margin-top: 2px;
  color: #f2fbff;
  font-size: 20px;
}

.import-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.import-field select {
  height: 38px;
  border: 1px solid rgba(127, 183, 255, 0.28);
  border-radius: 8px;
  background: #07101c;
  color: #eef8ff;
  padding: 0 10px;
}

.import-picker,
.import-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.import-picker button,
.import-start {
  height: 38px;
  border: 1px solid rgba(0, 166, 255, 0.36);
  border-radius: 8px;
  background: rgba(0, 118, 255, 0.18);
  color: #d8f2ff;
  cursor: pointer;
  font-weight: 800;
}

.import-picker button:hover,
.import-start:hover {
  border-color: rgba(0, 166, 255, 0.78);
  background: rgba(0, 118, 255, 0.34);
}

.import-picker button:disabled,
.import-start:disabled {
  cursor: wait;
  filter: grayscale(0.45);
  opacity: 0.58;
}

.file-input {
  display: none;
}

.import-file-label {
  min-height: 42px;
  padding: 12px;
  border: 1px dashed rgba(127, 183, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #b9c9dd;
  font-size: 13px;
}

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

.import-status {
  min-height: 20px;
  margin: 0;
  color: #91a7bf;
  font-size: 12px;
  line-height: 1.4;
}

.import-status.error {
  color: var(--danger);
}

.control-dock {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 260px 180px minmax(220px, 1fr) 120px;
  gap: 10px;
  align-items: center;
  padding: 7px 16px;
}

.coins,
.player-slot,
.clock {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(127, 183, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.72);
  color: #8fa1b8;
}

.coin-stack {
  width: 27px;
  height: 20px;
  background:
    radial-gradient(ellipse at 50% 50%, #ffd466 0 45%, #cc7a00 47% 63%, transparent 65%) 0 0 / 27px 8px repeat-y;
}

.coins strong {
  color: var(--amber);
}

.player-slot.active {
  border-color: rgba(0, 166, 255, 0.62);
  color: #dff8ff;
  box-shadow: 0 0 22px rgba(0, 132, 255, 0.22);
}

.clock {
  justify-content: center;
  color: #c8d9ef;
  font-weight: 800;
}

@media (max-width: 1240px) {
  .shell {
    grid-template-columns: 132px minmax(560px, 1fr) 292px;
  }

  .hero-stage {
    width: 650px;
  }

  .cover.side--2,
  .cover.side-2 {
    opacity: 0.4;
  }
}
