:root {
  --welcome-accent: #f97316;
  --welcome-accent-end: #fb923c;
  --welcome-white-soft: rgba(255, 255, 255, 0.25);
  --welcome-white-mid: rgba(255, 255, 255, 0.82);
  --welcome-white-low: rgba(255, 255, 255, 0.7);
  --welcome-white-sub: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box;
}

body.home-welcome {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--welcome-accent) 0%, var(--welcome-accent-end) 100%);
  -webkit-font-smoothing: antialiased;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

html[lang^="en"] body.home-welcome {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.welcome-page {
  max-width:100%;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--welcome-accent) 0%, var(--welcome-accent-end) 100%);
  position: relative;
  overflow: hidden;
}

.welcome-locale {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.welcome-locale__link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.welcome-locale__link.is-active {
  color: #ffffff;
  font-weight: 700;
}

.welcome-locale__divider {
  color: rgba(255, 255, 255, 0.56);
}

.welcome-statusbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.welcome-statusbar__time {
  justify-self: start;
}

.welcome-statusbar__notch {
  width: 120px;
  height: 28px;
  border-radius: 20px;
  background: #1a1a1a;
}

.welcome-statusbar__signal {
  justify-self: end;
  width: 16px;
  height: 12px;
  display: block;
  filter: brightness(0) invert(1);
}

.welcome-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  padding-top: 40px;
  padding-bottom: 96px;
  text-align: center;
  position: relative;
}

.welcome-hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 202, 154, 0.55) 0%, rgba(255, 202, 154, 0) 72%);
  pointer-events: none;
}

.welcome-logo {
  width: auto;
  height: 80px;
  display: block;
  border-radius: 12px;
}

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.welcome-tag {
  margin-top: 10px;
  padding-left: 3px;
  color: var(--welcome-white-mid);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.welcome-subtitle {
  max-width: 280px;
  margin: 8px 0 24px;
  color: var(--welcome-white-sub);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.welcome-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-btn {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.welcome-btn--primary {
  border: 0;
  background: #ffffff;
  color: var(--welcome-accent);
}

.welcome-btn--secondary {
  padding-top: 13px;
  padding-bottom: 13px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.welcome-guest {
  margin-top: 6px;
  color: var(--welcome-white-low);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
}

@media (min-width: 768px) {
  body.home-welcome {
    padding: 0;
    background: #ffffff;
  }

  .welcome-page {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 374px) {
  .welcome-locale {
    gap: 10px;
    padding-bottom: 24px;
    font-size: 13px;
  }
}

/* Beta label + info notice (welcome loads only this stylesheet) */
.beta-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;border:1px solid transparent;
  background:#fef3e2;color:#c2410c;font-size:11px;font-weight:700;letter-spacing:.08em;line-height:1.35;
  text-transform:uppercase;white-space:nowrap}
.beta-badge--on-dark{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.85)}
.beta-notice{display:flex;align-items:flex-start;gap:10px;margin:16px 0 24px;padding:12px 14px;border-radius:12px;
  background:#fef3e2;color:#7c2d12;font-size:13px;line-height:1.55}
.beta-notice p{margin:0}
.beta-notice__icon{flex:0 0 auto;width:18px;height:18px;display:block;margin-top:1px}
.beta-notice__link{color:#c2410c;font-weight:700;text-decoration:underline}
.beta-notice--on-dark{background:rgba(255,255,255,.18);color:#fff}
.beta-notice--on-dark .beta-notice__link{color:#fff}
.beta-notice--on-dark .beta-notice__icon{filter:brightness(0) invert(1)}
