:root {
  color-scheme: light;

  --cream-50: #fffdf8;
  --cream-100: #f6f1e8;
  --cream-200: #e9e0d3;

  --ink-900: #35343d;
  --ink-700: #5d5b67;
  --ink-500: #7c7884;

  --mist-blue: #aebbd3;
  --mist-blue-deep: #7588aa;
  --lavender: #c5b8d7;
  --peach: #e7bdae;
  --mint: #b4d1c4;
  --soft-gold: #d3b778;
  --water-blue: #b8d5d9;

  --glass-white: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: rgba(78, 72, 94, 0.15);

  --radius-small: 14px;
  --radius-medium: 24px;
  --radius-large: 34px;

  --shadow-soft:
    0 28px 72px rgba(76, 70, 91, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);

  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream-100);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink-900);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang TC",
    "Noto Sans TC",
    "Microsoft JhengHei",
    sans-serif;
  line-height: 1.72;
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(174, 187, 211, 0.5),
      transparent 33%
    ),
    radial-gradient(
      circle at 86% 17%,
      rgba(231, 189, 174, 0.43),
      transparent 31%
    ),
    radial-gradient(
      circle at 82% 80%,
      rgba(180, 209, 196, 0.48),
      transparent 35%
    ),
    radial-gradient(
      circle at 17% 82%,
      rgba(197, 184, 215, 0.44),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      #faf7f0 0%,
      #eeeae4 55%,
      #f5efe8 100%
    );
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(117, 136, 170, 0.55);
  outline-offset: 3px;
}

.observation-station {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.station-grid {
  position: absolute;
  width: 760px;
  height: 760px;
  left: 50%;
  top: 48%;
  opacity: 0.12;
  transform:
    translate(-50%, -50%)
    rotateX(58deg)
    rotateZ(45deg);
  background-image:
    linear-gradient(rgba(97, 91, 113, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 91, 113, 0.25) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}

.station-platform {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.44),
      rgba(206, 215, 224, 0.18)
    );
  box-shadow:
    20px 25px 0 rgba(102, 93, 118, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: rotate(30deg) skewX(-12deg);
}

.platform-one {
  width: 360px;
  height: 165px;
  left: -150px;
  top: 20%;
}

.platform-two {
  width: 430px;
  height: 185px;
  right: -190px;
  bottom: 13%;
  transform: rotate(-25deg) skewX(11deg);
}

.glass-pod {
  position: absolute;
  width: 126px;
  height: 174px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 58px 58px 34px 34px;
  opacity: 0.56;
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.65),
      rgba(174, 187, 211, 0.18)
    );
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.34),
    0 24px 50px rgba(78, 72, 94, 0.08);
  backdrop-filter: blur(18px);
}

.pod-one {
  left: 4%;
  bottom: 14%;
  transform: rotate(-8deg);
}

.pod-two {
  right: 5%;
  top: 12%;
  width: 94px;
  height: 132px;
  transform: rotate(9deg);
}

.symbolic-column {
  position: absolute;
  display: block;
  width: 26px;
  height: 120px;
  border-radius: 8px 8px 5px 5px;
  opacity: 0.4;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(91, 84, 105, 0.32) 0,
      rgba(91, 84, 105, 0.32) 2px,
      transparent 2px,
      transparent 8px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.6),
      rgba(197, 184, 215, 0.5)
    );
  box-shadow: 9px 12px 0 rgba(84, 78, 99, 0.05);
}

.column-one {
  left: 12%;
  top: 18%;
  transform: rotate(-5deg);
}

.column-two {
  right: 13%;
  bottom: 20%;
  height: 88px;
  transform: rotate(6deg);
}

.column-three {
  left: 7%;
  bottom: 6%;
  height: 72px;
  opacity: 0.27;
}

.floating-crystal {
  position: absolute;
  display: block;
  width: 52px;
  height: 64px;
  opacity: 0.58;
  clip-path: polygon(
    50% 0%,
    90% 25%,
    76% 80%,
    50% 100%,
    18% 82%,
    7% 24%
  );
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.9),
      rgba(174, 187, 211, 0.36) 30%,
      rgba(231, 189, 174, 0.34) 61%,
      rgba(180, 209, 196, 0.5)
    );
  box-shadow: 0 22px 48px rgba(80, 73, 99, 0.14);
  animation: float 9s ease-in-out infinite;
}

.crystal-one {
  left: 5%;
  top: 46%;
  transform: rotate(-13deg);
}

.crystal-two {
  right: 4%;
  top: 39%;
  width: 38px;
  height: 46px;
  animation-delay: -3s;
}

.crystal-three {
  right: 19%;
  bottom: 6%;
  width: 26px;
  height: 34px;
  animation-delay: -6s;
}

