/* =========================================================
   登科 · Minimal Ritual
   Paper / ink / one vermilion accent
   ========================================================= */

:root {
  --paper: #f5f2ea;
  --paper-deep: #eee9de;
  --card: #fffdf8;
  --ink: #171614;
  --ink-soft: #2c2a26;
  --muted: #706b61;
  --muted-2: #a39d91;
  --line: rgba(23, 22, 20, 0.12);
  --line-strong: rgba(23, 22, 20, 0.22);
  --accent: #cf4a2f;
  --accent-soft: rgba(207, 74, 47, 0.1);
  --radius: 22px;
  --font: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 50% -12%, #fffdf7 0%, rgba(255, 253, 247, 0) 62%),
    var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--accent);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 32px;
  background: var(--paper);
  text-align: center;
}

.noscript b {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.noscript p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex: 0 0 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand-name em {
  margin-left: 10px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.16em;
  vertical-align: 1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.incense-count {
  margin-right: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.incense-count b {
  color: var(--ink);
  font-weight: 500;
}

.mobile-meta {
  display: none;
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
}

.icon-glyph {
  font-size: 13px;
  line-height: 1;
}

.icon-btn[aria-pressed="false"] {
  color: var(--muted-2);
  text-decoration: line-through;
}

/* =========================================================
   Layout / steps / exam meta
   ========================================================= */

.layout {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: 150px minmax(0, 760px) 186px;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 0;
  padding: 0 clamp(20px, 4vw, 48px);
}

.ritual-steps {
  position: relative;
  align-self: center;
  width: 100%;
  padding-bottom: 30px;
}

.steps-label {
  margin-bottom: 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ritual-steps ol {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ritual-steps ol::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.ritual-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  color: var(--muted-2);
  font-size: 12px;
  transition: color 0.35s ease;
}

.ritual-steps li i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.ritual-steps li span {
  letter-spacing: 0.08em;
}

.ritual-steps li.done {
  color: var(--muted);
}

.ritual-steps li.done i {
  border-color: var(--line-strong);
  color: var(--muted);
}

.ritual-steps li.active {
  color: var(--ink);
}

.ritual-steps li.active i {
  border-color: var(--accent);
  color: var(--accent);
}

.ritual-steps li.active i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(207, 74, 47, 0.18);
  border-radius: 50%;
}

.steps-rail {
  position: absolute;
  left: 10px;
  top: 55px;
  bottom: 45px;
  width: 1px;
  overflow: hidden;
}

.steps-rail span {
  display: block;
  width: 1px;
  height: 0;
  background: var(--accent);
  transition: height 0.6s var(--ease);
}

.exam-meta {
  align-self: center;
  width: 100%;
  padding-top: 10px;
}

.meta-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.exam-name {
  margin-top: 9px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-date {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 20px 0 6px;
  line-height: 1;
}

.countdown span {
  font-size: 44px;
  font-weight: 200;
  letter-spacing: -0.04em;
}

.countdown em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.meta-rule {
  height: 1px;
  margin: 18px 0 14px;
  background: var(--line);
}

.side-wish {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.mini-stats {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}

.mini-stats b {
  color: var(--ink);
  font-weight: 400;
}

/* =========================================================
   Stage / visual
   ========================================================= */

.stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 18px;
}

.stage-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.stage-kicker {
  color: var(--accent);
}

.stage-progress {
  font-variant-numeric: tabular-nums;
}

.ritual-visual {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  margin: 4px 0 8px;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}

body.is-bowing .ritual-visual {
  transform: translateY(10px);
  opacity: 0.76;
}

body.impact .ritual-visual {
  animation: softImpact 0.45s var(--ease);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(340px, 52vh, 72vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 7px;
  background: var(--line-strong);
}

.orbit-ring::before {
  top: -4px;
}

.orbit-ring::after {
  bottom: -4px;
}

.orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--muted-2);
  border-radius: 50%;
  background: var(--paper);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.orbit-dot[data-dot="1"] {
  left: calc(50% - 3.5px);
  top: -4px;
}

.orbit-dot[data-dot="2"] {
  right: 14%;
  bottom: 12%;
}

.orbit-dot[data-dot="3"] {
  left: 14%;
  bottom: 12%;
}

.orbit-dot.lit {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.2);
}

.orbit-label {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.34em;
}

.visual-index {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  color: rgba(23, 22, 20, 0.035);
  font-size: clamp(120px, 21vh, 190px);
  font-weight: 200;
  letter-spacing: -0.06em;
  line-height: 1;
  user-select: none;
}

.incense {
  position: absolute;
  left: 50%;
  bottom: 18%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 38px);
  width: 150px;
  height: clamp(145px, 23vh, 220px);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

body.incense-present .incense {
  opacity: 1;
}

.stick {
  position: relative;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(to top, #3b3730, #6d665b 55%, #a49b8c);
  transform: translateY(14px);
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
}

body.incense-present .stick {
  transform: translateY(0);
}

.stick-1 {
  height: 82%;
  transition-delay: 0.04s;
}

.stick-2 {
  height: 100%;
  transition-delay: 0.14s;
}

.stick-3 {
  height: 88%;
  transition-delay: 0.24s;
}

.ember {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) scale(0.6);
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 0 5px rgba(207, 74, 47, 0.06);
  transition: opacity 0.3s ease, transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.stick.lit .ember {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: ember 2.8s ease-in-out infinite;
}

.holder {
  position: absolute;
  left: 50%;
  bottom: 15.5%;
  z-index: 3;
  width: 126px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #d8d1c4, #beb6a7);
  box-shadow:
    0 8px 18px rgba(23, 22, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.holder::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 70px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(23, 22, 20, 0.16);
  filter: blur(1px);
}

.smoke {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

body[data-stage="ascend"] .smoke,
body[data-stage="wish"] .smoke,
body[data-stage="result"] .smoke,
body[data-stage="signed"] .smoke {
  opacity: 1;
}

.smoke-path {
  stroke: #a8a196;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  opacity: 0.55;
}

body[data-stage="ascend"] .smoke-path,
body[data-stage="wish"] .smoke-path,
body[data-stage="result"] .smoke-path,
body[data-stage="signed"] .smoke-path {
  animation: smokeUp 7s linear infinite;
}

.smoke-2 {
  animation-delay: 0.7s !important;
  opacity: 0.4;
}

.smoke-3 {
  animation-delay: 1.4s !important;
  opacity: 0.5;
}

.wish-note {
  position: absolute;
  left: 50%;
  bottom: 42%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 84px;
  transform: translate(-50%, 14px) rotate(-2deg);
  border: 1px solid var(--accent);
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(23, 22, 20, 0.1);
  opacity: 0;
  pointer-events: none;
}

.wish-note::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(207, 74, 47, 0.2);
}

.wish-note span {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
}

body[data-stage="ascend"] .wish-note,
body[data-stage="wish"] .wish-note {
  animation: wishUp 5s var(--ease) forwards;
}

/* =========================================================
   Console
   ========================================================= */

.console {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 10px;
  padding: 24px 28px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  box-shadow:
    0 20px 55px rgba(23, 22, 20, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.console-kicker {
  color: var(--accent);
}

.console-meta {
  font-variant-numeric: tabular-nums;
}

.console-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.console-title .num {
  color: var(--accent);
  font-weight: 300;
}

.console-title .slash {
  margin: 0 0.18em;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.46em;
  vertical-align: 0.2em;
}

.console-copy {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.console-copy b {
  color: var(--ink);
  font-weight: 500;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}

.console-actions:empty {
  display: none;
}

.console-foot {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.btn-primary,
.entry-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn-primary::after {
  content: "→";
  font-size: 12px;
  opacity: 0.7;
}

.btn-primary:hover,
.entry-submit:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-primary:active,
.entry-submit:active {
  transform: translateY(0);
}

.btn-ghost {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(23, 22, 20, 0.035);
}

body[data-stage="entry"] .console,
body[data-stage="result"] .console {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* =========================================================
   Bow control
   ========================================================= */

.bow-control {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 2px 0;
}

.bow-button {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--accent) calc(var(--p, 0) * 1turn), rgba(23, 22, 20, 0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}

.bow-core {
  position: absolute;
  inset: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 22, 20, 0.18);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.bow-glyph {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.bow-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.bow-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(207, 74, 47, 0.14);
  border-radius: 50%;
  pointer-events: none;
  animation: beacon 3.4s ease-out infinite;
}

.bow-button:hover .bow-core {
  background: #000;
}

.bow-button.is-holding .bow-core {
  transform: scale(0.95);
  background: #2a2722;
}

.bow-button.is-complete .bow-core {
  background: var(--accent);
}

.bow-button:disabled {
  cursor: default;
}

.bow-side {
  flex: 1 1 auto;
  min-width: 0;
}

.bow-hint {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.bow-hint.is-warn {
  color: var(--accent);
}

.bow-progress {
  height: 1px;
  margin: 12px 0 10px;
  background: var(--line);
  overflow: hidden;
}

.bow-progress span {
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.08s linear;
}

.bow-count {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* =========================================================
   Entry
   ========================================================= */

.entry-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 60% 55% at 86% 10%, rgba(207, 74, 47, 0.055), transparent 70%),
    var(--paper);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.entry-layer.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.entry-top {
  display: flex;
  flex: 0 0 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.entry-top-meta {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.entry-grid {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(30px, 6vh, 70px) 0;
}

.entry-copy {
  max-width: 620px;
}

.entry-kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.entry-copy h1 {
  margin: 24px 0 0;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.entry-copy h1 .accent {
  position: relative;
  color: var(--accent);
}

.entry-copy h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.02em;
  bottom: 0.02em;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
}

.entry-copy p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.entry-points {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.entry-points span {
  color: var(--muted);
  font-size: 11px;
}

.entry-points b {
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.entry-form {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 24px 70px rgba(23, 22, 20, 0.07);
}

.form-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-top span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.form-top em {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
}

.field-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  color-scheme: light;
  transition: border-color 0.25s ease;
}

.field input::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field select:focus {
  border-bottom-color: var(--accent);
}

.field input[type="date"] {
  font-family: var(--mono);
  font-size: 12px;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-58%);
  color: var(--muted-2);
  font-size: 14px;
  pointer-events: none;
}

.entry-submit {
  width: 100%;
  margin-top: 26px;
  padding: 15px 22px;
  font-size: 14px;
}

.entry-submit i {
  font-style: normal;
  font-size: 16px;
}

.entry-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.8;
}

.entry-visual {
  position: absolute;
  right: 2%;
  bottom: 4%;
  z-index: 0;
  width: 300px;
  height: 380px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.8;
}

.entry-number {
  position: absolute;
  right: -30px;
  bottom: -90px;
  color: rgba(23, 22, 20, 0.035);
  font-size: 300px;
  font-weight: 200;
  line-height: 1;
}

.entry-line {
  position: absolute;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.entry-line-1 {
  left: 26%;
  height: 56%;
}

.entry-line-2 {
  left: 50%;
  height: 72%;
}

.entry-line-3 {
  left: 74%;
  height: 48%;
}

.entry-line::after {
  content: "";
  position: absolute;
  left: -2px;
  top: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.entry-foot {
  display: flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

/* =========================================================
   Result
   ========================================================= */

.result-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
}

.result-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 20, 0.34);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.result-layer.is-open .result-scrim {
  opacity: 1;
}

.result-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 56px);
  max-height: calc(100svh - 56px);
  overflow: auto;
  padding: 34px 38px 28px;
  border: 1px solid rgba(23, 22, 20, 0.1);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 36px 110px rgba(23, 22, 20, 0.24);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.45s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 22, 20, 0.2) transparent;
}

.result-layer.is-open .result-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.result-card:focus {
  outline: none;
}

.result-close {
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 3;
  border: 0;
  background: transparent;
  padding: 5px;
  color: var(--muted-2);
  font-size: 11px;
  transition: color 0.25s ease;
}

.result-close:hover {
  color: var(--ink);
}

.fortune-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-right: 58px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.fortune-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.fortune-grade span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.fortune-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

#fortuneTitle {
  margin: 10px 0 0;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.fortune-sub {
  margin: 10px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.fortune-verse {
  margin-top: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fortune-verse p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.08em;
}

.fortune-metrics {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
}

.score-block {
  display: flex;
  flex-direction: column;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.score-block b {
  font-size: 62px;
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.score-block small {
  margin-top: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.buff-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.buff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.buff-list span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
}

.lucky-line {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.fortune-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fortune-rules > div {
  display: flex;
  gap: 10px;
}

.fortune-rules em {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.fortune-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.fortune-ticket {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 56px 13px 16px;
  border-radius: 10px;
  background: var(--paper);
}

.fortune-ticket > div:not(.ticket-stamp) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fortune-ticket small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
}

.fortune-ticket b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-stamp {
  position: absolute;
  right: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translateY(-50%) rotate(-4deg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
}

.fortune-line {
  margin: 18px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.fortune-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.fortune-actions .btn-primary {
  flex: 1 1 auto;
}

.fortune-actions .btn-ghost {
  flex: 0 0 auto;
}

.fortune-disclaimer {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
}

.result-quickbar {
  display: none;
}

/* =========================================================
   Help / toast / counter
   ========================================================= */

.help-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(23, 22, 20, 0.25);
}

.help-dialog::backdrop {
  background: rgba(23, 22, 20, 0.32);
  backdrop-filter: blur(6px);
}

.help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 17px;
  border-bottom: 1px solid var(--line);
}

.help-kicker {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.help-head h3 {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.help-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.help-body {
  padding: 4px 26px;
}

.help-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.help-item:last-child {
  border-bottom: 0;
}

.help-item b {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.help-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.help-confirm {
  display: block;
  width: calc(100% - 52px);
  margin: 10px 26px 24px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  max-width: min(440px, calc(100vw - 40px));
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 40px rgba(23, 22, 20, 0.22);
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ritual-counter {
  position: fixed;
  left: 50%;
  top: 42%;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  transform: translate(-50%, -50%) scale(0.96);
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.ritual-counter span {
  font-size: clamp(88px, 14vh, 132px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.ritual-counter small {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.ritual-counter.show {
  animation: counter 1.1s var(--ease) forwards;
}

.site-foot {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  bottom: 9px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  pointer-events: none;
}

body[data-stage="result"] .site-foot,
body[data-stage="entry"] .site-foot {
  opacity: 0;
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes ember {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(0.92); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes smokeUp {
  0% { stroke-dashoffset: 260; opacity: 0; }
  16% { opacity: 0.55; }
  78% { opacity: 0.3; }
  100% { stroke-dashoffset: -260; opacity: 0; }
}

@keyframes wishUp {
  0% { opacity: 0; transform: translate(-50%, 16px) rotate(-2deg) scale(0.96); }
  14% { opacity: 1; }
  62% { opacity: 0.9; transform: translate(-50%, -108px) rotate(2deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -210px) rotate(5deg) scale(0.96); }
}

@keyframes beacon {
  0% { transform: scale(0.92); opacity: 0; }
  30% { opacity: 0.5; }
  100% { transform: scale(1.14); opacity: 0; }
}

@keyframes counter {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); }
  18% { opacity: 1; }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(0.98); }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(0.96); }
}

@keyframes softImpact {
  0% { transform: translateY(10px) scale(1); }
  30% { transform: translateY(13px) scale(0.995); }
  65% { transform: translateY(9px) scale(1.002); }
  100% { transform: translateY(10px) scale(1); }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1240px) {
  .layout {
    grid-template-columns: 140px minmax(0, 760px);
    gap: 28px;
  }

  .exam-meta {
    display: none;
  }

  .mobile-meta {
    display: block;
  }
}

@media (max-width: 980px) {
  .ritual-steps {
    display: none;
  }

  .layout {
    display: block;
    padding: 0 20px;
  }

  .stage {
    width: 100%;
    max-width: 760px;
    height: 100%;
    margin: 0 auto;
    padding-top: 14px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 32px 0;
  }

  .entry-copy {
    max-width: 640px;
  }

  .entry-form {
    max-width: 520px;
    justify-self: start;
  }

  .entry-visual {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-basis: 56px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-name em {
    display: none;
  }

  .incense-count {
    display: none;
  }

  .mobile-meta {
    max-width: 132px;
    font-size: 8px;
  }

  .icon-btn {
    width: 33px;
    height: 33px;
  }

  .layout {
    padding: 0 12px;
  }

  .stage {
    padding-top: 10px;
  }

  .stage-head {
    font-size: 8px;
    padding: 0 4px;
  }

  .ritual-visual {
    min-height: 220px;
    margin: 0;
  }

  .orbit {
    width: min(292px, 66vh, 76vw);
    top: 46%;
  }

  .visual-index {
    font-size: clamp(104px, 17vh, 150px);
  }

  .incense {
    height: clamp(132px, 20vh, 180px);
    bottom: 17%;
    gap: 24px;
  }

  .holder {
    width: 108px;
    bottom: 14.5%;
  }

  .orbit-label {
    bottom: 7%;
    font-size: 7px;
  }

  .console {
    margin-bottom: 8px;
    padding: 18px 18px 13px;
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.9);
  }

  .console-title {
    margin-top: 9px;
    font-size: 27px;
    letter-spacing: -0.03em;
  }

  .console-copy {
    font-size: 12px;
    line-height: 1.7;
  }

  .console-head {
    font-size: 8px;
  }

  .console-actions {
    margin-top: 13px;
  }

  .console-foot {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 8px;
  }

  .bow-control {
    gap: 16px;
    margin-top: 10px;
  }

  .bow-button {
    width: 82px;
    height: 82px;
  }

  .bow-glyph {
    font-size: 25px;
  }

  .bow-label {
    font-size: 8px;
  }

  .bow-hint {
    font-size: 11px;
  }

  .bow-count {
    font-size: 8px;
  }

  .btn-primary,
  .entry-submit {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 12px;
  }

  .entry-shell {
    padding: 0 18px;
  }

  .entry-top {
    flex-basis: 62px;
  }

  .entry-top-meta {
    font-size: 8px;
  }

  .entry-grid {
    padding: 26px 0 30px;
    gap: 28px;
  }

  .entry-copy h1 {
    margin-top: 16px;
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1.16;
  }

  .entry-copy p {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.9;
  }

  .entry-points {
    gap: 18px;
    margin-top: 28px;
    padding-top: 15px;
  }

  .entry-points span {
    font-size: 10px;
  }

  .entry-form {
    max-width: none;
    padding: 22px;
    border-radius: 20px;
  }

  .form-top {
    padding-bottom: 14px;
  }

  .form-top span {
    font-size: 16px;
  }

  .field {
    margin-top: 14px;
  }

  .field input,
  .field select {
    height: 44px;
    font-size: 14px;
  }

  .entry-submit {
    margin-top: 22px;
    padding: 13px 20px;
  }

  .entry-note {
    font-size: 9px;
  }

  .entry-foot {
    display: none;
  }

  .site-foot {
    display: none;
  }

  .result-layer {
    padding: 12px;
    place-items: start center;
  }

  .result-card {
    max-height: calc(100svh - 24px);
    padding: 24px 20px 92px;
    border-radius: 20px;
  }

  .result-close {
    top: 12px;
    right: 14px;
  }

  .fortune-head {
    padding-right: 48px;
    font-size: 8px;
  }

  .fortune-hero {
    margin-top: 18px;
  }

  .fortune-grade span {
    font-size: 11px;
  }

  .fortune-seal {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  #fortuneTitle {
    font-size: 38px;
  }

  .fortune-sub {
    font-size: 9px;
  }

  .fortune-verse {
    margin-top: 17px;
    padding: 15px 0;
  }

  .fortune-verse p {
    font-size: 16px;
    line-height: 1.9;
  }

  .fortune-metrics {
    grid-template-columns: 96px 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .score-block {
    padding-right: 14px;
  }

  .score-block b {
    font-size: 50px;
  }

  .fortune-rules {
    gap: 14px;
    margin-top: 15px;
    padding-top: 13px;
  }

  .fortune-rules p {
    font-size: 11px;
  }

  .fortune-ticket {
    margin-top: 15px;
    padding: 11px 12px;
  }

  .ticket-stamp {
    display: none;
  }

  .fortune-ticket b {
    font-size: 11px;
  }

  .fortune-line {
    margin-top: 14px;
    font-size: 11px;
  }

  .fortune-actions {
    display: none;
  }

  .fortune-disclaimer {
    font-size: 8px;
  }

  .result-quickbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 3;
    display: flex;
    gap: 6px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 14px 40px rgba(23, 22, 20, 0.16);
    backdrop-filter: blur(14px);
  }

  .result-quickbar .btn-primary {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .result-quickbar .btn-ghost {
    flex: 0 0 auto;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 11px;
  }

  .toast {
    bottom: 88px;
  }

  .ritual-counter {
    top: 38%;
  }
}

@media (max-height: 880px) and (min-width: 761px) {
  .result-card {
    padding: 24px 34px 92px;
  }

  .fortune-hero {
    margin-top: 16px;
  }

  #fortuneTitle {
    margin-top: 6px;
    font-size: 44px;
  }

  .fortune-sub {
    margin-top: 7px;
  }

  .fortune-verse {
    margin-top: 14px;
    padding: 13px 0;
  }

  .fortune-verse p {
    font-size: 16px;
    line-height: 1.85;
  }

  .fortune-metrics {
    grid-template-columns: 110px 1fr;
    margin-top: 14px;
  }

  .score-block b {
    font-size: 52px;
  }

  .fortune-rules {
    margin-top: 13px;
    padding-top: 12px;
  }

  .fortune-ticket {
    margin-top: 13px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .fortune-line {
    margin-top: 12px;
  }

  .fortune-actions {
    display: none;
  }

  .result-quickbar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
    width: min(620px, calc(100vw - 32px));
    padding: 8px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 18px 50px rgba(23, 22, 20, 0.16);
    backdrop-filter: blur(14px);
  }

  .result-quickbar .btn-primary {
    flex: 1 1 auto;
  }
}

@media (max-height: 720px) {
  .stage {
    padding-top: 8px;
  }

  .ritual-visual {
    min-height: 150px;
  }

  .orbit {
    width: min(250px, 48vh, 64vw);
  }

  .incense {
    height: min(130px, 20vh);
    bottom: 15%;
  }

  .holder {
    bottom: 12.5%;
  }

  .visual-index {
    font-size: 96px;
  }

  .console {
    padding-top: 15px;
  }

  .console-title {
    font-size: 25px;
  }

  .console-copy {
    font-size: 12px;
  }

  .console-foot {
    display: none;
  }

  .bow-button {
    width: 74px;
    height: 74px;
  }

  .bow-glyph {
    font-size: 23px;
  }

  .entry-top {
    flex-basis: 58px;
  }

  .entry-copy h1 {
    font-size: 40px;
  }

  .entry-copy p {
    margin-top: 12px;
  }

  .entry-points {
    margin-top: 18px;
  }

  .entry-form {
    padding: 20px;
  }

  .field {
    margin-top: 11px;
  }

  .field input,
  .field select {
    height: 40px;
  }

  .entry-submit {
    margin-top: 18px;
  }
}

@media (max-width: 390px) {
  .result-quickbar {
    left: 8px;
    right: 8px;
    padding: 6px;
  }

  .result-quickbar .btn-primary {
    font-size: 11px;
    letter-spacing: 0;
  }

  .result-quickbar .btn-ghost {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 10px;
  }
}

@media (max-height: 700px) and (max-width: 760px) {
  .entry-top {
    flex-basis: 52px;
  }

  .entry-grid {
    padding: 16px 0 18px;
    gap: 16px;
  }

  .entry-kicker {
    font-size: 9px;
  }

  .entry-copy h1 {
    margin-top: 11px;
    font-size: 36px;
    line-height: 1.18;
  }

  .entry-copy p {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.8;
  }

  .entry-points {
    display: none;
  }

  .entry-form {
    padding: 16px 18px;
  }

  .form-top {
    padding-bottom: 9px;
  }

  .form-top span {
    font-size: 15px;
  }

  .field {
    margin-top: 9px;
  }

  .field-label {
    font-size: 8px;
  }

  .field input,
  .field select {
    height: 35px;
    font-size: 13px;
  }

  .entry-submit {
    margin-top: 15px;
    min-height: 40px;
    padding: 11px 16px;
  }

  .entry-note {
    margin-top: 9px;
    font-size: 8px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .smoke-path,
  .orbit,
  .entry-line {
    animation: none !important;
  }
}
