:root {
  color-scheme: light;
  --paper: #f3eee7;
  --paper-deep: #e9e0d5;
  --card: #fffaf4;
  --ink: #2d2230;
  --muted: #7c6f78;
  --soft: #a29499;
  --plum: #472b49;
  --plum-deep: #2b192c;
  --plum-soft: #6f4a67;
  --gold: #a97838;
  --gold-bright: #d4aa67;
  --blush: #e8b4c2;
  --lavender: #b8a1d7;
  --line: #ddd1c6;
  --line-soft: rgba(71, 43, 73, 0.12);
  --shadow: 0 24px 70px rgba(58, 35, 52, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(232, 180, 194, 0.24), transparent 28rem),
    radial-gradient(circle at 92% 32%, rgba(184, 161, 215, 0.2), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

button:not(:disabled),
[role="button"] {
  cursor: pointer;
}

.page-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 13px;
  background: var(--plum);
  box-shadow: 0 8px 18px rgba(71, 43, 73, 0.16);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.24em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.edition-label,
.site-footer span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.edition-label i,
.site-footer span i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.66);
  color: var(--plum);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.sound-toggle:hover {
  border-color: var(--gold-bright);
  background: var(--card);
  transform: translateY(-1px);
}

.language-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.66);
}

.language-toggle button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.language-toggle button.active {
  background: var(--plum);
  color: #fff7ed;
}

html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", ui-sans-serif, system-ui, sans-serif;
}

.sound-toggle svg {
  width: 17px;
  height: 17px;
}

.page-shell {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: start;
  padding: 54px 0 76px;
}

.device-section {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.2em;
}

.eyebrow > span:first-child {
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero-copy h1,
.section-heading h2,
.journal-header h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 0.98;
}

.hero-copy h1 em {
  color: var(--plum-soft);
  font-weight: 400;
}

.hero-description {
  max-width: 430px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.device-stage {
  position: relative;
  height: 500px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.stage-orbit {
  position: absolute;
  left: 50%;
  top: 49%;
  border: 1px solid rgba(111, 74, 103, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -2;
}

.orbit-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 250, 244, 0.94) 0 48%, rgba(218, 201, 216, 0.3) 49% 50%, transparent 51%);
}

.orbit-two {
  width: 490px;
  height: 490px;
  border-style: dashed;
  opacity: 0.55;
}

.stage-star {
  position: absolute;
  color: var(--gold-bright);
  z-index: -1;
}

.star-one {
  width: 24px;
  left: 8%;
  top: 26%;
  transform: rotate(12deg);
}

.star-two {
  width: 15px;
  right: 7%;
  top: 57%;
  transform: rotate(-8deg);
  opacity: 0.75;
}

.stage-heart {
  position: absolute;
  color: var(--blush);
  z-index: -1;
  filter: drop-shadow(0 6px 8px rgba(180, 112, 139, 0.12));
}

.heart-one {
  width: 25px;
  right: 10%;
  top: 23%;
  transform: rotate(13deg);
  animation: heartBob 3.6s ease-in-out infinite;
}

.heart-two {
  width: 16px;
  left: 11%;
  top: 62%;
  color: var(--lavender);
  transform: rotate(-12deg);
  animation: heartBob 4.2s ease-in-out 0.8s infinite;
}

.cat-device {
  position: relative;
  width: 390px;
  max-width: 100%;
  aspect-ratio: 440 / 500;
  transform-origin: 50% 70%;
  transition: transform 400ms ease, filter 400ms ease;
}

.cat-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cat-device.thinking {
  animation: deviceFloat 2.4s ease-in-out infinite;
}

.cat-device.reveal {
  filter: drop-shadow(0 0 24px rgba(212, 170, 103, 0.14));
}

.face-screen {
  position: absolute;
  left: 50%;
  top: 21%;
  width: 68.2%;
  height: 46%;
  overflow: hidden;
  border: 7px solid #241a28;
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 34%, rgba(133, 91, 146, 0.23), transparent 48%),
    linear-gradient(180deg, #17111d 0%, #0e0b13 100%);
  box-shadow:
    inset 0 0 32px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
  transition: box-shadow 400ms ease;
}

.cat-device.reveal .face-screen {
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.66),
    inset 0 0 0 1px rgba(212, 170, 103, 0.2),
    0 0 28px rgba(212, 170, 103, 0.12);
}

