:root {
  --bg: #0b0704;
  --bg-deep: #050302;
  --stone: #1b100a;
  --panel: rgba(26, 15, 9, 0.88);
  --panel-strong: rgba(31, 17, 9, 0.96);
  --parchment: #d8b77a;
  --text: #f3e7cf;
  --muted: #b9a890;
  --accent: #e3a646;
  --accent-bright: #ffd27a;
  --accent-2: #8e381d;
  --accent-soft: rgba(227, 166, 70, 0.18);
  --line: rgba(227, 166, 70, 0.24);
  --line-soft: rgba(255, 239, 207, 0.10);
  --danger: #f0a0a0;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.62);
  --serif: "Cinzel", Georgia, serif;
  --reading: "Crimson Pro", Georgia, serif;
  --script: "Cormorant Garamond", "Crimson Pro", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

body[data-tradition="europeia"] { --accent: #d2b069; --accent-bright: #f1d79c; --accent-2: #394d69; }
body[data-tradition="elfica"] { --accent: #9dbb72; --accent-bright: #d4e8ae; --accent-2: #264b37; }
body[data-tradition="antiga"] { --accent: #d78c48; --accent-bright: #ffbd75; --accent-2: #783017; }
body[data-tradition="islamica"] { --accent: #d8b85e; --accent-bright: #ffe5a0; --accent-2: #124e55; }
body[data-tradition="budista"] { --accent: #d99a45; --accent-bright: #ffdca0; --accent-2: #7b301d; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  background:
    radial-gradient(circle at 50% -15%, rgba(184, 83, 28, 0.23), transparent 34rem),
    linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.56)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.013) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 72px),
    #0b0704;
  transition: background-color 400ms ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.42), transparent 15%, transparent 85%, rgba(0,0,0,0.42));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -4; opacity: 0.28; }
