/* V152 lightweight rune animation.
   Safe version: one sign, 8-12 flying runes per active line, line-level translation. */

html{
  overflow-y:auto !important;
  overflow-x:hidden !important;
}

body.oracle-chur-test-page-v140{
  min-height:100vh;
  overflow-y:visible !important;
  overflow-x:hidden !important;
  background:
    radial-gradient(circle at 50% 8%, rgba(233,210,160,.08), transparent 32%),
    radial-gradient(circle at 50% 38%, rgba(70,98,130,.10), transparent 44%),
    #050a14;
  color:#f7e8c4;
}

.oracle-chur-test-v140{
  width:min(1160px, calc(100% - 32px));
  margin:0 auto;
  padding:58px 0 96px;
}

.oracle-chur-test-hero-v140{
  text-align:center;
  max-width:940px;
  margin:0 auto 28px;
  padding:24px;
}

.oracle-chur-test-kicker-v140{
  color:#d8b36e;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:13px;
  margin-bottom:10px;
}

.oracle-chur-test-hero-v140 h1{
  margin:0 0 14px;
  font-family:Forum, Georgia, serif;
  font-size:clamp(44px, 7vw, 88px);
  line-height:.95;
  font-weight:400;
  color:#fff0c8;
  text-shadow:0 0 28px rgba(233,210,160,.12);
}

.oracle-chur-test-hero-v140 p{
  max-width:780px;
  margin:0 auto;
  color:rgba(255,241,210,.76);
  font-size:18px;
  line-height:1.62;
}

.oracle-chur-test-actions-v140{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:24px;
}

.oracle-chur-test-btn-v140{
  min-height:52px;
  padding:0 24px;
  border-radius:999px;
  border:1px solid rgba(233,210,160,.55);
  background:linear-gradient(135deg, rgba(212,170,99,.28), rgba(104,38,55,.20));
  color:#fff4d4;
  cursor:pointer;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  box-shadow:0 16px 42px rgba(0,0,0,.28);
  transition:.22s ease;
}

.oracle-chur-test-btn-v140:hover{
  transform:translateY(-2px);
  border-color:rgba(233,210,160,.88);
  box-shadow:0 20px 54px rgba(212,170,99,.16);
}

.oracle-chur-test-btn-v140.secondary{
  background:rgba(0,0,0,.20);
  border-color:rgba(233,210,160,.30);
}

.oracle-chur-test-stage-wrap-v140{
  border-radius:30px;
  border:1px solid rgba(233,210,160,.22);
  background:
    radial-gradient(circle at 15% 15%, rgba(233,210,160,.08), transparent 32%),
    rgba(5,9,17,.68);
  box-shadow:0 22px 70px rgba(0,0,0,.28);
  backdrop-filter:blur(8px);
  padding:24px;
  overflow:visible !important;
}

.oracle-chur-result-v140{
  min-height:680px;
  overflow:visible !important;
}

.oracle-chur-placeholder-v140{
  min-height:440px;
  display:grid;
  place-items:center;
  text-align:center;
  color:rgba(255,241,210,.58);
  border-radius:24px;
  border:1px dashed rgba(233,210,160,.22);
}

/* Main shell */
.oracle-v152-shell{
  position:relative;
  min-height:780px;
  padding:28px 0 42px;
  border-radius:30px;
  border:1px solid rgba(233,210,160,.28);
  background:
    radial-gradient(circle at 50% 38%, rgba(233,210,160,.10), transparent 30%),
    radial-gradient(circle at 50% 42%, rgba(0,0,0,.82), rgba(8,12,22,.64) 39%, rgba(5,10,20,.96) 100%);
  box-shadow:
    0 24px 70px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.045);
  overflow:hidden !important;
}

.oracle-v152-shell::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg, transparent 0 47%, rgba(233,210,160,.035) 48%, transparent 50%),
    linear-gradient(60deg, transparent 0 49%, rgba(151,191,230,.028) 50%, transparent 52%);
  opacity:.38;
  pointer-events:none;
}

