:root {
  color-scheme: light;
  --bg: #f5efe7;
  --ink: #211a16;
  --muted: #7c6d62;
  --line: rgba(80, 52, 28, 0.14);
  --panel: #fffaf2;
  --panel-strong: #f0dfc6;
  --gold: #b77924;
  --red: #8f2f2a;
  --green: #2f6f54;
  --shadow: 0 18px 40px rgba(48, 31, 18, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #211a16;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button {
  border: 0;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(183, 121, 36, 0.18), transparent 34%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 42%, #efe4d5 100%);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 92px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 18px 12px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2f241c;
  color: #f8d49b;
  box-shadow: var(--shadow);
}

main {
  padding: 0 14px;
}

.view {
  display: none;
  animation: fadeUp 0.24s ease both;
}

.view.active {
  display: block;
}

.hero-card,
.form-card,
.score-card,
.ritual-stage,
.profile-card,
.settings-list,
.record-list,
.product-list,
.module-card,
.quick-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(36, 25, 20, 0.94), rgba(103, 48, 35, 0.9)),
    var(--panel);
  color: #fff8ec;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(248, 212, 155, 0.16);
  color: #f8d49b;
  font-size: 12px;
}

.fortune-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.fortune-grid div,
.direction-row div {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.fortune-grid span,
.direction-row span,
.quick-card span,
.module-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.fortune-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.direction-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.direction-row strong {
  font-size: 17px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 10px;
}

.section-head h3 {
  margin: 0;
  font-size: 18px;
}

.section-head.compact {
  margin-top: 16px;
}

.text-button {
  color: var(--red);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.score-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 20px;
  padding: 15px;
}

.score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 86%, #e2d0ba 0);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.score-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.score-card p,
.profile-card p,
.module-card small,
.settings-list span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quick-card,
.module-card {
  text-align: left;
  border-radius: 18px;
  padding: 14px;
  color: var(--ink);
}

.quick-card strong,
.module-card strong {
  display: block;
  font-size: 16px;
}

.page-title {
  padding: 8px 4px 14px;
}

.module-list {
  display: grid;
  gap: 10px;
}

.module-card.selected {
  border-color: rgba(143, 47, 42, 0.45);
  background: #fff4e2;
}

.form-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border-radius: 20px;
  padding: 15px;
}

label {
  display: grid;
  gap: 7px;
  color: #4a372c;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfa;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

.primary-button {
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8f2f2a, #b77924);
  color: #fff8ec;
  font-weight: 800;
}

.primary-button.full {
  width: 100%;
  margin-top: 12px;
}

.ritual-stage {
  min-height: 350px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 205, 118, 0.42), transparent 24%),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(160deg, #211713 0%, #4f201d 48%, #8b352e 100%);
  color: #fff7e8;
  isolation: isolate;
}

.ritual-stage::before,
.ritual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ritual-stage::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 230, 170, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 44px);
  mix-blend-mode: screen;
  animation: shimmer 5.8s linear infinite;
}

.ritual-stage::after {
  background: linear-gradient(180deg, transparent 58%, rgba(42, 18, 16, 0.58));
  z-index: 5;
}

.ritual-backdrop {
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 224, 170, 0.16);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 218, 138, 0.25), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  box-shadow: inset 0 0 60px rgba(255, 205, 118, 0.08);
  z-index: 0;
}

.halo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 232, 180, 0.16);
  box-shadow: 0 0 36px rgba(255, 186, 91, 0.11);
  animation: haloDrift 8s ease-in-out infinite;
  z-index: 1;
}

.halo-one {
  width: 210px;
  height: 210px;
  top: 26px;
  left: 52px;
}

.halo-two {
  width: 150px;
  height: 150px;
  right: 52px;
  top: 98px;
  animation-delay: -3s;
}

.ritual-orb {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 118, 0.55), rgba(255, 155, 76, 0.12) 44%, transparent 70%);
  filter: blur(4px);
  animation: orbBreath 2.8s ease-in-out infinite;
  z-index: 1;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe6aa;
  box-shadow: 0 0 12px rgba(255, 214, 132, 0.9);
  opacity: 0;
  animation: sparkRise 3.4s ease-in-out infinite;
  z-index: 4;
}