.embers { position: fixed; inset: auto 0 0; height: 34vh; pointer-events: none; z-index: -3; background: radial-gradient(ellipse at 50% 110%, rgba(214,93,22,0.16), transparent 66%); }
.temple-shadow { position: fixed; top: 0; bottom: 0; width: min(13vw, 180px); z-index: -2; pointer-events: none; opacity: 0.68; background: linear-gradient(90deg, #030201, rgba(16,8,4,0.82)); box-shadow: inset -16px 0 36px rgba(0,0,0,0.65); }
.temple-shadow::before, .temple-shadow::after { content: ""; position: absolute; left: 22%; width: 58%; border: 1px solid rgba(227,166,70,0.13); background: rgba(37,19,10,0.34); }
.temple-shadow::before { top: 5rem; bottom: 34%; }
.temple-shadow::after { bottom: 0; height: 27%; }
.temple-shadow-left { left: 0; }
.temple-shadow-right { right: 0; transform: scaleX(-1); }

.shell { width: min(1160px, calc(100% - 42px)); margin-inline: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(22px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(227,166,70,0.18);
  background: rgba(8,4,2,0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.34);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font: 600 0.98rem/1.2 var(--serif); letter-spacing: 0.06em; }
.brand small { display: block; color: var(--muted); font-size: 0.68rem; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; position: relative; border: 1px solid rgba(227,166,70,0.52); border-radius: 50%; box-shadow: 0 0 28px rgba(227,166,70,0.16), inset 0 0 15px rgba(227,166,70,0.08); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 72%; height: 1px; background: var(--accent); opacity: 0.66; }
.brand-mark::after { transform: rotate(90deg); }
.brand-eye { width: 17px; height: 10px; border: 1px solid var(--accent); border-radius: 100% 0 100% 0; transform: rotate(45deg); background: #0b0603; z-index: 1; }
.brand-eye::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-bright); inset: 2px auto auto 6px; box-shadow: 0 0 8px var(--accent); }
.top-link { color: var(--muted); font-size: 0.84rem; letter-spacing: 0.04em; }
.top-link:hover { color: var(--accent-bright); }

.hero { min-height: 88vh; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 66px; padding-block: 92px 110px; position: relative; }
.ancient-arch { position: absolute; inset: 4.5rem -7% 0; border: 1px solid rgba(227,166,70,0.11); border-bottom: 0; border-radius: 50% 50% 0 0 / 19% 19% 0 0; pointer-events: none; box-shadow: inset 0 45px 90px rgba(227,166,70,0.025); }
.ancient-arch::before, .ancient-arch::after { content: ""; position: absolute; bottom: 0; width: 66px; height: 72%; border: 1px solid rgba(227,166,70,0.1); background: linear-gradient(90deg, rgba(20,10,5,0.85), rgba(56,29,14,0.18)); }
.ancient-arch::before { left: -1px; }
.ancient-arch::after { right: -1px; transform: scaleX(-1); }
.arch-rune { position: absolute; color: rgba(227,166,70,0.38); font-family: var(--serif); }
.rune-a { left: 18%; top: 8%; }.rune-b { left: 50%; top: 3%; }.rune-c { right: 17%; top: 10%; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.12; }
h1 { max-width: 760px; font-size: clamp(3.15rem, 6.5vw, 6.2rem); letter-spacing: -0.03em; text-shadow: 0 6px 30px rgba(0,0,0,0.7); }
h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
h3 { font-size: 1.28rem; }
.hero-text { max-width: 660px; margin: 24px 0 0; color: #cabba4; font: 1.22rem/1.68 var(--reading); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: 3px; cursor: pointer; font-size: 0.83rem; font-weight: 600; letter-spacing: 0.035em; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #1b0d04; border: 1px solid var(--accent-bright); background: linear-gradient(180deg, var(--accent-bright), var(--accent)); box-shadow: 0 12px 34px rgba(227,166,70,0.18), inset 0 1px rgba(255,255,255,0.48); }
.button-ghost { border: 1px solid rgba(227,166,70,0.32); background: rgba(19,10,5,0.64); color: var(--text); }
.button-ghost:hover { border-color: var(--accent); background: rgba(55,28,12,0.52); }
.microcopy { margin-top: 18px; color: #877a69; font-size: 0.73rem; }

.oracle-stage { min-height: 520px; position: relative; display: grid; place-items: center; }
.oracle-stage::before { content: ""; position: absolute; width: 74%; height: 28%; bottom: 3%; border-radius: 50%; background: radial-gradient(ellipse, rgba(226,103,27,0.28), transparent 69%); filter: blur(20px); }
.oracle-disc { position: relative; width: min(410px, 80vw); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(227,166,70,0.54); border-radius: 50%; background: radial-gradient(circle, rgba(65,33,13,0.36), rgba(7,4,2,0.92) 66%); box-shadow: 0 0 80px rgba(227,166,70,0.17), inset 0 0 70px rgba(227,166,70,0.08); animation: breathe 6s ease-in-out infinite; }
.oracle-disc::before, .oracle-disc::after { content: ""; position: absolute; border: 1px solid rgba(227,166,70,0.2); border-radius: 50%; }
.oracle-disc::before { inset: 7%; }.oracle-disc::after { inset: 15%; border-style: dashed; animation: spin 50s linear infinite; }
.orbit { position: absolute; inset: -7%; border: 1px solid rgba(227,166,70,0.13); border-radius: 50%; transform: rotate(24deg) scaleY(0.52); }
.orbit-two { transform: rotate(-37deg) scaleY(0.66); }
.disc-rune { position: absolute; color: var(--accent); text-shadow: 0 0 12px var(--accent); }
.disc-rune-1 { top: 6%; }.disc-rune-2 { right: 4%; }.disc-rune-3 { bottom: 5%; }.disc-rune-4 { left: 4%; }
.altar-flame { position: absolute; bottom: 8%; width: 17px; height: 42px; border-radius: 55% 45% 60% 40%; background: linear-gradient(#fff6b0 0 12%, #ffb23f 42%, #c84b10 78%, transparent 79%); filter: drop-shadow(0 0 16px #ff7a20); animation: flame 1.8s ease-in-out infinite alternate; }
.flame-left { left: 3%; }.flame-right { right: 3%; animation-delay: -0.7s; }
.oracle-eye {
  --eye-x: 0;
  --eye-y: 0;
  --eye-tilt: 0deg;
  position: relative;
  width: 280px;
  height: 150px;
  filter: drop-shadow(0 0 22px rgba(227,166,70,0.16)) drop-shadow(0 26px 44px rgba(0,0,0,0.52));
  animation: eye-float 6s ease-in-out infinite;
}
.eye-aura {
  position: absolute;
  inset: -44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,117,37,0.18), rgba(214,117,37,0.07) 28%, transparent 62%);
  filter: blur(18px);
  opacity: 0.9;
}
.eye-shadow {
  position: absolute;
  inset: 14px 20px;
  border-radius: 52% 48% 52% 48% / 58% 44% 56% 42%;
  background: radial-gradient(circle at 50% 58%, rgba(0,0,0,0.18), rgba(0,0,0,0.68) 70%, rgba(0,0,0,0.92));
  filter: blur(10px);
  opacity: 0.85;
}
.eye-sclera {
  position: absolute;
  inset: 20px 14px;
  border: 2px solid rgba(179,122,44,0.8);
  border-radius: 50% 50% 46% 46% / 72% 72% 34% 34%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 45%, rgba(255,245,219,0.96), rgba(231,219,193,0.93) 22%, rgba(97,74,54,0.92) 54%, rgba(18,10,5,0.98) 95%),
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 28%, transparent 72%, rgba(0,0,0,0.28));
  box-shadow:
    inset 0 6px 18px rgba(255,244,214,0.16),
    inset 0 -24px 28px rgba(0,0,0,0.44),
    inset 0 0 0 1px rgba(255,220,163,0.14),
    0 0 14px rgba(227,166,70,0.08);
}
.eye-sclera::before,
.eye-sclera::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.eye-sclera::before {
  background:
    radial-gradient(circle at 15% 35%, rgba(145,34,18,0.24), transparent 18%),
    radial-gradient(circle at 84% 62%, rgba(120,26,12,0.18), transparent 22%),
    linear-gradient(90deg, transparent 6%, rgba(255,255,255,0.12) 9%, transparent 13%, transparent 82%, rgba(255,255,255,0.07) 86%, transparent 90%);
  mix-blend-mode: screen;
  opacity: 0.46;
}
.eye-sclera::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.2), transparent 26%, transparent 74%, rgba(0,0,0,0.36));
}
.eye-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  transform: translate(calc(var(--eye-x) * 20px), calc(var(--eye-y) * 12px));
  transition: transform 70ms linear;
}
.eye-iris {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 34%, rgba(255,241,182,0.98) 0 7%, rgba(255,216,94,0.94) 8%, rgba(244,171,37,0.95) 16%, rgba(122,58,16,0.96) 36%, rgba(43,16,5,0.98) 63%, rgba(0,0,0,1) 100%),
    repeating-conic-gradient(from 0deg, rgba(255,223,111,0.16) 0deg 4deg, rgba(111,37,11,0.18) 4deg 8deg);
  box-shadow: inset 0 0 22px rgba(255,224,146,0.22), inset 0 -22px 30px rgba(0,0,0,0.42), 0 0 30px rgba(255,170,55,0.2);
}
.eye-iris::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,236,175,0.22) 0deg 3deg, rgba(101,34,10,0.08) 3deg 7deg);
  mix-blend-mode: screen;
  opacity: 0.62;
}
.eye-pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 92px;
  margin-left: -11px;
  margin-top: -46px;
  border-radius: 48% 48% 52% 52% / 80% 80% 20% 20%;
  background: linear-gradient(180deg, rgba(20,20,20,0.9), #000 18%, #000 82%, rgba(20,20,20,0.9));
  box-shadow: 0 0 14px rgba(0,0,0,0.92), inset 0 0 4px rgba(255,255,255,0.06);
}
.eye-highlight {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  filter: blur(0.3px);
}
.eye-highlight-main {
  left: 26px;
  top: 18px;
  width: 18px;
  height: 18px;
  box-shadow: 0 0 22px rgba(255,255,255,0.52);
}
.eye-highlight-small {
  right: 22px;
  bottom: 32px;
  width: 8px;
  height: 8px;
  opacity: 0.8;
}
.eye-corner {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  background: radial-gradient(circle at 35% 35%, rgba(94,29,13,0.86), rgba(31,10,5,0.98));
  box-shadow: inset 0 0 10px rgba(255,195,146,0.08);
}
.eye-corner-left {
  left: 12px;
  clip-path: polygon(0 50%, 100% 0, 85% 100%);
  transform: rotate(-6deg);
}
.eye-corner-right {
  right: 12px;
  clip-path: polygon(100% 50%, 0 0, 15% 100%);
  transform: rotate(6deg);
}
.reading-section, .result-section, .how-section { padding-block: 105px; }
.section-heading { max-width: 800px; margin-bottom: 36px; }
.section-heading > p:last-child { max-width: 660px; color: var(--muted); font: 1.05rem/1.6 var(--reading); }
.ritual-table { position: relative; border: 1px solid rgba(227,166,70,0.24); background: linear-gradient(135deg, rgba(43,23,11,0.93), rgba(13,7,4,0.97)); box-shadow: var(--shadow), inset 0 0 70px rgba(227,166,70,0.025); }
.ritual-table::before, .ritual-table::after { content: "✦"; position: absolute; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); background: #120904; border: 1px solid var(--line); transform: rotate(45deg); }
.ritual-table::before { top: -18px; left: -18px; }.ritual-table::after { right: -18px; bottom: -18px; }
.ritual-step { display: grid; grid-template-columns: 70px minmax(250px, 0.82fr) minmax(300px, 1.4fr); gap: 28px; align-items: center; padding: 36px; border-bottom: 1px solid rgba(227,166,70,0.15); position: relative; }
.step-seal { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(227,166,70,0.38); clip-path: polygon(50% 0, 88% 12%, 100% 50%, 88% 88%, 50% 100%, 12% 88%, 0 50%, 12% 12%); color: var(--accent-bright); font-family: var(--serif); box-shadow: 0 0 22px var(--accent-soft); }
.step-copy h3 { margin-top: 4px; font-size: 1.5rem; }
.step-copy p:last-child { margin: 10px 0 0; color: var(--muted); font: 1rem/1.5 var(--reading); }
.step-kicker { margin: 0; color: var(--accent); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; }
.field { display: grid; gap: 8px; }
.field > span { color: #d9c7aa; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.field input { width: 100%; min-height: 58px; border: 1px solid rgba(227,166,70,0.26); border-radius: 2px; padding: 14px 16px; color: var(--text); background: rgba(5,3,2,0.64); outline: none; box-shadow: inset 0 0 18px rgba(0,0,0,0.25); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 18px rgba(0,0,0,0.2); }
.field input::placeholder { color: #766a5d; }
.upload-step { align-items: start; }
.upload-layout { display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(220px, 0.7fr); gap: 20px; }
.dropzone { min-height: 380px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(227,166,70,0.42); border-radius: 4px; cursor: pointer; background: radial-gradient(circle at 50% 35%, rgba(227,166,70,0.08), transparent 46%), rgba(5,3,2,0.52); transition: border-color 180ms ease, background 180ms ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--accent-bright); background-color: rgba(41,21,9,0.55); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#preview { width: 100%; height: 380px; object-fit: contain; background: #050302; }
.upload-empty { max-width: 300px; text-align: center; padding: 30px; }
.upload-empty strong { display: block; font-family: var(--serif); font-size: 1rem; }
.upload-empty small { display: block; margin-top: 8px; color: var(--muted); }
.upload-symbol { display: block; margin-bottom: 18px; color: var(--accent); font-size: 3.2rem; filter: drop-shadow(0 0 16px var(--accent-soft)); }
.remove-image { position: absolute; top: 12px; right: 12px; border: 1px solid var(--line); border-radius: 2px; padding: 7px 10px; cursor: pointer; color: var(--text); background: rgba(5,3,2,0.86); }
.photo-instructions { align-self: stretch; padding: 22px; border: 1px solid rgba(227,166,70,0.16); background: linear-gradient(rgba(227,166,70,0.04), transparent); }
.photo-instructions span { display: block; margin-top: 10px; color: #bdae98; font: 0.98rem var(--reading); }
.instruction-title { margin: 0 0 15px; color: var(--accent-bright); font-family: var(--serif); }
.tradition-step { grid-template-columns: 70px 260px 1fr; }
.traditions { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 0; border: 0; }
.tradition-card { min-height: 176px; position: relative; display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 16px; overflow: hidden; border: 1px solid rgba(227,166,70,0.2); background: rgba(7,4,2,0.62); cursor: pointer; transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.tradition-card:hover { transform: translateY(-2px); border-color: rgba(227,166,70,0.52); }
.tradition-card:has(input:checked) { border-color: var(--accent-bright); background: linear-gradient(100deg, rgba(227,166,70,0.16), rgba(8,4,2,0.76)); box-shadow: 0 0 30px var(--accent-soft), inset 0 0 28px rgba(227,166,70,0.05); }
.tradition-card input { position: absolute; opacity: 0; pointer-events: none; }
.figure-frame { align-self: stretch; min-height: 176px; position: relative; overflow: hidden; border-right: 1px solid rgba(227,166,70,0.18); background: #090502; }
.figure-frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.12) saturate(0.9) contrast(1.05); transition: transform 300ms ease, filter 300ms ease; }
.tradition-card:hover .figure-frame img, .tradition-card:has(input:checked) .figure-frame img { transform: scale(1.035); filter: sepia(0) saturate(1.05) contrast(1.08); }
.figure-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 64%, rgba(7,4,2,0.7)); }
.tradition-copy { min-width: 0; padding-right: 16px; }
.tradition-copy small { display: block; color: var(--accent); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.tradition-copy strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 1.04rem; }
.tradition-copy em { display: block; margin-top: 7px; color: var(--muted); font: normal 0.9rem/1.35 var(--reading); }
.selection-sigil { position: absolute; top: 10px; right: 10px; color: transparent; text-shadow: none; }
.tradition-card:has(input:checked) .selection-sigil { color: var(--accent-bright); text-shadow: 0 0 11px var(--accent); }
.ritual-action { padding: 30px 36px 36px; display: grid; justify-items: center; }
.privacy-note { max-width: 760px; margin: 0 0 18px; color: #8f8170; text-align: center; font-size: 0.73rem; }
.submit-button { min-width: min(420px, 100%); border: 0; }
.form-error { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-size: 0.82rem; text-align: center; }

.debug-panel { margin-top: 24px; border: 1px solid rgba(239,154,154,0.38); background: rgba(7,4,2,0.95); box-shadow: var(--shadow); overflow: hidden; }
.debug-panel summary { cursor: pointer; padding: 17px 20px; color: #ffd4d4; font-family: var(--serif); background: rgba(120,35,35,0.14); }
.debug-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.debug-toolbar p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 0.75rem; white-space: nowrap; }
.debug-panel pre { max-height: 520px; margin: 0; padding: 18px; overflow: auto; color: #d9f7d9; background: #030201; font: 0.76rem/1.55 Consolas, Monaco, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.oracle-loading { text-align: center; padding-block: 130px; }
.loading-sigil { width: 126px; height: 126px; margin: 0 auto 30px; position: relative; }
.loading-sigil span { position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: 50%; animation: pulse-ring 2.6s ease-out infinite; }
.loading-sigil span:nth-child(2) { animation-delay: 0.7s; }.loading-sigil span:nth-child(3) { animation-delay: 1.4s; }
.oracle-loading h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.oracle-loading > p:last-child { max-width: 620px; margin: 16px auto 0; color: var(--muted); font: 1.05rem var(--reading); }
.result-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.quality-badge { min-width: 175px; padding: 14px 16px; border: 1px solid var(--line); text-align: right; background: rgba(10,5,2,0.55); }
.quality-badge span { display: block; color: var(--muted); font-size: 0.7rem; }.quality-badge strong { font-family: var(--serif); color: var(--accent); font-size: 1.55rem; }
.retake-warning { margin-bottom: 20px; padding: 22px; border: 1px solid rgba(239,154,154,0.4); background: rgba(120,35,35,0.17); display: grid; gap: 8px; }
.retake-warning .button { justify-self: start; margin-top: 8px; }
.prophecy-card { border: 1px solid var(--line); padding: 28px; background: linear-gradient(145deg, rgba(54,28,12,0.32), rgba(7,4,2,0.76)); box-shadow: var(--shadow); }
.prophecy-card p { color: #c8b9a3; font: 1.04rem/1.62 var(--reading); }
.main-prophecy { position: relative; padding: 38px 76px 38px 38px; margin-bottom: 20px; }
.card-symbol { position: absolute; top: 28px; right: 32px; color: var(--accent); font-size: 2rem; }
.main-prophecy p { margin: 0; font: 1.48rem/1.55 var(--reading); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-label { margin: 0 0 8px; color: var(--accent) !important; font-family: var(--sans) !important; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.67rem !important; }
.prophecy-card h3 { font-size: 1.32rem; }.prophecy-card p:last-child { margin-bottom: 0; }
.closing-prophecy { margin-top: 20px; }.closing-prophecy h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.symbols-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }.symbol-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--muted); font-size: 0.75rem; }
.result-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps-grid article { padding: 24px; border: 1px solid rgba(227,166,70,0.18); background: rgba(18,9,4,0.66); }
.steps-grid span { color: var(--accent); font-family: var(--serif); }.steps-grid h3 { margin-top: 18px; }.steps-grid p { color: var(--muted); font: 0.98rem/1.45 var(--reading); margin-bottom: 0; }
footer { border-top: 1px solid rgba(227,166,70,0.18); padding-block: 34px; background: rgba(5,3,2,0.55); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: 0.8rem; }
.footer-inner strong { color: var(--text); font-family: var(--serif); }.footer-inner p { margin: 3px 0 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.025); } }
@keyframes pulse-ring { 0% { transform: scale(0.2); opacity: 0; } 25% { opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes flame { from { transform: scaleX(0.88) rotate(-2deg); } to { transform: scaleX(1.06) rotate(3deg) translateY(-2px); } }

@media (max-width: 1060px) {
  .ritual-step { grid-template-columns: 58px 1fr; }
  .ritual-step > :last-child { grid-column: 2; }
  .tradition-step { grid-template-columns: 58px 1fr; }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .oracle-stage { min-height: 470px; }
  .upload-layout { grid-template-columns: 1fr; }
  .traditions { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .temple-shadow { opacity: 0.34; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1160px); }
  .topbar { padding-inline: 14px; }.brand small, .top-link { display: none; }
  .hero { padding-block: 58px 80px; gap: 18px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .oracle-stage { min-height: 390px; }.oracle-disc { width: min(330px, 88vw); }.oracle-eye { transform: scale(0.76); }
  .ancient-arch, .temple-shadow { display: none; }
  .reading-section, .result-section, .how-section { padding-block: 76px; }
  .ritual-step { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; }
  .ritual-step > :last-child { grid-column: auto; }
  .step-seal { width: 42px; height: 42px; }
  .dropzone, #preview { min-height: 330px; height: 330px; }
  .traditions { grid-template-columns: 1fr; }
  .tradition-card { grid-template-columns: 92px 1fr; min-height: 150px; }.figure-frame { min-height: 150px; }
  .result-grid, .steps-grid { grid-template-columns: 1fr; }
  .result-header, .footer-inner { align-items: flex-start; flex-direction: column; }
  .quality-badge { text-align: left; }.main-prophecy { padding: 28px; }.card-symbol { display: none; }
  .debug-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* v1.3.0 — idiomas e mapa de destinos */
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.language-switcher { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid rgba(227,166,70,0.2); background: rgba(4,2,1,0.48); box-shadow: inset 0 0 16px rgba(0,0,0,0.25); }
.language-switcher button { min-width: 34px; min-height: 30px; border: 0; cursor: pointer; color: #817566; background: transparent; font: 600 0.68rem var(--sans); letter-spacing: 0.08em; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.language-switcher button:hover { color: var(--text); }
.language-switcher button.active, .language-switcher button[aria-pressed="true"] { color: #120904; background: linear-gradient(135deg, var(--accent-bright), var(--accent)); box-shadow: 0 0 16px var(--accent-soft); }
.result-language-note { margin: 18px 0 0; color: var(--accent); font: italic 0.94rem/1.5 var(--reading); }

.stats-section { padding-block: 104px 112px; position: relative; }
.stats-section::before { content: ""; position: absolute; inset: 40px 4% 24px; z-index: -1; border: 1px solid rgba(227,166,70,0.1); background: radial-gradient(circle at 50% 20%, rgba(227,166,70,0.075), transparent 44%), linear-gradient(145deg, rgba(43,22,10,0.28), rgba(5,3,2,0.62)); box-shadow: inset 0 0 80px rgba(0,0,0,0.38); }
.stats-heading { max-width: 850px; }
.stats-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { min-height: 156px; position: relative; overflow: hidden; padding: 28px 30px; border: 1px solid rgba(227,166,70,0.22); background: linear-gradient(135deg, rgba(76,39,17,0.3), rgba(7,4,2,0.77)); box-shadow: var(--shadow); }
.stat-card::after { content: ""; position: absolute; inset: auto -24px -56px auto; width: 140px; height: 140px; border: 1px solid rgba(227,166,70,0.1); border-radius: 50%; box-shadow: 0 0 38px rgba(227,166,70,0.06); }
.stat-card strong { display: block; color: var(--accent-bright); font: 600 clamp(2.6rem, 6vw, 4.8rem)/1 var(--serif); text-shadow: 0 0 24px var(--accent-soft); }
.stat-card p { margin: 12px 0 0; color: var(--muted); font: 1rem var(--reading); }
.stat-symbol { position: absolute; top: 24px; right: 28px; color: rgba(227,166,70,0.5); font-size: 1.6rem; }
.country-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.country-stat { min-height: 66px; display: grid; grid-template-columns: minmax(145px, 0.9fr) minmax(70px, 1fr) auto; align-items: center; gap: 16px; padding: 14px 17px; border: 1px solid rgba(227,166,70,0.14); background: rgba(9,5,2,0.68); }
.country-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.country-identity strong { overflow: hidden; color: #d6c8b4; font: 600 0.84rem var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.country-flag { width: 28px; flex: 0 0 auto; text-align: center; font-size: 1.2rem; filter: saturate(0.82) sepia(0.08); }
.country-bar { height: 3px; position: relative; overflow: hidden; background: rgba(227,166,70,0.1); }
.country-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--country-share); background: linear-gradient(90deg, var(--accent-dark), var(--accent-bright)); box-shadow: 0 0 12px var(--accent-soft); }
.country-count { color: var(--muted); font: 0.74rem var(--sans); white-space: nowrap; }
.stats-status { grid-column: 1 / -1; margin: 0; padding: 26px; border: 1px dashed rgba(227,166,70,0.2); color: var(--muted); text-align: center; font: italic 1.05rem var(--reading); background: rgba(5,3,2,0.45); }
.stats-toggle { display: flex; margin: 20px auto 0; }
.footer-meta { display: flex; align-items: center; gap: 18px; }
.footer-languages { transform: scale(0.92); transform-origin: right center; }

@media (max-width: 820px) {
  .country-stats { grid-template-columns: 1fr; }
  .topbar-actions { gap: 9px; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-languages { transform-origin: left center; }
}

@media (max-width: 680px) {
  .topbar { gap: 10px; }
  .topbar-actions { margin-left: auto; }
  .language-switcher button { min-width: 31px; }
  .stats-section { padding-block: 76px; }
  .stats-overview { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 130px; padding: 22px 18px; }
  .stat-card p { font-size: 0.84rem; }
  .country-stat { grid-template-columns: minmax(120px, 1fr) auto; gap: 10px; }
  .country-bar { grid-column: 1 / -1; grid-row: 2; }
  .country-count { text-align: right; }
}


.result-section .prophecy-card { border-color: rgba(227,166,70,0.28); background: linear-gradient(145deg, rgba(64,32,11,0.36), rgba(8,4,2,0.84)); }
.result-section .prophecy-card p:not(.card-label),
.result-section .prophecy-card li,
.result-section #opening-message,
.result-section #closing-message,
.result-section #life-reading,
.result-section #head-reading,
.result-section #heart-reading,
.result-section #fate-reading {
  color: #f1cf86;
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.012em;
  text-shadow: 0 0 10px rgba(227,166,70,0.08);
}
.result-section .main-prophecy p { font-size: clamp(1.54rem, 2.2vw, 1.9rem); line-height: 1.58; }
.result-section .prophecy-card h3 { color: #ffdf9d; text-shadow: 0 0 16px rgba(227,166,70,0.08); }
.result-section .closing-prophecy h3 { font-family: var(--script); font-style: italic; font-weight: 600; }
.result-section .symbol-chip { color: #e4c587; border-color: rgba(227,166,70,0.3); background: rgba(44,22,10,0.48); }
.result-section .quality-badge { background: linear-gradient(180deg, rgba(39,20,10,0.7), rgba(10,5,2,0.7)); }
.result-section .retake-warning span { color: #ecd3b4; }

@keyframes eye-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* v1.5.1 — olho limpo, sem pálpebras animadas sobrepostas */
.oracle-eye { overflow: visible; }
.eye-sclera {
  clip-path: polygon(0 50%, 11% 22%, 28% 7%, 50% 2%, 72% 7%, 89% 22%, 100% 50%, 89% 78%, 72% 93%, 50% 98%, 28% 93%, 11% 78%);
}
.eye-shadow { opacity: 0.68; }
.eye-core { z-index: 3; }
.eye-sclera { z-index: 2; }
.eye-corner { z-index: 4; }


/* v1.5.2 — olho simplificado com pentagrama de fundo */
.eye-pentagram {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 250px;
  height: 250px;
  margin-left: -125px;
  margin-top: -125px;
  border-radius: 50%;
  opacity: 0.32;
  filter: drop-shadow(0 0 18px rgba(227,166,70,0.18));
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e3a646' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Ccircle cx='100' cy='100' r='84'/%3E%3Cpolygon points='100,24 122.34,69.25 172.45,76.53 136.22,111.84 144.68,161.72 100,138.25 55.32,161.72 63.78,111.84 27.55,76.53 77.66,69.25'/%3E%3C/g%3E%3C/svg%3E");
  animation: pentagram-spin 36s linear infinite;
}
.oracle-eye {
  width: 290px;
  height: 132px;
  filter: drop-shadow(0 0 22px rgba(227,166,70,0.14)) drop-shadow(0 18px 36px rgba(0,0,0,0.4));
}
.eye-sclera {
  inset: 18px 8px;
  border-radius: 50% 50% 50% 50% / 72% 72% 72% 72%;
  clip-path: ellipse(48% 36% at 50% 50%);
  background:
    radial-gradient(circle at 30% 45%, rgba(255,245,219,0.96), rgba(231,219,193,0.93) 22%, rgba(97,74,54,0.92) 54%, rgba(18,10,5,0.98) 95%),
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent 28%, transparent 72%, rgba(0,0,0,0.24));
}
.eye-sclera::after { background: linear-gradient(180deg, rgba(0,0,0,0.12), transparent 30%, transparent 70%, rgba(0,0,0,0.18)); }
.eye-shadow, .eye-corner { display: none !important; }
.eye-core { z-index: 3; }
.eye-sclera { z-index: 2; }
@keyframes pentagram-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


/* v1.5.3 — olhar orientado para o cursor */
.eye-core { transform: translate(calc(var(--eye-x) * 14px), calc(var(--eye-y) * 8px)) rotate(calc(var(--eye-tilt) * 0.35)); transition: transform 58ms linear; }
.eye-highlight-main { transform: translate(calc(var(--eye-x) * -2px), calc(var(--eye-y) * -1px)); }
.eye-highlight-small { transform: translate(calc(var(--eye-x) * -1px), calc(var(--eye-y) * -0.6px)); }


/* v1.5.4 — olho apenas redondo, sem fundo amendoado */
.oracle-eye {
  width: 250px;
  height: 250px;
  filter: drop-shadow(0 0 18px rgba(227,166,70,0.16)) drop-shadow(0 12px 28px rgba(0,0,0,0.34));
}
.eye-pentagram {
  width: 240px;
  height: 240px;
  margin-left: -120px;
  margin-top: -120px;
  opacity: 0.28;
}
.eye-sclera { display: none !important; }
.eye-core,
.eye-core-round {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126px;
  height: 126px;
  margin-left: -63px;
  margin-top: -63px;
  border-radius: 50%;
  transform: translate(calc(var(--eye-x) * 12px), calc(var(--eye-y) * 12px));
  transition: transform 58ms linear;
  z-index: 3;
}
.eye-core-round::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(227,166,70,0.18);
  box-shadow: 0 0 20px rgba(227,166,70,0.10), inset 0 0 18px rgba(255,224,146,0.06);
}
.eye-iris {
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(255,224,146,0.18), inset 0 -22px 30px rgba(0,0,0,0.46), 0 0 30px rgba(255,170,55,0.18);
}
.eye-highlight-main { left: 28px; top: 18px; }
.eye-highlight-small { right: 24px; bottom: 26px; }
.eye-aura {
  inset: -26px;
  background: radial-gradient(circle, rgba(214,117,37,0.14), rgba(214,117,37,0.04) 34%, transparent 66%);
}
@media (max-width: 900px) {
  .oracle-stage { min-height: 360px; }
  .oracle-eye { transform: scale(0.82); }
}


/* v1.5.5 — sem pentagrama atrás do olho */
.eye-pentagram { display: none !important; }
.oracle-eye { filter: drop-shadow(0 0 16px rgba(227,166,70,0.12)) drop-shadow(0 10px 24px rgba(0,0,0,0.28)); }


/* v1.5.6 — remover todo o ornamento por detrás do olho */
.oracle-disc {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
}
.oracle-disc::before,
.oracle-disc::after,
.orbit,
.disc-rune,
.eye-pentagram {
  display: none !important;
  content: none !important;
}
.oracle-stage::before {
  width: 58%;
  height: 22%;
  bottom: 10%;
  background: radial-gradient(ellipse, rgba(226,103,27,0.12), transparent 72%);
  filter: blur(24px);
}
.oracle-eye {
  filter: drop-shadow(0 0 14px rgba(227,166,70,0.10)) drop-shadow(0 10px 24px rgba(0,0,0,0.28));
}


/* v1.5.7 — restaurar apenas o círculo, sem pentagrama */
.oracle-disc {
  border: 1px solid rgba(227,166,70,0.54) !important;
  background: radial-gradient(circle, rgba(65,33,13,0.36), rgba(7,4,2,0.92) 66%) !important;
  box-shadow: 0 0 80px rgba(227,166,70,0.17), inset 0 0 70px rgba(227,166,70,0.08) !important;
  animation: breathe 6s ease-in-out infinite !important;
}
.oracle-disc::before,
.oracle-disc::after {
  display: block !important;
  content: "" !important;
  position: absolute;
  border: 1px solid rgba(227,166,70,0.2);
  border-radius: 50%;
}
.oracle-disc::before { inset: 7%; }
.oracle-disc::after { inset: 15%; border-style: dashed; animation: spin 50s linear infinite; }
.eye-pentagram { display: none !important; content: none !important; }


/* v1.5.8 — o olhar segue o cursor sem arrastar o globo inteiro */
.oracle-eye { --gaze-x: 0; --gaze-y: 0; }
.eye-core,
.eye-core-round {
  transform: none !important;
  transition: none !important;
}
.eye-iris {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 106px;
  height: 106px;
  margin-left: -53px;
  margin-top: -53px;
  transform: translate(calc(var(--gaze-x) * 6px), calc(var(--gaze-y) * 5px));
  transition: transform 58ms linear;
}
.eye-pupil {
  transform: translate(calc(var(--gaze-x) * 16px), calc(var(--gaze-y) * 12px));
  transition: transform 58ms linear;
}
.eye-highlight-main {
  transform: translate(calc(var(--gaze-x) * 5px), calc(var(--gaze-y) * 4px));
  transition: transform 58ms linear;
}
.eye-highlight-small {
  transform: translate(calc(var(--gaze-x) * 4px), calc(var(--gaze-y) * 3px));
  transition: transform 58ms linear;
}


/* v1.6.0 — leitura detalhada em doze áreas */
.result-subsection-heading {
  margin: 48px 0 18px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(227,166,70,0.18);
}
.result-subsection-heading:first-of-type { margin-top: 38px; }
.result-subsection-heading h3 {
  margin: 5px 0 0;
  color: #f2d59b;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
}
.result-grid-secondary .prophecy-card,
.result-grid-details .prophecy-card { min-height: 250px; }
.result-grid .prophecy-card > p:last-child {
  white-space: pre-line;
}
@media (max-width: 700px) {
  .result-subsection-heading { margin-top: 38px; }
  .result-grid-secondary .prophecy-card,
  .result-grid-details .prophecy-card { min-height: auto; }
}


/* v1.6.1 — dimensões íntimas e de sombra */
.result-grid-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.result-safety-note {
  max-width: 880px;
  margin: 12px 0 0;
  color: var(--muted);
  font: 0.96rem/1.58 var(--reading);
}
.sensitive-card {
  position: relative;
  overflow: hidden;
}
.sensitive-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(227,166,70,0.48), transparent);
}
.card-disclaimer {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(227,166,70,0.16);
  color: rgba(235,216,188,0.68) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  font-style: italic;
}
@media (max-width: 980px) {
  .result-grid-inner { grid-template-columns: 1fr; }
}


/* v1.7.0 — seis mestres em alta definição com animação cultural */
.tradition-card {
  --guide-glow: rgba(227,166,70,0.35);
  --guide-deep: rgba(65,28,8,0.76);
  min-height: 224px;
  grid-template-columns: 142px 1fr;
  isolation: isolate;
}
.figure-frame { min-height: 224px; }
.figure-frame img {
  transform: scale(1.04);
  animation: master-breath 9s ease-in-out infinite alternate;
  will-change: transform, filter;
}
.tradition-card:nth-child(even) .figure-frame img { animation-delay: -3.8s; }
.tradition-card:hover .figure-frame img,
.tradition-card:has(input:checked) .figure-frame img {
  transform: scale(1.105) translateY(-1.5%);
  filter: saturate(1.13) contrast(1.1) brightness(1.04);
}
.figure-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -20%;
  background: radial-gradient(circle at 50% 38%, transparent 0 18%, var(--guide-glow) 42%, transparent 66%);
  opacity: 0.2;
  mix-blend-mode: screen;
  animation: master-aura 6.5s ease-in-out infinite;
  pointer-events: none;
}
.figure-frame::after { z-index: 3; background: linear-gradient(90deg, transparent 48%, rgba(7,4,2,0.82)); }
.culture-magic {
  position: absolute;
  z-index: 4;
  left: 110px;
  top: 50%;
  width: 68px;
  height: 68px;
  border: 1px solid color-mix(in srgb, var(--guide-glow) 80%, transparent);
  border-radius: 50%;
  opacity: 0.42;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px var(--guide-glow), inset 0 0 22px var(--guide-glow);
  animation: sigil-pulse 5s ease-in-out infinite;
  pointer-events: none;
}
.culture-magic::before,
.culture-magic::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid currentColor;
  opacity: 0.48;
}
.culture-magic::before { transform: rotate(45deg); }
.culture-magic::after { inset: 27%; border-radius: 50%; animation: sigil-spin 14s linear infinite; }
.tradition-card:has(input:checked) .culture-magic { opacity: 0.86; }
.tradition-copy small { color: color-mix(in srgb, var(--guide-glow) 70%, #ffe0a0); font-weight: 600; }
.tradition-copy strong { font-size: 1.2rem; color: #fff0ce; }
.tradition-copy em { font-size: 0.93rem; line-height: 1.45; }
.tradition-africana { --guide-glow: rgba(244,159,50,0.55); --guide-deep: rgba(65,30,7,0.85); }
.tradition-europeia { --guide-glow: rgba(243,196,92,0.52); --guide-deep: rgba(42,28,13,0.85); }
.tradition-elfica { --guide-glow: rgba(158,218,137,0.52); --guide-deep: rgba(12,52,33,0.82); }
.tradition-antiga { --guide-glow: rgba(255,129,51,0.52); --guide-deep: rgba(71,20,5,0.84); }
.tradition-islamica { --guide-glow: rgba(93,218,208,0.48); --guide-deep: rgba(5,47,55,0.84); }
.tradition-budista { --guide-glow: rgba(255,179,76,0.5); --guide-deep: rgba(88,34,15,0.82); }
.tradition-card:has(input:checked) {
  background: linear-gradient(105deg, var(--guide-deep), rgba(8,4,2,0.82));
  box-shadow: 0 0 36px var(--guide-glow), inset 0 0 34px rgba(255,255,255,0.025);
}
.tradition-islamica .culture-magic { border-radius: 9%; transform: translate(-50%, -50%) rotate(45deg); }
.tradition-islamica .culture-magic::before { border-radius: 50%; transform: rotate(0); }
.tradition-budista .culture-magic::before { border-radius: 50% 0 50% 0; transform: rotate(45deg); }
.tradition-elfica .culture-magic::before { clip-path: polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%); }
@keyframes master-breath {
  0% { transform: scale(1.035) translate3d(0,0,0); filter: saturate(.98) contrast(1.05); }
  100% { transform: scale(1.095) translate3d(0,-1.4%,0); filter: saturate(1.08) contrast(1.09) brightness(1.025); }
}
@keyframes master-aura {
  0%,100% { opacity: .12; transform: scale(.92) rotate(-3deg); }
  50% { opacity: .36; transform: scale(1.08) rotate(4deg); }
}
@keyframes sigil-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(.88); filter: brightness(.85); }
  50% { transform: translate(-50%,-50%) scale(1.08); filter: brightness(1.3); }
}
@keyframes sigil-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .tradition-card { grid-template-columns: 118px 1fr; min-height: 198px; }
  .figure-frame { min-height: 198px; }
  .culture-magic { left: 92px; width: 58px; height: 58px; }
}
@media (max-width: 620px) {
  .tradition-card { grid-template-columns: 104px 1fr; min-height: 184px; }
  .figure-frame { min-height: 184px; }
  .culture-magic { left: 82px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .figure-frame img, .figure-frame::before, .culture-magic, .culture-magic::after { animation: none !important; }
}


/* v1.7.2 — renomeação das guias e animação mais mística */
.tradition-card { overflow: hidden; }
.figure-frame img {
  animation: master-breath 7.2s ease-in-out infinite alternate, master-drift 12s ease-in-out infinite;
}
.figure-frame::before {
  opacity: 0.28;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--guide-glow) 88%, transparent) 0 10%, transparent 34%),
    radial-gradient(circle at 50% 52%, transparent 0 24%, color-mix(in srgb, var(--guide-glow) 72%, transparent) 44%, transparent 67%);
  animation: master-aura 5.2s ease-in-out infinite;
}
.figure-frame::after {
  background:
    linear-gradient(90deg, transparent 42%, rgba(7,4,2,0.66)),
    radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--guide-glow) 30%, transparent), transparent 38%);
}
.culture-magic {
  opacity: 0.5;
  animation: sigil-pulse 4.2s ease-in-out infinite, sigil-float 9s ease-in-out infinite;
}
.culture-magic::before { animation: sigil-twinkle 5.8s ease-in-out infinite; }
.culture-magic::after { animation: sigil-spin 18s linear infinite; }
.selection-sigil { animation: sigil-twinkle 6s ease-in-out infinite; }
.tradition-card:has(input:checked) .figure-frame::before { opacity: 0.44; }
.tradition-card:has(input:checked) .culture-magic { opacity: 0.88; }
@keyframes master-drift {
  0%,100% { translate: 0 0; }
  25% { translate: -1% -1.2%; }
  50% { translate: 0.8% -2%; }
  75% { translate: 1.1% -0.6%; }
}
@keyframes sigil-float {
  0%,100% { translate: 0 -50%; }
  50% { translate: 0 calc(-50% - 6px); }
}
@keyframes sigil-twinkle {
  0%,100% { opacity: 0.35; filter: brightness(0.9); }
  50% { opacity: 0.82; filter: brightness(1.35); }
}