.oracle-v152-stage{
  position:relative;
  width:430px;
  height:450px;
  margin:0 auto;
  display:grid;
  place-items:center;
  z-index:3;
  perspective:1150px;
  perspective-origin:50% 50%;
  pointer-events:none;
}

.oracle-v152-halo{
  position:absolute;
  width:318px;
  height:318px;
  border-radius:50%;
  border:1px solid rgba(233,210,160,.055);
  background:radial-gradient(circle at 50% 50%, rgba(233,210,160,.08), transparent 60%);
  box-shadow:
    0 0 74px rgba(233,210,160,.075),
    inset 0 0 34px rgba(233,210,160,.025);
  opacity:.34;
  animation:oracleV152Halo 4s ease-in-out infinite;
}

.oracle-v152-sign{
  position:relative;
  width:300px;
  height:394px;
  transform-origin:50% 50%;
  transform-style:preserve-3d;
  filter:drop-shadow(0 0 24px rgba(233,210,160,.24));
}

.oracle-v152-rune{
  position:absolute;
  left:var(--x);
  top:var(--y);
  transform:
    translate(-50%, -50%)
    translate(var(--sx), var(--sy))
    rotate(var(--r))
    scale(.62);
  color:rgba(244,226,184,.88);
  font-size:var(--s);
  line-height:1;
  text-shadow:
    0 0 10px rgba(233,210,160,.72),
    0 0 24px rgba(207,161,91,.30),
    0 0 44px rgba(207,161,91,.12);
  opacity:0;
  filter:blur(.25px);
  will-change:transform, opacity, filter;
}

.oracle-v152-rune.is-node{
  color:#fff0c8;
  font-size:calc(var(--s) + 3px);
  text-shadow:
    0 0 14px rgba(255,236,190,.84),
    0 0 34px rgba(207,161,91,.34);
}

.oracle-v152-rune.is-assemble{
  animation:oracleV152Assemble 1.05s cubic-bezier(.2,.82,.22,1) forwards;
  animation-delay:var(--d);
}

.oracle-v152-rune.is-set{
  opacity:.94;
  transform:translate(-50%, -50%) translate(0,0) rotate(var(--r)) scale(1);
  filter:blur(0);
}

.oracle-v152-rune.is-leave{
  animation:oracleV152Leave 1.9s cubic-bezier(.22,.72,.2,1) forwards;
  animation-delay:var(--rd);
}

.oracle-v152-wait{
  position:absolute;
  left:24px;
  right:24px;
  top:500px;
  z-index:4;
  text-align:center;
  color:rgba(255,241,210,.78);
  line-height:1.55;
  transition:opacity .7s ease, transform .7s ease;
}

.oracle-v152-shell.is-decoding .oracle-v152-wait{
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
}

.oracle-v152-wait b{
  display:block;
  margin-bottom:5px;
  font-family:Forum, Georgia, serif;
  font-size:32px;
  font-weight:400;
  color:#fff0c8;
}

.oracle-v152-wait span{
  font-size:15px;
  color:rgba(255,241,210,.66);
}

.oracle-v152-text{
  position:relative;
  z-index:2;
  max-width:920px;
  margin:92px auto 0;
  padding:0 28px;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .9s ease, transform .9s ease;
}

.oracle-v152-shell.is-decoding .oracle-v152-text{
  opacity:1;
  transform:translateY(0);
}

.oracle-v152-head{
  display:flex;
  align-items:center;
  margin:0 0 22px;
  opacity:0;
  animation:oracleV152HeadIn .8s ease forwards;
  animation-delay:.45s;
}

