* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(37,99,235,0.22), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(251,191,36,0.09), transparent 22%),
    #08101f;
  color: #e2e8f0;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.hero {
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 10px;
}

.hero p, .muted {
  color: #94a3b8;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #60a5fa;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 48px rgba(2,6,23,0.35);
  backdrop-filter: blur(12px);
}

.stack {
  display: grid;
  gap: 12px;
}

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

input, button {
  border-radius: 14px;
  border: 1px solid rgba(71,85,105,0.6);
  padding: 14px 16px;
  font-size: 0.98rem;
}

input {
  background: rgba(2,6,23,0.72);
  color: #fff;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  font-weight: 700;
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(59,130,246,0.22);
  color: #bfdbfe;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.app {
  display: block;
  text-decoration: none;
  color: #e2e8f0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.96), rgba(15,23,42,0.82)),
    radial-gradient(circle at top right, var(--app-accent-soft), transparent 48%);
  border: 1px solid rgba(59,130,246,0.16);
  border-radius: 24px;
  padding: 18px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--app-accent) 45%, rgba(255,255,255,0.16));
  box-shadow: 0 20px 42px rgba(2,6,23,0.38);
}

.app::after {
  content: "";
  position: absolute;
  inset: auto -20% -42% 35%;
  height: 160px;
  background: radial-gradient(circle, var(--app-accent-soft), transparent 65%);
  pointer-events: none;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.app .label {
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.app-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #dbeafe;
  font-size: 1rem;
  border: 1px solid rgba(148,163,184,0.16);
}

.app-art {
  height: 132px;
  border-radius: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.8));
  border: 1px solid rgba(148,163,184,0.08);
  z-index: 1;
}

.app-art-custom {
  background: linear-gradient(160deg, rgba(15,23,42,0.75), rgba(30,41,59,0.45));
}

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

.app-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,6,23,0.04), rgba(2,6,23,0.3)),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,0.2), transparent 28%);
  pointer-events: none;
}

.app-title {
  position: relative;
  z-index: 1;
  font-size: 1.24rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.app-subtitle {
  position: relative;
  z-index: 1;
  line-height: 1.45;
}

.app-art-club {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(251,191,36,0.16), transparent 42%),
    linear-gradient(135deg, rgba(23,37,84,0.95), rgba(15,23,42,0.95));
}

.app-art-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251,191,36,0.18), transparent 68%);
  filter: blur(2px);
}

.app-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.32));
}

.app-art-bowling {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 20%),
    radial-gradient(circle at 85% 80%, rgba(239,31,38,0.2), transparent 30%),
    linear-gradient(140deg, rgba(12,18,34,0.96), rgba(24,36,67,0.96));
  display: grid;
  place-items: center;
}

.bundesliga-logo {
  width: 190px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  padding: 10px 10px 12px;
  box-shadow: 0 18px 28px rgba(2,6,23,0.32);
  transform: rotate(-3deg);
}

.bundesliga-mark {
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.02) 38%, transparent 40%),
    linear-gradient(135deg, #ef1f26, #cf1820);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.26);
}

.bundesliga-svg {
  display: block;
  width: 100%;
  height: auto;
}

.bundesliga-wordmark {
  margin-top: 8px;
  text-align: center;
  color: #111827;
  font-weight: 900;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.app-art-admin {
  background:
    radial-gradient(circle at center, rgba(245,158,11,0.12), transparent 34%),
    linear-gradient(145deg, rgba(25,34,55,0.96), rgba(14,20,35,0.96));
}

.admin-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(145deg, #fbbf24, #d97706);
  box-shadow: 0 0 0 10px rgba(245,158,11,0.08);
}

.admin-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: 112px;
  height: 112px;
}

.orbit-b {
  width: 74px;
  height: 74px;
}

.error {
  color: #fca5a5;
  background: rgba(127,29,29,0.2);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}

.hidden { display: none; }

@media (max-width: 640px) {
  .shell {
    padding: 32px 16px 64px;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .app {
    min-height: 250px;
  }

  .app-art {
    height: 118px;
  }
}
