:root {
  color-scheme: dark;
  --bg: #160f13;
  --bg-soft: #21161c;
  --panel: rgba(39, 24, 31, 0.82);
  --panel-strong: #2b1b23;
  --wine: #5d1f2d;
  --wine-deep: #35121d;
  --ivory: #e6dac3;
  --ivory-dim: #bdae98;
  --gold: #aa8d55;
  --gold-soft: rgba(170, 141, 85, 0.5);
  --ink: #120d10;
  --line: rgba(230, 218, 195, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --card-ratio: 0.558;
  --max-width: 1240px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% -10%, rgba(112, 44, 61, 0.24), transparent 42%),
    linear-gradient(180deg, #1c1217 0%, #130d10 100%);
  font-family: var(--sans);
  line-height: 1.8;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: min(100% - 28px, var(--max-width));
  margin: 0 auto;
  padding: 16px 0 2px;
}

.brand {
  display: block;
  width: min(31vw, 190px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.84;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.brand-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

body:not(.is-home) .site-header {
  padding-top: 12px;
}

body:not(.is-home) .brand {
  width: min(26vw, 154px);
  opacity: 0.76;
}



/* ===== FACET brand and loading screen ===== */

body.is-loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(93, 31, 45, 0.18), transparent 34%),
    #080f20;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s step-end;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader img {
  width: min(48vw, 245px);
  height: auto;
  filter:
    drop-shadow(0 20px 34px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 18px rgba(170, 141, 85, 0.10));
  animation: facet-loader-breathe 1.8s ease-in-out infinite;
}

@keyframes facet-loader-breathe {
  0%, 100% {
    transform: scale(0.975);
    opacity: 0.78;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 699px) {
  .site-header {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .brand {
    width: min(42vw, 150px);
  }

  body:not(.is-home) .brand {
    width: min(38vw, 132px);
  }

  .home-screen {
    padding-top: 0;
  }
}


.app-shell {
  width: min(100% - 24px, var(--max-width));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
}

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

.screen.is-active {
  display: block;
  animation: screen-in 0.45s ease both;
}

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

.reading-menu {
  display: grid;
  gap: 18px;
  padding: 12px 0 54px;
}

.reading-choice {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
}

.reading-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 7, 9, 0.9) 0%, rgba(10, 7, 9, 0.14) 48%, transparent 70%);
}

.reading-choice img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(.2,.7,.2,1), filter 0.65s ease;
}

.reading-choice:active img {
  transform: scale(1.015);
}

.reading-stage,
.result-stage {
  padding: 24px 0 64px;
}

.screen-heading {
  margin: 8px 0 26px;
  font-family: var(--serif);
  font-size: clamp(21px, 5vw, 30px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
}

.selected-area {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin: 0 auto 28px;
}

.selected-slot {
  position: relative;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  border: 1px solid rgba(230, 218, 195, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(255, 255, 255, 0.018);
  cursor: default;
}

.selected-slot::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(170, 141, 85, 0.18);
  border-radius: 6px;
}

.selected-slot.has-card {
  border-color: rgba(170, 141, 85, 0.5);
  background: transparent;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.selected-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-intro {
  display: grid;
  justify-items: center;
  gap: 34px;
  padding: 16px 0 48px;
}

.deck-stack {
  position: relative;
  width: clamp(135px, 37vw, 190px);
  aspect-ratio: var(--card-ratio);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.52));
}

.deck-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.deck-stack img:nth-child(1) { transform: translate(-8px, 5px) rotate(-4deg); }
.deck-stack img:nth-child(2) { transform: translate(8px, 4px) rotate(4deg); }
.deck-stack img:nth-child(3) { transform: translate(0, -2px); }

