:root {
  --paper: #fff6ea;
  --paper-2: #f6e6cf;
  --ink: #1a1024;
  --muted: #6b5a70;
  --pink: #ff2e93;
  --hot: #ff5fb4;
  --orange: #ff7a1a;
  --yellow: #ffd93d;
  --lime: #b6f23a;
  --cyan: #00d4ff;
  --violet: #8b3dff;
  --gold: #e8b94a;
  --night: #1c0f33;
  --rainbow: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--lime), var(--cyan), var(--violet));
  /* Leopard rosettes in neon ink */
  --leopard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='%231a1024' stroke-width='5' stroke-linecap='round'%3E%3Cellipse cx='22' cy='24' rx='12' ry='9' stroke-dasharray='16 7' fill='%23ff2e93' transform='rotate(-20 22 24)'/%3E%3Cellipse cx='80' cy='18' rx='10' ry='8' stroke-dasharray='13 6' fill='%23ffd93d' transform='rotate(25 80 18)'/%3E%3Cellipse cx='55' cy='62' rx='13' ry='10' stroke-dasharray='18 7' fill='%2300d4ff' transform='rotate(10 55 62)'/%3E%3Cellipse cx='100' cy='80' rx='11' ry='8' stroke-dasharray='14 6' fill='%23ff7a1a' transform='rotate(-30 100 80)'/%3E%3Cellipse cx='20' cy='95' rx='10' ry='8' stroke-dasharray='13 6' fill='%23b6f23a' transform='rotate(35 20 95)'/%3E%3C/g%3E%3Cg fill='%231a1024'%3E%3Ccircle cx='50' cy='20' r='3.5'/%3E%3Ccircle cx='88' cy='50' r='3'/%3E%3Ccircle cx='12' cy='60' r='3'/%3E%3Ccircle cx='70' cy='105' r='3.5'/%3E%3Ccircle cx='40' cy='88' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  /* Light leopard for the bright wall */
  --leopard-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='6' stroke-linecap='round'%3E%3Cellipse cx='30' cy='32' rx='15' ry='11' stroke-dasharray='20 9' transform='rotate(-20 30 32)'/%3E%3Cellipse cx='110' cy='24' rx='13' ry='10' stroke-dasharray='17 8' transform='rotate(25 110 24)'/%3E%3Cellipse cx='74' cy='84' rx='16' ry='12' stroke-dasharray='22 9' transform='rotate(10 74 84)'/%3E%3Cellipse cx='136' cy='108' rx='14' ry='10' stroke-dasharray='18 8' transform='rotate(-30 136 108)'/%3E%3Cellipse cx='26' cy='128' rx='13' ry='10' stroke-dasharray='17 8' transform='rotate(35 26 128)'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.16'%3E%3Ccircle cx='66' cy='26' r='4'/%3E%3Ccircle cx='118' cy='66' r='3.5'/%3E%3Ccircle cx='16' cy='80' r='3.5'/%3E%3Ccircle cx='96' cy='142' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23fff'%3E%3Cpath d='M30 20l3 9 9 3-9 3-3 9-3-9-9-3 9-3z'/%3E%3Cpath d='M160 60l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M110 170l3 8 8 3-8 3-3 8-3-8-8-3 8-3z'/%3E%3Ccircle cx='190' cy='150' r='2.5'/%3E%3Ccircle cx='70' cy='110' r='2'/%3E%3Ccircle cx='200' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --hard: 5px 5px 0 var(--ink);
  --radius: 14px;
  --display: "Chewy", "Pirata One", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background-color: #b43cf0;
  background-image:
    var(--leopard-light),
    radial-gradient(circle at 12% 8%, rgba(255, 217, 61, 0.55), transparent 32%),
    radial-gradient(circle at 92% 28%, rgba(0, 212, 255, 0.55), transparent 38%),
    radial-gradient(circle at 8% 78%, rgba(182, 242, 58, 0.35), transparent 32%),
    radial-gradient(circle at 88% 92%, rgba(255, 122, 26, 0.45), transparent 38%),
    linear-gradient(165deg, #ff3ea5 0%, #d63cf0 38%, #8b3dff 68%, #3f6bff 100%);
  background-attachment: fixed;
  padding: env(safe-area-inset-top) 16px calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

/* Twinkling star field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--sparkle);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.95; } }

.hero, main, .footer { position: relative; max-width: 560px; margin: 0 auto; }

/* Header: flash-style emblem, lettering and ribbon */
.hero { text-align: center; padding: 22px 0 4px; }
.emblem-wrap { position: relative; display: inline-block; }
.emblem {
  width: 168px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 0 rgba(26, 16, 36, 0.35));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }
.float {
  position: absolute;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--ink);
  animation: drift 3.2s ease-in-out infinite;
}
.float.f1 { left: -14px; top: 0; color: var(--yellow); }
.float.f2 { right: -18px; top: 8px; color: var(--paper); animation-delay: -1s; font-size: 1rem; }
.float.f3 { right: -24px; top: 46px; color: var(--hot); animation-delay: -2s; }
.float.f4 { left: -30px; top: 40px; color: var(--cyan); animation-delay: -1.5s; font-size: 0.95rem; }
@keyframes drift { 50% { transform: translateY(-7px) scale(1.15) rotate(10deg); } }

.title {
  display: table;
  margin-inline: auto !important;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.3rem, 15.5vw, 4.7rem);
  line-height: 0.95;
  margin: 2px 0 12px;
  background: var(--rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  filter: drop-shadow(3px 3px 0 var(--paper)) drop-shadow(3px 3px 0 var(--ink));
  animation: shimmer 7s linear infinite;
  letter-spacing: 0.5px;
}
@keyframes shimmer { to { background-position: 200% 0; } }

.ribbon {
  position: relative;
  display: inline-block;
  margin: 0 22px;
  font-family: "Yellowtail", cursive;
  font-size: clamp(0.95rem, 4.4vw, 1.2rem);
  white-space: nowrap;
  color: var(--ink);
}
.ribbon span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 5px 16px 7px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: inset 0 -4px 0 var(--paper-2);
}
.ribbon::before, .ribbon::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 30px;
  height: 100%;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
}
.ribbon::before { left: -20px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 35% 50%); }
.ribbon::after { right: -20px; background: var(--cyan); clip-path: polygon(0 0, 100% 0, 65% 50%, 100% 100%, 0 100%); }

