:root {
  color-scheme: dark;
  --bg1: #29105d;
  --bg2: #13214b;
  --text: #ecf2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #6c38df 0%, var(--bg1) 35%, var(--bg2) 100%);
  color: var(--text);
}

.app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 16px 32px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.logo {
  font-weight: 900;
  text-transform: lowercase;
  color: #ffbf24;
  font-size: 42px;
  text-align: center;
}

.logo span {
  color: #72d6ff;
}

.logo-wrap {
  display: flex;
  justify-content: center;
}

.logo-image {
  width: 250px;
  height: auto;
  display: block;
}

h1 {
  margin-top: 28px;
  margin-bottom: 8px;
  text-align: center;
}

.lead {
  text-align: center;
  opacity: 0.9;
  margin-bottom: 28px;
}

.primary-btn,
.ghost-btn,
.secondary-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(90deg, #25fca4, #20d7ff);
  color: #132;
  font-weight: 700;
}

.secondary-btn {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
}

.ghost-btn {
  width: auto;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
}

.status {
  min-height: 20px;
  text-align: center;
  margin-top: 16px;
  opacity: 0.85;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.logo.small {
  font-size: 28px;
  text-align: left;
}

.logo-image.small {
  width: 120px;
}

.player-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.alien {
  font-size: 44px;
}

.player-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.player-card p {
  margin: 0;
  opacity: 0.85;
}

.stats-card {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.stats-card p {
  margin: 4px 0;
  font-size: 14px;
}

.shop-card,
.case-card {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.shop-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.accessory-list {
  display: grid;
  gap: 8px;
}

.accessory-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
}

.accessory-meta {
  font-size: 13px;
}

.buy-btn {
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  background: #8deca0;
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.buy-btn:disabled {
  background: #78907f;
  color: #d8d8d8;
  cursor: default;
}

.case-btn {
  margin-bottom: 8px;
}

.case-preview {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.menu-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rewards-bar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.rewards-bar span {
  text-align: center;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
}

.menu-item {
  border: 0;
  border-radius: 50%;
  width: 78px;
  height: 78px;
  font-size: 30px;
  cursor: pointer;
  justify-self: center;
}

.purple {
  background: #b68aff;
}

.orange {
  background: #ffc161;
}

.green {
  background: #95f0a1;
}

.lime {
  background: #d8f977;
}

.hint {
  margin-top: 22px;
  opacity: 0.86;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 380px) {
  .menu-item {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}