.screen-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 27%, transparent 72%, rgba(255, 255, 255, 0.025));
}

.screen-status {
  position: absolute;
  top: 13px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(230, 215, 224, 0.54);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.14em;
  z-index: 2;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ad6bd;
  box-shadow: 0 0 9px rgba(154, 214, 189, 0.75);
}

.screen-index {
  margin-left: auto;
  color: rgba(230, 215, 224, 0.35);
}

.hexagram-symbol {
  position: absolute;
  top: 35px;
  left: 50%;
  color: #f0cd8b;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", serif;
  font-size: 60px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(240, 205, 139, 0.18);
  opacity: 0.5;
  transform: translateX(-50%);
  transition: opacity 400ms ease, transform 500ms ease, text-shadow 500ms ease;
}

.cat-device.reveal .hexagram-symbol {
  opacity: 1;
  text-shadow: 0 0 28px rgba(240, 205, 139, 0.38);
  transform: translateX(-50%) scale(1.05);
}

.cat-face {
  position: absolute;
  left: 50%;
  bottom: 27px;
  width: 164px;
  height: 70px;
  transform: translateX(-50%);
}

.cat-blush {
  position: absolute;
  top: 30px;
  width: 25px;
  height: 12px;
  border-radius: 50%;
  background: rgba(236, 151, 177, 0.26);
  filter: blur(1px);
}

.blush-left {
  left: -2px;
}

.blush-right {
  right: -2px;
}

.cat-eye {
  position: absolute;
  top: 0;
  width: 53px;
  height: 37px;
  border: 2px solid rgba(215, 188, 255, 0.9);
  border-radius: 50%;
  background: rgba(180, 145, 235, 0.1);
  box-shadow: 0 0 16px rgba(180, 145, 235, 0.2);
  transition: transform 160ms ease, border-radius 250ms ease, background 250ms ease, border-color 250ms ease;
}

.cat-eye span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 18px;
  border-radius: 50%;
  background: #ddc8ff;
  box-shadow: 0 0 13px rgba(221, 200, 255, 0.9);
  transform: translate(-50%, -50%);
  transition: height 180ms ease, width 180ms ease, background 180ms ease;
}

.cat-eye span::before,
.cat-eye span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.cat-eye span::before {
  width: 4px;
  height: 4px;
  left: 2px;
  top: 2px;
}

.cat-eye span::after {
  width: 2px;
  height: 2px;
  right: 2px;
  bottom: 3px;
  opacity: 0.75;
}

.eye-left {
  left: 2px;
}

.eye-right {
  right: 2px;
}

.cat-eye.blink {
  transform: scaleY(0.08);
}

.cat-device.thinking .cat-eye {
  animation: eyeThink 1.1s ease-in-out infinite;
}

.cat-device.thinking .cat-blush {
  animation: blushPulse 1.1s ease-in-out infinite;
}

.cat-device.happy .cat-blush {
  background: rgba(236, 151, 177, 0.42);
}

.cat-device.happy .cat-eye {
  border-color: rgba(154, 214, 189, 0.88);
  border-radius: 55% 55% 42% 42%;
  background: rgba(154, 214, 189, 0.08);
}

.cat-device.happy .cat-eye span {
  width: 8px;
  height: 8px;
  background: #b8ecd6;
  box-shadow: 0 0 12px rgba(184, 236, 214, 0.85);
}

.cat-nose {
  position: absolute;
  left: 50%;
  top: 34px;
  width: 14px;
  height: 12px;
  color: rgba(238, 174, 195, 0.9);
  transform: translateX(-50%);
}

.cat-mouth {
  position: absolute;
  left: 50%;
  top: 47px;
  width: 22px;
  height: 10px;
  transform: translateX(-50%);
}

.cat-mouth::before,
.cat-mouth::after {
  content: "";
  position: absolute;
  top: 0;
  width: 11px;
  height: 8px;
  border-bottom: 1px solid rgba(224, 196, 255, 0.65);
  border-radius: 0 0 50% 50%;
}

.cat-mouth::before {
  left: 0;
}

.cat-mouth::after {
  right: 0;
}

.screen-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  margin: 0;
  overflow: hidden;
  color: rgba(230, 215, 224, 0.58);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-brand {
  position: absolute;
  left: 50%;
  top: 77.5%;
  color: rgba(247, 226, 218, 0.48);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.34em;
  transform: translateX(-50%);
}