.spark-a {
  left: 35%;
  top: 63%;
}

.spark-b {
  left: 57%;
  top: 58%;
  animation-delay: 0.9s;
}

.spark-c {
  left: 48%;
  top: 66%;
  animation-delay: 1.7s;
}

.incense {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 174px;
  z-index: 3;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.incense i {
  display: block;
  width: 9px;
  height: 118px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4d389 0%, #a85a32 44%, #6d241d 100%);
  position: relative;
  box-shadow: inset -2px 0 rgba(255, 235, 168, 0.2), 0 14px 18px rgba(49, 18, 15, 0.3);
}

.incense i:nth-child(2) {
  height: 128px;
  animation-delay: 0.2s;
}

.incense i:nth-child(3) {
  animation-delay: 0.4s;
}

.incense i::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4c7 0 20%, #ffd06e 48%, rgba(255, 106, 57, 0.4) 78%);
  box-shadow: 0 0 22px 9px rgba(255, 190, 91, 0.55), 0 0 54px 18px rgba(255, 126, 74, 0.2);
  animation: flameFlicker 0.8s infinite alternate ease-in-out;
}

.incense i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 46px;
  height: 18px;
  border-radius: 50%;
  background: rgba(45, 17, 13, 0.3);
  transform: translateX(-50%);
  filter: blur(7px);
}

.ritual-lamp,
.ritual-flower,
.ritual-lot {
  position: absolute;
  z-index: 3;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.ritual-lamp {
  width: 138px;
  height: 138px;
  border-radius: 42% 42% 48% 48%;
  background:
    radial-gradient(circle at 50% 20%, #fff4c2 0 9%, #ffcb6f 10% 22%, transparent 24%),
    linear-gradient(180deg, #eec575 0%, #a64b31 56%, #63231d 100%);
  box-shadow: 0 20px 42px rgba(38, 15, 12, 0.34), 0 0 65px rgba(255, 188, 92, 0.36);
}

.ritual-lamp::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -44px;
  width: 44px;
  height: 64px;
  border-radius: 52% 52% 48% 48%;
  background: radial-gradient(circle at 50% 30%, #fffbe2, #ffd16e 48%, rgba(255, 115, 58, 0.36) 76%, transparent);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 28px rgba(255, 198, 92, 0.84));
  animation: lampFlame 1.1s ease-in-out infinite alternate;
}

.ritual-lamp::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -13px;
  height: 26px;
  border-radius: 50%;
  background: rgba(36, 14, 12, 0.32);
  filter: blur(8px);
}

.ritual-lamp span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 241, 204, 0.38);
}

.ritual-flower {
  width: 150px;
  height: 150px;
}

.ritual-flower i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 82px;
  border-radius: 56% 56% 48% 48%;
  background: linear-gradient(180deg, #ffd8df, #c94868);
  transform-origin: 50% 88%;
  box-shadow: inset 0 9px 16px rgba(255, 255, 255, 0.25), 0 14px 24px rgba(57, 14, 18, 0.22);
}

.ritual-flower i:nth-child(1) {
  transform: translate(-50%, -80%) rotate(0deg);
}

.ritual-flower i:nth-child(2) {
  transform: translate(-50%, -80%) rotate(72deg);
}

.ritual-flower i:nth-child(3) {
  transform: translate(-50%, -80%) rotate(144deg);
}

.ritual-flower i:nth-child(4) {
  transform: translate(-50%, -80%) rotate(216deg);
}

.ritual-flower i:nth-child(5) {
  transform: translate(-50%, -80%) rotate(288deg);
}

.ritual-flower::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5be, #d69a34);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px rgba(255, 204, 111, 0.6);
}