/* v1.7.2 — efeitos místicos específicos por tradição */
.tradition-card .figure-frame,
.tradition-card .culture-magic { overflow: hidden; }
.tradition-africana .figure-frame::before {
  background:
    radial-gradient(circle at 42% 84%, rgba(255,144,43,0.34), transparent 20%),
    radial-gradient(circle at 60% 72%, rgba(255,189,102,0.18), transparent 18%),
    radial-gradient(circle at 52% 58%, rgba(255,128,25,0.1), transparent 34%);
  animation: ember-rise 5.5s ease-in-out infinite;
}
.tradition-africana .culture-magic { box-shadow: 0 0 28px rgba(244,159,50,0.45), inset 0 0 18px rgba(244,159,50,0.32); }
.tradition-europeia .figure-frame::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(183,116,255,0.22), transparent 22%),
    radial-gradient(circle at 26% 56%, rgba(236,215,255,0.12), transparent 24%),
    radial-gradient(circle at 72% 62%, rgba(123,66,208,0.14), transparent 24%);
  animation: violet-haze 7.2s ease-in-out infinite;
}
.tradition-europeia .culture-magic {
  box-shadow: 0 0 34px rgba(189,129,255,0.4), inset 0 0 20px rgba(219,191,255,0.28);
}
.tradition-elfica .figure-frame::before {
  background:
    radial-gradient(circle at 48% 18%, rgba(161,255,184,0.16), transparent 22%),
    radial-gradient(circle at 36% 70%, rgba(108,255,171,0.14), transparent 18%),
    radial-gradient(circle at 68% 62%, rgba(183,255,128,0.12), transparent 18%);
  animation: forest-glimmer 6.6s ease-in-out infinite;
}
.tradition-elfica .culture-magic {
  box-shadow: 0 0 34px rgba(158,218,137,0.46), inset 0 0 22px rgba(158,218,137,0.24);
}
.tradition-antiga .figure-frame::before {
  background:
    radial-gradient(circle at 50% 56%, rgba(255,137,44,0.16), transparent 26%),
    radial-gradient(circle at 28% 30%, rgba(255,188,120,0.12), transparent 16%),
    radial-gradient(circle at 74% 28%, rgba(255,120,52,0.14), transparent 16%);
  animation: ancient-flare 5.9s ease-in-out infinite;
}
.tradition-antiga .culture-magic::after { animation: sigil-spin 10s linear infinite; }
.tradition-islamica .figure-frame::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(92,231,215,0.18), transparent 26%),
    linear-gradient(135deg, transparent 42%, rgba(92,231,215,0.09) 50%, transparent 58%),
    linear-gradient(45deg, transparent 42%, rgba(184,255,248,0.08) 50%, transparent 58%);
  animation: geometry-shimmer 6.8s linear infinite;
}
.tradition-islamica .culture-magic { box-shadow: 0 0 30px rgba(93,218,208,0.44), inset 0 0 18px rgba(93,218,208,0.26); }
.tradition-budista .figure-frame::before {
  background:
    radial-gradient(circle at 50% 34%, rgba(255,212,128,0.22), transparent 24%),
    radial-gradient(circle at 50% 60%, rgba(255,179,76,0.14), transparent 28%);
  animation: lotus-calm 8.5s ease-in-out infinite;
}
.tradition-budista .culture-magic {
  box-shadow: 0 0 32px rgba(255,179,76,0.42), inset 0 0 20px rgba(255,221,146,0.28);
}
.tradition-budista .figure-frame img { animation-duration: 8.4s, 14s; }
@keyframes ember-rise {
  0%,100% { transform: translateY(5%) scale(.96); opacity: .18; }
  50% { transform: translateY(-6%) scale(1.05); opacity: .42; }
}
@keyframes violet-haze {
  0%,100% { transform: translateX(-3%) scale(.98); opacity: .18; }
  50% { transform: translateX(3%) scale(1.06); opacity: .34; }
}
@keyframes forest-glimmer {
  0%,100% { transform: translateY(0) scale(.98); opacity: .16; }
  50% { transform: translateY(-3%) scale(1.08); opacity: .36; }
}
@keyframes ancient-flare {
  0%,100% { transform: scale(.94) rotate(-2deg); opacity: .18; }
  50% { transform: scale(1.08) rotate(2deg); opacity: .38; }
}
@keyframes geometry-shimmer {
  0% { transform: rotate(0deg) scale(1); opacity: .16; }
  50% { opacity: .32; }
  100% { transform: rotate(360deg) scale(1.02); opacity: .16; }
}
@keyframes lotus-calm {
  0%,100% { transform: scale(.96); opacity: .2; }
  50% { transform: scale(1.08); opacity: .34; }
}


