:root {
  --bg: #1a1a2e;
  --surface: #16213e;
  --accent: #e94560;
  --accent-hover: #ff6b6b;
  --text: #eaeaea;
  --text-muted: #a0a0a0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  -webkit-tap-highlight-color: transparent;
}

.splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #ffffff;
}

.splash-content {
  text-align: center;
  max-width: 520px;
}

.splash-logo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.25rem;
}

.splash-content h1 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.3;
}

.splash .welcome {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.5rem;
}

.splash .hint {
  color: #666;
}

.splash-loading {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

.splash-loading.hidden {
  display: none !important;
}

#splash-content.hidden {
  display: none !important;
}

.splash-seo {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  text-align: left;
}

.splash-seo p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #666;
  margin: 0;
}

.splash-seo a {
  color: #c50523;
  text-decoration: none;
}

.splash-seo a:hover {
  text-decoration: underline;
}

.install-btn,
.btn-to-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: #c50523;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  font-family: inherit;
  margin-top: 0.5rem;
}

.install-btn {
  padding: 1rem 2.25rem;
  font-size: 1.15rem;
}

.install-btn:hover:not(:disabled),
.btn-to-content:hover {
  background: #a0041d;
}

.install-btn:active:not(:disabled),
.btn-to-content:active {
  transform: scale(0.98);
}

.install-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.install-btn .install-btn-icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: middle;
  margin: 0 0.15em;
}

.install-btn.install-ios-steps {
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.install-btn.install-ios-steps:disabled {
  opacity: 1;
  background: #c50523;
}

.install-ios-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.install-ios-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.35em 0.5em;
  color: #1a5fb4;
}

.install-ios-icon-box .install-btn-icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.btn-to-content.hidden {
  display: none !important;
}

.hint {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.link-to-content {
  display: inline-block;
}

.hidden {
  display: none !important;
}

.content-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 1.5rem;
}

.content-error {
  padding: 2rem 1rem;
  text-align: center;
  color: #666;
  background: #f5f5f5;
  margin: 1rem;
  border-radius: 12px;
}

.content-error p {
  margin: 0;
}

@media (min-width: 480px) {
  .splash-content h1 {
    font-size: 1.9rem;
  }
  .splash .welcome {
    font-size: 1.05rem;
  }
  .splash-seo p {
    font-size: 0.85rem;
  }
}