.ritual-lot {
  width: 132px;
  height: 172px;
  border-radius: 22px 22px 16px 16px;
  background: linear-gradient(180deg, #f7dba2, #9d4430);
  box-shadow: 0 20px 42px rgba(40, 14, 12, 0.35);
}

.ritual-lot::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: -26px;
  height: 54px;
  border-radius: 999px;
  background: #ffd78f;
  box-shadow: inset 0 -10px 16px rgba(111, 43, 25, 0.28);
}

.ritual-lot span {
  position: absolute;
  left: 50%;
  top: -82px;
  width: 22px;
  height: 112px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5cc, #b96038);
  transform: translateX(-50%) rotate(-8deg);
  box-shadow: -34px 18px 0 -2px #d28b4a, 35px 14px 0 -2px #d28b4a;
  animation: lotShake 1.6s ease-in-out infinite;
}

.ritual-lot strong {
  position: absolute;
  inset: 46px 0 0;
  display: grid;
  place-items: center;
  color: #fff3d8;
  font-size: 54px;
  text-shadow: 0 2px 8px rgba(44, 13, 11, 0.32);
}

.ritual-stage[data-ritual-scene="lamp"] .incense,
.ritual-stage[data-ritual-scene="flower"] .incense,
.ritual-stage[data-ritual-scene="lot"] .incense {
  opacity: 0;
  transform: translateY(28px) scale(0.86);
}

.ritual-stage[data-ritual-scene="lamp"] .ritual-lamp,
.ritual-stage[data-ritual-scene="flower"] .ritual-flower,
.ritual-stage[data-ritual-scene="lot"] .ritual-lot,
.ritual-stage[data-ritual-scene="incense"] .incense {
  opacity: 1;
  transform: translateY(-12px) scale(1);
}

.ritual-stage[data-ritual-scene="flower"] .ritual-orb {
  background: radial-gradient(circle, rgba(255, 189, 207, 0.55), rgba(255, 145, 171, 0.14) 46%, transparent 70%);
}

.ritual-stage[data-ritual-scene="lot"] .ritual-orb {
  background: radial-gradient(circle, rgba(255, 234, 167, 0.48), rgba(255, 193, 99, 0.12) 46%, transparent 70%);
}

.ritual-stage.is-ritualizing .ritual-orb {
  animation: ritualPulse 0.72s ease-out both;
}

.ritual-stage.is-ritualizing .spark {
  animation-duration: 1.1s;
}

.smoke {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(255, 238, 198, 0.22);
  filter: blur(1.3px);
  animation: smoke 5.4s infinite ease-in-out;
  z-index: 2;
}

.smoke-a {
  top: 48px;
  left: 86px;
}

.smoke-b {
  top: 86px;
  right: 60px;
  animation-delay: 1.6s;
}

.ritual-stage p {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 6;
  margin: 0;
  text-align: center;
  line-height: 1.55;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(34, 10, 8, 0.45);
}

.ritual-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.ritual-actions button,
.segmented button {
  min-height: 42px;
  border-radius: 13px;
  background: #fff8ef;
  color: #4a372c;
  font-weight: 800;
}

.ritual-actions button.active,
.segmented button.active {
  background: linear-gradient(135deg, #2f241c, #7b3329);
  color: #ffe4ac;
  box-shadow: 0 10px 22px rgba(86, 34, 26, 0.18);
}

.wish-box {
  min-height: 92px;
  margin-top: 12px;
  padding: 12px;
  resize: none;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.name-results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.name-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.92);
}

.name-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.name-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 20px;
  padding: 15px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2f241c;
  color: #f8d49b;
  font-size: 24px;
  font-weight: 900;
}

.profile-card h3 {
  margin: 0 0 4px;
}

.settings-list {
  display: grid;
  margin-top: 12px;
  border-radius: 20px;
  overflow: hidden;
}

.settings-list button,
.settings-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-size: 14px;
}

.settings-list button:last-child,
.settings-link:last-child {
  border-bottom: 0;
}

.settings-link span {
  color: var(--muted);
  font-size: 13px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 430px);
  transform: translateX(-50%);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.95);
  backdrop-filter: blur(16px);
}