/* v1.7.3 — efeitos místicos reforçados por tradição */
.tradition-card::before,
.tradition-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 320ms ease;
}
.tradition-card:has(input:checked)::before,
.tradition-card:hover::before { opacity: .72; }
.tradition-card:has(input:checked)::after,
.tradition-card:hover::after { opacity: .5; }
.tradition-card::before {
  background-size: 140% 140%, 180% 180%, 220% 220%;
  mix-blend-mode: screen;
  animation: mystic-field 13s ease-in-out infinite alternate;
}
.tradition-card::after {
  inset: -30%;
  filter: blur(14px);
  mix-blend-mode: screen;
  animation: mystic-orbit 20s linear infinite;
}
.tradition-africana::before {
  background:
    radial-gradient(circle at 16% 82%, rgba(255,151,51,.36) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 38% 70%, rgba(255,214,129,.24) 0 1.2px, transparent 2px),
    radial-gradient(circle at 72% 78%, rgba(197,76,16,.24) 0 1.6px, transparent 2.5px);
  animation-name: ember-field;
}
.tradition-africana::after {
  background: radial-gradient(ellipse at 28% 86%, rgba(255,118,21,.22), transparent 34%);
}
.tradition-europeia::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(223,173,255,.38) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 68% 30%, rgba(255,221,255,.24) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 46% 72%, rgba(147,79,226,.28) 0 1.5px, transparent 2.5px);
  animation-name: moon-dust;
}
.tradition-europeia::after {
  background: conic-gradient(from 20deg at 32% 42%, transparent 0 24%, rgba(181,105,255,.18) 31%, transparent 39% 100%);
}
.tradition-elfica::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(177,255,177,.35) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 74% 22%, rgba(125,255,192,.3) 0 1.4px, transparent 2.3px),
    radial-gradient(circle at 52% 76%, rgba(211,255,129,.24) 0 1.2px, transparent 2.2px);
  animation-name: forest-lights;
}
.tradition-elfica::after {
  background: radial-gradient(ellipse at 25% 52%, rgba(103,255,173,.18), transparent 36%);
}
.tradition-antiga::before {
  background:
    repeating-radial-gradient(circle at 28% 48%, rgba(255,94,80,.2) 0 1px, transparent 2px 18px),
    radial-gradient(circle at 68% 28%, rgba(220,76,255,.26) 0 1.4px, transparent 2.4px);
  animation-name: rune-wake;
}
.tradition-antiga::after {
  background: conic-gradient(from 0deg at 28% 50%, transparent, rgba(255,87,78,.17), transparent 18%, transparent 100%);
}
.tradition-islamica::before {
  background:
    repeating-conic-gradient(from 0deg at 24% 50%, rgba(105,242,232,.18) 0 2deg, transparent 2deg 15deg),
    radial-gradient(circle at 24% 50%, transparent 0 24%, rgba(105,242,232,.18) 25% 26%, transparent 27%);
  animation-name: geometry-drift;
}
.tradition-islamica::after {
  background: radial-gradient(circle at 24% 50%, rgba(90,226,218,.16), transparent 38%);
}
.tradition-budista::before {
  background:
    radial-gradient(circle at 24% 34%, rgba(255,223,142,.42) 0 1.5px, transparent 2.4px),
    radial-gradient(circle at 48% 68%, rgba(255,185,73,.24) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 70% 26%, rgba(255,237,178,.2) 0 1.2px, transparent 2.2px);
  animation-name: lotus-dust;
}
.tradition-budista::after {
  background: radial-gradient(circle at 24% 50%, rgba(255,194,84,.2), transparent 35%);
}
.tradition-europeia .figure-frame img { object-position: 50% 24%; }
.tradition-elfica .figure-frame img { object-position: 56% 18%; }
.tradition-antiga .figure-frame img { object-position: 58% 22%; }
@keyframes mystic-field {
  0% { transform: translate3d(-2%,2%,0) scale(.98); }
  100% { transform: translate3d(2%,-2%,0) scale(1.04); }
}
@keyframes mystic-orbit { to { transform: rotate(360deg); } }
@keyframes ember-field {
  0% { transform: translateY(8%) scale(.96); background-position: 0 18%, 20% 28%, 40% 36%; }
  100% { transform: translateY(-8%) scale(1.04); background-position: 6% -12%, 28% -4%, 46% 2%; }
}
@keyframes moon-dust {
  0% { transform: translate3d(-3%,1%,0) scale(.98); filter: hue-rotate(-6deg); }
  100% { transform: translate3d(3%,-2%,0) scale(1.05); filter: hue-rotate(8deg); }
}
@keyframes forest-lights {
  0% { transform: translateY(2%) scale(.98); }
  50% { transform: translateY(-4%) scale(1.04); }
  100% { transform: translateY(1%) scale(1); }
}
@keyframes rune-wake {
  0% { transform: rotate(-2deg) scale(.98); }
  100% { transform: rotate(2deg) scale(1.05); }
}
@keyframes geometry-drift {
  0% { transform: rotate(0deg) scale(.98); }
  100% { transform: rotate(360deg) scale(1.02); }
}
@keyframes lotus-dust {
  0%,100% { transform: translateY(2%) scale(.97); opacity: .48; }
  50% { transform: translateY(-3%) scale(1.04); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .tradition-card::before,
  .tradition-card::after { animation: none !important; }
}


/* v1.7.4 — resultados em papel envelhecido */
.result-section .prophecy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(114, 72, 26, 0.42);
  border-radius: 14px 11px 15px 12px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,246,221,0.98), rgba(244,224,180,0.95) 18%, rgba(221,190,141,0.96) 52%, rgba(180,138,89,0.97) 100%);
  box-shadow:
    0 20px 36px rgba(0,0,0,0.34),
    inset 0 0 0 1px rgba(255,246,215,0.34),
    inset 0 0 34px rgba(112,72,22,0.12),
    inset 0 -16px 26px rgba(112,72,22,0.10);
}
.result-section .prophecy-card::before,
.result-section .prophecy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.result-section .prophecy-card::before {
  z-index: 0;
  background:
    radial-gradient(circle at 0 0, rgba(97,61,20,0.28), transparent 22%),
    radial-gradient(circle at 100% 0, rgba(97,61,20,0.24), transparent 20%),
    radial-gradient(circle at 0 100%, rgba(97,61,20,0.24), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(97,61,20,0.30), transparent 23%),
    linear-gradient(180deg, rgba(112,72,22,0.14), transparent 12%, transparent 88%, rgba(112,72,22,0.18)),
    linear-gradient(90deg, rgba(112,72,22,0.16), transparent 10%, transparent 90%, rgba(112,72,22,0.16));
  mix-blend-mode: multiply;
}
.result-section .prophecy-card::after {
  z-index: 0;
  opacity: 0.36;
  background:
    radial-gradient(circle at 24% 28%, rgba(130,88,38,0.16), transparent 18%),
    radial-gradient(circle at 72% 66%, rgba(130,88,38,0.18), transparent 20%),
    radial-gradient(circle at 56% 18%, rgba(255,255,255,0.18), transparent 16%),
    repeating-linear-gradient(175deg, rgba(123,82,34,0.05) 0 2px, transparent 2px 9px);
}
.result-section .prophecy-card > * {
  position: relative;
  z-index: 1;
}
.result-section .prophecy-card p:not(.card-label),
.result-section .prophecy-card li,
.result-section #opening-message,
.result-section #closing-message,
.result-section #life-reading,
.result-section #head-reading,
.result-section #heart-reading,
.result-section #fate-reading {
  color: #4d3015;
  text-shadow: none;
  font-family: var(--script);
  font-style: italic;
  font-weight: 600;
}
.result-section .main-prophecy,
.result-section .closing-prophecy {
  border-width: 1.5px;
}
.result-section .main-prophecy p {
  font-size: clamp(1.54rem, 2.2vw, 1.92rem);
  line-height: 1.62;
}
.result-section .prophecy-card h3,
.result-section .closing-prophecy h3 {
  color: #6c4118;
  text-shadow: none;
  font-family: var(--serif);
}
.result-section .card-label {
  color: #8f5a20 !important;
  text-shadow: none !important;
}
.result-section .card-symbol {
  color: rgba(116, 72, 24, 0.42);
  text-shadow: none;
}
.result-section .symbols-row {
  margin-top: 22px;
}
.result-section .symbol-chip {
  color: #5b3918;
  border-color: rgba(114,72,26,0.24);
  background: rgba(255,247,225,0.44);
  box-shadow: inset 0 0 0 1px rgba(255,247,225,0.24);
}
.result-section .quality-badge {
  border-color: rgba(114,72,26,0.24);
  color: #6c4118;
  background: linear-gradient(180deg, rgba(246,225,182,0.94), rgba(205,172,118,0.94));
  box-shadow: 0 14px 24px rgba(0,0,0,0.24), inset 0 0 0 1px rgba(255,245,215,0.28);
}
.result-section .quality-badge span,
.result-section .quality-badge strong {
  color: #6c4118;
  text-shadow: none;
}