.zen-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 32% 27%,
      #ffffff 0%,
      #e9e6ed 42%,
      #bdb8ca 100%
    );
  box-shadow:
    0 9px 24px rgba(77, 71, 93, 0.13),
    inset -3px -5px 9px rgba(149, 140, 166, 0.19);
  animation: float 8s ease-in-out infinite;
}

.zen-orb-one {
  width: 21px;
  height: 21px;
  top: 13%;
  right: 24%;
}

.zen-orb-two {
  width: 13px;
  height: 13px;
  left: 18%;
  bottom: 18%;
  animation-delay: -4s;
}

.site-shell {
  width: min(100% - 32px, 58rem);
  margin: 0 auto;
  padding:
    max(24px, env(safe-area-inset-top))
    0
    max(36px, env(safe-area-inset-bottom));
}

.brand-header {
  padding: 10px 4px 22px;
  text-align: center;
}

.brand-name,
.brand-location {
  margin: 0;
}

.brand-name {
  font-size: 0.96rem;
  font-weight: 720;
  letter-spacing: 0.15em;
}

.brand-location {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.glass-panel {
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.72),
      rgba(255, 255, 255, 0.38)
    );
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px) saturate(115%);
  -webkit-backdrop-filter: blur(28px) saturate(115%);
}

.app-panel {
  min-height: 520px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: var(--radius-large);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mist-blue-deep);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.32;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.25rem);
  letter-spacing: -0.043em;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.45rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--ink-700);
  font-size: clamp(1rem, 2.7vw, 1.1rem);
}

.quote-line {
  margin: 28px 0;
  padding: 17px 20px;
  border-left: 4px solid rgba(117, 136, 170, 0.55);
  border-radius:
    0
    var(--radius-small)
    var(--radius-small)
    0;
  color: #4d4b56;
  background: rgba(255, 255, 255, 0.4);
  font-weight: 650;
}

.disclaimer {
  margin: 22px 0 0;
  color: var(--ink-500);
  font-size: 0.84rem;
}

.progress-wrap {
  margin-bottom: 32px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 4px rgba(85, 78, 101, 0.08);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--mist-blue-deep),
      var(--lavender),
      var(--peach)
    );
  transition: width 260ms ease;
}

.question-title {
  margin-bottom: 24px;
}

.answer-list {
  display: grid;
  gap: 13px;
}

.answer-button {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 19px;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.74),
      rgba(255, 255, 255, 0.37)
    );
  box-shadow:
    0 10px 24px rgba(82, 75, 98, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.answer-button:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 136, 170, 0.44);
  box-shadow:
    0 14px 29px rgba(82, 75, 98, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.answer-button.is-selected {
  border-color: rgba(117, 136, 170, 0.74);
  background:
    linear-gradient(
      135deg,
      rgba(220, 226, 240, 0.92),
      rgba(255, 255, 255, 0.66)
    );
  box-shadow:
    0 13px 29px rgba(82, 75, 98, 0.12),
    inset 0 0 0 2px rgba(117, 136, 170, 0.12);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform var(--transition),
    opacity var(--transition),
    box-shadow var(--transition);
}

.primary-button {
  border: 1px solid rgba(106, 123, 158, 0.24);
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #7386aa,
      #9184b1 55%,
      #be91a3
    );
  box-shadow: 0 12px 25px rgba(100, 105, 147, 0.25);
}

.secondary-button {
  border: 1px solid rgba(117, 136, 170, 0.27);
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.58);
}

.text-button {
  border: 0;
  color: var(--ink-700);
  background: transparent;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.character-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 400px);
  min-height: 310px;
  margin: 4px auto 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 38px;
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.57),
      rgba(212, 218, 228, 0.16)
    ),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 7px,
      rgba(77, 71, 91, 0.025) 7px,
      rgba(77, 71, 91, 0.025) 8px
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 22px 55px rgba(78, 72, 94, 0.09);
}

.character-stage::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 98px;
  bottom: 31px;
  border-radius: 50%;
  background: rgba(104, 96, 122, 0.1);
  filter: blur(8px);
  transform: skewX(-18deg);
}

.character-token {
  --token-a: #aebbd3;
  --token-b: #e7bdae;
  --token-c: #b4d1c4;

  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 175px;
  aspect-ratio: 1;
  color: rgba(53, 52, 61, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.57);
  border-radius: 28% 45% 31% 40%;
  font-size: 3rem;
  font-weight: 750;
  background:
    repeating-linear-gradient(
      145deg,
      rgba(70, 63, 84, 0.055) 0,
      rgba(70, 63, 84, 0.055) 2px,
      transparent 2px,
      transparent 9px
    ),
    radial-gradient(
      circle at 32% 25%,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.42) 18%,
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--token-a),
      var(--token-b) 55%,
      var(--token-c)
    );
  box-shadow:
    25px 30px 0 rgba(70, 63, 84, 0.055),
    0 32px 55px rgba(70, 63, 84, 0.19),
    inset 15px 13px 25px rgba(255, 255, 255, 0.38),
    inset -18px -22px 31px rgba(67, 61, 80, 0.13);
  transform: rotate(-5deg) skewY(2deg);
  animation: token-float 6s ease-in-out infinite;
}