.tabbar button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 54px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.tabbar button span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #efe0cc;
  color: #6c5546;
  font-weight: 900;
}

.tabbar button.active {
  color: var(--red);
  font-weight: 800;
}

.tabbar button.active span {
  background: #2f241c;
  color: #f8d49b;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(24, 18, 14, 0.42);
}

.sheet.open {
  display: flex;
}

.sheet-panel {
  width: min(100%, 430px);
  border-radius: 24px 24px 0 0;
  padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  background: #fffaf2;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: sheetUp 0.24s ease both;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efe0cc;
  color: #4a372c;
  font-size: 22px;
}

.sheet-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.pay-card {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  padding: 14px;
  background: #2f241c;
  color: #f8d49b;
}

.pay-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.pay-card strong {
  color: #fff6e7;
}

.record-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-radius: 20px;
  padding: 12px;
}

.product-list {
  display: grid;
  gap: 9px;
  border-radius: 20px;
  padding: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fff8ef;
  color: var(--ink);
  text-align: left;
}

.product-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-price {
  color: var(--red);
  font-weight: 900;
  white-space: nowrap;
}

.record-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}

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

.record-badge {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  background: #efe0cc;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.record-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.record-item span:last-child {
  color: var(--muted);
  font-size: 12px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-36%);
  }
  to {
    transform: translateX(36%);
  }
}

@keyframes haloDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(10px, -8px, 0) scale(1.08);
    opacity: 0.72;
  }
}

@keyframes orbBreath {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes sparkRise {
  0% {
    transform: translateY(18px) scale(0.6);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  100% {
    transform: translateY(-86px) scale(1.1);
    opacity: 0;
  }
}

@keyframes flameFlicker {
  from {
    transform: translateY(1px) scale(0.88);
    opacity: 0.78;
  }
  to {
    transform: translateY(-1px) scale(1.12);
    opacity: 1;
  }
}

@keyframes lampFlame {
  from {
    transform: translateX(-50%) rotate(-4deg) scale(0.92);
  }
  to {
    transform: translateX(-50%) rotate(4deg) scale(1.08);
  }
}

@keyframes lotShake {
  0%,
  100% {
    transform: translateX(-50%) rotate(-8deg);
  }
  45% {
    transform: translateX(-50%) rotate(7deg);
  }
}

@keyframes ritualPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  80% {
    transform: scale(1.32);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes smoke {
  0% {
    transform: translateY(30px) scale(0.8);
    opacity: 0;
  }
  45% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-68px) scale(1.3);
    opacity: 0;
  }
}

@media (max-width: 360px) {
  main {
    padding: 0 10px;
  }

  .hero-card,
  .form-card,
  .score-card {
    border-radius: 18px;
  }

  .quick-card strong,
  .module-card strong {
    font-size: 15px;
  }
}

.download-shell {
  padding-bottom: 28px;
}

.mini-link {
  border-radius: 999px;
  padding: 9px 12px;
  background: #2f241c;
  color: #f8d49b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.download-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(248, 212, 155, 0.5), transparent 32%),
    linear-gradient(180deg, #2f241c, #7a332d);
  color: #fff8ec;
  box-shadow: var(--shadow);
  text-align: center;
}

.app-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: #f8d49b;
  color: #2f241c;
  font-size: 38px;
  font-weight: 900;
}

.download-hero h2 {
  font-size: 26px;
}

.download-hero p {
  margin: 0;
  color: rgba(255, 248, 236, 0.78);
  line-height: 1.7;
}

.download-button {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 8px;
  text-decoration: none;
}

.download-note {
  color: rgba(255, 248, 236, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.download-section {
  margin-top: 16px;
}

.download-section h3 {
  margin: 0 0 9px;
  font-size: 18px;
}

.version-card,
.step-list,
.plain-copy {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow);
}

.version-card {
  display: grid;
  gap: 5px;
}

.version-card span,
.plain-copy,
.step-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.step-list {
  margin: 0;
  padding-left: 32px;
}
