/* Landscape and illustrated cards. */
:root{--muted:#c1b4d0;--line:#d8bcea22;--violet:#dfb9f3}
body{background:#100d20;isolation:isolate}
.ambient{z-index:-1;background:linear-gradient(180deg,#100d2038 0%,#100d2060 34%,#100d20d9 80%,#100d20 100%),url('assets/garden-background.jpg') center 42%/cover no-repeat}
.ambient:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 20%,transparent 20%,#100d2030 100%)}
.shell{max-width:1100px;padding-inline:40px}
header{border-bottom-color:#f0d9ff24;text-shadow:0 2px 12px #120a25;height:95px}
.brand small{color:#d3c0df}.icon-button{background:#21162e88;color:#ead8f5;width:40px;height:40px}
.hero{padding-top:26px;text-shadow:0 2px 18px #10091e,0 1px 4px #10091e}
.hero h1{font-size:clamp(44px,6vw,66px)}
.hero .subtitle{color:#e3d7eb;font-size:14px}
.eyebrow{color:#efd2ff}.date{color:#eee0f6;text-shadow:0 2px 6px #100d20}
.deck{padding-top:30px;padding-bottom:35px;gap:34px;position:relative}
.deck:before{content:'';position:absolute;inset:30% 8% -10%;border-radius:50%;background:radial-gradient(ellipse,#d9a9f22b,transparent 66%);pointer-events:none}
.card-choice{width:190px}.card-choice img{border:1px solid #ddbbf18c;box-shadow:0 22px 45px #080313bb,0 0 22px #b68ee12b}
.card-choice span{color:#f2d9ff;text-shadow:0 2px 7px #000}
.ritual-note{color:#e5d5ed;text-shadow:0 1px 6px #000}.footnote{color:#b6a5c6}
nav{background:#1c142cdb;border-color:#e7c2ff30;width:400px;box-shadow:0 12px 40px #08031366}
nav button{font-size:10px;color:#b6a1c5;padding:6px;min-height:56px}nav button.active{color:#f2d6ff}
.result{max-width:760px}.result>.hero{padding-bottom:24px}
.result-layout{grid-template-columns:minmax(230px,300px) 1fr;gap:36px;padding:24px;background:#161021d9;border:1px solid #cfabd631;border-radius:22px;backdrop-filter:blur(18px);box-shadow:0 24px 65px #06020b66}
.face{width:100%;display:block;background:#28213c;border-radius:13px;box-shadow:0 10px 35px #0006;border-color:#dfb9f34d}
.face:before,.face:after{display:none}.face img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover}
.result h2{font-size:41px;line-height:1.12}.result .meaning{color:#eee1f2;font-size:25px;line-height:1.5}
.question{padding:25px 22px 10px;border:1px solid #d8bcea22;border-radius:18px;background:#191123d9;margin-top:20px;backdrop-filter:blur(12px)}
.question>p:not(.eyebrow){font-size:27px}.next-day{background:#1b1428c9;border-color:#d8bcea25}
.history-list{max-width:650px}.history-item{background:#191123e0;backdrop-filter:blur(14px);padding:14px;border-color:#d8bcea28}.history-item:hover{background:#30203edb}.history-thumb{width:52px;height:78px;object-fit:cover;border-radius:6px;flex-shrink:0}.history-item strong{font-size:26px}.history-item small{color:#baa9c9}.history-item .arrow{padding:10px}
.about{max-width:620px;background:#171121e8;backdrop-filter:blur(15px);padding:12px 30px 30px;border:1px solid #d8bcea25;border-radius:22px;color:#cfc1da}
.tags span{color:#e0c7ed;border-color:#d8bcea33;background:#80579815}
.empty{max-width:500px;margin:24px auto;border:1px solid #d8bcea25;border-radius:20px;background:#171121dd;color:#d3c1df}
dialog{width:440px;max-height:calc(100svh - 32px);background:#1b142a;overflow-y:auto}
dialog::backdrop{background:#09061199;backdrop-filter:blur(6px)}
.intro-art{height:210px;background:linear-gradient(0deg,#1b142a 0%,transparent 55%),url('assets/garden-background.jpg') 30% 50%/cover}
.intro-art:before,.intro-art:after,.intro-art span{display:none}
.intro-content{padding-inline:30px}.intro-content h2{font-size:37px}.intro-content>p:not(.eyebrow){color:#d1c3dc;font-size:13px}.intro-content .eyebrow{margin-top:-8px;position:relative}.primary{background:linear-gradient(120deg,#a477bd,#63417f);border-color:#e8c2ff66;min-height:48px}.text-button{min-height:44px}
@media(max-width:600px){.shell{padding-inline:20px}header{height:62px}.hero{padding-top:16px}.hero h1{font-size:45px}.hero .subtitle{font-size:12px;max-width:310px}.ambient{background-position:center,43% center}.deck{gap:12px;padding-top:32px}.card-choice{width:30%;max-width:155px}.result-layout{display:flex;flex-direction:column;padding:14px;gap:14px;text-align:center}.face{width:min(100%,218px)}.result-layout>div:last-child{width:100%}.result h2{font-size:34px;margin:6px 0 10px}.result .meaning{font-size:24px;margin:0 0 5px}.result>.hero h1{font-size:40px}.result>.hero{padding-top:16px;padding-bottom:0}.question>p:not(.eyebrow){font-size:25px}.question{padding:23px 18px 8px}.about{padding-inline:22px}.history-item strong{font-size:23px}.history-thumb{width:48px;height:72px}.intro-art{height:175px}.intro-content h2{font-size:34px}nav{max-width:100%;gap:8px}.footnote{max-width:300px}}
.shuffle-stage {
  --card-width: clamp(59px, 24vw, 164px);
  --orbit-height: clamp(196px, 54vw, 328px);
  --orbit-radius: clamp(53px, 18vw, 101px);
  --stack-height: calc(var(--card-width) * .69);
  --stack-offset: calc(var(--orbit-height) / 2 + var(--stack-height) / 2 + 10px);
  position: relative;
  isolation: isolate;
  width: min(100%, 720px);
  height: calc(var(--orbit-height) + var(--stack-height) + 30px);
  margin: 8px auto 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, #b382de24, transparent 64%);
}
.shuffle-stage::before, .shuffle-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(var(--orbit-height) / 2);
  width: calc(var(--orbit-radius) * 2);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #e2baff75;
  border-radius: 50%;
  box-shadow: 0 0 22px #c78cf080, inset 0 0 16px #c78cf045;
  opacity: 0;
  pointer-events: none;
}
.shuffle-stage::after {
  width: calc(var(--orbit-radius) * 1.68);
  border: 1px dashed #eed3ff73;
  box-shadow: none;
}
.shuffle-stage.shuffling::before, .shuffle-stage.shuffling::after {
  animation: shuffle-halo 2.3s ease-in-out both;
}
.shuffle-card, .shuffle-stack {
  position: absolute;
  left: 50%;
  top: calc(var(--orbit-height) / 2);
  width: var(--card-width);
  border: 0;
  background: none;
  padding: 0;
  transform: var(--rest);
}
.shuffle-card {
  --slot: 0;
  --angle: calc(var(--orbit-index) * 360deg / 7);
  --full-turn: calc(var(--angle) + 360deg);
  --start: translate(-50%, -50%) translateY(var(--stack-offset)) rotate(var(--angle)) translateX(0px) rotate(calc(-1 * var(--angle))) translateX(0%) rotate(0deg) scale(.46);
  --orbit-start: translate(-50%, -50%) translateY(0px) rotate(var(--angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--angle))) translateX(0%) rotate(0deg) scale(.48);
  --orbit-end: translate(-50%, -50%) translateY(0px) rotate(var(--full-turn)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--full-turn))) translateX(0%) rotate(0deg) scale(.48);
  --rest: translate(-50%, -50%) translateY(0px) rotate(var(--full-turn)) translateX(0px) rotate(calc(-1 * var(--full-turn))) translateX(calc(var(--slot) * 112%)) rotate(calc(var(--slot) * 6deg)) scale(1);
  z-index: 2;
}
.shuffle-stack {
  top: calc(var(--orbit-height) + 10px);
  width: calc(var(--card-width) * .46);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}
.shuffle-return {
  --rest: translate(-50%, -50%) translateY(var(--stack-offset)) rotate(var(--full-turn)) translateX(0px) rotate(calc(-1 * var(--full-turn))) translateX(0%) rotate(0deg) scale(.46);
  z-index: 1;
  pointer-events: none;
}
.shuffle-card img, .shuffle-stack img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid #e5c7f2a3;
  border-radius: 8px;
  box-shadow: 0 12px 28px #090412aa;
}
.shuffle-stack img { box-shadow: 0 4px #775b89, 0 8px #3b2b50, 0 15px 24px #090412; }
.shuffle-card span {
  position: absolute;
  inset: auto 0 -24px;
  font: 16px var(--serif);
  color: #f2d9ff;
  text-shadow: 0 2px 6px #10091d;
}
.shuffle-card:disabled { cursor: default; }
.shuffle-card:enabled { transition: translate .2s ease, filter .2s ease; }
.shuffle-card:enabled:is(:hover, :focus-visible) { translate: 0 -7px; filter: brightness(1.14); }
.shuffling .shuffle-card { animation: shuffle-deal 2.3s ease-in-out both; }
.shuffling .shuffle-card span { visibility: hidden; }
.shuffle-card.revealing { animation: shuffle-reveal .65s ease forwards; }
.shuffle-status { margin-top: 6px; }
@keyframes shuffle-deal {
  0% { transform: var(--start); }
  22% { transform: var(--orbit-start); animation-timing-function: linear; }
  75% { transform: var(--orbit-end); }
  100% { transform: var(--rest); }
}
@keyframes shuffle-halo {
  0%, 100% { opacity: 0; }
  25%, 72% { opacity: 1; }
}
@keyframes shuffle-reveal {
  from { transform: var(--rest) rotateY(0); }
  to { transform: var(--rest) rotateY(90deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shuffle-card:enabled:is(:hover, :focus-visible) { translate: none; }
}