.primary-button,
.secondary-button {
  min-height: 50px;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  border: 1px solid rgba(197, 166, 105, 0.7);
  color: #f5ebd8;
  background: linear-gradient(180deg, #713044, #4a1d2c);
  box-shadow: 0 10px 32px rgba(73, 22, 40, 0.38), inset 0 1px rgba(255,255,255,0.08);
}

.secondary-button {
  border: 1px solid rgba(230, 218, 195, 0.25);
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.025);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

.shuffle-animation {
  position: relative;
  display: none;
  width: min(100%, 480px);
  height: 280px;
  margin: 12px auto 42px;
}

.shuffle-animation.is-running {
  display: block;
}

.shuffle-card {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 132px;
  aspect-ratio: var(--card-ratio);
  border-radius: 9px;
  background: url("assets/images/tarot/tarot-card-back.webp") center / cover no-repeat;
  box-shadow: 0 18px 35px rgba(0,0,0,0.45);
  transform-origin: 50% 85%;
}

.shuffle-animation.is-running .shuffle-card-a {
  animation: shuffle-a 1.9s cubic-bezier(.32,.02,.2,1) both;
}

.shuffle-animation.is-running .shuffle-card-b {
  animation: shuffle-b 1.9s cubic-bezier(.32,.02,.2,1) both;
}

.shuffle-animation.is-running .shuffle-card-c {
  animation: shuffle-c 1.9s cubic-bezier(.32,.02,.2,1) both;
}

@keyframes shuffle-a {
  0% { transform: translateX(-50%) rotate(0); }
  28% { transform: translateX(-145%) rotate(-12deg); }
  58% { transform: translateX(30%) rotate(8deg); }
  100% { transform: translateX(-50%) rotate(-2deg); }
}

@keyframes shuffle-b {
  0% { transform: translateX(-50%) rotate(0); }
  28% { transform: translateX(45%) rotate(12deg); }
  58% { transform: translateX(-130%) rotate(-7deg); }
  100% { transform: translateX(-50%) rotate(2deg); }
}

@keyframes shuffle-c {
  0%, 18% { transform: translateX(-50%) translateY(0); }
  42% { transform: translateX(-50%) translateY(42px) scale(0.98); }
  74% { transform: translateX(-50%) translateY(-10px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px 0 30px;
}

.deck-card {
  position: relative;
  aspect-ratio: var(--card-ratio);
  border: 0;
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck-card.is-selected {
  opacity: 0.16;
  filter: grayscale(0.8);
  pointer-events: none;
}

.deck-card:active {
  transform: translateY(-3px);
}

.reading-actions,
.result-actions {
  display: grid;
  gap: 12px;
  width: min(100%, 430px);
  margin: 0 auto;
}

.reveal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 660px);
  margin: 12px auto 36px;
  perspective: 1400px;
}

.reveal-card {
  min-width: 0;
}

.flip-card {
  position: relative;
  aspect-ratio: var(--card-ratio);
  transform-style: preserve-3d;
  transition: transform 0.95s cubic-bezier(.2,.72,.18,1);
}

.reveal-card.is-flipped .flip-card {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 9px;
  backface-visibility: hidden;
  box-shadow: 0 16px 38px rgba(0,0,0,0.48);
}

.flip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-front {
  transform: rotateY(180deg);
}

.flip-front.is-reversed img {
  transform: rotate(180deg);
}

.reveal-meta {
  margin-top: 12px;
  text-align: center;
}

.reveal-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(13px, 3.4vw, 19px);
  font-weight: 500;
  line-height: 1.45;
}

.reveal-meta span {
  display: block;
  margin-top: 2px;
  color: var(--ivory-dim);
  font-size: 11px;
}

.result-content {
  animation: result-in 0.65s ease both;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reading-summary-panel,
.advice-panel,
.card-details-section {
  width: min(100%, 820px);
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255,255,255,0.028), rgba(255,255,255,0.012));
  box-shadow: 0 20px 55px rgba(0,0,0,0.2);
}

.reading-summary-panel,
.advice-panel {
  padding: 26px 22px;
}

