:root {
  color-scheme: dark;
  --bg-dark: #05070d;
  --bg-elevated: #0d1322;
  --panel: rgba(15, 20, 35, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #eef3ff;
  --text-muted: #98a5c4;
  --gold: #f5c451;
  --gold-deep: #bb8220;
  --neon-blue: #00d4ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 196, 81, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.1), transparent 25%),
    linear-gradient(180deg, #0b1020 0%, var(--bg-dark) 100%);
  color: var(--text-main);
}

button,
select,
input {
  font: inherit;
}

.launcher-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.title-bar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 6, 12, 0.96);
  border-bottom: 1px solid var(--border);
}

.drag-region {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  -webkit-app-region: drag;
}

.mini-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #1d1200;
  background: linear-gradient(135deg, #ffe39c 0%, var(--gold) 55%, var(--gold-deep) 100%);
}

.title-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-copy span {
  color: var(--text-muted);
  font-size: 10px;
}

.window-controls {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.window-controls button {
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  -webkit-app-region: no-drag;
  transition: background 160ms ease;
}

.window-controls button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.window-controls .close:hover {
  background: rgba(255, 80, 100, 0.9);
}

.content-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  background: rgba(5, 9, 17, 0.92);
  border-right: 1px solid var(--border);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.brand-block {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #241700;
  background: linear-gradient(135deg, #ffe39c 0%, var(--gold) 58%, var(--gold-deep) 100%);
  box-shadow: var(--shadow);
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-sub {
  color: var(--text-muted);
  margin-top: 4px;
}

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

.nav-item,
.outline-btn,
.play-btn {
  min-height: 50px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.nav-item {
  padding: 0 18px;
  background: var(--panel-soft);
  color: var(--text-main);
  text-align: left;
  font-weight: 700;
}

.nav-item.active,
.mode-card.active {
  border-color: rgba(245, 196, 81, 0.95);
  background: rgba(245, 196, 81, 0.12);
  box-shadow: 0 0 20px rgba(245, 196, 81, 0.14);
}

.nav-item:hover,
.outline-btn:hover,
.play-btn:hover,
.mode-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.sidebar-footer {
  display: grid;
  gap: 14px;
}

.build-chip {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.contact-chip strong {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--neon-blue);
  word-break: break-word;
}

.build-chip span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.content {
  overflow: auto;
  padding: 30px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.hero-panel,
.engine-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-badge,
.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 14px 0 16px;
}

.hero-copy p,
.status-card p,
.panel-card p,
.engine-panel p {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions,
.button-row,
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.play-btn {
  min-width: 220px;
  padding: 0 22px;
  border: 0;
  color: #1f1300;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #fff1ba 0%, var(--gold) 48%, var(--gold-deep) 100%);
  box-shadow: 0 16px 42px rgba(245, 196, 81, 0.22);
}

.play-btn.small {
  min-width: 180px;
}

.outline-btn {
  min-width: 180px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--neon-blue);
  border-color: rgba(0, 212, 255, 0.26);
}

.hero-side,
.status-grid,
.panel-grid,
.news-grid,
.offers-grid,
.help-grid,
.engine-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.status-card,
.panel-card,
.setting-card,
.summary-block {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-card strong,
.panel-card strong,
.setting-card span,
.summary-block strong {
  display: block;
}

.contact-line {
  margin-top: 14px;
  color: var(--neon-blue);
  font-weight: 700;
}

.panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.news-grid,
.offers-grid,
.help-grid,
.engine-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

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

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

.section-head h2 {
  margin-bottom: 0;
}

.settings-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.settings-grid.secondary {
  margin-top: 16px;
}

.setting-card span {
  margin-bottom: 12px;
  font-weight: 700;
}

.setting-card select,
.setting-card input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0 12px;
}

.footer-bar {
  justify-content: space-between;
  align-items: center;
}

.summary-block {
  min-width: 280px;
}

.message-panel,
.premium-banner {
  margin-top: 22px;
}

.long-card h3,
.offer-card h3 {
  margin: 12px 0;
}

.offer-card {
  position: relative;
  overflow: hidden;
}

.premium-card {
  border-color: rgba(0, 212, 255, 0.32);
  background:
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.price-line {
  margin: 14px 0 12px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.premium-card .price-line {
  color: var(--neon-blue);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-muted);
}

.feature-list li {
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.5);
}

.premium-card .feature-list li::before {
  background: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
}

.premium-banner {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(245, 196, 81, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.premium-banner h3 {
  margin: 12px 0;
}

.premium-banner p {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-panel,
  .engine-panel,
  .panel-grid,
  .news-grid,
  .offers-grid,
  .help-grid,
  .engine-grid,
  .settings-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}