.nfc-base {
  position: absolute;
  left: 50%;
  bottom: 2.5%;
  width: 45%;
  height: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(229, 196, 132, 0.48);
  border-radius: 15px;
  background: linear-gradient(180deg, #5b3b52, #332030);
  color: #efcf92;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  box-shadow: 0 12px 24px rgba(41, 23, 39, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  z-index: 4;
  transition: border-color 180ms ease, transform 180ms ease;
}

.nfc-base:hover {
  border-color: #efcf92;
  transform: translateX(-50%) translateY(-2px);
}

.nfc-base svg {
  width: 18px;
  height: 18px;
}

.nfc-base.active {
  animation: nfcPulse 900ms ease;
}

.device-shadow {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 270px;
  height: 36px;
  border-radius: 50%;
  background: rgba(65, 39, 58, 0.2);
  filter: blur(17px);
  transform: translateX(-50%);
  z-index: -1;
}

.draw-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.75fr);
  gap: 12px;
  max-width: 560px;
  margin: 2px auto 0;
}

.card-deck {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fffaf4, #f3e9dd);
  box-shadow: 0 14px 30px rgba(70, 44, 61, 0.08);
  text-align: left;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.card-deck:hover:not(:disabled) {
  border-color: var(--gold-bright);
  box-shadow: 0 18px 38px rgba(70, 44, 61, 0.12);
  transform: translateY(-2px);
}

.card-deck:disabled {
  opacity: 0.7;
}

.deck-card {
  position: absolute;
  left: 22px;
  top: 15px;
  width: 66px;
  height: 86px;
  border: 1px solid rgba(169, 120, 56, 0.32);
  border-radius: 9px;
  background: #fbf5ed;
}

.deck-card-three {
  opacity: 0.35;
  transform: translate(9px, 3px) rotate(8deg);
}

.deck-card-two {
  opacity: 0.6;
  transform: translate(5px, 1px) rotate(4deg);
}

.deck-card-one {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(212, 170, 103, 0.12), transparent 55%),
    #fffaf4;
  box-shadow: 0 8px 18px rgba(70, 44, 61, 0.12);
  transform: rotate(-4deg);
}

.card-deck.drawing .deck-card-one {
  animation: drawCard 1.25s cubic-bezier(0.22, 0.8, 0.28, 1) forwards;
}

.card-corner {
  position: absolute;
  top: 6px;
  left: 8px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 9px;
}

.card-symbol {
  color: var(--plum);
  font-family: "Segoe UI Symbol", serif;
  font-size: 33px;
  line-height: 1;
}