.oracle-v152-note{
  display:inline-flex;
  align-items:center;
  min-height:31px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(233,210,160,.30);
  background:rgba(0,0,0,.20);
  color:#ffe8ad;
  font-size:12px;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.oracle-v152-lines{
  position:relative;
}

.oracle-v152-completed{
  margin:0 0 1.1em;
  color:rgba(255,242,216,.94);
  font-size:19px;
  line-height:1.74;
  text-shadow:0 0 10px rgba(233,210,160,.055);
  animation:oracleV152CompletedIn .7s ease both;
}

.oracle-v152-active{
  position:relative;
  min-height:50px;
  margin:0 0 1.2em;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid rgba(233,210,160,.20);
  background:
    radial-gradient(circle at var(--glow-x, 42%) 50%, rgba(255,241,210,.11), transparent 18%),
    linear-gradient(90deg, rgba(0,0,0,.10), rgba(227,197,138,.065), rgba(0,0,0,.10));
  box-shadow:
    0 0 18px rgba(227,197,138,.055),
    inset 0 1px 0 rgba(255,255,255,.025);
  overflow:hidden;
  color:rgba(246,231,195,.86);
  font-size:19px;
  line-height:1.55;
  letter-spacing:.045em;
  text-shadow:
    0 0 10px rgba(255,244,212,.32),
    0 0 20px rgba(227,197,138,.14);
  animation:oracleV152ActiveIn .42s ease both;
}

.oracle-v152-active::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:8px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(246,231,195,.34), transparent);
  opacity:.45;
}

.oracle-v152-inner{
  position:relative;
  z-index:2;
}

.oracle-v152-slot{
  display:inline-block;
  opacity:0;
  min-width:.42em;
  transform:translateY(8px) scale(.96);
  filter:blur(3px);
}

.oracle-v152-slot.is-rune{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(.18px);
  animation:oracleV152RuneLand .42s ease both;
}

.oracle-v152-slot.is-human{
  color:rgba(255,242,216,.96);
  letter-spacing:0;
  text-shadow:0 0 10px rgba(233,210,160,.06);
  animation:oracleV152RuneToHuman .82s ease forwards;
}

.oracle-v152-space{
  display:inline;
  white-space:pre;
}

.oracle-v152-punct{
  display:inline;
  opacity:.75;
}

.oracle-v152-fly{
  position:absolute;
  left:0;
  top:0;
  z-index:24;
  color:#f6e7c3;
  font-size:18px;
  line-height:1;
  text-shadow:
    0 0 11px rgba(255,244,212,.58),
    0 0 24px rgba(227,197,138,.28),
    0 0 38px rgba(227,197,138,.13);
  opacity:0;
  pointer-events:none;
}

.oracle-v152-dust{
  position:absolute;
  left:0;
  top:0;
  z-index:22;
  width:3px;
  height:3px;
  border-radius:50%;
  background:rgba(246,231,195,.70);
  box-shadow:0 0 10px rgba(227,197,138,.30);
  opacity:0;
  pointer-events:none;
}

.oracle-v152-shell.is-decoding .oracle-v152-stage{
  animation:oracleV152StageGhost var(--stage-ghost-ms, 24000ms) ease forwards;
}

@keyframes oracleV152Assemble{
  0%{
    opacity:0;
    transform:translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(calc(var(--r) - 28deg)) scale(.58);
    filter:blur(4px);
  }
  72%{
    opacity:1;
    transform:translate(-50%, -50%) translate(0,0) rotate(var(--r)) scale(1.08);
    filter:blur(0);
  }
  100%{
    opacity:.94;
    transform:translate(-50%, -50%) translate(0,0) rotate(var(--r)) scale(1);
    filter:blur(0);
  }
}

@keyframes oracleV152Leave{
  0%{
    opacity:.94;
    transform:translate(-50%, -50%) translate(0,0) rotate(var(--r)) scale(1);
    filter:blur(0);
  }
  52%{
    opacity:.84;
    filter:blur(.35px);
  }
  100%{
    opacity:.11;
    transform:translate(-50%, -50%) translate(var(--sx), var(--sy)) rotate(calc(var(--r) - 28deg)) scale(.58);
    filter:blur(5px);
  }
}

@keyframes oracleV152Halo{
  0%,100%{ opacity:.30; transform:scale(.96); }
  50%{ opacity:.46; transform:scale(1.055); }
}

@keyframes oracleV152StageGhost{
  0%{ opacity:1; transform:scale(1); }
  82%{ opacity:.88; transform:scale(.99); }
  100%{ opacity:.54; transform:scale(.97); }
}

@keyframes oracleV152HeadIn{
  from{ opacity:0; transform:translateY(8px); filter:blur(3px); }
  to{ opacity:1; transform:translateY(0); filter:blur(0); }
}

