:root {
  --ink: #070912;
  --ink-2: #0b1020;
  --ink-3: #11182a;
  --paper: #f0e6cf;
  --paper-muted: #b7ae9d;
  --red: #ed5a49;
  --red-dark: #9f2728;
  --jade: #56dcc8;
  --jade-dark: #1a857b;
  --gold: #e8bd72;
  --gold-pale: #f4dca6;
  --line: rgba(240, 230, 207, .14);
  --line-strong: rgba(240, 230, 207, .28);
  --shadow: 0 32px 80px rgba(0, 0, 0, .42);
  --font-serif: "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 13% 8%, rgba(41, 113, 109, .18), transparent 28rem),
    radial-gradient(circle at 86% 28%, rgba(160, 36, 38, .17), transparent 34rem),
    linear-gradient(160deg, #080b15, #060810 62%, #090c16);
}

button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

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

.ambient {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  filter: blur(32px);
  opacity: .46;
}

.ambient-a {
  top: -22rem;
  left: -15rem;
  border: 1px solid var(--jade);
  border-radius: 50%;
  box-shadow: inset 0 0 160px rgba(86, 220, 200, .22);
}

.ambient-b {
  right: -18rem;
  bottom: -22rem;
  border: 1px solid var(--red);
  transform: rotate(20deg);
  box-shadow: inset 0 0 160px rgba(237, 90, 73, .16);
}

.ink-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .16;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-stamp {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff3dc;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 2px;
  border-radius: 3px 6px 4px 5px;
  background: var(--red);
  box-shadow: inset 0 0 0 2px rgba(255, 244, 224, .2), 0 0 24px rgba(237, 90, 73, .2);
  transform: rotate(-2deg);
}

.brand strong,
.brand small { display: block; }
.brand strong { font-family: var(--font-serif); font-size: 15px; letter-spacing: 2px; }
.brand small { margin-top: 2px; color: #777d8a; font-size: 7px; letter-spacing: 1.7px; }

.site-header-actions { display: flex; align-items: center; gap: 7px; }
.brand-home-link {
  min-height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8f968f;
  font-size: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
}
.brand-home-link:hover { color: var(--gold-pale); border-color: rgba(232, 189, 114, .35); }
.brand-home-link span { color: var(--gold); }

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  color: #858b96;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

@media (max-width: 430px) {
  .brand-home-link { width: 38px; padding: 0; justify-content: center; font-size: 0; }
  .brand-home-link span { font-size: 12px; }
}

.sound-bars { display: flex; align-items: center; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 4px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 9px; }
.sound-bars i:nth-child(3) { height: 6px; }
.sound-toggle[aria-pressed="true"] { color: var(--jade); }
.sound-toggle[aria-pressed="true"] .sound-bars i { animation: soundbar .7s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.32s; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.12s; }

.app-shell {
  width: min(1240px, calc(100% - 28px));
  min-height: calc(100vh - 142px);
  margin: 0 auto;
}

.progress-nav {
  position: relative;
  width: min(430px, 100%);
  margin: 10px auto 28px;
}

.progress-nav ol {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.progress-nav li {
  display: grid;
  gap: 3px;
  color: #5f6572;
  font-size: 9px;
  letter-spacing: 2px;
  text-align: center;
  transition: color .35s ease;
}

.progress-nav b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  margin: auto;
  color: #686e79;
  font-size: 9px;
  border: 1px solid #2c3240;
  border-radius: 50%;
  background: var(--ink);
}

.progress-nav li.is-active,
.progress-nav li.is-done { color: var(--paper-muted); }
.progress-nav li.is-active b { color: var(--ink); border-color: var(--gold); background: var(--gold); box-shadow: 0 0 22px rgba(232, 189, 114, .2); }
.progress-nav li.is-done b { color: var(--jade); border-color: rgba(86, 220, 200, .6); }
.progress-line {
  position: absolute;
  z-index: 0;
  top: 14px;
  left: 31px;
  right: 31px;
  height: 1px;
  background: #272d39;
}
.progress-line i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--jade), var(--gold)); transition: width .5s ease; }

.screen {
  display: none;
  opacity: 0;
}

.screen.is-active {
  display: block;
  animation: screenIn .55s cubic-bezier(.2, .8, .2, 1) forwards;
}

.screen-home {
  position: relative;
  padding: 8px 0 34px;
}

.hero { position: relative; max-width: 860px; margin: auto; text-align: center; }

.hero-art {
  position: relative;
  width: min(68vw, 260px);
  aspect-ratio: 1;
  margin: 3px auto 0;
}

.moon-disc {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 189, 114, .5);
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .08), transparent 38%),
    radial-gradient(circle at 35% 30%, #1d3938, #0c1d24 48%, #0a101c 72%);
  box-shadow:
    inset 0 0 30px rgba(86, 220, 200, .12),
    0 0 55px rgba(45, 188, 176, .12),
    0 0 0 7px rgba(5, 7, 13, .7);
}

.moon-disc::before,
.moon-disc::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(86, 220, 200, .26);
  border-radius: 50%;
}
.moon-disc::before { inset: 9px; }
.moon-disc::after { inset: 20px; border-style: dashed; }

.moon-glyph {
  color: var(--gold-pale);
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(232, 189, 114, .28);
}

.orbit {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(240, 230, 207, .14);
  border-radius: 50%;
  animation: rotate 28s linear infinite;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-top: 1px solid rgba(86, 220, 200, .25);
  border-radius: 50%;
  transform: rotate(48deg);
}
.orbit::after { transform: rotate(-48deg); border-color: rgba(237, 90, 73, .24); }
.orbit i { position: absolute; width: 5px; height: 5px; border: 1px solid var(--gold); border-radius: 50%; background: var(--ink); }
.orbit i:nth-child(1) { top: -3px; left: 48%; }
.orbit i:nth-child(2) { right: 9%; top: 24%; background: var(--jade); border: none; box-shadow: 0 0 10px var(--jade); }
.orbit i:nth-child(3) { bottom: 6%; left: 25%; }
.orbit i:nth-child(4) { left: -2px; top: 54%; background: var(--red); border: none; }
.orbit-inner { inset: 10%; animation: rotate 20s linear infinite reverse; border-style: dashed; }
.orbit-inner i:nth-child(1) { top: 21%; left: 2%; }
.orbit-inner i:nth-child(2) { top: 65%; right: 1%; }
.orbit-inner i:nth-child(3) { left: 48%; bottom: -3px; background: var(--gold); }

.hero-seal {
  position: absolute;
  right: 3%;
  bottom: 17%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffd6b4;
  font-family: var(--font-serif);
  font-size: 10px;
  line-height: 1.1;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: rgba(159, 39, 40, .5);
  transform: rotate(7deg);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 3px;
}
.eyebrow i { width: 22px; height: 1px; background: var(--gold); opacity: .6; }

.hero h1 {
  margin: 15px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 12vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 2px;
}
.hero h1 em { position: relative; color: var(--red); font-style: normal; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -4%;
  bottom: -5px;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(237, 90, 73, .75) 12%, rgba(237, 90, 73, .15) 88%, transparent);
  filter: blur(1px);
  transform: skewX(-18deg);
}

.hero-copy {
  max-width: 570px;
  margin: 0 auto;
  color: #9197a3;
  font-size: 13px;
  line-height: 1.85;
}

.mode-picker {
  max-width: 710px;
  margin: 26px auto 0;
  display: grid;
  gap: 12px;
}

.mode-card {
  position: relative;
  min-height: 112px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  color: var(--paper);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 130px;
  height: 130px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .1;
}

.mode-card:hover { transform: translateY(-3px); }
.mode-card.sport:hover { border-color: rgba(86, 220, 200, .48); box-shadow: 0 18px 45px rgba(30, 137, 127, .12); }
.mode-card.welfare:hover { border-color: rgba(237, 90, 73, .48); box-shadow: 0 18px 45px rgba(159, 39, 40, .12); }