.card-label {
  margin-top: 5px;
  color: var(--soft);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.deck-copy {
  position: absolute;
  left: 112px;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
}

.deck-copy strong,
.deck-copy small {
  display: block;
}

.deck-copy strong {
  color: var(--plum);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.deck-copy small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.deck-arrow {
  position: absolute;
  right: 17px;
  top: 50%;
  width: 20px;
  color: var(--gold);
  transform: translateY(-50%);
}

.draw-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-button {
  flex: 1;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--plum);
  border-radius: var(--radius-md);
  background: var(--plum);
  color: #fff7ed;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 14px 30px rgba(71, 43, 73, 0.14);
  transition: background 180ms ease, transform 180ms ease;
}

.daily-button:hover:not(:disabled) {
  background: #583654;
  transform: translateY(-2px);
}

.daily-button svg {
  width: 18px;
  flex: 0 0 auto;
  color: #e5c58d;
}

.draw-side p {
  margin: 0;
  color: var(--soft);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

.reading-section {
  min-width: 0;
  padding-top: 6px;
}

.section-heading {
  max-width: 560px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.08;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.question-panel {
  margin-top: 28px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--plum);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.field-label span {
  color: var(--soft);
  font-size: 7px;
}

.question-panel textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 250, 244, 0.72);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.question-panel textarea::placeholder {
  color: #aa9b9c;
}

.question-panel textarea:focus {
  border-color: var(--gold-bright);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(212, 170, 103, 0.1);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.chip {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip:hover {
  border-color: var(--plum-soft);
  color: var(--plum);
  transform: translateY(-1px);
}

.chip.active {
  border-color: var(--plum);
  background: var(--plum);
  color: #fff7ed;
}

.reading-card {
  position: relative;
  min-height: 438px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 4%, rgba(212, 170, 103, 0.16), transparent 17rem),
    radial-gradient(circle at 0 100%, rgba(148, 99, 139, 0.2), transparent 22rem),
    linear-gradient(145deg, #4b2e49, #2d1b2e 72%);
  color: #f8efe5;
  box-shadow: 0 26px 60px rgba(55, 31, 50, 0.2);
}

.reading-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232, 204, 157, 0.1);
  border-radius: 22px;
  pointer-events: none;
}

.empty-reading {
  min-height: 438px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px;
  text-align: center;
}

.empty-orbit {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(232, 204, 157, 0.22);
  border-radius: 50%;
}

.empty-orbit::before,
.empty-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.empty-orbit::before {
  inset: 10px;
  border: 1px dashed rgba(232, 204, 157, 0.14);
}

.empty-orbit::after {
  inset: 24px;
  background: rgba(232, 204, 157, 0.05);
}

.empty-symbol {
  position: relative;
  z-index: 1;
  color: #e7c58a;
  font-family: "Segoe UI Symbol", serif;
  font-size: 46px;
  line-height: 1;
}

.empty-orbit i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8b77e;
  box-shadow: 0 0 10px rgba(216, 183, 126, 0.45);
}

.empty-orbit i:nth-of-type(1) {
  top: 9px;
  left: 26px;
}

.empty-orbit i:nth-of-type(2) {
  right: 5px;
  top: 54px;
  width: 3px;
  height: 3px;
}

.empty-orbit i:nth-of-type(3) {
  bottom: 14px;
  left: 17px;
  width: 3px;
  height: 3px;
}

.empty-kicker {
  margin: 0 0 10px;
  color: #d8b77e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.empty-reading h3 {
  max-width: 340px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.empty-reading > p:last-child {
  max-width: 330px;
  margin: 13px 0 0;
  color: rgba(248, 239, 229, 0.58);
  font-size: 11px;
  line-height: 1.7;
}

.reading-content {
  position: relative;
  padding: 32px 34px 28px;
  animation: contentReveal 500ms ease both;
}

.reading-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(232, 204, 157, 0.14);
  color: #d8b77e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.reading-topline span:last-child {
  color: rgba(248, 239, 229, 0.42);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.reading-hero {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px 0 22px;
}

.reading-symbol {
  width: 86px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 204, 157, 0.28);
  border-radius: 16px;
  background: rgba(232, 204, 157, 0.06);
  color: #f0cd8b;
  font-family: "Segoe UI Symbol", serif;
  font-size: 48px;
  box-shadow: inset 0 0 24px rgba(232, 204, 157, 0.04);
}

.reading-hero h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.keyword-list span {
  padding: 5px 9px;
  border: 1px solid rgba(232, 204, 157, 0.16);
  border-radius: 999px;
  color: rgba(248, 239, 229, 0.62);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.reading-block,
.focus-block {
  padding: 18px 0;
  border-top: 1px solid rgba(232, 204, 157, 0.12);
}

.block-label {
  display: block;
  margin-bottom: 8px;
  color: #d8b77e;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.reading-block p,
.focus-block p,
.action-block p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.reading-block p {
  color: rgba(248, 239, 229, 0.76);
}

.focus-block p {
  color: rgba(248, 239, 229, 0.58);
}

.action-block {
  margin-top: 2px;
  padding: 18px 20px;
  border: 1px solid rgba(232, 204, 157, 0.18);
  border-radius: 16px;
  background: rgba(232, 204, 157, 0.08);
}

.action-block p {
  color: #fff7ed;
  font-size: 12px;
}

.caution-block {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: rgba(248, 239, 229, 0.4);
}

.caution-mark {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 239, 229, 0.25);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 9px;
}

.caution-block p {
  margin: 0;
  font-size: 8px;
  line-height: 1.6;
}

.reading-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.72fr;
  gap: 9px;
  margin-top: 14px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-action svg,
.secondary-action svg {
  width: 16px;
  height: 16px;
}

.primary-action {
  border: 1px solid var(--plum);
  background: var(--plum);
  color: #fff7ed;
  box-shadow: 0 12px 24px rgba(71, 43, 73, 0.14);
}

.primary-action:hover:not(:disabled) {
  background: #583654;
  box-shadow: 0 16px 30px rgba(71, 43, 73, 0.2);
  transform: translateY(-2px);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.66);
  color: var(--plum);
}

.secondary-action:hover:not(:disabled) {
  border-color: var(--gold-bright);
  background: var(--card);
  transform: translateY(-2px);
}

.prototype-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 2px 0;
  color: var(--soft);
  font-size: 8px;
  line-height: 1.6;
}

