/* /open/ — Brand World (Pink × Violet). Not the marketing dark chrome. */
:root {
  --open-ink: #1e1033;
  --open-muted: #6b5b7a;
  --open-wash-top: #fdf2f8;
  --open-wash-mid: #f5f3ff;
  --open-card: #ffffff;
  --open-border: #e8e0ef;
  --open-hot: #ff2d55;
  --open-radius: 16px;
  --open-gradient: linear-gradient(118deg, #2d1b69 0%, #5b21b6 38%, #db2777 72%, #ff2d55 100%);
  --open-font: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica Neue, Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

body.open-world {
  min-height: 100dvh;
  font-family: var(--open-font);
  color: var(--open-ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 45, 85, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 20%, rgba(124, 77, 255, 0.16), transparent 50%),
    linear-gradient(180deg, var(--open-wash-top) 0%, var(--open-wash-mid) 42%, #faf5ff 100%);
  -webkit-text-size-adjust: 100%;
}

.open-header {
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;
}

.open-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.open-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--open-ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex: 1 1 auto;
}

.open-logo img {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.open-logo span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.open-world .site-lang-select {
  background: #ffffff;
  border: 1px solid var(--open-border);
  border-radius: 10px;
  color: var(--open-ink);
  padding: 8px 8px;
  font-size: 0.8rem;
  font-family: inherit;
  min-height: 44px;
  max-width: 11.5rem;
}

.open-world .site-lang-select option {
  background: #ffffff;
  color: var(--open-ink);
}

.open-main {
  width: min(100% - 32px, 400px);
  margin: 12px auto 0;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--open-card);
  border: 1px solid var(--open-border);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(30, 16, 51, 0.08);
  text-align: center;
}

.open-tiger {
  width: min(72%, 220px);
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.open-main h1 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.open-hint {
  margin: 0 0 24px;
  color: var(--open-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.open-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.open-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--open-radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.open-cta--primary {
  background: var(--open-hot);
  background-image: var(--open-gradient);
  color: #ffffff;
  border: 0;
}

.open-cta--ghost {
  background: #ffffff;
  color: var(--open-ink);
  border: 1px solid var(--open-border);
}

/* OS-aware: one matching store on phone; both on desktop. */
html[data-open-os="ios"] #open-store-android,
html[data-open-os="android"] #open-store-ios,
html[data-open-os="other"] #open-app {
  display: none;
}

html[data-open-os="other"] #open-store-ios,
html[data-open-os="other"] #open-store-android {
  background: var(--open-hot);
  background-image: var(--open-gradient);
  color: #ffffff;
  border: 0;
}

.open-home {
  display: inline-block;
  margin-top: 20px;
  color: var(--open-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

@media (max-width: 360px) {
  .open-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .open-logo span {
    font-size: 1rem;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .open-world .site-lang-select {
    max-width: none;
    width: 100%;
  }

  .open-main h1 {
    font-size: 1.28rem;
  }
}