.character-token::before,
.character-token::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(68, 62, 81, 0.18);
  background: rgba(255, 255, 255, 0.16);
}

.character-token::before {
  width: 48%;
  height: 48%;
  left: 12%;
  top: 12%;
  border-radius: 50%;
}

.character-token::after {
  width: 31%;
  height: 18%;
  right: 9%;
  bottom: 13%;
  transform: rotate(-23deg);
}

.character-label {
  position: absolute;
  bottom: 18px;
  color: var(--ink-500);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.character-token.seed-0 {
  --token-a: #dce5ed;
  --token-b: #a9b8cb;
  --token-c: #f2e1c9;
}

.character-token.seed-1 {
  --token-a: #b4c8da;
  --token-b: #879ab7;
  --token-c: #cbbbd7;
  border-radius: 35%;
}

.character-token.seed-2 {
  --token-a: #dfb7c6;
  --token-b: #aebbd3;
  --token-c: #edc9a7;
  border-radius: 50% 24% 48% 30%;
}

.character-token.seed-3 {
  --token-a: #c4b6d3;
  --token-b: #99a9c5;
  --token-c: #d7b9b0;
  border-radius: 24% 44% 28% 48%;
}

.character-token.seed-4 {
  --token-a: #d7e5e9;
  --token-b: #c9d5e7;
  --token-c: #eee3dc;
  border-radius: 48%;
}

.character-token.seed-5 {
  --token-a: #ecbecd;
  --token-b: #efd0c3;
  --token-c: #bdd7cd;
  border-radius: 56% 42% 52% 44%;
}

.character-token.seed-6 {
  --token-a: #bdd1e4;
  --token-b: #d2c3df;
  --token-c: #f5e9b7;
  clip-path: polygon(
    50% 0%,
    91% 27%,
    80% 78%,
    50% 100%,
    18% 79%,
    8% 27%
  );
  border-radius: 0;
}

.character-token.seed-7 {
  --token-a: #b7ced8;
  --token-b: #cabedc;
  --token-c: #ebc9b7;
  border-radius: 16%;
}

.character-token.seed-8 {
  --token-a: #efd38f;
  --token-b: #d4a96f;
  --token-c: #e9c1a8;
  border-radius: 42% 54% 35% 56%;
}

.character-token.seed-9 {
  --token-a: #dda7b6;
  --token-b: #e5bf71;
  --token-c: #a7b7dc;
  border-radius: 55% 32% 49% 27%;
}

.result-section {
  margin-top: 28px;
}

.result-section p {
  margin: 8px 0 0;
  color: var(--ink-700);
}

.strength-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.strength-list li {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.47);
  font-size: 0.88rem;
}

.balance-card,
.oya-note,
.nearby-result {
  margin-top: 20px;
  padding: 19px 20px;
  border-radius: var(--radius-medium);
}

.balance-card {
  border: 1px solid rgba(180, 209, 196, 0.56);
  background: rgba(220, 237, 230, 0.43);
}

.oya-note {
  border: 1px solid rgba(197, 184, 215, 0.52);
  background: rgba(230, 223, 239, 0.44);
}

.nearby-result {
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.4);
}

.cta-grid {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.cta-card {
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.42);
}

.cta-card h3 {
  margin-top: 0;
}

.cta-card p {
  margin: 5px 0 16px;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.site-footer {
  padding: 25px 12px 4px;
  color: var(--ink-500);
  text-align: center;
  font-size: 0.77rem;
}

.site-footer p {
  margin: 3px 0;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 430px);
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.77);
  border-radius: 999px;
  color: var(--ink-900);
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(72, 66, 87, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.noscript-message {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  text-align: center;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

@keyframes token-float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg) skewY(2deg);
  }

  50% {
    transform: translateY(-7px) rotate(-3deg) skewY(2deg);
  }
}

@media (min-width: 700px) {
  .cta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 18px, 790px);
  }

  .app-panel {
    min-height: 480px;
    padding: 23px 19px;
    border-radius: 27px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .text-button {
    width: 100%;
  }

  .character-stage {
    min-height: 270px;
  }

  .character-token {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final all-page observation layout */
body {
  background: #d9d1c4;
}

.observation-station {
  z-index: 0;
  background:
    linear-gradient(rgba(255, 253, 248, 0.28), rgba(246, 241, 232, 0.3)),
    url("assets/backgrounds/oya-relationship-observation-background.webp")
      center 52% / cover no-repeat;
}

.observation-station::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 252, 246, 0.12);
}