.card-details-section {
  padding: 26px 16px 16px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reading-summary-panel h2,
.card-details-section h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.reading-summary-panel p:last-child,
.advice-panel p:last-child {
  margin: 0;
  color: #dfd3bf;
}

.card-details {
  display: grid;
  gap: 12px;
}

.card-detail {
  padding: 18px;
  border-radius: 12px;
  background: rgba(10, 7, 9, 0.22);
}

.card-detail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.card-detail h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.card-detail-orientation {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 12px;
}

.position-label {
  margin: 14px 0 4px;
  color: var(--ivory-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.card-keyword {
  margin: 0 0 8px;
  color: #efe3cf;
  font-family: var(--serif);
  font-size: 16px;
}

.card-explanation {
  margin: 0;
  color: #cfc2ae;
  font-size: 14px;
}

.result-actions {
  margin-top: 34px;
}

.site-footer {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 28px 0 40px;
  color: rgba(230, 218, 195, 0.52);
  font-size: 11px;
  text-align: center;
}

@media (min-width: 700px) {
  .site-header {
    padding-top: 32px;
  }

  .reading-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 42px;
  }

  .reading-choice img {
    aspect-ratio: 3 / 5;
  }

  .reading-choice:hover img {
    transform: scale(1.025);
    filter: brightness(1.04);
  }

  .reading-choice > span:not(.motion-accent):not(.choice-title) {
    left: 20px;
    bottom: 22px;
    font-size: clamp(23px, 2.5vw, 34px);
  }

  .selected-area {
    gap: 16px;
  }

  .card-grid {
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 8px;
  }

  .deck-card:hover {
    transform: translateY(-6px);
    filter: brightness(1.06);
  }

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

  .card-details-section {
    padding: 30px;
  }

  .card-details {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-detail {
    min-height: 100%;
  }
}



/* ===== Reading calculation overlay ===== */

body.is-reading-loading {
  overflow: hidden;
}

.reading-loader {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 47%, rgba(93, 31, 45, 0.24), transparent 32%),
    rgba(7, 12, 25, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s ease,
    visibility 0.42s step-end;
}

.reading-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.42s ease,
    visibility 0s step-start;
}

.reading-loader-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: min(62vw, 310px);
  aspect-ratio: 1;
}

.reading-loader-inner img {
  position: relative;
  z-index: 2;
  width: 72%;
  height: auto;
  filter:
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 20px rgba(170, 141, 85, 0.12));
  animation: reading-mark-breathe 2.2s ease-in-out infinite;
}

.reading-loader-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.reading-loader-ring-outer {
  inset: 1%;
  border: 1px solid rgba(190, 154, 89, 0.34);
  box-shadow:
    inset 0 0 24px rgba(170, 141, 85, 0.035),
    0 0 28px rgba(170, 141, 85, 0.035);
  animation: reading-ring-turn 13s linear infinite;
}

.reading-loader-ring-outer::before,
.reading-loader-ring-outer::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid transparent;
  border-top-color: rgba(230, 218, 195, 0.42);
  border-bottom-color: rgba(93, 31, 45, 0.48);
  border-radius: 50%;
}

.reading-loader-ring-outer::after {
  inset: 22%;
  transform: rotate(37deg);
}

.reading-loader-ring-inner {
  inset: 13%;
  border: 1px solid rgba(230, 218, 195, 0.15);
  animation: reading-ring-turn-reverse 9s linear infinite;
}

.reading-loader-ring-inner::before,
.reading-loader-ring-inner::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(190, 154, 89, 0.58);
  background: #080f20;
  transform: rotate(45deg);
}

.reading-loader-ring-inner::before {
  top: -5px;
  left: calc(50% - 4px);
}

.reading-loader-ring-inner::after {
  bottom: -5px;
  left: calc(50% - 4px);
}

.reading-loader-glint {
  position: absolute;
  z-index: 3;
  top: 26%;
  left: 28%;
  width: 42%;
  height: 5%;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 247, 223, 0.68),
    transparent
  );
  transform: rotate(-24deg);
  filter: blur(0.4px);
  animation: reading-glint 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes reading-mark-breathe {
  0%, 100% {
    transform: scale(0.965);
    opacity: 0.82;
  }
  48% {
    transform: scale(1.015);
    opacity: 1;
  }
}

@keyframes reading-ring-turn {
  to { transform: rotate(360deg); }
}

@keyframes reading-ring-turn-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes reading-glint {
  0%, 58%, 100% {
    transform: translate3d(-30%, 18%, 0) rotate(-24deg);
    opacity: 0;
  }
  68% {
    opacity: 0.36;
  }
  82% {
    transform: translate3d(54%, -34%, 0) rotate(-24deg);
    opacity: 0;
  }
}