/* v1.7.5 — letras negras e bordas queimadas no pergaminho */
.result-section .prophecy-card {
  border-color: rgba(68, 37, 10, 0.58);
  background:
    radial-gradient(circle at 18% 14%, rgba(255,247,225,0.99), rgba(244,226,189,0.97) 18%, rgba(223,194,146,0.97) 52%, rgba(182,141,92,0.98) 100%);
  box-shadow:
    0 20px 36px rgba(0,0,0,0.34),
    inset 0 0 0 1px rgba(255,246,215,0.34),
    inset 0 0 34px rgba(112,72,22,0.12),
    inset 0 -16px 26px rgba(112,72,22,0.10);
}
.result-section .prophecy-card::before {
  background:
    radial-gradient(circle at 0 0, rgba(50,24,7,0.66), transparent 18%),
    radial-gradient(circle at 100% 0, rgba(58,28,8,0.62), transparent 18%),
    radial-gradient(circle at 0 100%, rgba(56,27,8,0.62), transparent 19%),
    radial-gradient(circle at 100% 100%, rgba(42,19,5,0.74), transparent 20%),
    radial-gradient(circle at 12% 8%, rgba(124,67,18,0.42), transparent 12%),
    radial-gradient(circle at 88% 10%, rgba(130,72,21,0.38), transparent 12%),
    radial-gradient(circle at 10% 88%, rgba(128,71,20,0.40), transparent 13%),
    radial-gradient(circle at 90% 92%, rgba(96,49,15,0.44), transparent 12%),
    linear-gradient(180deg, rgba(86,48,14,0.22), transparent 11%, transparent 89%, rgba(74,40,12,0.28)),
    linear-gradient(90deg, rgba(82,44,13,0.22), transparent 10%, transparent 90%, rgba(80,42,12,0.22));
  mix-blend-mode: multiply;
  filter: blur(0.2px) saturate(1.08);
}
.result-section .prophecy-card::after {
  opacity: 0.48;
  background:
    radial-gradient(circle at 5% 5%, rgba(33,14,4,0.18), transparent 9%),
    radial-gradient(circle at 96% 7%, rgba(37,16,4,0.15), transparent 10%),
    radial-gradient(circle at 6% 94%, rgba(37,16,4,0.14), transparent 10%),
    radial-gradient(circle at 96% 95%, rgba(33,14,4,0.18), transparent 10%),
    repeating-linear-gradient(175deg, rgba(123,82,34,0.05) 0 2px, transparent 2px 9px);
}
.result-section .prophecy-card p:not(.card-label),
.result-section .prophecy-card li,
.result-section #opening-message,
.result-section #closing-message,
.result-section #life-reading,
.result-section #head-reading,
.result-section #heart-reading,
.result-section #fate-reading {
  color: #17100a;
  text-shadow: none;
}
.result-section .prophecy-card h3,
.result-section .closing-prophecy h3,
.result-section .quality-badge span,
.result-section .quality-badge strong,
.result-section .symbol-chip,
.result-section .card-label {
  color: #24150a !important;
}
.result-section .quality-badge {
  border-color: rgba(78,45,15,0.30);
  background: linear-gradient(180deg, rgba(246,225,182,0.96), rgba(203,170,116,0.96));
}