.site-shell {
  position: relative;
  z-index: 1;
}

.brand-header {
  color: #25242b;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9);
}

.glass-panel {
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.78)
    );
  box-shadow:
    0 28px 72px rgba(36, 32, 45, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(105%) brightness(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(105%) brightness(1.06);
}

.browser-reminder {
  margin: 12px 0 0;
  color: var(--ink-700);
  font-size: 0.9rem;
}

.result-preview {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(53, 52, 61, 0.16);
}

.result-preview > h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.result-preview > p:not(.eyebrow) {
  margin: 9px 0 17px;
  color: var(--ink-700);
}

.result-preview-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.result-preview-card {
  min-width: 0;
  margin: 0;
}

.result-preview-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(53, 52, 61, 0.12);
}

.result-preview-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-preview-card span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink-700);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 680;
  line-height: 1.35;
}

.character-stage {
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.character-stage::before {
  display: none;
}

.character-image {
  display: block;
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(53, 52, 61, 0.14);
  border-radius: 27px;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(53, 52, 61, 0.18);
}

.character-label {
  position: static;
  margin-top: 10px;
}

.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-download-note {
  margin: 13px 0 0 !important;
  color: var(--ink-700) !important;
  font-size: 0.83rem !important;
  line-height: 1.62;
}

.original-url-button {
  width: 100%;
  margin-top: 10px;
}

.restart-row {
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(53, 52, 61, 0.18);
  backdrop-filter: blur(14px);
}

.restart-button {
  min-width: 16rem;
  min-height: 62px;
  justify-content: center;
  font-size: 1.03rem;
  font-weight: 720;
}

.site-footer {
  width: min(100%, 44rem);
  margin: 14px auto 0;
  padding: 17px 20px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  color: #35343d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(53, 52, 61, 0.16);
  backdrop-filter: blur(14px);
}

.toast {
  width: auto;
  max-width: min(32rem, calc(100vw - 2rem));
  border-color: rgba(117, 136, 170, 0.34);
  border-radius: 16px;
  color: #25242b;
  background: rgba(255, 255, 255, 0.97);
  line-height: 1.55;
}

@media (max-width: 520px) {
  .observation-station {
    background-position: center bottom;
  }

  .result-preview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .result-preview-card {
    border-radius: 0;
  }

  .result-preview-image {
    border-radius: 10px;
  }

  .result-preview-card span {
    margin-top: 4px;
    font-size: 0.53rem;
  }

  body[data-page="quiz"] .site-shell {
    display: grid;
    place-items: center;
    width: min(100% - 12px, 790px);
    min-height: 100dvh;
    padding:
      max(6px, env(safe-area-inset-top))
      0
      max(6px, env(safe-area-inset-bottom));
  }

  body[data-page="quiz"] .brand-header,
  body[data-page="quiz"] .site-footer,
  body[data-page="quiz"] .eyebrow {
    display: none;
  }

  body[data-page="quiz"] .app-panel {
    width: 100%;
    min-height: 0;
    padding: 13px 14px;
    border-radius: 21px;
  }

  body[data-page="quiz"] .progress-wrap {
    margin-bottom: 10px;
  }

  body[data-page="quiz"] .progress-meta {
    margin-bottom: 5px;
    font-size: 0.78rem;
  }

  body[data-page="quiz"] .progress-track {
    height: 6px;
  }

  body[data-page="quiz"] .question-title {
    margin-bottom: 10px;
    font-size: clamp(1.2rem, 5.8vw, 1.48rem);
    line-height: 1.28;
  }

  body[data-page="quiz"] .answer-list {
    gap: 7px;
  }

  body[data-page="quiz"] .answer-button {
    min-height: 52px;
    padding: 9px 11px;
    border-radius: 15px;
    font-size: 0.96rem;
    line-height: 1.36;
  }

  body[data-page="quiz"] .action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  body[data-page="quiz"] .action-row button {
    min-width: 0;
    min-height: 45px;
    padding: 8px 4px;
  }

  .restart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
    padding: 10px;
    border-radius: 22px;
  }

  .restart-row button,
  .restart-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) and (max-height: 620px) {
  body[data-page="quiz"] .app-panel {
    padding: 10px 12px;
  }

  body[data-page="quiz"] .question-title {
    margin-bottom: 7px;
    font-size: 1.16rem;
  }

  body[data-page="quiz"] .answer-list {
    gap: 5px;
  }

  body[data-page="quiz"] .answer-button {
    min-height: 47px;
    padding: 7px 9px;
    font-size: 0.9rem;
  }

  body[data-page="quiz"] .action-row {
    margin-top: 7px;
  }
}

