:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: #12212f;
  background: #edf4f5;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(36, 142, 142, .17), transparent 30rem),
    radial-gradient(circle at 82% 78%, rgba(217, 153, 51, .14), transparent 28rem),
    #edf4f5;
}

button { font: inherit; }

.portal-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.portal-card {
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(48, 79, 91, .14);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(38, 64, 74, .14);
  backdrop-filter: blur(18px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  font-weight: 700;
  letter-spacing: .01em;
}

.portal-brand span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #15938f;
  box-shadow: 8px 8px 0 rgba(217, 153, 51, .42);
}

.portal-kicker {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

h1 + p {
  margin: 18px 0 0;
  color: #536977;
  line-height: 1.75;
}

.portal-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.portal-actions button,
.portal-actions [data-google-button] {
  width: 100%;
  min-height: 48px;
}

.portal-actions button {
  border: 1px solid #cbd8dd;
  border-radius: 12px;
  color: #152530;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.portal-actions button:hover:not(:disabled) {
  border-color: #15938f;
  box-shadow: 0 8px 24px rgba(21, 147, 143, .12);
  transform: translateY(-1px);
}

.portal-actions button:focus-visible {
  outline: 3px solid rgba(21, 147, 143, .26);
  outline-offset: 2px;
}

.portal-actions button:disabled { cursor: wait; opacity: .6; }

.portal-actions [data-google-button] > div,
.portal-actions [data-google-button] iframe { margin-inline: auto !important; }

.portal-status {
  min-height: 24px;
  margin: 22px 0 0;
  color: #6b7f8b;
  font-size: 13px;
  line-height: 1.6;
}

.portal-result { text-align: center; }

.portal-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 26px;
  border-radius: 50%;
  color: #fff;
  background: #15938f;
  font-size: 26px;
  font-weight: 800;
}

.portal-mark.is-error { background: #b45345; }

@media (max-width: 560px) {
  .portal-stage { padding: 18px 14px; }
  .portal-card { border-radius: 22px; }
  .portal-brand { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