/* v1.8.0 — mestres revistos, figuras distintas e efeitos exclusivos */
.tradition-card {
  --master-accent: var(--guide-glow);
  --master-shadow: rgba(0,0,0,.78);
  min-height: 238px;
  grid-template-columns: 154px 1fr;
  border-color: color-mix(in srgb, var(--master-accent) 42%, rgba(227,166,70,.18));
  background: linear-gradient(106deg, rgba(7,4,2,.96), rgba(18,9,4,.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015), 0 18px 36px rgba(0,0,0,.24);
}
.tradition-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--master-accent) 78%, #fff0c8);
  box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 24px color-mix(in srgb, var(--master-accent) 34%, transparent);
}
.tradition-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--master-accent) 86%, #fff2ce);
  background: linear-gradient(108deg, color-mix(in srgb, var(--guide-deep) 86%, #050301), rgba(8,4,2,.94));
  box-shadow: 0 20px 46px rgba(0,0,0,.38), 0 0 30px color-mix(in srgb, var(--master-accent) 42%, transparent), inset 0 0 34px rgba(255,255,255,.02);
}
.figure-frame {
  min-height: 238px;
  isolation: isolate;
  background: #050302;
}
.figure-frame img {
  animation: none !important;
  transform: scale(1.045);
  filter: saturate(1.02) contrast(1.07) brightness(.98);
  will-change: transform, filter;
}
.figure-frame::before,
.figure-frame::after,
.tradition-card::before,
.tradition-card::after,
.culture-magic,
.culture-magic::before,
.culture-magic::after {
  animation: none;
}
.figure-frame::after {
  z-index: 5;
  background: linear-gradient(90deg, transparent 42%, rgba(7,4,2,.2) 65%, rgba(7,4,2,.9) 100%);
}
.tradition-card::before,
.tradition-card::after {
  z-index: 3;
  opacity: 0;
  transition: opacity 360ms ease;
}
.tradition-card:hover::before,
.tradition-card:hover::after,
.tradition-card:has(input:checked)::before,
.tradition-card:has(input:checked)::after {
  opacity: 1;
}
.culture-magic {
  left: 122px;
  width: 78px;
  height: 78px;
  opacity: .58;
  border-color: color-mix(in srgb, var(--master-accent) 72%, transparent);
  color: color-mix(in srgb, var(--master-accent) 90%, #fff5d7);
  box-shadow: 0 0 24px color-mix(in srgb, var(--master-accent) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--master-accent) 35%, transparent);
}
.tradition-card:has(input:checked) .culture-magic { opacity: .94; }

/* Kamba — brasas ascendentes e pulsação ancestral, sem rotação */
.tradition-africana { --master-accent: rgba(255,151,48,.8); }
.tradition-africana .figure-frame img {
  animation: kamba-presence 8.8s cubic-bezier(.45,0,.25,1) infinite alternate !important;
}
.tradition-africana::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 88%, rgba(255,176,73,.88) 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 24% 76%, rgba(255,102,28,.74) 0 1.2px, transparent 2.1px),
    radial-gradient(circle at 34% 94%, rgba(255,205,110,.68) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 18% 62%, rgba(255,123,34,.62) 0 1px, transparent 2px);
  background-size: 54px 82px, 72px 96px, 83px 112px, 64px 91px;
  animation: kamba-embers 7.2s linear infinite;
  pointer-events: none;
}
.tradition-africana::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,150,42,.22), transparent 66%);
  animation: kamba-heat 4.6s ease-in-out infinite;
  pointer-events: none;
}
.tradition-africana .culture-magic {
  border-radius: 50%;
  animation: kamba-drum 3.8s ease-in-out infinite;
}
.tradition-africana .culture-magic::before {
  border-radius: 50%;
  transform: none;
}
.tradition-africana .culture-magic::after {
  inset: 34%;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
}