/* Progress */
.steps { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 22px 0 16px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 5px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.steps li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  letter-spacing: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.steps li.active { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.steps li.active span { background: var(--ink); color: var(--yellow); }
.steps li.done span { background: var(--lime); }

/* Flash sheets */
.sheet {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--yellow), 7px 7px 0 3px var(--ink);
  padding: 26px 20px 22px;
  margin: 0 7px 26px 0;
  animation: pop-in 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(26, 16, 36, 0.45);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.sheet::after {
  content: "✦";
  position: absolute;
  top: -16px;
  right: 14px;
  font-size: 1.6rem;
  color: var(--pink);
  -webkit-text-stroke: 1.5px var(--ink);
  animation: drift 3.5s ease-in-out infinite;
}
@keyframes pop-in { from { transform: scale(0.96) translateY(8px); opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.sheet-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.05;
  margin: 0 0 10px;
}
.sheet-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  background: var(--rainbow);
}
.script-title {
  font-family: "Yellowtail", cursive;
  font-weight: 400;
  font-size: 1.65rem;
  margin: 22px 0 10px;
  color: var(--pink);
  text-shadow: 1.5px 1.5px 0 var(--ink);
}
.script-title::after { content: " ✧"; font-family: "DM Sans", sans-serif; font-size: 1rem; color: var(--violet); text-shadow: none; }

textarea, select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 14px;
  background: #fffdf8;
  outline: none;
  transition: box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
textarea::placeholder { color: #9a8a92; }
textarea:focus, select:focus { box-shadow: 4px 4px 0 var(--cyan); }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 2px 18px; }
.hint { font-size: 0.85rem; color: var(--muted); }

/* Buttons */
.big-btn {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: linear-gradient(90deg, var(--hot), var(--orange) 50%, var(--yellow));
  box-shadow: var(--hard);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}
.big-btn::after { content: " ✦"; font-family: "DM Sans", sans-serif; font-size: 1rem; vertical-align: 3px; }
.big-btn:hover:not(:disabled) { transform: translate(-1px, -2px) rotate(-0.5deg); box-shadow: 6px 7px 0 var(--ink); }
.big-btn:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.big-btn:disabled { filter: grayscale(0.85); opacity: 0.55; cursor: not-allowed; }
.big-btn:focus-visible, .link-btn:focus-visible, .method-card:focus-within { outline: 3px solid var(--cyan); outline-offset: 4px; }

.link-btn {
  background: none;
  border: none;
  padding: 8px 4px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline wavy var(--pink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  cursor: pointer;
}
.link-btn.center { display: block; margin: 14px auto 0; }

/* Symbol chips */
.mood { margin: 0; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.85rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--tint, #fffdf8);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 2px 2px 0 var(--ink);
  animation: pop-in 0.35s ease-out backwards;
}
.chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--dot, var(--pink));
}
.cat-person  { --dot: var(--pink);   --tint: #ffe0f0; }
.cat-animal  { --dot: var(--yellow); --tint: #fff4c7; }
.cat-place   { --dot: var(--cyan);   --tint: #d6f7ff; }
.cat-object  { --dot: var(--violet); --tint: #ece0ff; }
.cat-action  { --dot: var(--lime);   --tint: #effcd4; }
.cat-emotion { --dot: #ff6b8b;       --tint: #ffe1e7; }
.cat-color   { --dot: conic-gradient(var(--pink), var(--yellow), var(--cyan), var(--violet), var(--pink)); --tint: #fff; }
.cat-nature  { --dot: #3fa9ff;       --tint: #dcefff; }
.cat-symbol  { --dot: var(--orange); --tint: #ffe8d6; }

/* Lens picker: bright tinted tiles */
.method-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
@media (min-width: 440px) { .method-grid { grid-template-columns: 1fr 1fr; } }

.method-card { position: relative; display: block; cursor: pointer; }
.method-card input { position: absolute; opacity: 0; pointer-events: none; }
.method-card .face {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 26%, #fff), color-mix(in srgb, var(--c2) 26%, #fff));
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.method-card .glyph {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 2px 2px 0 var(--ink);
  font-family: "DM Sans", "Segoe UI Symbol", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}
.method-card .name { font-family: var(--display); font-size: 1.45rem; line-height: 1.05; }
.method-card .blurb { font-size: 0.85rem; line-height: 1.35; color: #3d3044; }
.method-card:hover .face { transform: translate(-1px, -2px) rotate(-0.4deg); box-shadow: 4px 5px 0 var(--ink); }
.method-card input:checked + .face {
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 45%, #fff), color-mix(in srgb, var(--c2) 45%, #fff));
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink), 5px 5px 0 5.5px var(--ink);
  padding-left: 26px;
  padding-right: 40px;
}
/* Leopard stripe marks the chosen lens without covering any text */
.method-card input:checked + .face::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  border-right: 2.5px solid var(--ink);
  background: var(--leopard);
  background-size: 48px 48px;
}
.method-card input:checked + .face::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  border: 2.5px solid var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}

.sign-field { margin: -4px 0 18px; }
.sign-field label { display: block; font-weight: 700; margin-bottom: 6px; }

/* Reading header */
.method-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--pink);
}
.method-badge .badge-glyph {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rainbow);
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0;
}
#reading-display ol { list-style: none; margin: 0; padding: 0; }
#reading-display h4 { margin: 0; font-weight: 400; }

/* ===== Freudian: case file ===== */
.case-file {
  position: relative;
  margin-top: 30px;
  padding: 14px 10px 10px;
  border: 2.5px solid var(--ink);
  border-radius: 4px 12px 12px 12px;
  background: #f0cf7d;
  box-shadow: 4px 4px 0 var(--ink);
}
.case-tab {
  position: absolute;
  top: -26px;
  left: -2.5px;
  padding: 4px 14px 3px;
  border: 2.5px solid var(--ink);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #f0cf7d;
  font-family: "Special Elite", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-notes { display: grid; gap: 10px; }
.case-note {
  position: relative;
  padding: 12px 14px 12px 34px;
  border: 1.5px solid rgba(26, 16, 36, 0.35);
  background:
    linear-gradient(90deg, transparent 22px, #ff6b8b 22px 24px, transparent 24px),
    repeating-linear-gradient(#fffdf6 0 23px, #bfd8f0 23px 24px);
  font-family: "Special Elite", monospace;
  line-height: 24px;
  animation: rise 0.4s ease-out backwards;
}
.case-row { display: flex; gap: 8px; }
.case-label { flex: 0 0 68px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.case-value { font-size: 1rem; }
.case-value.latent { color: #b3122f; text-decoration: underline; text-decoration-color: #b3122f; text-underline-offset: 3px; }
.case-text { margin: 4px 0 0; font-size: 0.92rem; }
.stamp {
  display: table;
  margin: -4px -6px 6px auto;
  padding: 2px 8px;
  border: 2.5px solid #d62839;
  border-radius: 4px;
  color: #d62839;
  font-family: "Special Elite", monospace;
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

/* ===== Jungian: path of medallions ===== */
.jung-path {
  position: relative;
  padding: 18px 14px 6px !important;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 95, 180, 0.45), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0, 212, 255, 0.35), transparent 50%),
    linear-gradient(180deg, #3a1a6e, #1c0f33);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}
.jung-path::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 30px;
  bottom: 30px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--yellow), var(--pink), var(--cyan));
  box-shadow: 0 0 12px rgba(255, 217, 61, 0.7);
}
.jung-stop { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding-bottom: 16px; animation: rise 0.5s ease-out backwards; }
.medallion {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: conic-gradient(from 200deg, var(--c) 0 50%, #2a1450 50% 100%);
  box-shadow: 0 0 0 3px var(--paper), 0 0 18px var(--c);
}
.medallion span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Symbol", "DM Sans", serif;
  font-size: 1.15rem;
}
.arch-name {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--c);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.jung-body h4 { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; margin: 4px 0 2px !important; }
.jung-body p { margin: 0; line-height: 1.5; font-size: 0.95rem; color: rgba(255, 246, 234, 0.9); }

/* ===== Astrology: chart wheel ===== */
.dream-chart {
  padding: 14px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 50% 18%, #3a1f7a, #150c2b 60%);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}
.chart-wheel { display: block; width: 100%; max-width: 320px; margin: 0 auto 14px; overflow: visible; }
.chart-sign, .chart-planet {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}
.chart-sign { font-size: 15px; font-weight: 700; }
.chart-planet { font-size: 12px; font-weight: 700; fill: var(--ink); }
.chart-list { display: grid; gap: 10px; }
.chart-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 246, 234, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.chart-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--c);
  color: var(--ink);
  font-family: "Segoe UI Symbol", "DejaVu Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--paper);
}
.chart-placement { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); }
.chart-sign-glyph { font-family: "Segoe UI Symbol", "DejaVu Sans", sans-serif; }
.dream-chart h4 { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.chart-house { display: block; font-style: italic; font-size: 0.85rem; color: rgba(255, 246, 234, 0.75); margin-bottom: 2px; }
.chart-row p { margin: 0; line-height: 1.5; font-size: 0.93rem; }

/* ===== Victorian flowers: bouquet + herbarium ===== */
.flowers {
  padding: 12px 12px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background:
    radial-gradient(circle at 50% 35%, #fff 0 30%, transparent 70%),
    repeating-linear-gradient(45deg, #ffe3f1 0 12px, #fff1f8 12px 24px);
  box-shadow: 4px 4px 0 var(--ink);
}
.bouquet { display: block; width: 100%; max-width: 330px; margin: 0 auto 6px; overflow: visible; }
.herbarium { display: grid; gap: 14px; }
.specimen {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 14px 14px 12px;
  border: 1.5px solid #c9b48a;
  background: #fbf3de;
  box-shadow: 2px 3px 0 rgba(26, 16, 36, 0.25);
  animation: rise 0.45s ease-out backwards;
}
.specimen:nth-child(odd) { transform: rotate(-0.6deg); }
.specimen:nth-child(even) { transform: rotate(0.6deg); }
.specimen::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 70px;
  height: 18px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 217, 61, 0.35);
  border: 1px solid rgba(26, 16, 36, 0.12);
  pointer-events: none;
}
.specimen-art { width: 60px; height: 60px; }
.specimen-no { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specimen-name { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600 !important; font-size: 1.6rem; line-height: 1.05; }
.specimen-sentiment { display: block; font-family: "Yellowtail", cursive; font-size: 1.2rem; color: var(--pink); }
.specimen-sentiment::before, .specimen-sentiment::after { content: " ~ "; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.8rem; }
.specimen-found { display: block; font-size: 0.78rem; color: var(--muted); margin: 2px 0 4px; }
.specimen p { margin: 0; line-height: 1.5; font-size: 0.93rem; }

/* ===== Folk dream book: antique dictionary page ===== */
.dream-book {
  padding: 18px 18px 16px;
  border-radius: 4px;
  border: 2.5px solid #5a3a1e;
  background:
    radial-gradient(ellipse at center, #f7e9c6 40%, #e9d09a 100%);
  box-shadow: inset 0 0 30px rgba(120, 72, 20, 0.35), 4px 4px 0 var(--ink);
  font-family: "IM Fell English", Georgia, serif;
  color: #2d1a0c;
}
.book-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 3px double #5a3a1e; }
.book-kicker { font-family: "IM Fell English SC", Georgia, serif; font-size: 0.9rem; letter-spacing: 0.08em; }
.book-title { font-family: "IM Fell English SC", Georgia, serif; font-size: 1.7rem; line-height: 1.1; }
.book-cols { font-size: 1rem; line-height: 1.5; }
@media (min-width: 440px) { .book-cols { column-count: 2; column-gap: 22px; column-rule: 1px solid rgba(90, 58, 30, 0.35); } }
.entry { margin: 0 0 12px; break-inside: avoid; hyphens: auto; }
@media (min-width: 440px) { .entry { text-align: justify; } }
.entry:first-child::first-letter {
  float: left;
  margin: 4px 6px 0 0;
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 3rem;
  line-height: 0.8;
  color: #b3122f;
}
.headword { font-family: "IM Fell English SC", Georgia, serif; font-weight: 400; letter-spacing: 0.03em; }
.omen { white-space: nowrap; font-family: "IM Fell English SC", Georgia, serif; font-size: 0.85rem; padding: 0 5px; border-radius: 3px; }
.omen.good { color: #1f6b2a; background: rgba(182, 242, 58, 0.35); }
.omen.ill { color: #9e1030; background: rgba(255, 46, 147, 0.18); }
.omen.mixed { color: #5a3a1e; background: rgba(255, 217, 61, 0.4); }

/* ===== Tarot spread ===== */
.tarot-spread { display: grid; gap: 18px; }
.tarot-reading { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: start; }
.tarot-card { width: 116px; aspect-ratio: 7 / 12; perspective: 900px; }
.tarot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: deal 0.9s cubic-bezier(0.3, 1.3, 0.5, 1) var(--delay, 0ms) backwards;
}
@keyframes deal {
  from { transform: translateY(-30px) rotateY(180deg) rotate(-8deg); opacity: 0; }
  30% { opacity: 1; }
}
.tarot-face, .tarot-back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4.5px var(--gold), 4px 4px 0 var(--ink);
}
.tarot-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  background:
    radial-gradient(circle at 50% 47%, color-mix(in srgb, var(--c1) 55%, transparent) 0 18%, transparent 46%),
    repeating-conic-gradient(from 0deg at 50% 47%, color-mix(in srgb, var(--c1) 38%, transparent) 0 7deg, transparent 7deg 18deg),
    linear-gradient(170deg, #2a1450, #1a1022);
  overflow: hidden;
}
.tarot-face.major { background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 46, 147, 0.22) 0 7deg, transparent 7deg 18deg), linear-gradient(170deg, #2a1450, #1a1022); }
.tarot-illustration { position: absolute; inset: 5px; z-index: 0; }
.tarot-illustration svg { display: block; width: 100%; height: 100%; }
.tarot-num, .tarot-name, .tarot-art { position: relative; z-index: 1; }
.tarot-card.reversed .tarot-face { transform: rotate(180deg); }
.tarot-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle, var(--gold) 0 9%, var(--ink) 10% 14%, transparent 15%),
    var(--leopard),
    var(--violet);
  background-size: auto, 56px 56px, auto;
}
.tarot-num {
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ink);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  letter-spacing: 0.06em;
}
.tarot-art { flex: 1; width: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px 3px; }
.tarot-face:not(.numbered) .pip.big {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 55%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 2px var(--gold), 0 0 18px color-mix(in srgb, var(--c1) 70%, transparent);
}
.pip { line-height: 1; filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.5)); }
.pip.big { font-size: 2.3rem; }
.pip.small { font-size: 1.4rem; width: 44%; text-align: center; }
.pip.tiny { font-size: 1.1rem; width: 31%; text-align: center; }
.pip.badge {
  position: absolute;
  right: 0;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 0.95rem;
}
.tarot-name {
  width: 100%;
  padding: 3px 2px 4px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 1;
  text-align: center;
}
.tarot-text { padding: 10px 12px 12px; border-radius: 10px; border: 2px dashed var(--ink); background: #fffdf8; }
.tarot-position { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tarot-text h4 { font-family: var(--display); font-size: 1.45rem; line-height: 1.05; margin: 2px 0 6px !important; }
.tarot-orient {
  display: inline-block;
  margin-bottom: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--lime);
  border: 1.5px solid var(--ink);
}
.tarot-orient.rev { background: var(--pink); color: var(--paper); }
.tarot-text p { margin: 0; line-height: 1.5; font-size: 0.95rem; }

/* ===== Overall meaning panel (themed per lens) ===== */
.meaning-box {
  position: relative;
  margin-top: 24px;
  padding: 4px 18px 16px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: linear-gradient(160deg, #3a1a6e, #1c0f33);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}
.meaning-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sparkle);
  opacity: 0.16;
  pointer-events: none;
}
.meaning-box > * { position: relative; }
.meaning-box .script-title { color: var(--yellow); }
.meaning-box p { line-height: 1.65; margin: 0 0 12px; }

.lens-freudian .meaning-box {
  background: repeating-linear-gradient(#fffdf6 0 25px, #bfd8f0 25px 26px);
  color: var(--ink);
  font-family: "Special Elite", monospace;
  border-radius: 4px;
}
.lens-freudian .meaning-box::before { display: none; }
.lens-freudian .meaning-box .script-title { color: #b3122f; }
.lens-freudian .meaning-box p { line-height: 26px; }

.lens-floriography .meaning-box { background: linear-gradient(160deg, #ffe0f0, #fff6ea); color: var(--ink); }
.lens-floriography .meaning-box::before { background: var(--leopard); background-size: 120px 120px; opacity: 0.08; }
.lens-floriography .meaning-box .script-title { color: var(--pink); }
.lens-floriography .meaning-box p { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.15rem; line-height: 1.5; }

.lens-folk .meaning-box {
  background: radial-gradient(ellipse at center, #f7e9c6 40%, #e9d09a 100%);
  border-color: #5a3a1e;
  border-radius: 4px;
  color: #2d1a0c;
  font-family: "IM Fell English", Georgia, serif;
}
.lens-folk .meaning-box::before { display: none; }
.lens-folk .meaning-box .script-title { color: #b3122f; }
.lens-folk .meaning-box p { font-size: 1.05rem; }

.lens-astrology .meaning-box { background: radial-gradient(circle at 50% 0%, #3a1f7a, #150c2b 75%); }

.message {
  margin: 22px 0;
  padding: 14px 18px;
  text-align: center;
  font-family: "Yellowtail", cursive;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--ink);
  background: var(--rainbow);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--hard);
}

/* Loading & banners */
.loading { text-align: center; padding: 34px 0; color: var(--paper); font-weight: 700; font-size: 1.05rem; text-shadow: 1.5px 1.5px 0 var(--ink); }
.spinner {
  display: inline-block;
  font-size: 4rem;
  line-height: 1;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: none;
  animation: spin 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes spin { 50% { transform: rotate(180deg) scale(1.25); } to { transform: rotate(360deg); } }

.banner {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  line-height: 1.45;
}
.banner.error { background: #ffc2dc; }
.banner code { background: rgba(255, 255, 255, 0.6); padding: 1px 5px; border-radius: 4px; }

.footer { text-align: center; color: var(--paper); font-size: 0.82rem; font-weight: 700; text-shadow: 1px 1px 0 var(--ink); padding: 6px 0 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Theme toggle */
.theme-toggle {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Segoe UI Symbol", "DM Sans", sans-serif;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.theme-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Account (Google sign-in): mirrors the theme toggle in the top-left corner */
.account {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 0;
  z-index: 3;
}
.account-btn,
.avatar-btn {
  display: grid;
  place-items: center;
  height: 42px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.account-btn { padding: 0 14px; }
.avatar-btn { width: 42px; padding: 0; border-radius: 50%; overflow: hidden; }
.account-btn:active,
.avatar-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.account-btn:focus-visible,
.avatar-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.avatar { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-initial { font-size: 1.1rem; line-height: 1; }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  text-align: left;
}
.account-menu p { margin: 0; }
.account-name { font-weight: 800; }
.account-email { font-size: 0.85rem; opacity: 0.75; margin-bottom: 10px !important; overflow-wrap: anywhere; }
.account-menu .small-btn { width: 100%; }

/* ===== Landing page (shown until the dreamer signs in) ===== */
.landing { margin-top: 22px; }
.landing-lead { margin: 4px 0 18px; font-size: 1.05rem; line-height: 1.5; }
.how { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.how li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
}
.how-num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  font-weight: 900;
  font-size: 1.15rem;
}
.how strong { font-size: 1.02rem; }
.how em, .lens-list em { font-style: normal; font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.lens-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
@media (min-width: 440px) { .lens-list { grid-template-columns: 1fr 1fr; } }
.lens-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
}
.lens-glyph {
  grid-row: 1 / span 2;
  font-family: "Segoe UI Symbol", "DM Sans", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  color: var(--violet);
}
.lens-list strong { font-size: 0.95rem; }
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
}
.google-mark { flex: none; background: #fff; border-radius: 50%; padding: 3px; border: 1.5px solid var(--ink); }
.google-btn.disabled { opacity: 0.55; pointer-events: none; }
.hint.center { text-align: center; margin: 10px 0 0; }
.landing-fine { margin: 16px 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--muted); text-align: center; }

/* ===== Goth mode: the tattoo-parlor look (happy mode is the default above) ===== */
[data-theme="goth"] {
  --display: "Pirata One", serif;
  --paper: #fbf2e4;
  --paper-2: #f3e4cc;
  --ink: #141016;
  --radius: 6px;
  color-scheme: dark;
}
[data-theme="goth"] body {
  background-color: #120a1c;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255, 46, 147, 0.35), transparent 55%),
    radial-gradient(ellipse at 110% 60%, rgba(0, 212, 255, 0.18), transparent 50%),
    radial-gradient(ellipse at -10% 90%, rgba(139, 61, 255, 0.25), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%23221233' stroke-width='6' stroke-linecap='round'%3E%3Cellipse cx='30' cy='32' rx='15' ry='11' stroke-dasharray='20 9' transform='rotate(-20 30 32)'/%3E%3Cellipse cx='110' cy='24' rx='13' ry='10' stroke-dasharray='17 8' transform='rotate(25 110 24)'/%3E%3Cellipse cx='74' cy='84' rx='16' ry='12' stroke-dasharray='22 9' transform='rotate(10 74 84)'/%3E%3Cellipse cx='136' cy='108' rx='14' ry='10' stroke-dasharray='18 8' transform='rotate(-30 136 108)'/%3E%3Cellipse cx='26' cy='128' rx='13' ry='10' stroke-dasharray='17 8' transform='rotate(35 26 128)'/%3E%3C/g%3E%3Cg fill='%23221233'%3E%3Ccircle cx='66' cy='26' r='4'/%3E%3Ccircle cx='118' cy='66' r='3.5'/%3E%3Ccircle cx='16' cy='80' r='3.5'/%3E%3Ccircle cx='96' cy='142' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="goth"] body::before { opacity: 0.25; animation: none; }
[data-theme="goth"] .emblem { filter: drop-shadow(0 0 14px rgba(139, 61, 255, 0.55)); animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { filter: drop-shadow(0 0 22px rgba(232, 185, 74, 0.35)); } }
[data-theme="goth"] .float { display: none; }
[data-theme="goth"] .title {
  background: none;
  color: var(--paper);
  -webkit-text-stroke: 0;
  filter: none;
  animation: none;
  text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--violet), 9px 9px 0 rgba(0, 212, 255, 0.55);
}
[data-theme="goth"] .ribbon span { border-radius: 0; }
[data-theme="goth"] .ribbon::before { background: var(--pink); }
[data-theme="goth"] .ribbon::after { background: var(--violet); }

[data-theme="goth"] .steps li { border: 1.5px solid rgba(251, 242, 228, 0.35); background: none; color: rgba(251, 242, 228, 0.7); }
[data-theme="goth"] .steps li span { border: none; background: rgba(251, 242, 228, 0.12); }
[data-theme="goth"] .steps li.active { border-color: transparent; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--pink); }
[data-theme="goth"] .steps li.active span { background: var(--ink); color: var(--yellow); }
[data-theme="goth"] .steps li.done span { background: var(--lime); color: var(--ink); }

[data-theme="goth"] .sheet { box-shadow: 7px 7px 0 var(--pink), 7px 7px 0 3px var(--ink); animation: rise 0.4s ease-out; }
[data-theme="goth"] .sheet::before { border: 1.5px solid var(--ink); border-radius: 3px; }
[data-theme="goth"] .sheet::after { display: none; }
[data-theme="goth"] .script-title::after,
[data-theme="goth"] .big-btn::after { content: none; }
[data-theme="goth"] textarea, [data-theme="goth"] select { border-radius: 4px; }
[data-theme="goth"] .big-btn { border-radius: 6px; background: linear-gradient(90deg, var(--pink), var(--orange) 50%, var(--yellow)); }
[data-theme="goth"] .big-btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
[data-theme="goth"] .link-btn { text-decoration-style: solid; text-decoration-thickness: 2px; }
[data-theme="goth"] .chip { --tint: #fffaf2; }

[data-theme="goth"] .method-card .face { border-radius: 6px; background: #2a2030; color: var(--paper); }
[data-theme="goth"] .method-card .blurb { color: rgba(251, 242, 228, 0.78); }
[data-theme="goth"] .method-card:hover .face { transform: translate(-1px, -1px); }
[data-theme="goth"] .method-card input:checked + .face {
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--c1), 5px 5px 0 3px var(--ink);
}
[data-theme="goth"] .method-card input:checked + .face::before { border-right-color: var(--c1); }

[data-theme="goth"] .meaning-box { border-radius: 6px; }
[data-theme="goth"] .message { border-radius: 6px; }
[data-theme="goth"] .banner { border-radius: 6px; box-shadow: 4px 4px 0 var(--ink), 4px 4px 0 2px var(--paper); }
[data-theme="goth"] .loading { text-shadow: none; }
[data-theme="goth"] .footer { color: rgba(251, 242, 228, 0.6); font-weight: 500; text-shadow: none; }
[data-theme="goth"] .theme-toggle { background: var(--ink); color: var(--yellow); border-color: var(--paper); box-shadow: 3px 3px 0 var(--pink); }
[data-theme="goth"] .account-btn, [data-theme="goth"] .avatar-btn, [data-theme="goth"] .account-menu { background: var(--ink); color: var(--paper); border-color: var(--paper); box-shadow: 3px 3px 0 var(--pink); }

/* Emblem: a sun in happy mode, the crescent moon in goth mode */
.emblem-moon { display: none; }
[data-theme="goth"] .emblem-sun { display: none; }
[data-theme="goth"] .emblem-moon { display: inline; }

/* Happy-mode critters beside the sun */
.critter {
  position: absolute;
  bottom: 0;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 3px 0 rgba(26, 16, 36, 0.3));
}
.critter-dolphin { left: -58px; width: 72px; animation: leap 3.6s ease-in-out infinite; }
.critter-leopard { right: -44px; width: 50px; animation: bob 3s ease-in-out infinite -1.2s; }
@keyframes leap { 50% { transform: translateY(-8px) rotate(-8deg); } }
[data-theme="goth"] .critter { display: none; }

/* Astrology: big-three pickers and chart details */
.sign-field { border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 14px 14px; }
.sign-field legend { padding: 0 6px; font-weight: 700; }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sign-grid label { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sign-grid select { padding: 9px 6px; font-size: 0.9rem; }
@media (max-width: 360px) { .sign-grid { grid-template-columns: 1fr; } }
.big-three { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 12px !important; padding: 0 !important; }
.big-three li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 246, 234, 0.4);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}
.big-three-glyph {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Segoe UI Symbol", "DejaVu Sans", sans-serif;
  font-weight: 700;
}
.big-three-label { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 246, 234, 0.7); font-size: 0.72rem; }
.big-three-sign { font-weight: 700; }
.chart-asc { font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; fill: #ffd93d; text-anchor: middle; letter-spacing: 1px; }

/* Goth-mode critters beside the moon */
.critter-bat, .critter-owl { display: none; }
[data-theme="goth"] .critter-bat,
[data-theme="goth"] .critter-owl { display: block; filter: drop-shadow(0 0 6px rgba(139, 61, 255, 0.5)); }
.critter-bat { left: -54px; top: 22px; bottom: auto; width: 64px; animation: flap 2.8s ease-in-out infinite; }
.critter-owl { right: -40px; width: 44px; animation: bob 3.4s ease-in-out infinite -0.8s; }
@keyframes flap { 50% { transform: translateY(-6px) scaleY(0.88) rotate(-4deg); } }

/* ===== Victorian flowers: vintage botanical prints ===== */
.flowers {
  padding: 12px 12px 14px;
  border-radius: 4px;
  border: 1.5px solid #8a6f4a;
  outline: 4px double #8a6f4a;
  outline-offset: -9px;
  background:
    radial-gradient(circle at 18% 22%, rgba(150, 105, 50, 0.1) 0 3%, transparent 4%),
    radial-gradient(circle at 82% 64%, rgba(150, 105, 50, 0.08) 0 2%, transparent 3%),
    radial-gradient(circle at 60% 90%, rgba(150, 105, 50, 0.08) 0 2.5%, transparent 3.5%),
    radial-gradient(ellipse at center, #f7efdc 55%, #eadbb8 100%);
  box-shadow: 3px 3px 0 rgba(59, 42, 28, 0.35);
  color: #3b2a1c;
}
.flowers .bouquet { max-width: 320px; margin: 8px auto 10px; }
.flowers .herbarium { gap: 12px; }
.flowers .specimen {
  grid-template-columns: 96px 1fr;
  padding: 12px;
  border: 1px solid rgba(138, 111, 74, 0.6);
  background: rgba(255, 251, 240, 0.7);
  box-shadow: none;
  transform: none;
}
.flowers .specimen::before { display: none; }
.specimen-plate { margin: 0; text-align: center; }
.specimen-plate .specimen-art { width: 96px; height: 144px; }
.specimen-plate figcaption { display: grid; font-family: "Cormorant Garamond", serif; line-height: 1.15; }
.plate-no { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: #6b5438; }
.plate-latin { font-size: 0.86rem; font-weight: 600; }
.flowers .specimen-name { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600 !important; font-size: 1.6rem; color: #3b2a1c; }
.flowers .specimen-sentiment { font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.05rem; color: #9a3b4a; }
.flowers .specimen-sentiment::before, .flowers .specimen-sentiment::after { content: " — "; color: #8a6f4a; font-family: inherit; font-size: inherit; }
.flowers .specimen-found { color: #6b5438; }
.flowers .specimen p { color: #3b2a1c; }
.lens-floriography .meaning-box { background: radial-gradient(ellipse at center, #f7efdc 55%, #eadbb8 100%); border-color: #8a6f4a; border-radius: 4px; color: #3b2a1c; }
.lens-floriography .meaning-box::before { display: none; }
.lens-floriography .meaning-box .script-title { color: #9a3b4a; text-shadow: none; }
[data-theme="goth"] .ribbon { font-family: "UnifrakturMaguntia", "Pirata One", serif; font-size: clamp(0.9rem, 4.1vw, 1.12rem); }
.flowers .specimen p { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.flowers .specimen-found { font-family: "Cormorant Garamond", Georgia, serif; font-size: 0.9rem; }

/* Rider-Waite-Smith Major Arcana: the original card fills the face */
.tarot-face.rws { padding: 0; background: #f3ecd8; box-shadow: 4px 4px 0 var(--ink); }
.tarot-face.rws img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.art-credit { margin: 14px 0 0; font-size: 0.72rem; color: var(--muted); text-align: center; }

/* Birth details for astrology */
#birth-toggle { margin-top: 8px; padding-left: 0; font-size: 0.9rem; }
.birth-panel { margin-top: 6px; padding: 12px; border-radius: 10px; background: rgba(139, 61, 255, 0.07); border: 1.5px solid rgba(26, 16, 36, 0.25); }
.birth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.birth-grid .wide { grid-column: 1 / -1; }
.birth-grid label { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.birth-grid em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.birth-grid input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  padding: 9px 10px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: #fffdf8;
}
.birth-grid input:focus { outline: none; box-shadow: 4px 4px 0 var(--cyan); }
.small-btn {
  font: inherit;
  font-weight: 700;
  padding: 8px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.small-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.small-btn:disabled { opacity: 0.6; cursor: wait; }
.birth-panel .hint { margin: 8px 0 0; font-size: 0.8rem; }
.birth-result { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--ink); background: #fffdf8; font-weight: 600; line-height: 1.45; }
[data-theme="goth"] .birth-panel, [data-theme="goth"] .birth-grid input, [data-theme="goth"] .birth-result { border-radius: 4px; }
[data-theme="goth"] .small-btn { border-radius: 4px; }
/* Fieldsets default to min-width: min-content, which overflowed on phones */
.sign-field { min-width: 0; margin-inline: 0; }
.sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.birth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sign-grid select, .birth-grid input { min-width: 0; max-width: 100%; }
@media (max-width: 420px) {
  .sign-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sign-grid label { grid-template-columns: 84px minmax(0, 1fr); align-items: center; }
  .birth-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Real botanical plates */
.flowers .herbarium { gap: 14px; }
.flowers .specimen { grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: start; }
.plate-paper {
  padding: 6px;
  background: #f6f0e1;
  border: 1px solid rgba(138, 111, 74, 0.55);
  box-shadow: 1px 2px 4px rgba(59, 42, 28, 0.25);
}
.plate-paper img { display: block; width: 100%; height: auto; }
.plate-missing { display: grid; place-items: center; aspect-ratio: 3 / 4; font-size: 2rem; color: #8a6f4a; }
.flowers .specimen-plate figcaption { margin-top: 6px; }
.flowers .art-credit { color: #6b5438; margin-top: 12px; }
@media (max-width: 360px) { .flowers .specimen { grid-template-columns: 1fr; } .specimen-plate { max-width: 200px; margin: 0 auto; } }
/* Phones: print on top like a book plate, text beneath */
.flowers .specimen { grid-template-columns: minmax(0, 1fr); }
.flowers .specimen-plate { width: min(230px, 78%); margin: 0 auto; }
.flowers .specimen-body { text-align: center; }
@media (min-width: 520px) {
  .flowers .specimen { grid-template-columns: 170px minmax(0, 1fr); }
  .flowers .specimen-plate { width: auto; margin: 0; }
  .flowers .specimen-body { text-align: left; }
}

/* =====================================================================
   Lens themes: the meaning page restyles the whole app to match the lens.
   html[data-lens=…] outranks both happy and goth mode.
   ===================================================================== */
.emblem-botanical { display: none; }

/* ----- Victorian flower language: a vintage botanical book ----- */
html[data-lens="floriography"] {
  --sepia: #3b2a1c;
  --sepia-soft: #6b5438;
  --rule: #8a6f4a;
  --plate: #f8f2e3;
  --rose-ink: #9a3b4a;
  color-scheme: light;
}
html[data-lens="floriography"] body {
  color: var(--sepia);
  background-color: #efe6cf;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(150, 105, 50, 0.1) 0 1.5%, transparent 2.5%),
    radial-gradient(circle at 78% 34%, rgba(150, 105, 50, 0.08) 0 1%, transparent 2%),
    radial-gradient(circle at 40% 72%, rgba(150, 105, 50, 0.07) 0 1.2%, transparent 2.2%),
    radial-gradient(circle at 88% 86%, rgba(150, 105, 50, 0.09) 0 1.4%, transparent 2.4%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 30%, #f7f0de 0%, #efe6cf 55%, #e3d4b2 100%);
  animation: lens-in 0.6s ease-out;
}
@keyframes lens-in { from { opacity: 0.4; } }
html[data-lens="floriography"] body::before,
html[data-lens="floriography"] .emblem,
html[data-lens="floriography"] .critter,
html[data-lens="floriography"] .float,
html[data-lens="floriography"] .theme-toggle { display: none !important; }
html[data-lens="floriography"] .account { display: none !important; }

html[data-lens="floriography"] .emblem-botanical {
  display: block;
  width: 118px;
  height: 150px;
  margin: 6px auto 2px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  padding: 5px;
  background: var(--plate);
  border: 3px double var(--rule);
  box-shadow: 0 2px 6px rgba(59, 42, 28, 0.25);
}
html[data-lens="floriography"] .title {
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  letter-spacing: 0.06em;
  color: var(--sepia);
  background: none;
  -webkit-text-stroke: 0;
  filter: none;
  animation: none;
  text-shadow: none;
  margin: 8px auto 6px !important;
}
html[data-lens="floriography"] .ribbon { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.1rem; color: var(--sepia-soft); }
html[data-lens="floriography"] .ribbon span { background: none; border: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: none; border-radius: 0; padding: 3px 14px; }
html[data-lens="floriography"] .ribbon::before,
html[data-lens="floriography"] .ribbon::after { display: none; }

html[data-lens="floriography"] .steps li { border: 1px solid var(--rule); background: none; color: var(--sepia-soft); box-shadow: none; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1rem; }
html[data-lens="floriography"] .steps li span { background: none; border: 1px solid var(--rule); color: var(--sepia-soft); font-family: "IM Fell English", Georgia, serif; font-style: normal; }
html[data-lens="floriography"] .steps li.active { background: #e8dcc0; color: var(--sepia); }
html[data-lens="floriography"] .steps li.active span,
html[data-lens="floriography"] .steps li.done span { background: var(--sepia); color: var(--plate); border-color: var(--sepia); }

html[data-lens="floriography"] .sheet {
  background: var(--plate);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(59, 42, 28, 0.2), 0 8px 24px rgba(59, 42, 28, 0.12);
  margin-right: 0;
  animation: lens-in 0.6s ease-out;
}
html[data-lens="floriography"] .sheet::before { border: 3px double rgba(138, 111, 74, 0.6); border-radius: 0; inset: 7px; }
html[data-lens="floriography"] .sheet::after { display: none; }
html[data-lens="floriography"] .sheet-title { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 2rem; color: var(--sepia); text-align: center; }
html[data-lens="floriography"] .sheet-title::after { width: 60%; height: 0; margin: 10px auto 0; border: none; border-top: 1px solid var(--rule); background: none; }
html[data-lens="floriography"] .script-title { font-family: "IM Fell English SC", Georgia, serif; font-size: 1.15rem; letter-spacing: 0.08em; color: var(--rose-ink); text-shadow: none; text-align: center; }
html[data-lens="floriography"] .script-title::after { content: none; }
html[data-lens="floriography"] .script-title::before { content: "❦ "; color: var(--rule); }

html[data-lens="floriography"] .method-badge { display: table; margin: 0 auto 12px; background: none; color: var(--sepia-soft); border: 1px solid var(--rule); box-shadow: none; font-family: "IM Fell English SC", Georgia, serif; letter-spacing: 0.06em; text-transform: none; font-size: 0.95rem; font-weight: 400; }
html[data-lens="floriography"] .method-badge .badge-glyph { background: none; color: var(--rose-ink); }

/* The book page already frames the plates, so soften the inner album */
html[data-lens="floriography"] .flowers { outline: none; border: none; box-shadow: none; background: none; padding: 0; }
html[data-lens="floriography"] .flowers .specimen { background: none; border: none; border-bottom: 1px solid rgba(138, 111, 74, 0.35); padding: 6px 0 18px; }
html[data-lens="floriography"] .flowers .specimen:last-child { border-bottom: none; }

html[data-lens="floriography"] .meaning-box { background: none; border: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none; padding: 6px 4px 12px; }
html[data-lens="floriography"] .meaning-box p { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--sepia); }
html[data-lens="floriography"] .message {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--rose-ink);
  padding: 4px 18px;
}
html[data-lens="floriography"] .message::before,
html[data-lens="floriography"] .message::after { content: " ❧ "; color: var(--rule); font-style: normal; }

html[data-lens="floriography"] .big-btn {
  background: none;
  color: var(--sepia);
  border: 1.5px solid var(--sepia);
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px var(--plate), inset 0 0 0 4px var(--rule);
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
html[data-lens="floriography"] .big-btn::after { content: none; }
html[data-lens="floriography"] .big-btn:hover:not(:disabled) { background: #eadfc6; transform: none; box-shadow: inset 0 0 0 3px #eadfc6, inset 0 0 0 4px var(--rule); }
html[data-lens="floriography"] .link-btn { color: var(--sepia-soft); text-decoration: underline solid var(--rule); text-decoration-thickness: 1px; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.05rem; }
html[data-lens="floriography"] .footer { color: var(--sepia-soft); text-shadow: none; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 0.95rem; }
html[data-lens="floriography"] .banner { background: var(--plate); border: 1px solid var(--rule); box-shadow: none; border-radius: 2px; color: var(--sepia); }
html[data-lens="floriography"] .steps li.active { box-shadow: none; }
html[data-lens="floriography"] .method-badge { display: flex; width: fit-content; }

/* ----- Freudian analysis: the consulting room at Berggasse 19, Vienna ----- */
.emblem-freud { display: none; }
html[data-lens="freudian"] {
  --walnut: #2a1a12;
  --oxblood: #5c1a1a;
  --brass: #b8913f;
  --brass-light: #e2c47a;
  --paper: #f3ead3;
  --typed: #231c18;
  --stamp: #b3122f;
  --leather: #2f4a3a;
  color-scheme: dark;
}
html[data-lens="freudian"] body {
  color: var(--typed);
  background-color: var(--oxblood);
  background-image:
    radial-gradient(ellipse at 50% 20%, transparent 30%, rgba(20, 8, 6, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke-width='3'%3E%3Cpath d='M48 6 L90 48 L48 90 L6 48Z' stroke='%237a2a22'/%3E%3Cpath d='M48 22 L74 48 L48 74 L22 48Z' stroke='%238f6a2c' stroke-opacity='.55'/%3E%3Cpath d='M48 36 L60 48 L48 60 L36 48Z' fill='%23243650' fill-opacity='.6' stroke='none'/%3E%3C/g%3E%3Cg fill='%238f6a2c' fill-opacity='.45'%3E%3Cpath d='M0 0 l8 8 -8 8z M96 0 l-8 8 8 8z M0 96 l8 -8 -8 -8z M96 96 l-8 -8 8 -8z'/%3E%3C/g%3E%3C/svg%3E");
  animation: lens-in 0.6s ease-out;
}
html[data-lens="freudian"] body::before,
html[data-lens="freudian"] .emblem,
html[data-lens="freudian"] .critter,
html[data-lens="freudian"] .float,
html[data-lens="freudian"] .theme-toggle { display: none !important; }
html[data-lens="freudian"] .account { display: none !important; }

html[data-lens="freudian"] .emblem-freud {
  display: block;
  width: 190px;
  margin: 8px auto 4px;
  padding: 7px;
  border-radius: 50% / 46%;
  background: linear-gradient(145deg, var(--brass-light), var(--brass) 45%, #7d5f22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 240, 200, 0.5);
}
html[data-lens="freudian"] .emblem-freud svg { display: block; width: 100%; height: auto; border-radius: 50% / 46%; }

html[data-lens="freudian"] .title {
  font-family: "Old Standard TT", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 10.5vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: none;
  -webkit-text-stroke: 0;
  filter: none;
  animation: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  margin: 10px auto 10px !important;
}
/* Brass nameplate */
html[data-lens="freudian"] .ribbon { font-family: "Special Elite", monospace; font-size: 0.9rem; color: var(--walnut); margin: 0; }
html[data-lens="freudian"] .ribbon span {
  position: relative;
  padding: 7px 26px;
  border: 1px solid #6b4f1d;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 55%, #9c7a31);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 245, 210, 0.7);
  white-space: nowrap;
}
html[data-lens="freudian"] .ribbon::before,
html[data-lens="freudian"] .ribbon::after {
  top: 50%;
  width: 7px;
  height: 7px;
  z-index: 2;
  margin-top: -3.5px;
  border-radius: 50%;
  border: 1px solid #5a4214;
  background: radial-gradient(circle at 35% 35%, #fff3c4, #8a6a28);
  clip-path: none;
}
html[data-lens="freudian"] .ribbon::before { left: 9px; }
html[data-lens="freudian"] .ribbon::after { right: 9px; left: auto; }

html[data-lens="freudian"] .steps li { border: 1px solid rgba(226, 196, 122, 0.55); background: rgba(0, 0, 0, 0.2); color: var(--brass-light); box-shadow: none; font-family: "Special Elite", monospace; letter-spacing: 0.06em; font-weight: 400; }
html[data-lens="freudian"] .steps li span { background: none; border: 1px solid var(--brass); color: var(--brass-light); }
html[data-lens="freudian"] .steps li.active { background: var(--brass); color: var(--walnut); box-shadow: none; }
html[data-lens="freudian"] .steps li.active span,
html[data-lens="freudian"] .steps li.done span { background: var(--walnut); color: var(--brass-light); border-color: var(--walnut); }

/* The report: aged typed paper held with a paperclip */
html[data-lens="freudian"] .sheet {
  background: var(--paper);
  border: none;
  border-radius: 2px;
  box-shadow: 0 2px 0 #d8caa8, 0 14px 30px rgba(0, 0, 0, 0.55);
  margin-right: 0;
  font-family: "Special Elite", monospace;
  animation: lens-in 0.6s ease-out;
}
html[data-lens="freudian"] .sheet::before { border: none; }
html[data-lens="freudian"] .sheet::after {
  content: "";
  top: -14px;
  right: 34px;
  width: 18px;
  height: 52px;
  border: 3px solid #8e9296;
  border-radius: 9px;
  box-shadow: inset 0 0 0 3px transparent;
  color: transparent;
  -webkit-text-stroke: 0;
  animation: none;
  background:
    linear-gradient(#8e9296, #8e9296) 50% 8px / 3px 34px no-repeat;
}
html[data-lens="freudian"] .method-badge {
  display: flex;
  width: fit-content;
  background: none;
  color: var(--stamp);
  border: 2.5px solid var(--stamp);
  border-radius: 4px;
  box-shadow: none;
  font-family: "Special Elite", monospace;
  letter-spacing: 0.12em;
  font-weight: 400;
  transform: rotate(-3deg);
  opacity: 0.9;
}
html[data-lens="freudian"] .method-badge .badge-glyph { background: none; color: var(--stamp); }
html[data-lens="freudian"] .sheet-title { font-family: "Old Standard TT", Georgia, serif; font-weight: 700; font-size: 1.85rem; line-height: 1.15; color: var(--typed); }
html[data-lens="freudian"] .sheet-title::after { width: 100%; height: 0; border: none; border-top: 1.5px solid var(--typed); background: none; margin-top: 10px; }
html[data-lens="freudian"] .script-title { font-family: "Special Elite", monospace; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--typed); text-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
html[data-lens="freudian"] .script-title::after { content: none; }

html[data-lens="freudian"] .case-file { box-shadow: 3px 3px 0 rgba(35, 28, 24, 0.35); }
html[data-lens="freudian"] .meaning-box { box-shadow: 2px 3px 0 rgba(35, 28, 24, 0.25); border-width: 1.5px; }
html[data-lens="freudian"] .message {
  background: #fffdf4;
  color: var(--typed);
  border: 1px solid #d8caa8;
  border-left: 3px solid #e07a7a;
  border-radius: 0;
  box-shadow: 2px 3px 0 rgba(35, 28, 24, 0.2);
  font-family: "Special Elite", monospace;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: left;
  transform: rotate(-0.6deg);
}
html[data-lens="freudian"] .message::before { content: "N.B. — "; color: var(--stamp); }

html[data-lens="freudian"] .big-btn {
  background: linear-gradient(180deg, #3b5c48, var(--leather));
  color: var(--brass-light);
  border: 2px solid var(--brass);
  border-radius: 4px;
  box-shadow: 0 3px 0 #1c2d23, 0 6px 14px rgba(0, 0, 0, 0.35);
  font-family: "Old Standard TT", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
html[data-lens="freudian"] .big-btn::after { content: none; }
html[data-lens="freudian"] .big-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 0 #1c2d23, 0 8px 16px rgba(0, 0, 0, 0.35); }
html[data-lens="freudian"] .link-btn { color: var(--typed); font-family: "Special Elite", monospace; text-decoration: underline solid var(--typed); text-decoration-thickness: 1px; }
html[data-lens="freudian"] .footer { color: rgba(243, 234, 211, 0.7); text-shadow: none; font-family: "Special Elite", monospace; font-weight: 400; }
html[data-lens="freudian"] .banner { background: var(--paper); border: 1px solid var(--typed); box-shadow: none; border-radius: 2px; font-family: "Special Elite", monospace; }
html[data-lens="freudian"] .ribbon { font-size: clamp(0.66rem, 3.2vw, 0.9rem); max-width: 100%; }
html[data-lens="freudian"] .ribbon span { padding: 7px 22px; }
