:root {
  color-scheme: dark;
  --ink: #07090c;
  --ink-deep: #040507;
  --panel: #0c1116;
  --bone: #ece7db;
  --bone-dim: #b0b3aa;
  --muted: #727c7b;
  --red-bright: #ff8768;
  --line: rgba(236, 231, 219, 0.18);
  --line-soft: rgba(236, 231, 219, 0.08);
  --accent: var(--red-bright);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 28rem),
    var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.get-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(100% - 40px, 520px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.get-brand {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.get-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(236, 231, 219, 0.54);
  border-radius: 50%;
  color: var(--red-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: -0.08em;
}

.get-card {
  width: 100%;
  margin-block: auto;
  padding: clamp(28px, 7vw, 44px);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(236, 231, 219, 0.035), transparent 55%),
    var(--panel);
  text-align: center;
}

.get-icon {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 26px;
  border-radius: 22.5%;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.46),
    0 0 0 8px rgba(236, 231, 219, 0.035),
    0 0 48px color-mix(in srgb, var(--accent) 28%, transparent);
}

.get-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.get-card h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.get-subtitle {
  margin: 10px 0 0;
  color: var(--bone-dim);
  font-size: 15px;
}

.get-lead {
  max-width: 34ch;
  margin: 18px auto 0;
  color: var(--bone-dim);
  font-size: 14px;
  line-height: 1.75;
}

.get-status {
  min-height: 1.6em;
  margin: 28px 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

[data-redirecting] .get-status::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  content: "";
  vertical-align: 1px;
  animation: get-pulse 1.2s ease-in-out infinite;
}

@keyframes get-pulse {
  50% {
    opacity: 0.25;
  }
}

.get-actions {
  display: grid;
  gap: 10px;
}

.get-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(236, 231, 219, 0.04);
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
}

.get-store::after {
  color: var(--red-bright);
  content: "↗";
  font-size: 17px;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}

.get-store-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.get-store-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.get-store.is-primary {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.get-store.is-primary::after {
  color: var(--accent);
}

.get-store:active {
  transform: scale(0.98);
}

.get-store:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .get-store:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }

  .get-store:hover::after {
    transform: translate(3px, -3px);
  }
}

/* 手機與平板會自動導向，只在電腦上（或 JS 未執行時）顯示 QR Code。 */
.get-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}

[data-platform="ios"] .get-qr,
[data-platform="android"] .get-qr {
  display: none;
}

.get-qr img {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 6px;
}

.get-copy {
  display: grid;
  flex: 1;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(236, 231, 219, 0.04);
  color: var(--bone);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
}

.get-copy-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.get-copy-label::before {
  margin-right: 8px;
  content: "⧉";
}

.get-copy.is-copied .get-copy-label::before {
  content: "✓";
}

.get-copy-url {
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.get-copy.is-copied {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.get-copy:active {
  transform: scale(0.98);
}

.get-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .get-copy:hover {
    border-color: var(--accent);
  }
}

.get-foot {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.get-foot a {
  min-height: 44px;
  transition: color 0.3s ease;
}

.get-foot a:hover {
  color: var(--bone);
}

/* 分享連結索引頁 */
.get-list {
  display: grid;
  gap: 1px;
  margin: 26px 0 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
  list-style: none;
  text-align: left;
}

.get-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
  transition: background 0.3s ease;
}

.get-list a:hover {
  background: #111920;
}

.get-list img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 22.5%;
}

.get-list strong {
  display: block;
  font-size: 15px;
}

.get-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

@media (min-width: 560px) {
  [data-platform="desktop"] .get-actions {
    grid-template-columns: 1fr 1fr;
  }
}

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