/* Samara — lua, véu violeta e cristal pulsante */
.tradition-europeia { --master-accent: rgba(219,102,255,.82); }
.tradition-europeia .figure-frame img {
  object-position: 50% 38%;
  animation: samara-veil 11s ease-in-out infinite alternate !important;
}
.tradition-europeia::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, transparent 0 21px, rgba(240,207,255,.38) 22px 25px, transparent 26px),
    radial-gradient(circle at 18% 18%, rgba(186,79,233,.22), transparent 78px),
    linear-gradient(118deg, transparent 6%, rgba(151,59,196,.08) 36%, rgba(231,170,255,.14) 48%, transparent 62%);
  animation: samara-moon 9.5s ease-in-out infinite;
  pointer-events: none;
}
.tradition-europeia::after {
  content: "";
  position: absolute;
  inset: -25% 24% -25% -18%;
  background: linear-gradient(112deg, transparent 30%, rgba(234,190,255,.18) 47%, transparent 61%);
  filter: blur(8px);
  animation: samara-shimmer 7.8s ease-in-out infinite;
  pointer-events: none;
}
.tradition-europeia .culture-magic {
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, rgba(255,255,255,.48), rgba(167,67,213,.22) 22%, rgba(49,7,68,.62) 72%);
  animation: samara-orb 5.2s ease-in-out infinite;
}
.tradition-europeia .culture-magic::before {
  inset: 18%;
  border-radius: 50%;
  transform: none;
  opacity: .32;
}
.tradition-europeia .culture-magic::after {
  inset: 42% 16% auto 16%;
  height: 1px;
  border: 0;
  background: rgba(255,235,255,.65);
  animation: samara-glint 3.9s ease-in-out infinite;
}

/* Nyméria — luzes florestais e corrente de folhas */
.tradition-elfica { --master-accent: rgba(117,244,166,.82); }
.tradition-elfica .figure-frame img {
  object-position: 50% 30%;
  animation: nymeria-canopy 13s ease-in-out infinite alternate !important;
}
.tradition-elfica::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 28%, rgba(191,255,202,.78) 0 1px, transparent 2px),
    radial-gradient(circle at 25% 62%, rgba(101,255,166,.68) 0 1.2px, transparent 2.3px),
    radial-gradient(circle at 34% 18%, rgba(232,255,190,.62) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 86%, rgba(117,255,196,.58) 0 1.2px, transparent 2.2px);
  background-size: 67px 79px, 91px 103px, 83px 97px, 72px 88px;
  animation: nymeria-fireflies 10.4s ease-in-out infinite;
  pointer-events: none;
}
.tradition-elfica::after {
  content: "";
  position: absolute;
  left: -4%;
  top: 12%;
  width: 190px;
  height: 170px;
  background: conic-gradient(from 210deg, transparent, rgba(74,211,128,.18), transparent 38%);
  border-radius: 60% 40% 62% 38%;
  filter: blur(8px);
  animation: nymeria-leafstream 12s ease-in-out infinite;
  pointer-events: none;
}
.tradition-elfica .culture-magic {
  clip-path: polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%);
  border-radius: 0;
  animation: nymeria-star 6.3s ease-in-out infinite;
}
.tradition-elfica .culture-magic::before {
  clip-path: inherit;
  border: 0;
  background: currentColor;
  opacity: .16;
  transform: none;
}
.tradition-elfica .culture-magic::after {
  inset: 34%;
  border-radius: 50%;
  background: rgba(225,255,220,.5);
  border: 0;
}