@keyframes oracleV152ActiveIn{
  from{ opacity:0; transform:translateY(12px); filter:blur(6px); }
  to{ opacity:1; transform:translateY(0); filter:blur(0); }
}

@keyframes oracleV152RuneLand{
  0%{ opacity:0; transform:translateY(10px) scale(.92); filter:blur(6px); }
  70%{ opacity:1; transform:translateY(0) scale(1.08); filter:blur(.7px); }
  100%{ opacity:1; transform:translateY(0) scale(1); filter:blur(.18px); }
}

@keyframes oracleV152RuneToHuman{
  0%{ opacity:1; transform:translateY(0) scale(1); filter:blur(.18px); }
  42%{
    opacity:.86;
    transform:translateY(-2px) scale(1.04);
    filter:blur(2.4px);
    text-shadow:
      0 0 13px rgba(255,244,212,.42),
      0 0 26px rgba(227,197,138,.20);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
    letter-spacing:0;
  }
}

@keyframes oracleV152CompletedIn{
  from{ opacity:0; transform:translateY(8px); filter:blur(4px); }
  to{ opacity:1; transform:translateY(0); filter:blur(0); }
}

@media (max-width:760px){
  .oracle-v152-stage{
    width:330px;
    height:360px;
  }

  .oracle-v152-sign{
    width:230px;
    height:302px;
  }

  .oracle-v152-halo{
    width:270px;
    height:270px;
  }

  .oracle-v152-shell{
    min-height:720px;
  }

  .oracle-v152-wait{
    top:450px;
  }

  .oracle-v152-text{
    margin-top:88px;
    padding:0 18px;
  }

  .oracle-v152-active,
  .oracle-v152-completed{
    font-size:17px;
    line-height:1.68;
  }
}


/* V152: disabled compatibility file.
   All motion is controlled by oracle-chur-animation-test-v140.css/js. */


/* === Oracle main Chur integration V172 ===
   Production wrapper for /orakul-lei.html result area.
   Keeps V152 test mechanics visually intact, but prevents fullscreen/page hijack. */
.oracle-main-chur-v172{
  display:block;
  width:100%;
  max-width:1100px;
  margin:0 auto 28px;
  overflow:visible !important;
}
.oracle-main-chur-v172 .oracle-v152-shell{
  margin:0 auto;
  width:100%;
  min-height:760px;
}
.oracle-main-chur-v172 .oracle-v152-stage{ margin-top:6px; }
.oracle-main-chur-v172 .oracle-v152-lines{ min-height:80px; }
.oracle-main-chur-v172.is-waiting-answer .oracle-v152-wait span::after{ content:" Ответ уже ищет дорогу к словам."; }
.oracle-main-chur-v172.is-error .oracle-v152-shell{ min-height:360px; }
.oracle-main-chur-v172 .oracle-v152-error{
  max-width:760px;
  margin:80px auto 0;
  padding:22px 24px;
  border:1px solid rgba(233,210,160,.24);
  border-radius:24px;
  color:rgba(255,242,216,.92);
  background:rgba(0,0,0,.22);
  line-height:1.65;
  text-align:center;
}
.oracle-main-chur-v172 .oracle-v152-completed.is-rest-tail{ animation-delay:.15s; }
@media(max-width:720px){
  .oracle-main-chur-v172 .oracle-v152-shell{ min-height:680px; border-radius:22px; padding-top:14px; }
  .oracle-main-chur-v172 .oracle-v152-stage{ width:310px; height:360px; transform:scale(.86); transform-origin:50% 0; margin-bottom:-52px; }
  .oracle-main-chur-v172 .oracle-v152-wait{ top:380px; left:14px; right:14px; }
  .oracle-main-chur-v172 .oracle-v152-wait b{ font-size:25px; }
  .oracle-main-chur-v172 .oracle-v152-text{ margin-top:76px; padding:0 14px; }
  .oracle-main-chur-v172 .oracle-v152-completed,
  .oracle-main-chur-v172 .oracle-v152-active{ font-size:16px; line-height:1.68; }
  .oracle-main-chur-v172 .oracle-v152-active{ border-radius:18px; padding:10px 12px; }
}
