:root {
  color-scheme: light;
  --brand: #20d58a;
  --brand-deep: #06ad71;
  --ink: #17231f;
  --muted: #66746f;
  --line: rgba(23, 35, 31, 0.12);
  --surface: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 70px rgba(16, 90, 62, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f5fff9;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  background: linear-gradient(180deg, #f5fff9 0%, #ffffff 58%, #ecfff6 100%);
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  padding: 34px 24px 28px;
  border: 1px solid rgba(32, 213, 138, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 255, 249, 0.92));
  box-shadow: var(--shadow);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(6, 173, 113, 0.18);
}

.brand-kicker {
  margin: 22px 0 8px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.action-panel {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

a.primary-action,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

a.primary-action:active,
button:active {
  transform: translateY(1px) scale(0.99);
}

a.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 30px rgba(6, 173, 113, 0.26);
}

.secondary-action {
  color: var(--brand-deep);
  border: 1px solid rgba(6, 173, 113, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.status-text {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.browser-guide {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
}

.browser-guide[aria-hidden="false"] {
  display: block;
}

.browser-guide__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.browser-guide__panel {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: 16px;
  left: 16px;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 20px 20px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.browser-guide__arrow {
  position: absolute;
  top: -14px;
  right: 26px;
  width: 0;
  height: 0;
  border-right: 12px solid transparent;
  border-bottom: 16px solid var(--surface);
  border-left: 12px solid transparent;
}

.browser-guide h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.browser-guide p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.guide-close {
  min-height: 46px;
  color: #fff;
  background: var(--ink);
}

.guide-open {
  overflow: hidden;
}

.noscript-tip {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(23, 35, 31, 0.92);
  font-size: 14px;
  text-align: center;
}

@media (min-width: 720px) {
  .app-shell {
    padding: 42px 34px 32px;
  }

  .app-logo {
    width: 108px;
    height: 108px;
  }
}