/* Morgana — portal rúnico e fogo violeta, figura claramente distinta de Samara */
.tradition-antiga { --master-accent: rgba(218,75,255,.86); }
.tradition-antiga .figure-frame img {
  object-position: 50% 28%;
  animation: morgana-dominion 9.8s cubic-bezier(.45,0,.2,1) infinite alternate !important;
}
.tradition-antiga::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 152px;
  height: 152px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(228,98,255,.28) 0 2deg, transparent 2deg 13deg),
    radial-gradient(circle, transparent 0 44%, rgba(203,61,240,.34) 45% 47%, transparent 48% 61%, rgba(133,34,182,.28) 62% 64%, transparent 65%);
  animation: morgana-portal 16s linear infinite;
  pointer-events: none;
}
.tradition-antiga::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 74%, rgba(249,89,255,.26), transparent 28%);
  animation: morgana-flame 4.8s ease-in-out infinite;
  pointer-events: none;
}
.tradition-antiga .culture-magic {
  border-radius: 8%;
  transform: translate(-50%,-50%) rotate(45deg);
  animation: morgana-sigil 5.8s steps(1,end) infinite;
}
.tradition-antiga .culture-magic::before {
  inset: 20%;
  transform: rotate(45deg);
}
.tradition-antiga .culture-magic::after {
  inset: 38%;
  border-radius: 50%;
  background: currentColor;
  border: 0;
  opacity: .38;
}

/* Tarik — geometria celeste; mantém a assinatura visual mais forte */
.tradition-islamica { --master-accent: rgba(94,222,255,.86); }
.tradition-islamica .figure-frame img {
  object-position: 50% 30%;
  animation: tarik-focus 10.5s ease-in-out infinite alternate !important;
}
.tradition-islamica::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 168px;
  height: 168px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(117,237,255,.33) 0 1.4deg, transparent 1.4deg 15deg),
    radial-gradient(circle, transparent 0 24%, rgba(117,237,255,.26) 25% 26%, transparent 27% 46%, rgba(117,237,255,.2) 47% 48%, transparent 49%);
  animation: tarik-geometry 18s linear infinite;
  pointer-events: none;
}
.tradition-islamica::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 50%;
  width: 116px;
  height: 116px;
  transform: translateY(-50%);
  background: conic-gradient(from 45deg, transparent 0 12.5%, rgba(136,241,255,.2) 12.5% 13%, transparent 13% 37.5%, rgba(136,241,255,.2) 37.5% 38%, transparent 38% 62.5%, rgba(136,241,255,.2) 62.5% 63%, transparent 63% 87.5%, rgba(136,241,255,.2) 87.5% 88%, transparent 88%);
  animation: tarik-geometry-reverse 12s linear infinite;
  pointer-events: none;
}
.tradition-islamica .culture-magic {
  border-radius: 8%;
  transform: translate(-50%,-50%) rotate(45deg);
  animation: tarik-lattice 5.6s ease-in-out infinite;
}
.tradition-islamica .culture-magic::before {
  border-radius: 50%;
  transform: none;
}
.tradition-islamica .culture-magic::after {
  inset: 28%;
  border-radius: 0;
  transform: rotate(45deg);
}

/* Tara — quietude, halo respirante e lótus ascendente */
.tradition-budista { --master-accent: rgba(255,202,87,.86); }
.tradition-budista .figure-frame img {
  object-position: 50% 30%;
  animation: tara-stillness 14s ease-in-out infinite alternate !important;
}
.tradition-budista::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 148px;
  height: 148px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,221,137,.28) 0 13%, rgba(255,195,61,.13) 29%, transparent 64%);
  animation: tara-halo 6.8s ease-in-out infinite;
  pointer-events: none;
}
.tradition-budista::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 90%, rgba(255,221,132,.36) 0 4px, transparent 5px),
    radial-gradient(ellipse at 28% 76%, rgba(255,196,67,.28) 0 3px, transparent 4px),
    radial-gradient(ellipse at 35% 92%, rgba(255,234,167,.28) 0 3px, transparent 4px);
  background-size: 90px 125px, 110px 150px, 130px 170px;
  animation: tara-lotusrise 12s linear infinite;
  pointer-events: none;
}
.tradition-budista .culture-magic {
  border-radius: 50% 0 50% 0;
  transform: translate(-50%,-50%) rotate(45deg);
  animation: tara-lotus 6.6s ease-in-out infinite;
}
.tradition-budista .culture-magic::before {
  border-radius: 50% 0 50% 0;
  transform: rotate(90deg);
}
.tradition-budista .culture-magic::after {
  inset: 34%;
  border-radius: 50%;
  background: rgba(255,241,190,.38);
  border: 0;
}

@keyframes kamba-presence {
  from { transform: scale(1.045) translateY(.6%); filter: saturate(1.02) contrast(1.08) brightness(.96); }
  to { transform: scale(1.085) translateY(-1.4%); filter: saturate(1.09) contrast(1.11) brightness(1.02); }
}
@keyframes kamba-embers {
  from { background-position: 0 60px, 12px 82px, 30px 100px, 4px 76px; }
  to { background-position: 4px -110px, 26px -94px, 42px -126px, 18px -88px; }
}
@keyframes kamba-heat { 0%,100% { opacity:.42; transform:translateY(-50%) scale(.9); } 50% { opacity:.9; transform:translateY(-50%) scale(1.08); } }
@keyframes kamba-drum { 0%,100% { transform:translate(-50%,-50%) scale(.88); } 16% { transform:translate(-50%,-50%) scale(1.08); } 26% { transform:translate(-50%,-50%) scale(.96); } 42% { transform:translate(-50%,-50%) scale(1.04); } }

@keyframes samara-veil { from { transform:scale(1.05) translateX(-1.2%); filter:saturate(1.04) contrast(1.06); } to { transform:scale(1.095) translateX(1.3%) translateY(-1%); filter:saturate(1.12) contrast(1.1) brightness(1.03); } }
@keyframes samara-moon { 0%,100% { transform:translate(-3%,2%) scale(.96); opacity:.55; } 50% { transform:translate(3%,-2%) scale(1.05); opacity:1; } }
@keyframes samara-shimmer { 0%,100% { transform:translateX(-28%) skewX(-8deg); opacity:.08; } 48% { opacity:.34; } 62% { transform:translateX(44%) skewX(-8deg); opacity:.12; } }
@keyframes samara-orb { 0%,100% { transform:translate(-50%,-50%) scale(.9); filter:brightness(.86); } 50% { transform:translate(-50%,-50%) scale(1.08); filter:brightness(1.34); } }
@keyframes samara-glint { 0%,100% { transform:translateX(-16%) rotate(-12deg); opacity:.18; } 50% { transform:translateX(18%) rotate(10deg); opacity:.9; } }

@keyframes nymeria-canopy { from { transform:scale(1.05) translate(-.8%,.8%); filter:saturate(1.02) contrast(1.05); } to { transform:scale(1.1) translate(1.1%,-1.6%); filter:saturate(1.16) contrast(1.09) brightness(1.04); } }
@keyframes nymeria-fireflies { 0%,100% { background-position:0 0, 14px 30px, 28px 12px, 7px 44px; opacity:.46; } 50% { background-position:18px -28px, -8px 4px, 42px -18px, 22px 12px; opacity:1; } }
@keyframes nymeria-leafstream { 0%,100% { transform:translate(-8%,4%) rotate(-8deg); opacity:.28; } 50% { transform:translate(12%,-6%) rotate(12deg); opacity:.78; } }
@keyframes nymeria-star { 0%,100% { transform:translate(-50%,-50%) scale(.86); filter:brightness(.9); } 50% { transform:translate(-50%,-50%) scale(1.12); filter:brightness(1.38); } }

@keyframes morgana-dominion { from { transform:scale(1.045); filter:saturate(1.02) contrast(1.12) brightness(.92); } to { transform:scale(1.09) translateY(-1.4%); filter:saturate(1.14) contrast(1.15) brightness(1.02); } }
@keyframes morgana-portal { to { transform:translateY(-50%) rotate(360deg); } }
@keyframes morgana-flame { 0%,100% { opacity:.32; filter:blur(4px); } 50% { opacity:.88; filter:blur(9px) brightness(1.25); } }
@keyframes morgana-sigil { 0%,16%,100% { opacity:.5; filter:brightness(.8); } 17%,42% { opacity:1; filter:brightness(1.5); } 43%,70% { opacity:.7; filter:brightness(1.05); } 71% { opacity:1; filter:brightness(1.4); } }

@keyframes tarik-focus { from { transform:scale(1.045); filter:saturate(1.01) contrast(1.08); } to { transform:scale(1.075) translateY(-.8%); filter:saturate(1.08) contrast(1.12) brightness(1.03); } }
@keyframes tarik-geometry { to { transform:translateY(-50%) rotate(360deg); } }
@keyframes tarik-geometry-reverse { to { transform:translateY(-50%) rotate(-360deg); } }
@keyframes tarik-lattice { 0%,100% { transform:translate(-50%,-50%) rotate(45deg) scale(.88); filter:brightness(.86); } 50% { transform:translate(-50%,-50%) rotate(45deg) scale(1.1); filter:brightness(1.42); } }

@keyframes tara-stillness { from { transform:scale(1.045); filter:saturate(.98) contrast(1.04) brightness(.98); } to { transform:scale(1.065) translateY(-.5%); filter:saturate(1.04) contrast(1.06) brightness(1.035); } }
@keyframes tara-halo { 0%,100% { opacity:.42; transform:translateY(-50%) scale(.82); } 50% { opacity:1; transform:translateY(-50%) scale(1.12); } }
@keyframes tara-lotusrise { from { background-position:0 80px, 12px 120px, 24px 150px; opacity:.32; } to { background-position:6px -160px, 22px -120px, 36px -180px; opacity:.78; } }
@keyframes tara-lotus { 0%,100% { transform:translate(-50%,-50%) rotate(45deg) scale(.84); filter:brightness(.88); } 50% { transform:translate(-50%,-50%) rotate(45deg) scale(1.12); filter:brightness(1.36); } }

@media (max-width: 900px) {
  .tradition-card { grid-template-columns: 126px 1fr; min-height: 210px; }
  .figure-frame { min-height: 210px; }
  .culture-magic { left: 98px; width: 62px; height: 62px; }
}
@media (max-width: 620px) {
  .tradition-card { grid-template-columns: 108px 1fr; min-height: 192px; }
  .figure-frame { min-height: 192px; }
  .culture-magic { left: 84px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .tradition-card *,
  .tradition-card::before,
  .tradition-card::after { animation: none !important; }
}