.prototype-note > span {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.prototype-note small {
  flex-basis: 100%;
  margin-left: 12px;
  color: var(--plum-soft);
  font-size: 8px;
}

.ai-toolbar {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.58);
}

.ai-toolbar label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.ai-toolbar select {
  min-width: 0;
  min-height: 38px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--plum);
  font-size: 10px;
}

.ai-generate {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--plum);
  border-radius: 11px;
  background: var(--plum);
  color: #fff7ed;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  transition: background 180ms ease, transform 180ms ease;
}

.ai-generate svg {
  width: 15px;
  height: 15px;
}

.ai-generate:hover:not(:disabled) {
  background: #583654;
  transform: translateY(-1px);
}

.ai-reading {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid rgba(212, 170, 103, 0.3);
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.06);
}

.ai-reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ai-provider {
  color: #d8b77e;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-align: right;
}

.ai-reading p {
  margin: 0 0 10px;
  color: rgba(248, 239, 229, 0.84);
  font-size: 12px;
  line-height: 1.75;
}

.ai-action {
  margin: 14px 0 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 204, 157, 0.14);
}

.ai-action > span {
  color: #d8b77e;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ai-action p {
  margin: 7px 0 0;
}

.ai-reading .ai-caution {
  margin-bottom: 0;
  color: rgba(248, 239, 229, 0.48);
  font-size: 9px;
}

.journal-section {
  padding: 42px 0 54px;
  border-top: 1px solid var(--line-soft);
}

.journal-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.journal-header h2 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
}

.text-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-button:hover {
  border-color: var(--plum);
  color: var(--plum);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journal-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 12px 28px rgba(70, 44, 61, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.journal-card:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 18px 36px rgba(70, 44, 61, 0.09);
  transform: translateY(-3px);
}

.journal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.journal-symbol {
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 120, 56, 0.24);
  border-radius: 12px;
  background: rgba(212, 170, 103, 0.08);
  color: var(--plum);
  font-family: "Segoe UI Symbol", serif;
  font-size: 27px;
}

.journal-date {
  color: var(--soft);
  font-size: 7px;
  font-weight: 650;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-align: right;
}

.journal-card h3 {
  margin: 17px 0 10px;
  color: var(--plum);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
}

.journal-question,
.journal-action {
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
}

.journal-question {
  color: var(--muted);
  font-style: italic;
}

.journal-action {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
}

.journal-ai {
  margin: 12px 0 0;
  padding: 12px;
  border-left: 2px solid var(--rose);
  border-radius: 0 10px 10px 0;
  background: rgba(189, 124, 130, 0.08);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.pending-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f4e7cf;
  color: #8a642e;
  font-size: 7px;
  font-weight: 750;
  white-space: nowrap;
}

.delete-entry {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: color 180ms ease;
}

.delete-entry:hover {
  color: #a54f55;
}

.journal-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 244, 0.34);
  text-align: center;
}

.journal-empty svg {
  width: 34px;
  margin-bottom: 10px;
  color: var(--gold);
  opacity: 0.7;
}

.journal-empty p {
  margin: 0;
  color: var(--plum);
  font-family: Georgia, serif;
  font-size: 16px;
}

.journal-empty span {
  margin-top: 6px;
  color: var(--soft);
  font-size: 9px;
}

.site-footer {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line-soft);
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--soft);
  font-size: 8px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--plum);
}

.site-footer span {
  flex: 0 0 auto;
  font-size: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(232, 204, 157, 0.28);
  border-radius: 999px;
  background: rgba(45, 27, 44, 0.96);
  color: #fff3e3;
  font-size: 10px;
  box-shadow: 0 18px 44px rgba(45, 27, 44, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 50;
}

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

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

@keyframes heartBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-5px) rotate(0.35deg); }
}

@keyframes eyeThink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.28); }
}

@keyframes nfcPulse {
  0% { box-shadow: 0 12px 24px rgba(41, 23, 39, 0.24), 0 0 0 rgba(212, 170, 103, 0); }
  45% { box-shadow: 0 12px 24px rgba(41, 23, 39, 0.24), 0 0 32px rgba(212, 170, 103, 0.55); }
  100% { box-shadow: 0 12px 24px rgba(41, 23, 39, 0.24), 0 0 0 rgba(212, 170, 103, 0); }
}