@media (max-width: 699px) {
  .reading-loader-inner {
    width: min(74vw, 285px);
  }
}


/* ===== Top page enhancements ===== */

.home-screen {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 140px);
  padding: 4px 0 40px;
}

.home-ornament {
  --ornament-x: 0px;
  --ornament-y: 0px;
  position: fixed;
  z-index: -1;
  top: clamp(80px, 13vh, 150px);
  left: 50%;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.11;
  transform: translate3d(calc(-50% + var(--ornament-x)), var(--ornament-y), 0);
  transition: opacity 0.5s ease;
  will-change: transform;
}

.home-ornament-diamond {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(182, 151, 92, 0.72);
  transform: rotate(45deg);
}

.home-ornament-diamond::before,
.home-ornament-diamond::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(182, 151, 92, 0.38);
}

.home-ornament-diamond::after {
  inset: 22%;
  border-radius: 50%;
  transform: rotate(45deg);
}

.home-ornament-ring {
  position: absolute;
  inset: 31%;
  border: 1px solid rgba(213, 192, 150, 0.45);
  border-radius: 50%;
}

.home-ornament-leaf {
  position: absolute;
  width: 28%;
  height: 10%;
  border: 1px solid rgba(182, 151, 92, 0.45);
  border-left: 0;
  border-bottom: 0;
  border-radius: 100% 0 100% 0;
}

.home-ornament-leaf-a {
  top: 13%;
  left: 36%;
  transform: rotate(-45deg);
}

.home-ornament-leaf-b {
  right: 36%;
  bottom: 13%;
  transform: rotate(135deg);
}

.reading-menu {
  position: relative;
  z-index: 1;
}

.reading-choice {
  --shine-x: 50%;
  --shine-y: 50%;
  --reveal-x: 0px;
  width: calc(100% - 10px);
  border-color: rgba(187, 153, 89, 0.34);
  border-radius: 14px;
  box-shadow:
    0 28px 75px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(157, 120, 70, 0.08) inset;
  transition:
    opacity 0.8s ease,
    transform 0.85s cubic-bezier(.18,.72,.2,1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.reading-choice:nth-child(odd) {
  justify-self: end;
  --reveal-x: 22px;
}

.reading-choice:nth-child(even) {
  justify-self: start;
  --reveal-x: -22px;
}

.js .reading-choice {
  opacity: 0;
  transform: translate3d(var(--reveal-x), 34px, 0);
}

.js .reading-choice.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--reveal-delay, 0ms);
}

.reading-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle 120px at var(--shine-x) var(--shine-y),
      rgba(255, 244, 215, 0.23) 0%,
      rgba(216, 188, 128, 0.09) 32%,
      transparent 70%
    );
  mix-blend-mode: screen;
  transition: opacity 0.28s ease;
}

.reading-choice.is-pointer-active::before,
.reading-choice:hover::before {
  opacity: 1;
}

.reading-choice::after {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(10, 7, 9, 0.92) 0%, rgba(10, 7, 9, 0.18) 42%, transparent 69%),
    linear-gradient(115deg, rgba(116, 42, 59, 0.1), transparent 45%);
}

.reading-choice img {
  position: relative;
  z-index: 0;
  aspect-ratio: 1536 / 2752;
  object-position: center;
  transform: scale(1.001);
  transition:
    transform 0.75s cubic-bezier(.2,.7,.2,1),
    filter 0.65s ease;
}

.choice-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 19px;
  z-index: 5;
  color: #f1e7d4;
  font-family: var(--serif);
  font-size: clamp(25px, 7vw, 38px);
  letter-spacing: 0.08em;
  text-align: left;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

.motion-accent {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

.reading-choice.is-visible[data-reading="daily"] .motion-accent {
  top: -18%;
  left: -22%;
  width: 46%;
  height: 138%;
  opacity: 0.18;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 237, 194, 0.42),
    transparent
  );
  transform: rotate(9deg);
  animation: daily-light-drift 14s ease-in-out infinite;
}

