* {
  box-sizing: border-box;
}

:root {
  --bg-deep: #06125c;
  --bg-blue: #092495;
  --panel: rgba(4, 16, 83, 0.78);
  --panel-border: rgba(255, 255, 255, 0.18);
  --yellow: #ffd21f;
  --pink: #ed2a78;
  --cyan: #25a8ff;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 0%, rgba(55, 108, 255, 0.42), transparent 36rem),
    linear-gradient(180deg, rgba(4, 14, 75, 0.96), rgba(5, 18, 92, 0.98)),
    url("/tile.png") repeat;
  background-color: var(--bg-deep);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 24%, rgba(237, 42, 120, 0.16), transparent 20rem),
    radial-gradient(circle at 88% 44%, rgba(255, 210, 31, 0.12), transparent 22rem),
    radial-gradient(circle at 50% 100%, rgba(0, 166, 255, 0.18), transparent 28rem);
  z-index: -1;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.logo {
  width: min(220px, 58vw);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.4));
}

.logo-small {
  width: min(160px, 46vw);
}

.invite-panel,
.landing-panel {
  border: 1px solid var(--panel-border);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(10, 42, 170, 0.72), rgba(4, 16, 83, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.invite-panel {
  max-width: 720px;
  margin: 0 auto 34px;
  padding: 32px 24px;
  text-align: center;
}

.eyebrow {
  margin: 16px 0 8px;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.98;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}

.subtitle {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.5;
}

.subtitle strong {
  color: var(--yellow);
}

.duel-card {
  margin: 26px auto 20px;
  max-width: 560px;
  padding: 22px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 12, 60, 0.62);
}

.duel-label {
  display: inline-block;
  color: var(--muted);
  font-weight: 700;
}

.duel-code {
  margin: 8px 0 10px;
  color: var(--yellow);
  font-weight: 900;
  font-size: clamp(3.2rem, 12vw, 5.8rem);
  letter-spacing: 0.06em;
  text-shadow: 0 7px 0 rgba(0, 0, 0, 0.24);
}

.duel-card p,
.helper-text,
.store-block span {
  color: var(--muted);
}

.actions {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

button,
.primary-button,
.secondary-button {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  color: #07186f;
  background: linear-gradient(180deg, #ffe36a, var(--yellow));
  box-shadow: 0 8px 0 rgba(142, 92, 0, 0.38);
}

.secondary-button {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.store-block {
  margin-top: 24px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

.store-buttons img {
  height: 54px;
  width: auto;
  display: block;
}

.store-item {
  display:flex;
  flex-direction:column;
  align-items:center;
}

.store-item small{
  margin-top:6px;
  min-height:16px;
  font-size:12px;
  color:var(--muted);
  line-height:1;
}

.store-item small.empty{
  visibility:hidden;
}


.landing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: center;
  padding: 46px;
  overflow: hidden;
}

.landing-copy {
  text-align: left;
}

.landing-copy h1 {
  margin-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.feature span {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.feature strong,
.feature small {
  display: block;
}

.feature small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.landing-stores {
  justify-content: flex-start;
  margin-top: 28px;
}

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

.phone-frame {
  width: 285px;
  aspect-ratio: 9 / 19.5;
  border: 12px solid #101010;
  border-radius: 44px;
  background: #050505;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transform: rotate(5deg);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .landing-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 34px 22px;
  }

  .landing-copy {
    text-align: center;
  }

  .landing-stores {
    justify-content: center;
  }

  .phone-frame {
    width: min(270px, 76vw);
    transform: none;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 18px;
  }

  .invite-panel {
    padding: 24px 14px;
    border-radius: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .store-buttons img {
    height: 48px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}