@keyframes drawCard {
  0% { transform: rotate(-4deg) translate(0, 0); opacity: 1; }
  45% { transform: rotate(4deg) translate(8px, -16px); opacity: 1; }
  100% { transform: rotate(-4deg) translate(0, 0) scale(0.96); opacity: 0.2; }
}

@keyframes contentReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .hero-layout {
    gap: 44px;
  }

  .cat-device {
    width: 350px;
  }

  .device-stage {
    height: 470px;
  }

  .orbit-one {
    width: 380px;
    height: 380px;
  }

  .orbit-two {
    width: 440px;
    height: 440px;
  }

  .draw-controls {
    grid-template-columns: 1fr;
  }

  .draw-side {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .daily-button {
    min-height: 54px;
  }

  .draw-side p {
    padding-right: 8px;
  }
}

@media (max-width: 900px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(720px, calc(100% - 48px));
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 42px;
  }

  .device-section {
    text-align: center;
  }

  .eyebrow,
  .category-chips {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .draw-controls {
    margin-left: auto;
    margin-right: auto;
  }

  .reading-heading {
    text-align: left;
  }

  .reading-heading .eyebrow {
    justify-content: flex-start;
  }

  .question-panel {
    margin-top: 24px;
  }

  .category-chips {
    justify-content: flex-start;
  }

  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    padding-top: 18px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .header-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .language-toggle {
    order: 3;
    width: 100%;
  }

  .language-toggle button {
    flex: 1;
    min-width: 0;
  }

  .brand-copy small,
  .edition-label {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .sound-toggle {
    min-height: 36px;
    padding: 0 11px;
  }

  .hero-layout {
    gap: 48px;
    padding: 34px 0 52px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .hero-description {
    max-width: 350px;
    font-size: 12px;
  }

  .device-stage {
    height: 435px;
    margin-top: 14px;
  }

  .cat-device {
    width: 330px;
  }

  .orbit-one {
    width: 340px;
    height: 340px;
  }

  .orbit-two {
    width: 395px;
    height: 395px;
  }

  .star-one {
    left: 0;
    top: 23%;
  }

  .star-two {
    right: 0;
    top: 60%;
  }

  .heart-one {
    right: 0;
    top: 20%;
  }

  .heart-two {
    left: 0;
    top: 64%;
  }

  .face-screen {
    border-width: 6px;
    border-radius: 34px;
  }

  .screen-status {
    top: 11px;
    left: 13px;
    right: 13px;
    font-size: 6px;
  }

  .hexagram-symbol {
    top: 30px;
    font-size: 51px;
  }

  .cat-face {
    bottom: 25px;
    transform: translateX(-50%) scale(0.9);
  }

  .screen-caption {
    bottom: 8px;
    font-size: 6px;
  }

  .device-brand {
    font-size: 6px;
  }

  .nfc-base {
    font-size: 6px;
  }

  .draw-controls {
    grid-template-columns: 1fr;
  }

  .draw-side {
    grid-template-columns: 1fr;
  }

  .draw-side p {
    padding: 0;
  }

  .section-heading h2 {
    font-size: 35px;
  }

  .section-heading > p:last-child {
    font-size: 12px;
  }

  .question-panel textarea {
    min-height: 88px;
  }

  .chip {
    min-height: 34px;
    padding: 0 13px;
    font-size: 9px;
  }

  .reading-card,
  .empty-reading {
    min-height: 420px;
  }

  .reading-card {
    border-radius: 25px;
  }

  .empty-reading {
    padding: 30px 24px;
  }

  .empty-reading h3 {
    font-size: 24px;
  }

  .reading-content {
    padding: 26px 22px 22px;
  }

  .reading-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 15px;
  }

  .reading-symbol {
    width: 72px;
    height: 86px;
    font-size: 41px;
  }

  .reading-hero h3 {
    font-size: 25px;
  }

  .reading-actions {
    grid-template-columns: 1fr 1fr;
  }

  .ai-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ai-toolbar label {
    grid-column: 1 / -1;
  }

  .ai-reading {
    padding: 15px;
  }

  .reading-actions .copy-button {
    grid-column: 1 / -1;
  }

  .journal-section {
    padding-top: 34px;
  }

  .journal-header {
    align-items: center;
  }

  .journal-header h2 {
    font-size: 31px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer span {
    margin-top: 12px;
  }
}

.account-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.66);
  color: var(--plum);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.account-button:hover {
  border-color: var(--gold-bright);
  background: var(--card);
  transform: translateY(-1px);
}

.account-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plum);
  color: #fff7ed;
  font-size: 10px;
}