.reading-choice.is-visible[data-reading="love"] .motion-accent {
  top: 57%;
  left: 57%;
  width: 22px;
  height: 22px;
  opacity: 0.46;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.8) 0 5%, rgba(255,234,204,0.32) 18%, transparent 66%);
  animation: love-pearl-glint 12s ease-in-out infinite;
}

.reading-choice.is-visible[data-reading="life"] .motion-accent {
  top: 15%;
  right: 8%;
  width: 36%;
  aspect-ratio: 1;
  opacity: 0.16;
  border: 1px solid rgba(231, 205, 148, 0.62);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(231, 205, 148, 0.03),
    inset 0 0 0 14px rgba(231, 205, 148, 0.025);
  animation: life-ring-turn 28s linear infinite;
}

.reading-choice.is-visible[data-reading="life"] .motion-accent::before,
.reading-choice.is-visible[data-reading="life"] .motion-accent::after {
  content: "";
  position: absolute;
  inset: 48% -10%;
  height: 1px;
  background: rgba(231, 205, 148, 0.48);
}

.reading-choice.is-visible[data-reading="life"] .motion-accent::after {
  transform: rotate(90deg);
}

@keyframes daily-light-drift {
  0%, 100% { transform: translateX(-16%) rotate(9deg); opacity: 0.08; }
  45%, 60% { transform: translateX(260%) rotate(9deg); opacity: 0.22; }
}

@keyframes love-pearl-glint {
  0%, 72%, 100% { transform: translate3d(-12px, 8px, 0) scale(0.7); opacity: 0; }
  78% { opacity: 0.62; }
  84% { transform: translate3d(18px, -16px, 0) scale(1.2); opacity: 0.22; }
}

@keyframes life-ring-turn {
  to { transform: rotate(360deg); }
}

.choice-transition-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.choice-transition-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(12, 8, 10, 0.86);
  backdrop-filter: blur(3px);
  transition: opacity 0.65s ease;
}

.choice-transition-layer.is-active::before {
  opacity: 1;
}

.choice-transition-image {
  position: fixed;
  z-index: 1;
  left: var(--start-left);
  top: var(--start-top);
  width: var(--start-width);
  height: var(--start-height);
  object-fit: cover;
  border: 1px solid rgba(200, 166, 101, 0.45);
  border-radius: 14px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62);
  transform: translate3d(0, 0, 0);
  transition:
    left 0.72s cubic-bezier(.2,.74,.16,1),
    top 0.72s cubic-bezier(.2,.74,.16,1),
    width 0.72s cubic-bezier(.2,.74,.16,1),
    height 0.72s cubic-bezier(.2,.74,.16,1),
    transform 0.72s cubic-bezier(.2,.74,.16,1),
    filter 0.72s ease;
}

.choice-transition-layer.is-active .choice-transition-image {
  left: 50%;
  top: 50%;
  width: min(70vw, 390px);
  height: min(79vh, 700px);
  transform: translate3d(-50%, -50%, 0) scale(1.015);
  filter: brightness(0.88);
}

body.is-choice-transitioning {
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .reading-choice:hover {
    border-color: rgba(208, 174, 108, 0.58);
    box-shadow:
      0 34px 90px rgba(0, 0, 0, 0.55),
      0 0 30px rgba(129, 76, 57, 0.1);
  }

  .reading-choice:hover img {
    transform: scale(1.018);
    filter: brightness(1.025);
  }
}

@media (min-width: 700px) {
  .home-screen {
    padding-top: 16px;
  }

  .home-ornament {
    top: 11vh;
    width: min(66vw, 820px);
    opacity: 0.095;
  }

  .reading-menu {
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    padding-top: 28px;
  }

  .reading-choice {
    width: 100%;
    justify-self: stretch;
    --reveal-x: 0px;
  }

  .reading-choice:nth-child(2) {
    transform-origin: center 48%;
  }

  .js .reading-choice {
    transform: translate3d(0, 28px, 0) scale(0.985);
  }

  .js .reading-choice.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .reading-choice img {
    aspect-ratio: 1536 / 2752;
  }

  .choice-title {
    left: 20px;
    bottom: 22px;
    font-size: clamp(23px, 2.5vw, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .reading-loader-inner img,
  .reading-loader-ring,
  .reading-loader-glint {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
