:root {
  --bg: #06101f;
  --card: rgba(12, 28, 54, 0.78);
  --card2: rgba(20, 45, 86, 0.72);
  --text: #eef7ff;
  --muted: #98b6d8;
  --blue: #2db5ff;
  --yellow: #ffd34d;
  --red: #ff4f6d;
  --green: #35ffb1;
  --glass: rgba(255,255,255,0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  background: radial-gradient(circle at 10% 0%, #0c2a66 0%, #06101f 38%, #040712 100%);
  color: var(--text);
  overflow-x: hidden;
}

body {
  padding-bottom: 96px;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 1px, transparent 1px),
    radial-gradient(circle, rgba(45,181,255,.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,211,77,.7) 1px, transparent 1px);
  background-size: 72px 72px, 124px 124px, 190px 190px;
  animation: drift 20s linear infinite;
  opacity: .42;
}

@keyframes drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(72px); }
}

.orb {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: .35;
  pointer-events: none;
}

.orb-blue {
  background: var(--blue);
  top: -80px;
  right: -80px;
  animation: pulse 4s ease-in-out infinite;
}

.orb-yellow {
  background: var(--yellow);
  bottom: 40px;
  left: -120px;
  animation: pulse 5.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(.88); opacity: .25; }
  50% { transform: scale(1.08); opacity: .46; }
}

.app-shell {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

.hero {
  margin-top: 10px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(45,181,255,.18), rgba(255,211,77,.10)),
    rgba(7, 17, 35, .74);
  box-shadow: 0 0 32px rgba(45,181,255,.20), inset 0 0 28px rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo-pulse {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  box-shadow: 0 0 22px rgba(45,181,255,.55), 0 0 30px rgba(255,211,77,.25);
  animation: bounce 2.7s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

.kicker {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--yellow);
  font-weight: 800;
}

h1 {
  margin: 3px 0 0;
  font-size: 26px;
  line-height: 1.05;
}

.subtitle {
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.45;
}

.flag-line {
  display: flex;
  gap: 7px;
  margin: 16px 0 0;
}

.flag-line span {
  display: block;
  height: 5px;
  border-radius: 99px;
  flex: 1;
}

.flag-line .ua {
  background: linear-gradient(90deg, #1e88ff 0 50%, #ffd329 50% 100%);
}

.flag-line .dk {
  background: linear-gradient(90deg, #c8102e 0 42%, #fff 42% 50%, #c8102e 50% 100%);
}

.stats-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  padding: 12px 8px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.stat-card span {
  display: block;
  font-weight: 900;
  font-size: 19px;
}

.stat-card small {
  color: var(--muted);
  font-size: 11px;
}

.screen {
  margin-top: 18px;
}

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

.game-tile {
  border: 0;
  color: var(--text);
  min-height: 114px;
  padding: 18px;
  border-radius: 26px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(45,181,255,.18), rgba(255,255,255,.07)),
    var(--card);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 14px 30px rgba(0,0,0,.30), 0 0 18px rgba(45,181,255,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.game-tile:active {
  transform: scale(.97);
}

.game-tile b {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.game-tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.game-tile.wide {
  grid-column: span 2;
  min-height: 92px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 25px;
}

.section-sub {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
  overflow: hidden;
}

.item-photo {
  width: 100%;
  min-height: 150px;
  border-radius: 20px;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,211,77,.30), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(45,181,255,.28), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  display: grid;
  place-items: center;
  font-size: 48px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.neon-btn {
  width: 100%;
  border: 0;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  color: #06101f;
  font-weight: 900;
  background: linear-gradient(135deg, var(--yellow), var(--blue));
  box-shadow: 0 0 22px rgba(45,181,255,.32), 0 0 18px rgba(255,211,77,.24);
}

.neon-btn.secondary {
  color: var(--text);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}

.status-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(53,255,177,.14);
  color: var(--green);
  border: 1px solid rgba(53,255,177,.22);
  margin-top: 10px;
}

.empty {
  text-align: center;
  padding: 30px 16px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(540px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 9px;
  border-radius: 25px;
  background: rgba(5, 13, 28, .82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 28px rgba(45,181,255,.22);
}

.bottom-nav button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 8px 4px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 18px;
}

.bottom-nav button span {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.bottom-nav button.active {
  color: var(--text);
  background: rgba(45,181,255,.16);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(5,13,28,.92);
  color: white;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  opacity: 0;
  pointer-events: none;
  transition: all .22s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

a {
  color: var(--yellow);
}
