/* ИИ Оракул — карта дня / три карты (light + dark via html[data-theme]) */
.gpdi-oracle{
  width:100%;
  max-width:36rem;
  margin:0 auto;
  padding:0.5rem 0 2rem;
  color:var(--text,#2a2620);
}
.gpdi-oracle__stage{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:1rem;
}

/* Табы режимов */
.gpdi-oracle__tabs{
  width:100%;
  max-width:34rem;
  margin:0 auto .15rem;
}
.gpdi-oracle__tabs-track{
  position:relative;
  display:flex;
  gap:0;
  padding:0.18rem;
  border-radius:var(--radius-pill, 999px);
  background:color-mix(in srgb, var(--text,#2a2620) 6%, transparent);
  border:1px solid var(--border, rgba(42,36,28,.12));
}
.gpdi-oracle__tab{
  position:relative;
  z-index:1;
  flex:1 1 0;
  margin:0;
  padding:0.5rem 0.45rem;
  border:0;
  background:transparent;
  cursor:pointer;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:0.64rem;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--text-muted,#8c857c);
  transition:color .25s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.28rem;
  white-space:nowrap;
}
.gpdi-oracle__tab.is-active{
  color:var(--accent, #3dba7a);
}
.gpdi-oracle__tab.is-locked{
  color:var(--text-muted,#8c857c);
  opacity:.88;
}
.gpdi-oracle__tab-lock{
  flex:0 0 auto;
  opacity:.85;
}
.gpdi-oracle__tab-label{
  min-width:0;
}
/* Компактный попап «По Системе» — поверх страницы, в стиле gpdi-modal */
.gpdi-oracle-lock-modal.gpdi-modal{
  z-index:2147483000;
}
.gpdi-modal-dialog--oracle-lock{
  width:min(400px, 100%);
  padding:28px 28px 22px;
}
.gpdi-modal-dialog--oracle-lock .auth-modal-text{
  margin-bottom:1.15rem;
  font-size:.98rem;
}
.gpdi-oracle__tab-indicator{
  position:absolute;
  top:0.18rem;
  bottom:0.18rem;
  left:0;
  width:0;
  border-radius:var(--radius-pill, 999px);
  background:var(--accent-soft, rgba(61,186,122,.14));
  border:1px solid var(--accent-dim, rgba(61,186,122,.55));
  box-shadow:none;
  transition:transform .28s cubic-bezier(.22,.61,.36,1), width .28s cubic-bezier(.22,.61,.36,1);
  pointer-events:none;
  z-index:0;
}

/* Поле вопроса */
.gpdi-oracle__ask[hidden],
.gpdi-oracle__card[hidden],
.gpdi-oracle__spread[hidden],
.gpdi-oracle__spread--system[hidden],
.gpdi-oracle__shuffle-stage[hidden],
.gpdi-oracle__reading[hidden],
.gpdi-oracle__status[hidden],
.gpdi-oracle__error[hidden],
.gpdi-oracle__mic-warn[hidden]{
  display:none !important;
}
.gpdi-oracle__ask{
  width:100%;
  max-width:34rem;
  text-align:left;
}
.gpdi-oracle__ask-hint{
  margin:0 0 .55rem;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.82rem;
  line-height:1.45;
  color:var(--text-muted,#8c857c);
  text-align:center;
}
.gpdi-oracle__ask-row{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.55rem;
}
.gpdi-oracle__ask-field{
  position:relative;
  flex:0 0 auto;
  width:100%;
  margin:0;
  display:block;
}
.gpdi-oracle__ask-input{
  display:block;
  width:100%;
  box-sizing:border-box;
  min-height:3.1rem;
  resize:none;
  overflow-y:hidden;
  padding:.7rem 2.6rem .7rem .85rem;
  border:1px solid var(--border, rgba(42,36,28,.14));
  border-radius:var(--radius-md, 10px);
  background:var(--bg-elevated, #faf6ef);
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.92rem;
  line-height:1.45;
  color:var(--text,#2a2620);
}
.gpdi-oracle__ask-field.has-text .gpdi-oracle__ask-input{
  padding-right:.85rem;
}
.gpdi-oracle__mic[hidden]{
  display:none !important;
}
.gpdi-oracle__ask-input:focus{
  outline:none;
  border-color:var(--accent, #3dba7a);
  box-shadow:0 0 0 3px var(--accent-soft, rgba(61,186,122,.14));
}
.gpdi-oracle__ask-input::placeholder{
  color:var(--text-muted,#8c857c);
  opacity:.85;
}
.gpdi-oracle__ask-input.is-dictating{
  box-shadow:0 0 0 3px color-mix(in srgb, var(--danger, #c43a32) 22%, transparent);
  caret-color:var(--danger, #c43a32);
}
.gpdi-oracle__ask-field.is-voice-live .gpdi-oracle__ask-input,
.gpdi-oracle__ask-field.is-voice-done .gpdi-oracle__ask-input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
  resize:none;
  opacity:0;
  pointer-events:none;
}
.gpdi-oracle__wave{
  display:none;
  box-sizing:border-box;
  width:100%;
  min-height:3.1rem;
  padding:.35rem 2.6rem .35rem .55rem;
  border:1px solid var(--border, rgba(42,36,28,.14));
  border-radius:var(--radius-md, 10px);
  background:var(--bg-elevated, #faf6ef);
  overflow:hidden;
}
.gpdi-oracle__ask-field.is-voice-live .gpdi-oracle__wave,
.gpdi-oracle__ask-field.is-voice-done .gpdi-oracle__wave{
  display:block;
}
.gpdi-oracle__ask-field.is-voice-live .gpdi-oracle__wave{
  border-color:color-mix(in srgb, var(--danger, #c43a32) 55%, var(--border, rgba(42,36,28,.14)));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--danger, #c43a32) 18%, transparent);
}
.gpdi-oracle__ask-field.is-voice-done .gpdi-oracle__wave{
  border-color:color-mix(in srgb, var(--accent, #3dba7a) 40%, var(--border, rgba(42,36,28,.14)));
}
.gpdi-oracle__wave-canvas{
  display:block;
  width:100%;
  height:2.4rem;
  vertical-align:middle;
}
.gpdi-oracle__mic{
  position:absolute;
  right:.35rem;
  top:50%;
  transform:translateY(-50%);
  width:2.25rem;
  height:2.25rem;
  margin:0;
  padding:0;
  border:0;
  border-radius:var(--radius-pill, 999px);
  background:transparent;
  color:var(--text-muted,#8c857c);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease, width .15s ease;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-variant-numeric:tabular-nums;
}
.gpdi-oracle__mic:hover{ color:var(--text,#2a2620); }
.gpdi-oracle__mic-count{
  display:none;
  min-width:1.1em;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1;
  pointer-events:none;
}
.gpdi-oracle__mic.is-listening{
  color:#fff;
  background:var(--danger, #c43a32);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--danger, #c43a32) 35%, transparent),
    0 0 0 8px color-mix(in srgb, var(--danger, #c43a32) 14%, transparent);
  animation:gpdi-oracle-mic-pulse 1.15s ease-in-out infinite;
  transform:translateY(-50%) scale(1.08);
}
.gpdi-oracle__mic.is-listening.is-counting{
  width:2.55rem;
  height:2.55rem;
  animation:none;
}
.gpdi-oracle__mic.is-listening.is-counting .gpdi-oracle__mic-icon{
  display:none;
}
.gpdi-oracle__mic.is-listening.is-counting .gpdi-oracle__mic-count{
  display:inline-block;
}
.gpdi-oracle__mic.is-listening.is-counting.is-urgent{
  background:color-mix(in srgb, var(--danger, #c43a32) 82%, #000);
}
@keyframes gpdi-oracle-mic-pulse{
  0%,100%{
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--danger, #c43a32) 35%, transparent),
      0 0 0 8px color-mix(in srgb, var(--danger, #c43a32) 12%, transparent);
  }
  50%{
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--danger, #c43a32) 45%, transparent),
      0 0 0 14px color-mix(in srgb, var(--danger, #c43a32) 0%, transparent);
  }
}

.gpdi-oracle__mic-warn{
  margin-top:.7rem;
  padding:.85rem 1rem;
  border-radius:var(--radius-md, 10px);
  border:1px solid var(--border2, rgba(42,36,28,.18));
  background:var(--bg-elevated2, var(--bg-elevated, #efe8dc));
  text-align:left;
}
.gpdi-oracle__mic-warn-title{
  margin:0 0 .35rem;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.88rem;
  font-weight:650;
  color:var(--text,#2a2620);
}
.gpdi-oracle__mic-warn-text{
  margin:0 0 .75rem;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.84rem;
  line-height:1.45;
  color:var(--text2,#4a443c);
}
.gpdi-oracle__mic-warn-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
}
.gpdi-oracle__mic-warn-btn{
  margin:0;
  padding:.55rem 1rem;
  border:1px solid var(--border2, rgba(42,36,28,.18));
  border-radius:var(--radius-pill, 999px);
  background:transparent;
  color:var(--text,#2a2620);
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.78rem;
  font-weight:600;
  cursor:pointer;
  min-height:2.4rem;
}
.gpdi-oracle__mic-warn-btn.is-primary{
  border-color:transparent;
  background:var(--accent, #3dba7a);
  color:var(--on-accent, #06140d);
}
.gpdi-oracle__mic-warn-btn.is-primary:hover{
  filter:brightness(1.06);
}
.gpdi-oracle__mic-warn-btn:focus-visible{
  outline:2px solid var(--accent, #3dba7a);
  outline-offset:2px;
}

.gpdi-oracle__draw{
  flex:0 0 auto;
  align-self:stretch;
  box-sizing:border-box;
  margin:0;
  padding:0 1.25rem;
  border:0;
  border-radius:var(--radius-pill, 999px);
  background:var(--accent, #3dba7a);
  color:var(--on-accent, #06140d);
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
  white-space:nowrap;
  width:100%;
  height:3.1rem;
  min-height:3.1rem;
  max-height:3.1rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.gpdi-oracle__draw:disabled{
  opacity:.55;
  cursor:wait;
}
.gpdi-oracle__draw:hover:not(:disabled){
  filter:brightness(1.06);
}
.gpdi-oracle__draw:focus-visible{
  outline:2px solid var(--accent, #3dba7a);
  outline-offset:2px;
}

.gpdi-oracle__board{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  position:relative;
  min-height:12rem;
}
/* Колода поверх расклада — не толкает цитаты вниз */
.gpdi-oracle__shuffle-stage{
  position:absolute;
  left:50%;
  top:42%;
  transform:translate(-50%, -50%);
  width:10.5rem;
  margin:0;
  z-index:6;
  overflow:visible;
  pointer-events:none;
}
.gpdi-oracle.is-shuffling .gpdi-oracle__shuffle-stage{
  width:11.25rem;
}
/* Overhand peels go fully aside — give the stage room so packs are not clipped */
.gpdi-oracle.is-shuffling .gpdi-oracle__shuffle-stage:has(.is-overhand),
.gpdi-oracle.is-shuffling .gpdi-oracle__shuffle--deck.is-overhand,
.gpdi-oracle.is-shuffling #deck.is-overhand{
  width:22rem;
  max-width:22rem;
  overflow:visible;
}
.gpdi-oracle__shuffle-stage[hidden]{
  display:none !important;
}
.gpdi-oracle__card{
  margin:0;
  width:min(100%, 9rem);
}
.gpdi-oracle__card-frame{
  position:relative;
  aspect-ratio:2 / 3.45;
  border-radius:var(--radius-sm, 6px);
  overflow:hidden;
  background:color-mix(in srgb, var(--accent, #3dba7a) 28%, #0a1a12);
  box-shadow:var(--shadow-md, 0 4px 16px rgba(0,0,0,.12));
}
.gpdi-oracle__card-frame.is-loading{
  overflow:visible;
  background:transparent;
  box-shadow:none;
}
.gpdi-oracle__img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:var(--radius-sm, 6px);
  background:color-mix(in srgb, var(--accent, #3dba7a) 28%, #0a1a12);
  transition:transform .45s ease;
}
.gpdi-oracle__img.is-reversed{
  transform:rotate(180deg);
}
.gpdi-oracle__caption{
  margin:.55rem 0 0;
  font-family:var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size:1.05rem;
  font-weight:600;
  color:var(--text,#2a2620);
}

/* Расклад «Три карты»: S над 2, ряд 1–2–3 */
.gpdi-oracle__spread--three{
  width:100%;
  max-width:34rem;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  grid-template-areas:
    ". s ."
    "p1 p2 p3";
  gap:.55rem .7rem;
  align-items:start;
  justify-items:center;
}
/* Расклад «По Системе»: 5 карт в ряд */
.gpdi-oracle[data-spread="by_system"]{
  max-width:44rem;
}
.gpdi-oracle__spread--system{
  width:100%;
  max-width:42rem;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:.4rem .4rem;
  align-items:start;
  justify-items:center;
}
.gpdi-oracle.is-shuffling[data-spread="three_card"] .gpdi-oracle__spread--three,
.gpdi-oracle.has-center-deck[data-spread="three_card"] .gpdi-oracle__spread--three,
.gpdi-oracle.is-shuffling[data-spread="by_system"] .gpdi-oracle__spread--system,
.gpdi-oracle.has-center-deck[data-spread="by_system"] .gpdi-oracle__spread--system{
  opacity:.58;
  filter:blur(.55px) saturate(.95);
  pointer-events:none;
}
.gpdi-oracle.is-shuffling[data-spread="three_card"] .gpdi-oracle__shuffle-stage,
.gpdi-oracle.has-center-deck[data-spread="three_card"] .gpdi-oracle__shuffle-stage,
.gpdi-oracle.is-shuffling[data-spread="by_system"] .gpdi-oracle__shuffle-stage,
.gpdi-oracle.has-center-deck[data-spread="by_system"] .gpdi-oracle__shuffle-stage{
  display:block !important;
}
.gpdi-oracle[data-spread="three_card"] .gpdi-oracle__board{
  min-height:20rem;
}
.gpdi-oracle[data-spread="by_system"] .gpdi-oracle__board{
  min-height:16rem;
}
@media (max-width:520px){
  .gpdi-oracle[data-spread="three_card"] .gpdi-oracle__board{ min-height:17rem; }
  .gpdi-oracle[data-spread="by_system"] .gpdi-oracle__board{ min-height:14rem; }
  .gpdi-oracle__shuffle-stage{ width:9.5rem; top:38%; }
  .gpdi-oracle.is-shuffling .gpdi-oracle__shuffle-stage{ width:10.25rem; }
  .gpdi-oracle__slot{ max-width:6.2rem; }
  .gpdi-oracle__spread--system .gpdi-oracle__slot{ max-width:4.6rem; }
  .gpdi-oracle__spread--system .gpdi-oracle__slot-label{ font-size:.58rem; letter-spacing:.03em; }
}
.gpdi-oracle__slot--s{ grid-area:s; }
.gpdi-oracle__slot--1{ grid-area:p1; }
.gpdi-oracle__slot--2{ grid-area:p2; }
.gpdi-oracle__slot--3{ grid-area:p3; }
.gpdi-oracle__spread--system .gpdi-oracle__slot{
  max-width:6.6rem;
}
.gpdi-oracle__slot{
  width:100%;
  max-width:7.2rem;
  margin:0;
}
.gpdi-oracle__slot-frame{
  position:relative;
  aspect-ratio:2 / 3.45;
  border-radius:var(--radius-sm, 6px);
  overflow:hidden;
  background:color-mix(in srgb, var(--text, #2a2620) 8%, var(--bg-elevated2, #efe8dc));
  box-shadow:0 8px 18px var(--shadow-md, rgba(20,14,8,.14));
}
.gpdi-oracle__slot-frame.is-empty{
  background:color-mix(in srgb, var(--text,#2a2620) 5%, transparent);
  box-shadow:inset 0 0 0 1px var(--border, rgba(42,36,28,.12));
}
.gpdi-oracle__slot-frame .gpdi-oracle__img{
  border-radius:var(--radius-sm, 6px);
}
.gpdi-oracle__slot-label{
  margin:.4rem 0 0;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.68rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-muted,#8c857c);
}
.gpdi-oracle__slot-label span{
  display:inline-block;
  min-width:1.1em;
  font-weight:700;
  color:var(--text,#2a2620);
}
.gpdi-oracle__slot-caption{
  margin:.2rem 0 0;
  font-family:var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size:.92rem;
  font-weight:600;
  line-height:1.25;
  color:var(--text,#2a2620);
  min-height:1.2em;
}

.gpdi-oracle__reading{
  width:100%;
  max-width:34rem;
  text-align:left;
  margin-top:.5rem;
}
.gpdi-oracle[data-spread="by_system"] .gpdi-oracle__reading{
  max-width:42rem;
}
.gpdi-oracle__text{
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.98rem;
  line-height:1.65;
  color:var(--text2,#4a443c);
}
.gpdi-oracle__text p{margin:0 0 .85rem}
.gpdi-oracle__text p:last-child{margin-bottom:0}
.gpdi-oracle__text-h{
  margin:1.15rem 0 .45rem;
  font-family:var(--font-display, Georgia, "Times New Roman", serif);
  font-size:1.05rem;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--text,#2a2620);
}
.gpdi-oracle__text-h:first-child{margin-top:0}
.gpdi-oracle__status,
.gpdi-oracle__error{
  margin:0;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.9rem;
}
.gpdi-oracle__status{
  color:var(--text-muted,#8c857c);
  max-width:28rem;
  min-height:0;
  transition:opacity .35s ease;
  width:100%;
  margin:.65rem auto 0;
  text-align:center;
  position:relative;
  z-index:7;
  line-height:1.45;
  overflow:visible;
}
.gpdi-oracle__status:not([hidden]){
  min-height:2.8em;
}
/* Во время тасовки — под колодой, целиком читаемо (не absolute поверх низа) */
.gpdi-oracle.is-shuffling .gpdi-oracle__status:not([hidden]){
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  margin:1.35rem auto .35rem;
  min-height:2.8em;
  padding:.15rem .5rem .55rem;
  z-index:8;
  background:transparent;
}
.gpdi-oracle.is-shuffling .gpdi-oracle__board{
  padding-bottom:.35rem;
  overflow:visible;
}
@media (max-width:520px){
  .gpdi-oracle.is-shuffling .gpdi-oracle__status:not([hidden]){
    margin-top:1.1rem;
    font-size:.86rem;
  }
}
.gpdi-oracle__status.is-swap{opacity:0}
.gpdi-oracle__status.is-question{
  color:var(--text2,#4a443c);
}
.gpdi-oracle__status.is-fact{
  font-size:.86rem;
  line-height:1.45;
}
.gpdi-oracle.is-ready .gpdi-oracle__status,
.gpdi-oracle:not(.is-shuffling) .gpdi-oracle__status:empty{
  display:none;
}
.gpdi-oracle__error{color:var(--danger,#a33);max-width:28rem}
.gpdi-oracle__disclaimer{
  width:100%;
  max-width:34rem;
  margin:1.75rem auto 0;
  padding:1rem 0 0;
  border-top:1px solid var(--border, rgba(42,36,28,.12));
  text-align:left;
}
.gpdi-oracle__disclaimer p{
  margin:0 0 .65rem;
  font-family:var(--font-ui, Montserrat, system-ui, sans-serif);
  font-size:.78rem;
  line-height:1.55;
  color:var(--text-muted,#8c857c);
}
.gpdi-oracle__disclaimer p:last-child{margin-bottom:0}
.gpdi-oracle__disclaimer-lead{
  color:var(--text2,#4a443c) !important;
  font-weight:500;
}
.gpdi-oracle[data-spread="by_system"] .gpdi-oracle__disclaimer{
  max-width:42rem;
}
html[data-theme="dark"] .gpdi-oracle__disclaimer{
  border-top-color:rgba(255,255,255,.08);
}
.gpdi-oracle.is-nonblock .gpdi-oracle__stage{
  pointer-events:none;
}
.gpdi-oracle.is-nonblock.is-ready .gpdi-oracle__stage,
.gpdi-oracle[data-spread="three_card"] .gpdi-oracle__stage,
.gpdi-oracle[data-spread="by_system"] .gpdi-oracle__stage{
  pointer-events:auto;
}
.gpdi-oracle--live{
  max-width:28rem;
  margin:1rem auto;
  text-align:center;
}
.gpdi-oracle__lead{
  font-family:var(--font-heading, "Cormorant Garamond", Georgia, serif);
  font-size:1.25rem;
  line-height:1.45;
}

/* ——— GSAP deck: 20 whole cards; timing only via GSAP timelines ——— */
.gpdi-oracle__shuffle,
#deck{
  position:relative;
  width:100%;
  aspect-ratio:2 / 3.45;
  margin:0 auto;
  overflow:visible;
  perspective:900px;
  perspective-origin:50% 45%;
  transform-style:preserve-3d;
}
.gpdi-oracle__shuffle--deck,
#deck{
  width:100%;
  max-width:9.25rem;
  overflow:visible;
}
.gpdi-oracle__shuffle-stage .gpdi-oracle__shuffle--deck,
.gpdi-oracle__shuffle-stage #deck{
  max-width:none;
}
.gpdi-oracle__shuffle .card,
#deck .card{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  box-sizing:border-box;
  margin:0;
  padding:0;
  border:0;
  border-radius:var(--radius-sm, 6px);
  background-color:color-mix(in srgb, var(--accent, #3dba7a) 36%, #0a1a12);
  background-image:var(--gpdi-oracle-back);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:0 3px 10px rgba(0,0,0,.22);
  transform-origin:50% 50%;
  transform-style:preserve-3d;
  will-change:transform, box-shadow;
  overflow:visible;
  clip-path:none;
  -webkit-mask-image:none;
  mask-image:none;
  /* Keep a sliver visible at steep faro angles */
  backface-visibility:visible;
}
.gpdi-oracle__shuffle--deck.is-gsap .card,
#deck.is-gsap .card,
.gpdi-oracle__shuffle--deck.is-riffle .card,
.gpdi-oracle__shuffle--deck.is-faro .card,
.gpdi-oracle__shuffle--deck.is-overhand .card,
#deck.is-riffle .card,
#deck.is-faro .card,
#deck.is-overhand .card{
  animation:none !important;
}
/* Soft-flip CSS path disabled while GSAP master timeline owns shuffle timing */
.gpdi-oracle__shuffle--deck.is-flipping .card,
#deck.is-flipping .card{
  animation:none !important;
}

/* Dark theme hardening (явные оверрайды поверх токенов) */
html[data-theme="dark"] .gpdi-oracle__tabs-track{
  background:rgba(255,255,255,.08);
}
html[data-theme="dark"] .gpdi-oracle__tab-indicator{
  background:var(--accent-soft, rgba(61,186,122,.18));
  border-color:var(--accent-dim, rgba(61,186,122,.55));
  box-shadow:none;
}
html[data-theme="dark"] .gpdi-oracle__ask-input{
  background:var(--bg-elevated,#111);
  border-color:var(--border);
}
html[data-theme="dark"] .gpdi-oracle__draw,
html[data-theme="dark"] .gpdi-oracle__mic-warn-btn.is-primary{
  background:var(--accent, #3dba7a);
  color:var(--on-accent, #06140d);
}
html[data-theme="dark"] .gpdi-oracle__mic-warn{
  background:var(--bg-elevated,#111);
}
html[data-theme="light"] .gpdi-oracle__tab-indicator{
  background:var(--accent-soft, rgba(61,186,122,.14));
}

@media (max-width: 520px){
  .gpdi-oracle__spread--three{
    gap:.4rem .45rem;
  }
  .gpdi-oracle__slot{
    max-width:none;
  }
  .gpdi-oracle__slot-label{
    font-size:.6rem;
  }
  .gpdi-oracle__slot-caption{
    font-size:.82rem;
  }
}

@media (prefers-reduced-motion: reduce){
  .gpdi-oracle__shuffle .card,
  #deck .card,
  .gpdi-oracle__shuffle--deck.is-flipping .card:nth-child(1),
  #deck.is-flipping .card:nth-child(1){
    animation:none !important;
  }
  .gpdi-oracle__shuffle-stage{
    transform:translate(-50%, -50%);
  }
  .gpdi-oracle__status{transition:none}
  .gpdi-oracle__tab-indicator{transition:none}
  .gpdi-oracle__mic.is-listening{animation:none}
}

@media (min-width: 961px) {
  .gpdi-app--oracle .gpdi-page-mast,
  .gpdi-app--oracle .gpdi-page-mast__title {
    display: none !important;
  }
  body.gpdi-page:has(.gpdi-app--oracle) .gpdi-feat-tools .gpdi-feat-title {
    display: none !important;
  }
}
