:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #121212;
  --accent: #ff2e88;
  --text: #f3f3f4;
  --muted: #9a9a9a;
  --divider: #2a2a2a;
  --btn-border: rgba(243, 243, 244, 0.3);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 22px calc(32px + var(--safe-bottom));
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto;
  height: 55vh;
  background: radial-gradient(
    ellipse 80% 70% at 50% 0%,
    rgba(255, 46, 136, 0.18),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.screen {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-wrap {
  width: 108px;
  height: 108px;
  margin-bottom: 22px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 46, 136, 0.18);
}

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

.brand {
  margin: 0 0 8px;
  font-size: clamp(2rem, 7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 36px;
  max-width: 20rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
}

.actions {
  width: 100%;
  display: grid;
  gap: 12px;
}

.btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  border: 1px solid var(--btn-border);
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.985);
}

.btn-label {
  flex: 1;
  text-align: left;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.95;
}

.btn-primary {
  background: var(--accent);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--divider);
}

.btn-secondary:hover {
  border-color: rgba(243, 243, 244, 0.22);
}

.btn-secondary .btn-arrow {
  opacity: 0.55;
}

.store-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  text-align: left;
}

.store-meta strong {
  font-size: 16px;
  font-weight: 600;
}

.store-meta span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.hint {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 22rem;
}

.hint code {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.hidden {
  display: none !important;
}