.mode-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 220, 200, .4);
  border-radius: 50%;
  color: var(--jade);
  background: rgba(86, 220, 200, .07);
}
.mode-icon svg { width: 25px; fill: currentColor; }
.mode-icon.coin { color: #ffc4b5; font-family: var(--font-serif); font-size: 28px; border-color: rgba(237, 90, 73, .5); background: rgba(237, 90, 73, .09); }

.mode-meta { display: grid; gap: 2px; }
.mode-meta small { color: #626977; font-size: 7px; letter-spacing: 2px; }
.mode-meta strong { font-family: var(--font-serif); font-size: 29px; letter-spacing: 4px; }
.mode-meta > span { color: #878d99; font-size: 11px; }
.mode-arrow { margin-left: auto; color: var(--gold); font-size: 20px; }

.boundary-note {
  max-width: 710px;
  margin: 14px auto 0;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #717784;
  text-align: left;
  border: 1px dashed rgba(232, 189, 114, .17);
  background: rgba(232, 189, 114, .025);
}
.boundary-note p { margin: 0; font-size: 10px; line-height: 1.7; }
.boundary-note strong { color: var(--gold-pale); font-weight: 500; }
.shield-icon { color: var(--gold); font-size: 22px; }

.side-note { display: none; }

.back-link {
  padding: 8px 0;
  color: #808794;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease;
}
.back-link:hover { color: var(--paper); }
.back-link span { margin-right: 4px; color: var(--jade); }

.screen-products,
.screen-profile,
.screen-result { padding-bottom: 50px; }

.section-heading {
  margin-top: 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1;
  letter-spacing: 2px;
}
.section-heading.compact { margin-top: 20px; align-items: center; }
.section-heading.compact h2 { font-size: clamp(30px, 7vw, 44px); }
.section-kicker { color: var(--jade); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; }
.vertical-mark {
  padding: 7px 5px;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  border: 1px solid var(--red);
}
.section-intro { max-width: 620px; color: #878e9b; font-size: 12px; line-height: 1.8; }

.product-grid {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.product-card {
  position: relative;
  min-height: 174px;
  padding: 21px 20px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 62%),
    var(--ink-2);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(232, 189, 114, .46); }
.product-card::after {
  content: attr(data-index);
  position: absolute;
  right: -7px;
  bottom: -26px;
  color: rgba(255, 255, 255, .025);
  font-family: Georgia, serif;
  font-size: 112px;
  font-weight: 900;
  line-height: 1;
}
.product-card .product-no { color: var(--gold); font-size: 8px; letter-spacing: 2px; }
.product-card h3 { margin: 15px 0 7px; font-family: var(--font-serif); font-size: 24px; letter-spacing: 1px; }
.product-card p { max-width: 80%; margin: 0; color: #777e8b; font-size: 10px; line-height: 1.65; }
.product-card .product-foot { position: absolute; left: 20px; right: 20px; bottom: 17px; display: flex; justify-content: space-between; color: #656c78; font-size: 8px; letter-spacing: 1px; }
.product-card .product-foot i { color: var(--jade); font-size: 17px; font-style: normal; }
.product-card[data-accent="red"]::before,
.product-card[data-accent="jade"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 45%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(237, 90, 73, .5);
}
.product-card[data-accent="jade"]::before { background: var(--jade); box-shadow: 0 0 18px rgba(86, 220, 200, .45); }

.profile-layout { margin-top: 17px; display: grid; gap: 15px; }

.selected-product {
  position: relative;
  min-height: 175px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(86, 220, 200, .08), rgba(255, 255, 255, .018));
}
.selected-product::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -75px;
  border: 1px solid rgba(86, 220, 200, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(86, 220, 200, .025), 0 0 0 42px rgba(86, 220, 200, .02);
}
.selected-product > span { color: var(--jade); font-size: 8px; letter-spacing: 2px; }
.selected-product h3 { margin: 13px 0 8px; font-family: var(--font-serif); font-size: 28px; }
.selected-product p { max-width: 85%; margin: 0; color: #7e8592; font-size: 11px; line-height: 1.7; }
.selected-product .mini-rules { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.selected-product .mini-rules i { padding: 5px 8px; color: var(--gold-pale); font-size: 9px; font-style: normal; border: 1px solid rgba(232, 189, 114, .2); background: rgba(232, 189, 114, .035); }

.profile-panel {
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .04), transparent 35%),
    rgba(10, 14, 25, .82);
  box-shadow: var(--shadow);
}
.panel-topline { display: flex; justify-content: space-between; color: #59606d; font-size: 7px; letter-spacing: 1.5px; }
.status-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); }
.jade-knot { color: var(--jade); font-size: 32px; text-shadow: 0 0 20px rgba(86, 220, 200, .35); }
.form-lead { margin: 9px 0 16px; color: #7e8591; font-size: 11px; line-height: 1.7; }

.privacy-banner {
  margin-bottom: 20px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(86, 220, 200, .18);
  background: rgba(86, 220, 200, .045);
}
.privacy-banner > span { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; color: var(--jade); font-family: var(--font-serif); border: 1px solid rgba(86, 220, 200, .4); }
.privacy-banner p { margin: 0; color: #7d8f8e; font-size: 9px; line-height: 1.6; }
.privacy-banner strong { color: #bce6df; font-weight: 500; }

.field { margin-top: 15px; }
.field label { margin-bottom: 7px; display: flex; justify-content: space-between; color: #c8c1b3; font-size: 11px; }
.field label span { color: #5f6672; font-size: 9px; }
.field label .required { color: var(--red); }
.input-wrap { position: relative; }
.input-wrap input,
.input-wrap select {
  width: 100%;
  height: 49px;
  padding: 0 48px 0 14px;
  color: var(--paper);
  border: 1px solid #292f3c;
  border-radius: 2px;
  outline: none;
  background: #090d18;
  color-scheme: dark;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-wrap input::placeholder { color: #444b58; }
.input-wrap input:focus,
.input-wrap select:focus { border-color: rgba(86, 220, 200, .6); box-shadow: 0 0 0 3px rgba(86, 220, 200, .07); }
.input-wrap i { position: absolute; top: 9px; right: 10px; width: 29px; height: 29px; display: grid; place-items: center; color: #5f6774; font-family: var(--font-serif); font-size: 12px; font-style: normal; border-left: 1px solid #2b313e; }
.select-wrap select { appearance: none; }
.date-trigger {
  position: relative;
  width: 100%;
  height: 49px;
  padding: 0 48px 0 14px;
  color: var(--paper);
  text-align: left;
  border: 1px solid #292f3c;
  border-radius: 2px;
  background: #090d18;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.date-trigger:hover { border-color: rgba(86, 220, 200, .42); }
.date-trigger .is-placeholder { color: #59606c; }
.date-trigger i { position: absolute; top: 9px; right: 10px; width: 29px; height: 29px; display: grid; place-items: center; color: var(--jade); font-family: var(--font-serif); font-size: 12px; font-style: normal; border-left: 1px solid #2b313e; }
.session-promise { margin: 7px 0 0; display: flex; align-items: start; gap: 6px; color: #65716f; font-size: 8px; line-height: 1.55; }
.session-promise span { flex: 0 0 auto; color: var(--jade); }
.field.has-error .date-trigger { border-color: var(--red); }

.field-error {
  display: none;
  margin-top: 6px;
  color: #ff8d7f;
  font-size: 9px;
}
.field.has-error .field-error,
.consent-error.is-visible { display: block; }
.field.has-error input { border-color: var(--red); }

.happy-count-field { padding: 12px; border: 1px solid rgba(232, 189, 114, .18); background: rgba(232, 189, 114, .03); }
.count-control { display: grid; grid-template-columns: 34px 38px 1fr 34px; align-items: center; gap: 7px; }
.count-control button { height: 34px; color: var(--gold); border: 1px solid rgba(232, 189, 114, .23); background: transparent; cursor: pointer; }
.count-control output { text-align: center; font-size: 19px; font-weight: 700; }
.count-control input { width: 100%; accent-color: var(--gold); }

.group-count-field {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.group-count-field legend {
  width: 100%;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  color: #c8c1b3;
  font-size: 11px;
}
.group-count-field legend span { color: #5f6672; font-size: 9px; }
.group-count-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.group-count-options label { margin: 0; display: block; cursor: pointer; }
.group-count-options input { position: absolute; opacity: 0; pointer-events: none; }
.group-count-options label > span {
  height: 48px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: #707783;
  border: 1px solid #2c3340;
  background: rgba(255, 255, 255, .018);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.group-count-options b { font-family: var(--font-serif); font-size: 21px; font-weight: 700; }
.group-count-options small { font-size: 8px; }
.group-count-options input:checked + span {
  color: #10201e;
  border-color: var(--jade);
  background: linear-gradient(145deg, #65dbc9, #d0bd7a);
  box-shadow: 0 8px 20px rgba(49, 168, 155, .13);
  transform: translateY(-2px);
}
.group-count-options input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 3px; }
.group-count-field > p { margin: 7px 0 0; color: #565e6a; font-size: 8px; line-height: 1.55; }

.consent {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  color: #7a818d;
  font-size: 9px;
  line-height: 1.6;
  cursor: pointer;
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { position: relative; width: 18px; height: 18px; border: 1px solid #3b4250; background: #0a0e18; }
.consent input:checked + .custom-check { border-color: var(--jade); background: var(--jade); }
.consent input:checked + .custom-check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent input:focus-visible + .custom-check { outline: 2px solid var(--jade); outline-offset: 3px; }

.primary-button {
  width: 100%;
  min-height: 57px;
  margin-top: 19px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "main icon" "sub icon";
  align-content: center;
  color: #160d0b;
  text-align: left;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(105deg, #f06b56, #e9b66a);
  box-shadow: 0 15px 34px rgba(180, 56, 41, .2);
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.primary-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.primary-button span { grid-area: main; font-weight: 800; letter-spacing: 1px; }
.primary-button b { grid-area: sub; margin-top: 2px; font-size: 7px; font-weight: 500; letter-spacing: 2px; opacity: .58; }
.primary-button i { grid-area: icon; align-self: center; font-size: 21px; font-style: normal; }

.screen-ritual.is-active { min-height: 65vh; display: grid; place-items: center; }
.ritual-stage { width: min(390px, 100%); padding: 30px 10px; text-align: center; }
.ritual-rings { position: relative; width: 210px; height: 210px; margin: 0 auto 28px; display: grid; place-items: center; }
.ritual-rings > i { position: absolute; border-radius: 50%; }
.ritual-rings .r1 { inset: 0; border: 1px dashed rgba(86, 220, 200, .42); animation: rotate 9s linear infinite; }
.ritual-rings .r2 { inset: 22px; border: 1px solid rgba(232, 189, 114, .33); animation: rotate 6s linear infinite reverse; }
.ritual-rings .r2::before,
.ritual-rings .r2::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.ritual-rings .r2::before { top: -4px; left: 50%; }
.ritual-rings .r2::after { bottom: 14px; right: 13px; background: var(--jade); box-shadow: 0 0 12px var(--jade); }
.ritual-rings .r3 { inset: 49px; border: 1px solid rgba(237, 90, 73, .52); box-shadow: inset 0 0 30px rgba(237, 90, 73, .08), 0 0 45px rgba(237, 90, 73, .07); animation: pulse 1.25s ease-in-out infinite alternate; }
.ritual-core { width: 78px; height: 78px; display: grid; place-items: center; color: var(--gold-pale); font-family: var(--font-serif); font-size: 35px; border-radius: 50%; background: radial-gradient(circle, #1f2c2f, #0a0e18 67%); box-shadow: 0 0 32px rgba(86, 220, 200, .16); }
.ritual-index { color: var(--red); font-size: 9px; letter-spacing: 2px; }
.ritual-stage h2 { margin: 10px 0 7px; font-family: var(--font-serif); font-size: 28px; letter-spacing: 2px; }
.ritual-stage p { margin: 0; color: #777e89; font-size: 11px; }
.ritual-loader { width: 100%; height: 1px; margin: 25px 0 12px; background: #2a303c; }
.ritual-loader i { display: block; width: 9%; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold), var(--jade)); box-shadow: 0 0 10px rgba(86, 220, 200, .4); transition: width .45s ease; }
.ritual-steps { display: flex; justify-content: space-between; color: #444b57; font-size: 8px; letter-spacing: 1px; }
.ritual-steps span.is-on { color: var(--jade); }

.result-topbar { display: flex; align-items: center; justify-content: space-between; }
.result-switch { padding: 9px 12px; color: #b8c5c3; border: 1px solid rgba(86, 220, 200, .28); background: rgba(86, 220, 200, .04); }
.result-switch:hover { color: #d9fff8; border-color: rgba(86, 220, 200, .58); }
.result-date { color: #666d79; font-size: 8px; letter-spacing: 2px; }
.result-layout { display: grid; gap: 14px; margin-top: 15px; }

.fortune-card {
  position: relative;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 85% 16%, rgba(86, 220, 200, .08), transparent 18rem),
    rgba(9, 13, 23, .9);
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow: var(--shadow);
}
.fortune-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 17%;
  width: 28%;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}
.fortune-card-top { display: flex; justify-content: space-between; color: #666d79; font-size: 8px; letter-spacing: 1.5px; }
.fortune-card-top i { color: var(--jade); font-style: normal; }
.fortune-title-row { margin-top: 27px; display: flex; align-items: start; justify-content: space-between; }
.fortune-rank small { display: block; color: var(--gold); font-size: 7px; letter-spacing: 2px; }
.fortune-rank strong { display: block; margin-top: 3px; color: var(--gold-pale); font-family: var(--font-serif); font-size: 16px; letter-spacing: 3px; }
.fortune-stamp { width: 42px; height: 42px; display: grid; place-items: center; color: #ffb3a8; font-family: var(--font-serif); font-size: 10px; line-height: 1.1; text-align: center; border: 1px solid var(--red); background: rgba(159, 39, 40, .25); transform: rotate(5deg); }
.fortune-card > h1 { margin: 14px 0; font-family: var(--font-serif); font-size: clamp(39px, 10vw, 62px); line-height: 1.12; letter-spacing: 2px; }
.fortune-card > h1 em { color: var(--jade); font-style: normal; text-shadow: 0 0 24px rgba(86, 220, 200, .13); }
.fortune-poem { max-width: 690px; margin: 0; color: #9b9e9f; font-size: 12px; line-height: 1.95; }

.fortune-meta { margin-top: 25px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fortune-meta > div { min-width: 0; padding: 14px 7px; text-align: center; border-right: 1px solid var(--line); }
.fortune-meta > div:last-child { border-right: 0; }
.fortune-meta small,
.fortune-meta strong,
.fortune-meta span { display: block; }
.fortune-meta small { color: #5f6673; font-size: 7px; letter-spacing: 1px; }
.fortune-meta strong { margin: 5px 0 4px; font-family: var(--font-serif); font-size: 19px; }
.fortune-meta span { overflow: hidden; color: #6d7480; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.fortune-meta .color-value { display: flex; align-items: center; justify-content: center; gap: 5px; font-family: inherit; font-size: 14px; }
.color-value i { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 10px currentColor; }

.share-spotlight {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-top: 22px;
  padding: 26px;
  display: block;
  overflow: hidden;
  color: var(--paper);
  text-align: left;
  border: 1px solid rgba(232, 189, 114, .48);
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    radial-gradient(circle at 82% 14%, rgba(86, 220, 200, .25), transparent 31%),
    radial-gradient(circle at 8% 95%, rgba(237, 90, 73, .2), transparent 32%),
    linear-gradient(155deg, #0b1926, #070911 60%, #150b11);
  background-size: 29px 29px, 29px 29px, auto, auto, auto;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .38), inset 0 0 60px rgba(86, 220, 200, .025);
  cursor: pointer;
}
.share-spotlight::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232, 189, 114, .14);
  pointer-events: none;
}
.share-spotlight::after {
  content: "POSTER / 1080 × 1440";
  position: absolute;
  right: -51px;
  top: 95px;
  color: rgba(232, 189, 114, .42);
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 3px;
  transform: rotate(90deg);
}
.share-spotlight:hover,
.share-spotlight:focus-visible {
  border-color: rgba(86, 220, 200, .66);
  outline: none;
  box-shadow: 0 26px 66px rgba(0, 0, 0, .48), 0 0 0 3px rgba(86, 220, 200, .07);
  transform: translateY(-2px);
}
.share-spotlight-orbit {
  position: absolute;
  width: 270px;
  height: 270px;
  right: -104px;
  top: -73px;
  border: 1px solid rgba(232, 189, 114, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(86, 220, 200, .025), 0 0 0 52px rgba(232, 189, 114, .018);
}
.share-spotlight-orbit::before,
.share-spotlight-orbit::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px var(--jade);
}
.share-spotlight-orbit::before { left: 25px; top: 42px; }
.share-spotlight-orbit::after { left: 62px; bottom: 15px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.share-spotlight-copy { position: relative; display: block; }
.share-spotlight-copy small { display: block; color: var(--jade); font-size: 7px; letter-spacing: 2.2px; }
.share-spotlight-copy strong { display: block; margin-top: 12px; font-family: var(--font-serif); font-size: clamp(31px, 9vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: 2px; }
.share-spotlight-copy i { display: inline-block; margin-top: 15px; padding: 7px 10px; color: var(--gold-pale); font-family: var(--font-serif); font-size: 10px; font-style: normal; letter-spacing: 1px; border-left: 2px solid var(--red); background: rgba(237, 90, 73, .04); }
.share-spotlight-sign { position: absolute; left: 26px; right: 26px; bottom: 26px; padding-top: 17px; display: grid; border-top: 1px solid rgba(240, 230, 207, .13); }
.share-spotlight-sign b { color: var(--gold); font-family: var(--font-serif); font-size: 10px; font-weight: 500; letter-spacing: 3px; }
.share-spotlight-sign em { margin-top: 8px; color: #eefbf7; font-family: var(--font-serif); font-size: clamp(22px, 7vw, 34px); font-style: normal; line-height: 1.18; letter-spacing: 2px; }
.share-spotlight-sign i { margin-top: 12px; color: #69717d; font-size: 7px; font-style: normal; letter-spacing: 1.2px; }
.share-spotlight-seal { position: absolute; right: 28px; bottom: 31px; width: 42px; height: 42px; display: grid; place-items: center; color: #ffd1c7; font-family: var(--font-serif); font-size: 9px; line-height: 1; text-align: center; border: 1px solid var(--red); background: rgba(159, 39, 40, .16); transform: rotate(5deg); }

.number-panel {
  margin-top: 21px;
  padding: 16px;
  border: 1px solid rgba(232, 189, 114, .2);
  background: rgba(232, 189, 114, .025);
}
.number-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.random-label { color: var(--red); font-size: 8px; letter-spacing: 2px; }
.number-heading h3 { margin: 5px 0 0; font-family: var(--font-serif); font-size: 20px; }
.number-heading h3 small { margin-left: 7px; padding-left: 8px; color: var(--gold); font-family: var(--font-sans); font-size: 8px; font-weight: 500; letter-spacing: 1px; border-left: 1px solid rgba(232, 189, 114, .3); }
.ghost-button { display: flex; align-items: center; gap: 5px; padding: 7px 9px; color: #7d8490; font-size: 8px; border: 1px solid #333a47; background: transparent; cursor: pointer; }
.ghost-button:hover { color: var(--jade); border-color: rgba(86, 220, 200, .4); }
.ghost-button i { color: var(--jade); font-size: 15px; font-style: normal; }
.number-sets { margin-top: 16px; display: grid; gap: 8px; }
.number-set { padding: 11px; border: 1px solid rgba(240, 230, 207, .09); background: rgba(4, 7, 13, .32); }
.number-set-head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; color: #6e7581; font-size: 7px; letter-spacing: 1.2px; }
.number-set-head b { color: var(--jade); font-size: 8px; font-weight: 500; }
.number-set-head i { color: #4f5663; font-style: normal; }
.number-groups { display: flex; flex-wrap: wrap; gap: 12px; }
.number-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.number-group + .number-group::before { content: "+"; margin-right: 5px; color: #5f6672; font-size: 14px; }
.number-ball { min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; color: #17100c; font-family: "Arial Narrow", sans-serif; font-size: 13px; font-weight: 800; border: 1px solid #f0d5a2; border-radius: 50%; background: linear-gradient(145deg, #f6e7c2, #dba65c); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .4), 0 4px 10px rgba(0, 0, 0, .25); animation: ballIn .4s ease both; }
.number-group.secondary .number-ball { color: #fff0eb; border-color: #ee725f; background: linear-gradient(145deg, #ec6554, #9d2526); }
.number-group.digit .number-ball { border-radius: 5px; color: #d8fffa; border-color: #388f86; background: linear-gradient(145deg, #173f3d, #0d232a); }
.rules-copy { margin: 12px 0 0; color: #656d79; font-size: 8px; line-height: 1.6; }
.strict-notice { margin-top: 12px; padding-top: 11px; display: flex; gap: 8px; color: #777463; font-size: 8px; line-height: 1.6; border-top: 1px dashed rgba(232, 189, 114, .16); }
.strict-notice i { flex: 0 0 auto; width: 16px; height: 16px; display: grid; place-items: center; color: var(--gold); font-size: 9px; font-style: normal; border: 1px solid rgba(232, 189, 114, .35); border-radius: 50%; }

.result-actions { margin-top: 15px; display: grid; gap: 9px; }
.result-actions .primary-button { margin: 0; }
.secondary-button { min-height: 46px; color: #8a919d; border: 1px solid #343b48; background: transparent; cursor: pointer; }
.secondary-button:hover { color: var(--paper); border-color: #596170; }

.result-aside { display: grid; gap: 14px; }
.daily-oracle { position: relative; min-height: 270px; padding: 23px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(86, 220, 200, .075), rgba(255, 255, 255, .018)); }
.daily-oracle .vertical-mark { position: absolute; top: 21px; right: 22px; color: var(--jade); border-color: var(--jade); }
.almanac-date { display: flex; align-items: center; gap: 7px; color: #667079; font-size: 8px; letter-spacing: 1.3px; }
.almanac-date i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 9px var(--jade); }
.daily-oracle h3 { max-width: 77%; margin: 15px 0 12px; font-family: var(--font-serif); font-size: 27px; line-height: 1.3; }
.advice-label { display: block; margin-bottom: 5px; color: var(--gold); font-size: 8px; letter-spacing: 2px; }
.daily-oracle p { max-width: 88%; margin: 0; color: #9299a3; font-size: 11px; line-height: 1.85; }
.almanac-cultural-note { display: block; margin-top: 11px; color: #555e69; font-size: 7px; font-weight: 400; letter-spacing: .5px; }
.oracle-lines { display: flex; gap: 4px; margin-top: 17px; }
.oracle-lines i { width: 31px; height: 5px; background: var(--gold); opacity: .7; }
.oracle-lines i:nth-child(2),
.oracle-lines i:nth-child(5) { background: linear-gradient(90deg, var(--gold) 40%, transparent 40% 60%, var(--gold) 60%); }
.oracle-lines i:nth-child(4) { background: var(--jade); }

.support-creation {
  position: relative;
  margin-top: 22px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(232, 189, 114, .22);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 90% 10%, rgba(86, 220, 200, .09), transparent 18rem),
    linear-gradient(145deg, rgba(26, 19, 26, .82), rgba(8, 18, 25, .92));
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: inset 0 0 60px rgba(232, 189, 114, .02);
}

.support-creation::after {
  content: "";
  width: 120px;
  height: 120px;
  position: absolute;
  right: -48px;
  bottom: -58px;
  border: 1px solid rgba(86, 220, 200, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(86, 220, 200, .025), 0 0 0 30px rgba(232, 189, 114, .025);
  pointer-events: none;
}

.support-creation-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.support-coin {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffd4a5;
  font-family: var(--font-serif);
  font-size: 20px;
  border: 1px solid rgba(237, 90, 73, .7);
  border-radius: 50%;
  background: rgba(159, 39, 40, .24);
  box-shadow: inset 0 0 18px rgba(237, 90, 73, .14);
}

.support-creation-head div {
  min-width: 0;
}

.support-creation-head small,
.support-creation-head div > span {
  display: block;
}

.support-creation-head small {
  color: #7c858f;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .1em;
}

.support-creation-head div > span {
  margin-top: 3px;
  color: #c7c3ba;
  font-size: 16px;
}

.support-creation-head > i {
  padding: 6px 10px;
  color: var(--jade);
  font-size: 15px;
  font-style: normal;
  border: 1px solid rgba(86, 220, 200, .2);
  border-radius: 999px;
  background: rgba(86, 220, 200, .045);
}

.support-creation h3 {
  position: relative;
  z-index: 1;
  margin: 22px 0 8px;
  color: #eee2cc;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 650;
  line-height: 1.55;
}

.support-blessing {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--gold-pale);
  font-size: 17px;
  line-height: 1.7;
}

.support-voluntary {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #858d97;
  font-size: 15px;
  line-height: 1.65;
}

.support-cta {
  width: 100%;
  min-height: 58px;
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dcefeb;
  text-align: center;
  border: 1px solid rgba(86, 220, 200, .28);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(38, 114, 104, .24), rgba(19, 73, 68, .34));
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.support-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(86, 220, 200, .5);
  background: linear-gradient(100deg, rgba(38, 114, 104, .32), rgba(19, 73, 68, .42));
}

.support-cta:focus-visible {
  outline: 2px solid rgba(232, 189, 114, .7);
  outline-offset: 3px;
}

.support-cta span,
.support-cta b,
.support-cta i {
  font-size: 16px;
}

.support-cta span {
  white-space: nowrap;
}

.support-cta b {
  flex: 0 0 auto;
  color: #ffe0a3;
  font-weight: 750;
}

.support-cta i {
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--jade);
  font-style: normal;
  transform: translateY(-50%);
}

.support-boundary {
  position: relative;
  z-index: 1;
  margin: 10px 2px 0;
  color: #747d88;
  font-size: 15px;
  line-height: 1.65;
}

.site-footer {
  width: min(1240px, calc(100% - 36px));
  margin: auto;
  padding: 20px 0 28px;
  display: grid;
  gap: 6px;
  color: #4e5561;
  font-size: 8px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.site-footer p { margin: 0; }

.date-sheet {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding-top: max(8px, env(safe-area-inset-top));
}
.date-sheet.is-open { display: grid; align-items: end; }
.date-sheet-backdrop { position: fixed; inset: 0; background: rgba(2, 4, 9, .82); backdrop-filter: blur(10px); }
.date-sheet-panel {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
  padding: 10px 14px max(12px, env(safe-area-inset-bottom));
  overflow-y: hidden;
  color: var(--paper);
  border-top: 1px solid rgba(232, 189, 114, .35);
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 85% 0, rgba(86, 220, 200, .1), transparent 18rem),
    #0b101c;
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .55);
}
.date-sheet-handle { width: 42px; height: 3px; margin: 0 auto 6px; border-radius: 99px; background: #414957; }
.date-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.date-sheet-head h2 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 27px; letter-spacing: 1px; }
.date-sheet-head > button { width: 37px; height: 37px; color: #8d949e; font-size: 22px; border: 1px solid #343b48; border-radius: 50%; background: rgba(7, 10, 18, .72); cursor: pointer; }
.date-sheet-help { margin: 3px 0 7px; color: #69717d; font-size: 9px; line-height: 1.4; }
.date-draft-summary { padding: 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(232, 189, 114, .2); background: rgba(232, 189, 114, .035); }
.date-draft-summary small { color: #6c737e; font-size: 7px; letter-spacing: 1px; }
.date-draft-summary strong { color: var(--gold-pale); font-family: var(--font-serif); font-size: 15px; letter-spacing: 1px; }
.year-direct { margin-top: 7px; display: grid; grid-template-columns: minmax(108px, .72fr) minmax(190px, 1.28fr); align-items: center; gap: 8px; }
.year-direct > label { color: #bdb6a9; font-size: 10px; }
.year-direct > div { position: relative; }
.year-direct input { width: 100%; height: 40px; padding: 0 70px 0 11px; color: var(--paper); border: 1px solid #343b48; border-radius: 2px; outline: none; background: #080c16; color-scheme: dark; }
.year-direct input:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(86, 220, 200, .07); }
.year-direct span { position: absolute; right: 9px; top: 50%; color: #555d69; font-size: 7px; transform: translateY(-50%); pointer-events: none; }
.date-part { margin-top: 7px; }
.date-part-head { margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.date-part-head strong { color: #bbb5a9; font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.date-part-head small { color: var(--jade); font-size: 8px; }
.year-quick { padding: 0 1px 3px; display: flex; gap: 5px; overflow-x: auto; overflow-y: hidden; scrollbar-color: #3b4350 transparent; scrollbar-width: thin; scroll-snap-type: x proximity; }
.year-quick button {
  min-width: 52px;
  height: 34px;
  flex: 0 0 auto;
  color: #707884;
  font-size: 9px;
  border: 1px solid #303744;
  background: rgba(255, 255, 255, .015);
  scroll-snap-align: center;
  cursor: pointer;
}
.year-quick button.is-selected { color: #0d1716; border-color: var(--jade); background: linear-gradient(145deg, var(--jade), #bcb875); }
.month-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.month-grid button,
.day-grid button {
  min-height: 34px;
  color: #7b838f;
  border: 1px solid #2d3440;
  background: rgba(255, 255, 255, .015);
  cursor: pointer;
}
.month-grid button:hover,
.day-grid button:hover { color: var(--paper); border-color: rgba(86, 220, 200, .38); }
.month-grid button.is-selected,
.day-grid button.is-selected { color: #101816; border-color: var(--gold); background: linear-gradient(145deg, #f0d59f, #4fcabb); }
.month-grid button:disabled,
.day-grid button:disabled { color: #343b46; border-color: #222833; background: transparent; cursor: not-allowed; }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-grid button { min-height: 32px; font-size: 9px; }
.date-sheet-actions { margin-top: 8px; display: grid; grid-template-columns: .75fr 1.35fr; gap: 8px; }
.date-sheet-actions .secondary-button { min-width: 0; }
.date-sheet-actions .primary-button { min-width: 0; margin: 0; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.modal.is-open { display: grid; place-items: start center; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 4, 9, .86); backdrop-filter: blur(12px); }
.modal-panel { position: relative; width: min(480px, 100%); margin: auto; }
.modal-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 24px; }
.modal-head button { width: 37px; height: 37px; color: #858c98; font-size: 22px; border: 1px solid #343b47; border-radius: 50%; background: var(--ink-2); cursor: pointer; }

.support-modal.is-open {
  place-items: center;
}

.support-modal-panel {
  position: relative;
  width: min(520px, 100%);
  margin: auto;
  padding: clamp(24px, 5vw, 36px);
  overflow: hidden;
  color: var(--paper);
  border: 1px solid rgba(232, 189, 114, .35);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 84% 8%, rgba(86, 220, 200, .13), transparent 19rem),
    radial-gradient(circle at 8% 88%, rgba(188, 48, 43, .13), transparent 17rem),
    #0b111c;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
}

.support-modal-symbol {
  width: 98px;
  height: 98px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 26px auto 22px;
  color: #f4dab1;
  font-family: var(--font-serif);
  font-size: 38px;
  border: 1px solid rgba(232, 189, 114, .45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 220, 200, .12), rgba(10, 22, 29, .86) 68%);
  box-shadow: 0 0 40px rgba(86, 220, 200, .08), inset 0 0 26px rgba(232, 189, 114, .06);
}

.support-modal-symbol i {
  width: 7px;
  height: 7px;
  position: absolute;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 10px currentColor;
}

.support-modal-symbol i:nth-child(2) { top: 6px; left: 24px; color: var(--jade); }
.support-modal-symbol i:nth-child(3) { right: 5px; top: 52px; color: var(--gold); background: var(--gold); }
.support-modal-symbol i:nth-child(4) { bottom: 10px; left: 18px; color: var(--red); background: var(--red); }

.support-modal-panel > p {
  margin: 0;
  color: #c4c9cb;
  font-size: 17px;
  line-height: 1.85;
  text-align: center;
}

.support-modal-notice {
  margin-top: 20px;
  padding: 17px 18px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(232, 189, 114, .16);
  border-radius: 18px;
  background: rgba(232, 189, 114, .035);
}

.support-modal-notice strong {
  color: var(--gold-pale);
  font-size: 16px;
}

.support-modal-notice span {
  color: #8e969f;
  font-size: 15px;
  line-height: 1.7;
}

.support-acknowledge {
  width: 100%;
  margin: 20px 0 0;
}

.share-card {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  padding: 24px;
  overflow: hidden;
  color: #f2e9d6;
  border: 1px solid rgba(232, 189, 114, .6);
  background:
    radial-gradient(circle at 82% 13%, rgba(86, 220, 200, .28), transparent 25%),
    radial-gradient(circle at 8% 78%, rgba(188, 48, 43, .24), transparent 30%),
    linear-gradient(150deg, #0d1a29, #060910 58%, #170b11);
  box-shadow: 0 38px 90px rgba(0, 0, 0, .62), inset 0 0 80px rgba(86, 220, 200, .035);
}
.share-card::before,
.share-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(232, 189, 114, .21);
  border-radius: 50%;
}
.share-card::before { width: 265px; height: 265px; right: -116px; top: -91px; box-shadow: 0 0 0 16px rgba(232, 189, 114, .025), 0 0 0 46px rgba(86, 220, 200, .022); }
.share-card::after { width: 135px; height: 135px; left: -91px; bottom: 65px; box-shadow: 0 0 0 18px rgba(237, 90, 73, .018); }
.share-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent 68%); }
.share-frame { position: absolute; inset: 10px; border: 1px solid rgba(232, 189, 114, .13); pointer-events: none; }
.share-frame::before,
.share-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--red); opacity: .8; }
.share-frame::before { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.share-frame::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.share-orbit { position: absolute; right: -10px; top: 72px; width: 104px; height: 104px; border: 1px solid rgba(86, 220, 200, .14); border-radius: 50%; }
.share-orbit::before { content: ""; position: absolute; inset: 17px; border: 1px dashed rgba(232, 189, 114, .2); border-radius: 50%; }
.share-orbit i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px var(--jade); }
.share-orbit i:nth-child(1) { left: 9px; top: 22px; }
.share-orbit i:nth-child(2) { right: 16px; bottom: 9px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.share-orbit i:nth-child(3) { left: 17px; bottom: 8px; background: var(--red); box-shadow: 0 0 8px var(--red); }
.share-stars { position: absolute; right: 21px; top: 65px; color: var(--jade); font-size: 7px; letter-spacing: 2px; }
.share-side-code { position: absolute; right: -48px; top: 270px; color: rgba(232, 189, 114, .36); font-family: Arial, sans-serif; font-size: 5px; letter-spacing: 2.2px; transform: rotate(90deg); }
.share-brand { position: relative; display: flex; align-items: center; gap: 8px; }
.share-brand > span { width: 34px; height: 34px; display: grid; place-items: center; color: #fff4dd; font-family: var(--font-serif); font-size: 9px; line-height: 1; letter-spacing: 1px; background: linear-gradient(145deg, #f06655, #9f2728); box-shadow: 0 7px 20px rgba(159, 39, 40, .32); }
.share-brand p { margin: 0; font-family: var(--font-serif); font-size: 12px; letter-spacing: 1px; }
.share-brand small { margin-top: 1px; display: block; color: #68717c; font-family: Arial, sans-serif; font-size: 5px; letter-spacing: 1.2px; }
.share-sign-no { position: absolute; right: 24px; top: 27px; color: var(--gold); font-size: 6px; letter-spacing: 2px; }
.share-main { position: relative; margin-top: 39px; }
.share-motivation { margin-bottom: 8px; display: block; color: var(--jade); font-size: 8.5px; font-weight: 600; letter-spacing: 1px; }
.share-main > span { color: var(--gold); font-family: var(--font-serif); font-size: 10px; letter-spacing: 3px; }
.share-main h3 { margin: 9px 0 11px; font-family: var(--font-serif); font-size: clamp(32px, 9.4vw, 43px); line-height: 1.08; letter-spacing: 2px; text-shadow: 0 8px 28px rgba(0, 0, 0, .36); }
.share-main h3 em { color: var(--jade); font-style: normal; text-shadow: 0 0 24px rgba(86, 220, 200, .16); }
.share-main p { max-width: 84%; margin: 0; color: #a5a8aa; font-size: 8px; line-height: 1.7; }
.share-meta { position: relative; margin-top: 21px; padding: 9px 0; display: flex; gap: 17px; color: #727985; font-size: 7px; border-top: 1px solid rgba(255, 255, 255, .11); border-bottom: 1px solid rgba(255, 255, 255, .11); }
.share-meta b { margin-left: 3px; color: var(--gold-pale); font-weight: 500; }
.share-almanac { position: relative; margin-top: 11px; padding: 8px 10px; border-left: 2px solid var(--jade); background: linear-gradient(90deg, rgba(86, 220, 200, .075), rgba(86, 220, 200, .015)); }
.share-almanac > span { display: block; color: var(--gold-pale); font-family: var(--font-serif); font-size: 8px; letter-spacing: 1px; }
.share-almanac p { margin: 4px 0 0; display: flex; gap: 5px; color: #9299a3; font-size: 6.3px; line-height: 1.5; }
.share-almanac p b { flex: 0 0 auto; color: var(--jade); font-weight: 500; }
.share-almanac p i { font-style: normal; }
.share-numbers { position: relative; margin-top: 13px; opacity: .9; }
.share-numbers span { display: block; color: #d66355; font-size: 6px; letter-spacing: 1.3px; }
.share-numbers i { color: #9ba1aa; font-style: normal; }
.share-numbers span b { color: var(--gold); font-weight: 500; }
.share-number-list { margin: 6px 0 4px; display: grid; gap: 2px; }
.share-number-list strong { display: block; overflow-wrap: anywhere; color: #e4c995; font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(14px, 4.8vw, 20px); line-height: 1.25; letter-spacing: 2px; }
.share-number-row { display: grid; grid-template-columns: 19px minmax(0, 1fr); align-items: baseline; gap: 5px; }
.share-number-index { color: var(--jade); font-family: Arial, sans-serif; font-size: 6px; letter-spacing: 0; }
.share-numbers small { display: block; color: #5d6470; font-size: 5.5px; }
.share-card:not(.is-multi) .share-main { margin-top: 33px; }
.share-card:not(.is-multi) .share-meta { margin-top: 15px; }
.share-card:not(.is-multi) .share-almanac { margin-top: 8px; padding-top: 6px; padding-bottom: 6px; }
.share-card:not(.is-multi) .share-numbers { margin-top: 9px; }
.share-card:not(.is-multi) .share-number-list strong { font-size: clamp(13px, 4.4vw, 18px); }
.share-card.is-multi .share-main { margin-top: 33px; }
.share-card.is-multi .share-main h3 { font-size: clamp(28px, 8.2vw, 37px); }
.share-card.is-multi .share-main p { max-width: 88%; font-size: 7px; }
.share-card.is-multi .share-meta { margin-top: 14px; padding: 7px 0; }
.share-card.is-multi .share-almanac { margin-top: 7px; padding: 5px 7px; }
.share-card.is-multi .share-numbers { margin-top: 9px; }
.share-card.is-multi .share-number-list { margin-top: 4px; }
.share-card.is-multi .share-number-list strong { font-size: 12px; line-height: 1.3; letter-spacing: 1px; }
.share-card.is-dense .share-main { margin-top: 26px; }
.share-card.is-dense .share-main h3 { margin-top: 5px; margin-bottom: 6px; font-size: clamp(25px, 7.2vw, 33px); }
.share-card.is-dense .share-main p { max-width: 95%; font-size: 6.2px; line-height: 1.4; }
.share-card.is-dense .share-meta { margin-top: 9px; padding: 5px 0; }
.share-card.is-dense .share-almanac { margin-top: 6px; padding-top: 4px; padding-bottom: 4px; }
.share-card.is-dense .share-almanac p { margin-top: 2px; font-size: 5.8px; }
.share-card.is-dense .share-number-list { gap: 0; }
.share-card.is-dense .share-number-list strong { font-size: 10px; line-height: 1.3; letter-spacing: .7px; }
.share-bottom { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 10px; }
.qr-placeholder { width: 56px; flex: 0 0 auto; padding: 4px; color: #151518; background: #eee0c2; }
.qr-placeholder.qr-entry img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.qr-pattern { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; aspect-ratio: 1; }
.qr-pattern i { background: transparent; }
.qr-pattern i.on { background: #141519; }
.qr-placeholder small { margin-top: 2px; display: block; font-size: 3.5px; text-align: center; letter-spacing: .4px; }
.share-bottom > div:nth-child(2) strong { display: block; font-family: var(--font-serif); font-size: 10px; letter-spacing: 1px; }
.share-bottom > div:nth-child(2) p { margin: 4px 0 0; color: #6d7480; font-size: 6px; line-height: 1.5; }
.share-seal { margin-left: auto; width: 37px; height: 37px; display: grid; place-items: center; color: #ffb1a5; font-family: var(--font-serif); font-size: 8px; line-height: 1.1; text-align: center; border: 1px solid var(--red); transform: rotate(-5deg); }
.modal-actions { width: min(100%, 420px); margin: 14px auto 0; display: grid; gap: 8px; }
.modal-actions .primary-button { width: 100%; margin: 0; }
.save-secondary { min-height: 50px; padding: 0 15px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; text-align: left; }
.save-secondary span { color: #c6cbc9; font-size: 11px; }
.save-secondary b { color: #646d78; font-size: 7px; font-weight: 500; letter-spacing: 1px; }
.save-secondary i { color: var(--jade); font-size: 16px; font-style: normal; }
.caption-action { min-height: 55px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #848b95; text-align: left; border: 1px solid rgba(232, 189, 114, .14); background: rgba(232, 189, 114, .025); cursor: pointer; }
.caption-action span { min-width: 0; }
.caption-action small { display: block; color: #5f6772; font-size: 7px; letter-spacing: 1px; }
.caption-action b { margin-top: 4px; display: block; overflow: hidden; color: #b6b2a9; font-size: 9px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.caption-action > i { flex: 0 0 auto; padding: 6px 8px; color: var(--gold); font-size: 8px; font-style: normal; border: 1px solid rgba(232, 189, 114, .25); }
.caption-action:hover,
.caption-action:focus-visible { border-color: rgba(232, 189, 114, .38); outline: none; }
.modal-actions p { margin: 1px 4px 0; color: #606773; font-size: 8px; line-height: 1.55; text-align: center; }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: calc(100% - 30px);
  padding: 10px 15px;
  color: #d9fff8;
  font-size: 10px;
  text-align: center;
  border: 1px solid rgba(86, 220, 200, .32);
  background: rgba(10, 35, 34, .95);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { to { transform: scale(.92); opacity: .62; } }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ballIn { from { opacity: 0; transform: translateY(8px) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes soundbar { to { height: 11px; } }
@media (min-width: 620px) {
  .site-header { padding-top: 28px; }
  .app-shell { width: min(1240px, calc(100% - 60px)); }
  .mode-picker { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-panel { padding: 29px; }
  .fortune-card { padding: 29px; }
  .share-spotlight { aspect-ratio: 16 / 7; padding: 27px 31px; }
  .share-spotlight-copy strong { font-size: 31px; }
  .share-spotlight-sign { left: auto; right: 36px; top: 82px; bottom: auto; width: 43%; padding: 0 0 0 25px; border-top: 0; border-left: 1px solid rgba(240, 230, 207, .13); }
  .share-spotlight-sign em { font-size: 24px; }
  .share-spotlight-seal { right: 34px; bottom: 24px; }
  .number-panel { padding: 20px; }
  .number-ball { min-width: 38px; height: 38px; }
  .result-actions { grid-template-columns: minmax(250px, 1fr) minmax(150px, .5fr); }
  .date-sheet { padding: 28px; }
  .date-sheet.is-open { place-items: center; }
  .date-sheet-panel { width: min(620px, 100%); padding: 17px 28px 25px; border: 1px solid rgba(232, 189, 114, .34); border-radius: 12px; }
  .date-sheet-handle { display: none; }
}

@media (min-width: 920px) {
  .site-header { width: min(1240px, calc(100% - 80px)); }
  .app-shell { width: min(1240px, calc(100% - 80px)); }
  .progress-nav { margin-top: 6px; }
  .screen-home { padding-top: 0; }
  .hero-art { width: 250px; }
  .hero h1 { margin-top: 11px; }
  .side-note { position: absolute; left: 0; top: 29%; display: block; color: #4e5562; font-size: 7px; letter-spacing: 1px; border-left: 1px solid #343b48; padding-left: 10px; }
  .side-note p { color: #686f7b; font-family: var(--font-serif); font-size: 11px; line-height: 1.7; letter-spacing: 2px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-card:nth-child(even) { transform: translateY(22px); }
  .product-card:nth-child(even):hover { transform: translateY(18px); }
  .profile-layout { grid-template-columns: minmax(260px, .72fr) minmax(480px, 1.35fr); align-items: start; }
  .selected-product { position: sticky; top: 25px; min-height: 410px; padding: 30px; display: flex; flex-direction: column; justify-content: end; }
  .selected-product h3 { font-size: 38px; }
  .profile-panel { padding: 34px; }
  .result-layout { grid-template-columns: minmax(560px, 1.55fr) minmax(280px, .75fr); align-items: start; }
  .result-aside { position: sticky; top: 25px; }
  .fortune-meta { max-width: 520px; }
}

@media (max-width: 360px) {
  .share-card { padding: 20px; }
  .share-main { margin-top: 28px; }
  .share-main h3 { font-size: 28px; }
  .share-meta { margin-top: 12px; }
  .share-card.is-multi .share-main,
  .share-card.is-dense .share-main { margin-top: 21px; }
  .share-card.is-dense .share-main h3 { font-size: 23px; }
  .share-bottom { left: 20px; right: 20px; bottom: 17px; }
  .qr-placeholder { width: 49px; }
}

/* Final readable type scale and spacing pass */
body {
  font-size: 16px;
  line-height: 1.68;
}

body p {
  font-size: 16px !important;
}

body small {
  font-size: 15px !important;
  line-height: 1.45;
}

button,
input,
select,
output,
label,
legend,
a {
  font-size: 16px;
}

.site-header {
  padding-bottom: 18px;
}

.brand {
  gap: 12px;
}

.brand-stamp {
  width: 44px;
  height: 44px;
  font-size: 16px;
  border-radius: 9px 13px 10px 12px;
}

.brand strong {
  font-size: 18px;
}

.brand-home-link,
.sound-toggle {
  min-height: 46px;
  padding-inline: 14px;
  font-size: 15px;
}

.brand-home-link span {
  font-size: 16px;
}

.progress-nav {
  margin-bottom: 36px;
}

.progress-nav li,
.progress-nav li span,
.progress-nav b {
  font-size: 15px;
}

.progress-nav b {
  width: 32px;
  height: 32px;
}

.eyebrow,
.section-kicker,
.selected-product > span,
.panel-topline,
.ritual-index,
.result-date,
.fortune-card-top,
.random-label,
.number-set-head,
.almanac-date,
.advice-label {
  font-size: 15px;
}

.hero-copy,
.section-intro,
.form-lead,
.fortune-poem,
.daily-oracle p {
  font-size: 17px !important;
  line-height: 1.86;
}

.mode-card {
  min-height: 138px;
  padding: 22px;
  border-radius: 20px;
}

.mode-meta {
  gap: 5px;
}

.mode-meta > span,
.mode-arrow {
  font-size: 16px;
}

.boundary-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
}

.boundary-note p {
  line-height: 1.75;
}

.back-link,
.ghost-button {
  min-height: 46px;
  font-size: 16px;
  border-radius: 999px;
}

.product-card {
  min-height: 360px;
  padding: 24px;
  border-radius: 22px;
}

.product-card .product-no,
.product-card .product-foot,
.product-card p {
  font-size: 15px;
}

.product-card p {
  max-width: 92%;
  font-size: 16px !important;
}

.selected-product,
.profile-panel,
.fortune-card,
.daily-oracle,
.support-creation,
.number-panel {
  border-radius: 22px;
}

.selected-product p,
.selected-product .mini-rules i,
.panel-topline,
.form-lead,
.privacy-banner p,
.session-promise,
.group-count-field > p {
  font-size: 15px !important;
}

.selected-product .mini-rules i {
  padding: 8px 11px;
  border-radius: 999px;
}

.field label,
.group-count-field legend,
.consent {
  font-size: 16px;
}

.field label span,
.group-count-field legend span {
  font-size: 15px;
}

.input-wrap input,
.input-wrap select,
.date-trigger {
  min-height: 52px;
  font-size: 16px;
  border-radius: 12px;
}

.input-wrap i,
.date-trigger i {
  top: 11px;
  width: 34px;
  height: 30px;
  font-size: 16px;
}

.session-promise {
  margin-top: 12px;
  gap: 9px;
  line-height: 1.7;
}

.count-control output {
  font-size: 20px;
}

.group-count-options span {
  min-height: 64px;
  border-radius: 14px;
}

.group-count-options small {
  font-size: 15px;
}

.group-count-field > p {
  margin-top: 12px;
  line-height: 1.7;
}

.consent {
  grid-template-columns: 22px 1fr;
  gap: 11px;
}

.custom-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.consent input:checked + .custom-check::after {
  left: 7px;
  top: 3px;
}

.primary-button {
  min-height: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 58px;
  border-radius: 18px;
  text-align: center;
}

.primary-button span {
  font-size: 18px;
  line-height: 1.25;
}

.primary-button b {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 1.2px;
}

.primary-button i {
  position: absolute;
  right: 22px;
  top: 50%;
  font-size: 22px;
  transform: translateY(-50%);
}

.secondary-button {
  min-height: 56px;
  padding-inline: 18px;
  border-radius: 16px;
  font-size: 16px;
}

.ritual-stage p,
.ritual-steps {
  font-size: 16px;
}

.ritual-steps {
  gap: 10px;
  letter-spacing: .3px;
}

.fortune-rank small,
.fortune-rank strong,
.fortune-stamp {
  font-size: 15px;
}

.fortune-meta > div {
  padding: 18px 8px;
}

.fortune-meta span,
.fortune-meta .color-value {
  overflow: visible;
  font-size: 15px;
  text-overflow: clip;
  white-space: normal;
}

.share-spotlight {
  min-height: 420px;
  aspect-ratio: auto;
  padding: 28px;
  border-radius: 22px;
}

.share-spotlight-copy small,
.share-spotlight-copy i,
.share-spotlight-sign b,
.share-spotlight-sign i,
.random-label,
.number-heading h3 small,
.number-set-head,
.number-set-head b,
.rules-copy,
.strict-notice,
.almanac-cultural-note,
.site-footer,
.site-footer span {
  font-size: 15px;
}

.number-heading h3 {
  font-size: 24px;
}

.number-heading h3 small {
  display: inline-block;
  margin-top: 6px;
}

.number-ball {
  min-width: 42px;
  height: 42px;
  font-size: 16px;
}

.rules-copy,
.strict-notice {
  line-height: 1.75;
}

.strict-notice i {
  width: 22px;
  height: 22px;
  font-size: 15px;
}

.daily-oracle h3 {
  max-width: 84%;
  font-size: 30px;
}

.almanac-cultural-note {
  line-height: 1.7;
}

.site-footer {
  gap: 10px;
  line-height: 1.65;
}

.date-sheet-panel {
  max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
  padding: 10px 14px max(12px, env(safe-area-inset-bottom));
  overflow-y: hidden;
  border-radius: 24px 24px 0 0;
}

.date-sheet-help,
.date-draft-summary small,
.year-direct > label,
.year-direct span,
.date-part-head strong,
.date-part-head small,
.year-quick button,
.month-grid button,
.day-grid button {
  font-size: 15px;
}

.year-direct {
  grid-template-columns: minmax(108px, .72fr) minmax(190px, 1.28fr);
  gap: 8px;
}

.year-direct input {
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}

.year-quick button {
  min-width: 58px;
  height: 36px;
  border-radius: 12px;
}

.month-grid,
.day-grid {
  gap: 4px;
}

.month-grid button {
  min-height: 34px;
  border-radius: 10px;
}

.day-grid button {
  min-height: 32px;
  border-radius: 10px;
}

.date-sheet-actions .primary-button {
  min-height: 62px;
  padding-block: 7px;
}

.modal-panel {
  width: min(520px, 100%);
}

.modal-head h2 {
  font-size: 28px;
}

.modal-head button,
.date-sheet-head > button {
  width: 44px;
  height: 44px;
}

.share-card {
  width: min(100%, 460px);
  min-height: 720px;
  aspect-ratio: auto;
  padding: 28px;
  border-radius: 22px;
}

.share-stars,
.share-side-code,
.share-sign-no {
  display: none;
}

.share-brand {
  gap: 12px;
}

.share-brand > span {
  width: 46px;
  height: 46px;
  font-size: 15px;
  border-radius: 10px;
}

.share-brand p,
.share-brand small,
.share-motivation,
.share-main > span,
.share-main p,
.share-meta,
.share-almanac > span,
.share-almanac p,
.share-numbers span,
.share-number-index,
.share-numbers small,
.qr-placeholder small,
.share-bottom > div:nth-child(2) p,
.share-seal {
  font-size: 15px !important;
}

.share-main,
.share-card:not(.is-multi) .share-main,
.share-card.is-multi .share-main,
.share-card.is-dense .share-main {
  margin-top: 34px;
}

.share-main h3,
.share-card.is-multi .share-main h3,
.share-card.is-dense .share-main h3 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 9vw, 42px);
  line-height: 1.12;
}

.share-main p,
.share-card.is-multi .share-main p,
.share-card.is-dense .share-main p {
  max-width: 90%;
  line-height: 1.65;
}

.share-meta,
.share-card:not(.is-multi) .share-meta,
.share-card.is-multi .share-meta,
.share-card.is-dense .share-meta {
  margin-top: 17px;
  padding: 11px 0;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.share-almanac,
.share-card:not(.is-multi) .share-almanac,
.share-card.is-multi .share-almanac,
.share-card.is-dense .share-almanac {
  margin-top: 12px;
  padding: 10px 12px;
}

.share-almanac p {
  display: grid;
  gap: 3px;
  line-height: 1.55;
}

.share-numbers,
.share-card:not(.is-multi) .share-numbers,
.share-card.is-multi .share-numbers {
  margin-top: 14px;
}

.share-number-list,
.share-card.is-multi .share-number-list,
.share-card.is-dense .share-number-list {
  margin: 8px 0 7px;
  gap: 3px;
}

.share-number-list strong,
.share-card:not(.is-multi) .share-number-list strong,
.share-card.is-multi .share-number-list strong,
.share-card.is-dense .share-number-list strong {
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: .6px;
}

.share-number-row {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
}

.share-bottom {
  left: 28px;
  right: 28px;
  bottom: 24px;
  gap: 12px;
}

.qr-placeholder {
  width: 82px;
  padding: 7px;
  border-radius: 8px;
}

.qr-placeholder small {
  line-height: 1.2;
  letter-spacing: 0;
}

.share-bottom > div:nth-child(2) strong {
  font-size: 16px;
}

.share-seal {
  width: 50px;
  height: 50px;
}

.modal-actions {
  margin-top: 18px;
  gap: 10px;
}

.save-secondary {
  min-height: 62px;
  border-radius: 16px;
}

.save-secondary span,
.save-secondary b,
.caption-action small,
.caption-action b,
.caption-action > i,
.modal-actions p,
.toast {
  font-size: 15px;
}

.caption-action {
  min-height: 68px;
  padding: 12px 15px;
  border-radius: 16px;
}

.caption-action b {
  white-space: normal;
}

.caption-action > i {
  padding: 8px 10px;
  border-radius: 999px;
}

.toast {
  padding: 13px 18px;
  border-radius: 999px;
}

@media (max-width: 430px) {
  .brand-home-link {
    width: auto;
    min-width: 46px;
    padding: 0 12px;
    justify-content: center;
    font-size: 15px;
  }

  .site-header {
    width: min(calc(100% - 24px), 1240px);
  }

  .site-header-actions {
    gap: 6px;
  }

  .sound-label {
    display: none;
  }

  .sound-toggle {
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .mode-card {
    min-height: 126px;
  }

  .date-sheet-panel {
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    overflow-y: hidden;
  }

  .month-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .share-card {
    min-height: 740px;
    padding: 24px;
  }

  .share-bottom {
    left: 24px;
    right: 24px;
  }

  .qr-placeholder {
    width: 74px;
  }
}

.hero-seal,
.vertical-mark,
.share-spotlight-seal,
.side-note,
.side-note p {
  font-size: 15px;
}

.share-card {
  display: flex;
  flex-direction: column;
}

.share-bottom {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: auto;
  padding-top: 20px;
}

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

/* Final mobile-density and collision fixes. */
.session-promise {
  color: #b5cbc7;
  font-size: 16px !important;
  line-height: 1.72;
}

.session-promise span {
  color: #62e4d1;
  text-shadow: 0 0 12px rgba(86, 220, 200, .52);
}

.oracle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.daily-oracle .oracle-head .vertical-mark {
  position: static;
  flex: 0 0 auto;
  min-width: 88px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jade);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  border-color: var(--jade);
}

.oracle-head .almanac-date {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.55;
}

.daily-oracle h3 {
  max-width: 100%;
}

@media (max-width: 619px) {
  .site-header {
    gap: 8px;
  }

  .site-header-actions {
    flex: 0 0 auto;
  }

  .brand-home-link {
    min-width: 112px;
    padding-inline: 12px;
    flex: 0 0 auto;
    gap: 7px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
  }

  .brand-home-link span {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .screen-products .section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .screen-products .section-heading > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .screen-products .section-heading h2 {
    font-size: clamp(29px, 8.4vw, 34px);
    line-height: 1.16;
    letter-spacing: .5px;
  }

  .screen-products .section-heading h2 span {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .screen-products .vertical-mark {
    flex: 0 0 auto;
    margin-top: 17px;
  }

  .screen-products .section-intro {
    margin: 14px 0 0;
  }

  .product-grid {
    margin-top: 16px;
    gap: 10px;
  }

  .product-card {
    min-height: 228px;
    padding: 17px 18px 15px;
  }

  .product-card::after {
    right: -3px;
    bottom: -17px;
    font-size: 78px;
  }

  .product-card h3 {
    margin: 9px 0 5px;
    font-size: 24px;
  }

  .product-card p {
    max-width: 94%;
    line-height: 1.55;
  }

  .product-card .product-foot {
    left: 18px;
    right: 18px;
    bottom: 13px;
  }

  .share-spotlight {
    min-height: 490px;
    padding: 25px;
    display: flex;
    flex-direction: column;
  }

  .share-spotlight-copy {
    flex: 0 0 auto;
  }

  .share-spotlight-copy i {
    min-height: 40px;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    line-height: 1.45;
  }

  .share-spotlight-sign {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: auto;
    padding-right: 58px;
  }

  .number-panel {
    padding-inline: 12px;
  }

  .number-set {
    padding-inline: 9px;
  }

  #numberSets[data-game="dlt"] .number-groups {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  #numberSets[data-game="dlt"] .number-group {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
  }

  #numberSets[data-game="dlt"] .number-group + .number-group::before {
    margin-right: 0;
    font-size: 15px;
  }

  #numberSets[data-game="dlt"] .number-ball {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    font-size: 15px;
  }

  .daily-oracle {
    padding: 20px;
  }

  .oracle-head {
    gap: 10px;
  }

  .daily-oracle h3 {
    margin-top: 18px;
  }
}