.account-avatar svg {
  width: 15px;
  height: 15px;
}

.plan-pill {
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: var(--plum-deep);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pricing-section {
  padding: 64px 0 72px;
  border-top: 1px solid var(--line-soft);
}

.pricing-heading {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
}

.pricing-heading .eyebrow {
  justify-content: center;
}

.pricing-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pricing-heading > p:last-child {
  max-width: 460px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 18px 44px rgba(70, 44, 61, 0.07);
}

.pro-card {
  border-color: var(--plum);
  background:
    radial-gradient(circle at 100% 0, rgba(212, 170, 103, 0.18), transparent 16rem),
    linear-gradient(145deg, #4b2e49, #2d1b2e);
  color: #fff7ed;
  box-shadow: 0 24px 54px rgba(55, 31, 50, 0.18);
}

.popular-label {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 9px;
  border: 1px solid rgba(232, 204, 157, 0.28);
  border-radius: 999px;
  color: #e7c58a;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.price-card-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.plan-name {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.pro-card .plan-name {
  color: #e7c58a;
}

.price {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price span {
  color: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0;
}

.pro-card .price span {
  color: rgba(255, 247, 237, 0.48);
}

.plan-description {
  margin: 12px 0 22px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
}

.pro-card .plan-description {
  color: rgba(255, 247, 237, 0.58);
}

.plan-features {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.pro-card .plan-features li {
  color: rgba(255, 247, 237, 0.78);
}

.pro-card .plan-features li::before {
  color: #e7c58a;
}

.price-action {
  width: 100%;
}

.pro-actions {
  display: grid;
  gap: 9px;
}

.pro-card .secondary-action {
  border-color: rgba(232, 204, 157, 0.24);
  background: rgba(232, 204, 157, 0.07);
  color: #f5dfba;
}

.pro-card .secondary-action:hover:not(:disabled) {
  border-color: rgba(232, 204, 157, 0.5);
  background: rgba(232, 204, 157, 0.12);
}

.billing-note {
  margin: 12px 0 0;
  color: rgba(255, 247, 237, 0.38);
  font-size: 8px;
  text-align: center;
}

.journal-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.journal-count {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(35, 22, 33, 0.48);
  backdrop-filter: blur(10px);
}

.account-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 30px 90px rgba(35, 22, 33, 0.3);
  animation: modalIn 220ms ease both;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--gold-bright);
  color: var(--plum);
}

.account-modal h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.auth-intro {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.auth-tab {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.auth-tab.active {
  background: var(--card);
  color: var(--plum);
  box-shadow: 0 3px 10px rgba(70, 44, 61, 0.08);
}

#authForm {
  margin-top: 20px;
}

#authForm .field-label {
  margin-top: 14px;
}

#authForm input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fffdf9;
  color: var(--ink);
  font-size: 12px;
}

#authForm input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 170, 103, 0.1);
}

.auth-error {
  min-height: 16px;
  margin: 10px 0 0;
  color: #a54f55;
  font-size: 9px;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-fineprint {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.account-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.account-summary-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plum);
  color: #fff7ed;
  font-family: Georgia, serif;
  font-size: 20px;
}

.account-summary strong,
.account-summary span {
  display: block;
}

.account-summary strong {
  overflow: hidden;
  color: var(--plum);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.signed-in-view > .secondary-action {
  width: 100%;
  margin-top: 9px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .price-card {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .account-button {
    min-height: 36px;
    padding-right: 10px;
    font-size: 7px;
  }

  .account-avatar {
    width: 23px;
    height: 23px;
  }

  .pricing-section {
    padding: 48px 0 54px;
  }

  .pricing-heading h2 {
    font-size: 37px;
  }

  .price-card {
    padding: 24px;
    border-radius: 22px;
  }

  .price {
    font-size: 38px;
  }

  .popular-label {
    top: 16px;
    right: 16px;
  }

  .journal-tools {
    gap: 12px;
  }

  .account-modal {
    padding: 28px 22px;
    border-radius: 23px;
  }

  .account-modal h2 {
    font-size: 30px;
  }
}

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