@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root{
    --bio: rgba(0,255,255,0.9);
    --mist: white;
    --mist-dim: rgba(255,255,255,0.68);
    --gold: rgba(255,230,150,0.9);
    --moon: #9fe0ee;
}
/* Прибираємо прокрутку */
html, body {
    min-height: 100%;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    cursor: none;
}

/* Головна сторінка */
body.body-index {
    position: relative;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: url('images/background.png?v=496b9e2bd36f362b') no-repeat center top fixed;
    background-size: cover;
    color: white;
    text-align: center;
}

.brand-hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    max-width: none;
    width: 100%;
    padding: 8vh 6vw 3.5rem;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.lighthouse-logo {
    position: relative;
    width: clamp(5.75rem, 9vw, 7rem);
    margin: 0 0 0.9rem;
}

.lighthouse-logo svg {
    display: block;
    width: 100%;
    overflow: visible;
}

.hero-eyebrow {
    margin: 0 0 1.3rem;
    color: rgba(242, 248, 249, 0.68);
    font-family: 'Jost', sans-serif;
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    line-height: 1.65;
    text-transform: uppercase;
    animation: rise 1.2s ease forwards 0.15s;
}

.hero-eyebrow span {
    color: #f2c14e;
    letter-spacing: 0;
    padding: 0 0.14em;
}

.logo-lighthouse path {
    fill: none;
    stroke: #f2f8f9;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
    opacity: 0.94;
}

.logo-lighthouse .logo-lantern {
    stroke: #fff6c7;
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(255, 232, 148, 0.9));
}

.logo-light path {
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(242, 193, 78, 0.65));
}

.logo-light .logo-beam { stroke: none; }
.logo-light .logo-ray { fill: none; stroke-width: 0.72; }

.logo-light-left .logo-beam { fill: url(#beam-left-gradient); }
.logo-light-left .logo-ray { stroke: url(#beam-left-gradient); }
.logo-light-right .logo-beam { fill: url(#beam-right-gradient); }
.logo-light-right .logo-ray { stroke: url(#beam-right-gradient); }

.logo-light-left,
.logo-light-right,
.logo-viewer-glow { transform-box: fill-box; transform-origin: center; }

.logo-light-left { transform-origin: right center; animation: lighthouse-sweep-left 20s ease-in-out infinite; }
.logo-viewer-glow { animation: lighthouse-viewer-glow 20s ease-in-out infinite; }
.logo-light-right { transform-origin: left center; animation: lighthouse-sweep-right 20s ease-in-out infinite; }
.logo-lighthouse { animation: lighthouse-halo 20s ease-in-out infinite; }

@keyframes lighthouse-sweep-left {
    0% { opacity: 0.82; transform: scaleX(1); }
    15% { opacity: 0.82; transform: scaleX(1); }
    25% { opacity: 0.76; transform: scaleX(0.05); }
    30%, 90% { opacity: 0; transform: scaleX(0.02); }
    100% { opacity: 0.82; transform: scaleX(1); }
}

@keyframes lighthouse-viewer-glow {
    0%, 21%, 44%, 71%, 94%, 100% { opacity: 0; transform: scale(0.8); }
    25%, 40%, 75%, 90% { opacity: 0.88; transform: scale(1); }
}

@keyframes lighthouse-sweep-right {
    0%, 40% { opacity: 0; transform: scaleX(0.02); }
    50% { opacity: 0.76; transform: scaleX(1); }
    65% { opacity: 0.82; transform: scaleX(1); }
    75% { opacity: 0.76; transform: scaleX(0.05); }
    80%, 100% { opacity: 0; transform: scaleX(0.02); }
}

@keyframes lighthouse-halo {
    0%, 21%, 44%, 71%, 94%, 100% { filter: none; }
    25%, 40%, 75%, 90% { filter: drop-shadow(0 0 4px rgba(255, 231, 142, 0.75)); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-light-left,
    .logo-light-right,
    .logo-viewer-glow,
    .logo-lighthouse,
    .hero-eyebrow,
    #platform-title,
    #platform-slogan,
    .oracle-card-stage,
    .oracle-card-breathe,
    .oracle-card-flip,
    .oracle-card-hint,
    .journey-actions { animation: none; opacity: 1; transform: none; }

    .logo-light-left,
    .logo-light-right,
    .logo-viewer-glow { opacity: 0.65; }
}

.auth-google { width: 100%; min-height: 44px; padding: .75rem 1rem; border: 1px solid rgba(159,224,238,.5); border-radius: 999px; background: rgba(159,224,238,.1); color: #f2f8f9; font: inherit; cursor: pointer; }
.auth-google:hover:not(:disabled) { background: rgba(159,224,238,.2); }
.auth-google:focus-visible { outline: 2px solid #7af0d6; outline-offset: 3px; }
.auth-google:disabled { opacity: .6; cursor: wait; }
.auth-divider { margin: .65rem 0; text-align: center; font-size: .8rem; color: #c1d0d8; }
#platform-title {
    position: relative;
    z-index: 2;

    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 0.24em;
    font-size: clamp(2rem, 5.6vw, 3.6rem);
    margin: 0;

    background: linear-gradient(100deg,
        #9fe0ee 0%,
        #f2c14e 35%,
        #ffffff 55%,
        #f2c14e 75%,
        #9fe0ee 100%);
         background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    opacity: 0;
    filter: drop-shadow(0 0 30px rgba(159,224,238,0.35));
    filter: drop-shadow(0 0 30px rgba(159,224,238,0.35));
    animation: rise 1.4s ease forwards 0.35s, shimmer 7s linear infinite 1.7s;
}
@keyframes shimmer {
    to { background-position: -250% center; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 30, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.8s ease forwards;
    z-index: 1000;
}
.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-container {
    perspective: 1200px;
    animation: floatIn 1s ease-out both;
}

/* === КАРТА === */
.card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    cursor: pointer;
    transform: rotateY(0deg); /* старт — задня сторона */
}

/* Орієнтації */
.card.landscape {
    width: 420px;
    height: 320px;
}

.card.portrait {
    width: 175px;
    height: 220px;
}

/* При кліку фліп — показує перед */
.card.flipped {
    transform: rotateY(180deg);
}

/* Сторони */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Передня (спочатку захована) */
.card-front {
    transform: rotateY(180deg);
}

/* Задня (видно одразу) */
.card-back {
    transform: rotateY(0deg);
}


/* --- Карта контейнер --- */
.card-container {
    perspective: 2000px;
    position: relative;
    opacity: 0;
    transform: translateY(0) scale(1) rotateY(0deg) rotateX(0deg);
}

/* --- Поява карти --- */
.overlay:not(.hidden) .card-container {
    animation: magicAppear 1.8s ease-out forwards,
               auraPulse 3s ease-in-out infinite 2s,
               floating3D 6s ease-in-out infinite 2s;
}

/* ✨ Магічна поява */
@keyframes magicAppear {
    0% {
        opacity: 0;
        transform: translateY(-200px) scale(0.3) rotateY(180deg) rotateX(25deg);
        filter: drop-shadow(0 0 0 rgba(0,255,255,0));
    }
    40% {
        opacity: 1;
        transform: translateY(40px) scale(1.15) rotateY(-15deg) rotateX(-10deg);
        filter: drop-shadow(0 0 40px rgba(0,255,200,0.9));
    }
    70% {
        transform: translateY(-10px) scale(0.95) rotateY(8deg) rotateX(4deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg) rotateX(0deg);
        filter: drop-shadow(0 0 25px rgba(0,200,255,0.6));
    }
}

/* 🔮 Аура */
@keyframes auraPulse {
    0%   { filter: drop-shadow(0 0 20px rgba(0,200,255,0.5)); }
    50%  { filter: drop-shadow(0 0 50px rgba(150,0,255,0.9)); }
    100% { filter: drop-shadow(0 0 20px rgba(0,200,255,0.5)); }
}

/* 🌌 Парування */
@keyframes floating3D {
    0%   { transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1); }
    50%  { transform: translateY(-12px) rotateY(6deg) rotateX(3deg) scale(1.04); }
    100% { transform: translateY(0) rotateY(0deg) rotateX(0deg) scale(1); }
}

/* 🌟 Блискітки по боках */
.spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, white 40%, rgba(0,255,255,0.8) 70%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: sparkle 2s infinite;
}

/* Ліво/право */
.spark.left {
    left: -60px;
    top: 50%;
}
.spark.right {
    right: -60px;
    top: 40%;
}
.spark.top {
    top: -40px;
    left: 40%;
}
.spark.bottom {
    bottom: -40px;
    right: 30%;
}

@keyframes sparkle {
    0%   { transform: scale(0.5); opacity: 0; }
    30%  { transform: scale(1.2); opacity: 1; }
    60%  { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(0.5); opacity: 0; }
}
/* ✨ Магічне поле */
.magic-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(0,255,255,0.9), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 6s linear infinite;
}

/* Випадкові позиції і затримки */
.particle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.particle:nth-child(2) { top: 40%; left: 70%; animation-delay: 1s; }
.particle:nth-child(3) { top: 80%; left: 50%; animation-delay: 2s; }
.particle:nth-child(4) { top: 60%; left: 25%; animation-delay: 3s; }
.particle:nth-child(5) { top: 10%; left: 80%; animation-delay: 4s; }
.particle:nth-child(6) { top: 75%; left: 10%; animation-delay: 5s; }
.particle:nth-child(7) { top: 50%; left: 90%; animation-delay: 6s; }
.particle:nth-child(8) { top: 30%; left: 40%; animation-delay: 2.5s; }
.particle:nth-child(9) { top: 85%; left: 70%; animation-delay: 3.5s; }
.particle:nth-child(10){ top: 15%; left: 55%; animation-delay: 1.5s; }

/* Анімація руху частинок */
@keyframes floatParticle {
    0%   { transform: translateY(0) scale(0.3); opacity: 0; }
    20%  { opacity: 1; }
    50%  { transform: translateY(-80px) scale(1); opacity: 0.9; }
    100% { transform: translateY(-160px) scale(0.5); opacity: 0; }
}
/* 🔹 Блакитні кульки */
.particle.blue {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(0,255,255,0.9), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 6s linear infinite;
}

/* 🟣 Фіолетові кульки */
.particle.purple {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(200,0,255,0.8), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticleSmall 5s linear infinite;
}

/* ⚪ Білі сяючі кульки */
.particle.white {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,255,255,0));
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 4s ease-in-out infinite;
}

/* 🟡 Жовті теплі кульки */
.particle.gold {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(255,230,150,0.9), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticleMedium 7s linear infinite;
}

/* 🔮 Бірюзові великі кульки */
.particle.cyan {
    position: absolute;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, rgba(100,255,255,0.8), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticleBig 8s linear infinite;
}

/* --- Анімації --- */
@keyframes floatParticle {
    0%   { transform: translateY(0) scale(0.3); opacity: 0; }
    20%  { opacity: 1; }
    50%  { transform: translateY(-80px) scale(1); opacity: 0.9; }
    100% { transform: translateY(-160px) scale(0.5); opacity: 0; }
}

@keyframes floatParticleSmall {
    0%   { transform: translateY(0) scale(0.2); opacity: 0; }
    30%  { opacity: 1; }
    60%  { transform: translateY(-60px) scale(0.7); opacity: 0.8; }
    100% { transform: translateY(-120px) scale(0.4); opacity: 0; }
}

@keyframes floatParticleMedium {
    0%   { transform: translateY(0) scale(0.4); opacity: 0; }
    25%  { opacity: 1; }
    60%  { transform: translateY(-100px) scale(1); opacity: 0.9; }
    100% { transform: translateY(-180px) scale(0.6); opacity: 0; }
}

@keyframes floatParticleBig {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    30%  { opacity: 1; }
    60%  { transform: translateY(-120px) scale(1.1); opacity: 0.9; }
    100% { transform: translateY(-220px) scale(0.7); opacity: 0; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.2); }
    50%      { opacity: 1; transform: scale(1.4); }
}

/*ЗМІНИ!!!*/
/* ================= custom cursor ================= */
  .cdot,.cring{
    position:fixed; top:0; left:0; z-index:999;
    pointer-events:none; border-radius:50%;
    transform:translate(-50%,-50%);
    will-change:transform;
  }
  .cdot{ width:6px; height:6px; background:var(--bio); box-shadow:0 0 10px var(--bio); transition:opacity 0.18s ease; }
  .cdot.is-card-active{ opacity:0; }
  .cring{
    width:38px; height:38px; border:1px solid rgba(242,248,249,0.5);
    display:flex; align-items:center; justify-content:center;
    font-size:0.56rem; letter-spacing:0.1em; text-transform:uppercase;
    color:var(--mist); transition:width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  }
  .cring.on{
    width:78px; height:78px;
    border-color:var(--gold);
    background:rgba(242,193,78,0.12);
    color:#fff6c7;
    box-shadow:0 0 20px rgba(242,193,78,0.34), inset 0 0 14px rgba(242,193,78,0.12);
  }
  .cring span{ opacity:0; transition:opacity 0.25s ease; }
  .cring.on span{ opacity:1; }

  @media (pointer:coarse){
    .cdot,.cring{ display:none; }
    body{ cursor:auto; }
  }

  /* ================= grain ================= */
  .grain{
    position:fixed; inset:0; z-index:1; pointer-events:none; opacity:0.035; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ================= nav ================= */
  .nav{
    position:fixed; top:0; left:0; right:0; z-index:30;
    display:flex; align-items:center; justify-content:space-between;
    padding:1.3rem 3vw; background:linear-gradient(to bottom, rgba(5,9,15,0.55), transparent);
    transition:background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  }
  .nav.scrolled{ background:rgba(5,9,15,0.72); backdrop-filter:blur(14px); padding:0.9rem 3vw; border-bottom:1px solid rgba(159,224,238,0.08); }

  .brand{ display:flex; align-items:center; gap:0.6rem; }
  .brand svg{ width:26px; height:26px; }
  .brand span{
    font-family:'Cinzel', serif; font-weight:500; letter-spacing:0.16em; font-size:0.92rem; color:var(--mist);
  }

  .nav-links{ display:flex; align-items:center; gap:2.4rem; }
  .nav-links a{
    font-size:0.78rem; letter-spacing:0.08em; color:var(--mist-dim); text-decoration:none;
    position:relative; padding-bottom:3px;
  }
  .nav-links a::after{
    content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--bio);
    transition:width 0.3s ease;
  }
  .nav-links a:hover{ color:var(--mist); }
  .nav-links a:hover::after{ width:100%; }

  .nav-auth{ display:flex; align-items:center; gap:0.8rem; }
  .nav-auth .btn{ padding:0.55rem 1.3rem; font-size:0.74rem; }

  .nav-burger{ display:none; }

  @media (max-width:860px){
    .nav-links{ display:none; }
    .nav-auth .btn-ghost{ display:none; }
  }

  section[id]{ scroll-margin-top:90px; }

  /* ================= ліхтар / затемнення фону ================= */
.spotlight{
    position:absolute; inset:0; z-index:1; pointer-events:none;
    background:radial-gradient(circle 340px at var(--mx,50%) var(--my,35%),
      rgba(5,9,15,0) 0%, rgba(5,9,15,0.28) 55%, rgba(5,9,15,0.72) 100%);
    transition:background 0.05s linear;
  }

/* ================= кнопки та вікно авторизації ================= */
.panel-brand {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    margin-right: auto;
    color: #f2f8f9;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-decoration: none;
}

.panel-lighthouse {
    display: block;
    width: 32px;
    height: 38px;
    overflow: visible;
}

.panel-lighthouse-lines path {
    fill: none;
    stroke: #f2f8f9;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
    opacity: 0.94;
}

.panel-lighthouse-lines .panel-lantern-line {
    stroke: #fff6c7;
    stroke-width: 2;
    filter: drop-shadow(0 0 3px rgba(255, 232, 148, 0.9));
}

.panel-brand:hover { color: #fff6c7; }
.panel-brand:focus-visible { outline: 2px solid #7af0d6; outline-offset: 4px; border-radius: 4px; }

.panel-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 2.2rem;
    transform: translate(-50%, -50%);
}

.panel-nav a {
    position: relative;
    padding-bottom: 3px;
    color: rgba(242, 248, 249, 0.68);
    font-family: 'Jost', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.25s ease;
}

.panel-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: #7af0d6;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.panel-nav a:hover,
.panel-nav a[aria-current="page"] { color: #f2f8f9; }
.panel-nav a:hover::after,
.panel-nav a[aria-current="page"]::after { transform: scaleX(1); }
.panel-nav a:focus-visible { outline: 2px solid #7af0d6; outline-offset: 4px; border-radius: 3px; }

/* ================= інформаційні сторінки ================= */
body.info-page {
    min-height: 100vh;
    margin: 0;
    cursor: auto;
    background:
        radial-gradient(circle at 76% 8%, rgba(31, 107, 120, 0.28), transparent 25rem),
        radial-gradient(circle at 18% 86%, rgba(122, 240, 214, 0.09), transparent 29rem),
        #05090f;
    color: #f2f8f9;
    font-family: 'Jost', sans-serif;
}

.info-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0.85rem 3vw;
    background: linear-gradient(to bottom, rgba(5, 9, 15, 0.85), rgba(5, 9, 15, 0.4));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-home {
    margin-left: auto;
    color: #7af0d6;
    font-family: 'Jost', sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.info-home:hover { color: #f2c14e; }
.info-home:focus-visible { outline: 2px solid #7af0d6; outline-offset: 4px; border-radius: 3px; }

.info-main {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: clamp(8rem, 18vh, 12rem) 6vw 4rem;
    text-align: center;
}

.info-kicker {
    margin: 0 0 1.1rem;
    color: rgba(122, 240, 214, 0.92);
    font-size: 0.66rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.info-main h1 {
    max-width: 46rem;
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.98;
}

.info-lead {
    max-width: 35rem;
    margin: 1.3rem 0 0;
    color: rgba(242, 248, 249, 0.68);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 62rem);
    gap: 1rem;
    margin-top: clamp(2.8rem, 7vh, 5rem);
}

.info-card {
    min-height: 13rem;
    padding: 1.7rem;
    border: 1px solid rgba(159, 224, 238, 0.16);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(18, 48, 73, 0.68), rgba(5, 9, 15, 0.76));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
    text-align: left;
}

.info-card .info-symbol {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.2rem;
    place-items: center;
    border: 1px solid rgba(242, 193, 78, 0.4);
    border-radius: 50%;
    color: #f2c14e;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.info-card h2 {
    margin: 0 0 0.55rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 500;
}

.info-card p {
    margin: 0;
    color: rgba(242, 248, 249, 0.64);
    font-size: 0.84rem;
    line-height: 1.65;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    margin: 0;
    padding: 1.3rem 3vw;
    background: linear-gradient(to bottom, rgba(5, 9, 15, 0.55), transparent);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

/* Компактний доступ до акаунта на головній сторінці. */
.auth-actions.is-authenticated .auth-btn { display: none; }
body.is-authenticated .journey-actions { display: none; }

.account-panel { position: relative; }

.account-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    min-height: 42px;
    padding: 0.34rem 0.55rem 0.34rem 0.38rem;
    border: 1px solid rgba(159, 224, 238, 0.24);
    border-radius: 999px;
    background: rgba(5, 9, 15, 0.3);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
    color: #f2f8f9;
    cursor: pointer;
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.account-menu-toggle:hover,
.account-menu-toggle[aria-expanded="true"] {
    border-color: rgba(122, 240, 214, 0.55);
    background: rgba(18, 48, 73, 0.58);
    box-shadow: 0 0 25px rgba(122, 240, 214, 0.12);
    transform: translateY(-1px);
}

.account-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(122, 240, 214, 0.48);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, rgba(122, 240, 214, 0.24), rgba(122, 240, 214, 0.02));
    color: #7af0d6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    line-height: 1;
}

.account-summary { display: grid; gap: 0.03rem; min-width: 0; }
.account-summary > span { color: rgba(242, 248, 249, 0.52); font-family: 'Jost', sans-serif; font-size: 0.58rem; letter-spacing: 0.11em; text-transform: uppercase; }
.account-summary strong { overflow: hidden; max-width: 8rem; color: #f2f8f9; font-family: 'Jost', sans-serif; font-size: 0.72rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { color: #9fe0ee; font-size: 1rem; line-height: 1; transition: transform 0.25s ease; }
.account-menu-toggle[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }

.account-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    z-index: 40;
    display: grid;
    width: min(15.5rem, calc(100vw - 2rem));
    padding: 0.55rem;
    border: 1px solid rgba(159, 224, 238, 0.27);
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(18, 48, 73, 0.94), rgba(5, 9, 15, 0.96));
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.account-menu[hidden] { display: none; }
.account-menu-title { margin: 0.35rem 0.55rem 0.48rem; color: rgba(242, 248, 249, 0.5); font-family: 'Jost', sans-serif; font-size: 0.61rem; letter-spacing: 0.14em; text-transform: uppercase; }
.account-menu a,
.account-logout {
    display: flex;
    align-items: center;
    min-height: 37px;
    padding: 0.45rem 0.58rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(242, 248, 249, 0.76);
    font-family: 'Jost', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-align: left;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.account-menu a:hover,
.account-logout:hover { background: rgba(122, 240, 214, 0.1); color: #7af0d6; transform: translateX(2px); }
.account-menu-admin { display: grid; margin: 0.32rem 0; padding: 0.32rem 0; border-top: 1px solid rgba(159, 224, 238, 0.12); border-bottom: 1px solid rgba(159, 224, 238, 0.12); }
.account-logout { width: 100%; margin-top: 0.25rem; color: rgba(255, 183, 170, 0.78); cursor: pointer; }
.account-logout:hover { background: rgba(235, 87, 87, 0.1); color: #ffb7aa; }
.account-logout:disabled { cursor: wait; opacity: 0.65; }

#platform-slogan {
    position: relative;
    z-index: 2;
    margin: 1.1rem 0 0;
    color: rgba(242, 248, 249, 0.68);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.08;
    white-space: nowrap;
    text-shadow: 0 0 22px rgba(242, 193, 78, 0.15);
    animation: slogan-rise 1.2s ease both 0.8s;
}

@keyframes slogan-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= інтерактивна метафорична карта ================= */
.oracle-card-stage {
    margin: clamp(2.2rem, 5.5vh, 4rem) 0 0;
    perspective: 1400px;
    opacity: 0;
    animation: rise 1.4s ease forwards 1s;
}

.oracle-card-breathe {
    display: block;
    transform-origin: 50% 55%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    animation: oracle-hover-drift 6.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes oracle-hover-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.oracle-card-tilt {
    position: relative;
    display: block;
    width: clamp(12.5rem, 29vw, 13.75rem);
    aspect-ratio: 2 / 3;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: none;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.oracle-card-tilt:focus-visible { outline: none; }

.oracle-card-flip {
    position: absolute;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(.4, .15, .2, 1);
    will-change: transform;
}

.oracle-card-tilt.is-flipped .oracle-card-flip { transform: rotateY(180deg); }

.oracle-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.6rem;
    border-radius: 14px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.oracle-card-front {
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 44%, rgba(48, 118, 135, 0.22), transparent 32%),
        linear-gradient(155deg, rgba(18, 48, 73, 0.98), rgba(5, 9, 15, 0.98));
    border: 1px solid rgba(159, 224, 238, 0.44);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(159, 224, 238, 0.1);
}

.oracle-card-front::before,
.oracle-card-front::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.oracle-card-front::before {
    inset: 10px;
    border: 1px solid rgba(242, 193, 78, 0.34);
    border-radius: 9px;
}

.oracle-card-front::after {
    inset: 18px;
    border: 1px solid rgba(159, 224, 238, 0.17);
    border-radius: 7px;
}

.oracle-foil {
    position: absolute;
    inset: -40%;
    z-index: 1;
    display: block;
    pointer-events: none;
    background: conic-gradient(from calc(var(--oracle-tilt, 0deg)), rgba(122, 240, 214, 0.16), rgba(242, 193, 78, 0.16), rgba(159, 224, 238, 0.2), rgba(242, 193, 78, 0.16), rgba(122, 240, 214, 0.16));
    mix-blend-mode: color-dodge;
    opacity: 0.58;
}

.oracle-star {
    position: relative;
    z-index: 2;
    width: 6.4rem;
    height: 6.4rem;
    filter: drop-shadow(0 0 15px rgba(242, 193, 78, 0.34));
}

.oracle-card-name {
    position: absolute;
    z-index: 2;
    color: rgba(242, 248, 249, 0.7);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.oracle-card-name {
    right: 0;
    bottom: 1.35rem;
    left: 0;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.oracle-card-back {
    position: absolute;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 19%, rgba(159, 224, 238, 0.24), transparent 26%),
        radial-gradient(circle at 82% 90%, rgba(242, 193, 78, 0.15), transparent 31%),
        linear-gradient(155deg, #123049, #08111c 56%, #111627);
    border: 1px solid rgba(159, 224, 238, 0.48);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.58), inset 0 0 46px rgba(159, 224, 238, 0.1);
    color: #f2f8f9;
    transform: rotateY(180deg);
}

.oracle-card-back::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(159, 224, 238, 0.25);
    border-radius: 9px;
    background-image:
        radial-gradient(circle at 18% 21%, rgba(242, 248, 249, 0.72) 0 1px, transparent 1.5px),
        radial-gradient(circle at 77% 27%, rgba(242, 193, 78, 0.58) 0 1px, transparent 1.5px),
        radial-gradient(circle at 28% 77%, rgba(159, 224, 238, 0.55) 0 1px, transparent 1.5px),
        radial-gradient(circle at 76% 72%, rgba(242, 248, 249, 0.5) 0 1px, transparent 1.5px);
}

.oracle-card-back p {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 10.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.3vw, 1.28rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    text-wrap: balance;
}

.oracle-back-orbit {
    position: absolute;
    z-index: 1;
    display: block;
    border: 1px solid rgba(242, 193, 78, 0.3);
    border-radius: 50%;
}

.oracle-back-orbit.orbit-one { width: 14rem; height: 5rem; transform: rotate(-31deg); opacity: 0.16; }
.oracle-back-orbit.orbit-two { width: 11rem; height: 8rem; transform: rotate(47deg); border-color: rgba(159, 224, 238, 0.26); opacity: 0.12; }

.oracle-back-mark {
    position: absolute;
    bottom: 1.25rem;
    z-index: 2;
    color: #f2c14e;
    font-size: 1rem;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.65);
}

.oracle-card-hint {
    margin: 1.3rem 0 0;
    color: rgba(242, 248, 249, 0.55);
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: rise 1.2s ease forwards 1.2s;
    transition: opacity 0.45s ease-in-out;
}

.oracle-card-hint.is-ready {
    animation: none;
    opacity: 1;
    transform: translateY(0);
}

.oracle-card-hint.is-changing {
    opacity: 0;
    transform: none;
}

.journey-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.25rem;
    opacity: 0;
    animation: rise 1.4s ease forwards 1.3s;
}

.journey-button {
    padding: 0.9rem 2.2rem;
    border: 1px solid #f2c14e;
    border-radius: 999px;
    background: rgba(242, 193, 78, 0.12);
    color: #f2c14e;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.09em;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.journey-button:hover { transform: translateY(-2px); background: #f2c14e; color: #05090f; box-shadow: 0 0 30px rgba(242, 193, 78, 0.45); }
.journey-button:focus-visible, .journey-login:focus-visible { outline: 2px solid #7af0d6; outline-offset: 4px; }

.journey-actions p {
    margin: 0.85rem 0 0;
    color: rgba(242, 248, 249, 0.55);
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
}

.journey-login {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: #7af0d6;
    cursor: pointer;
    font: inherit;
}

.journey-login:hover { border-bottom-color: #7af0d6; }

body.auth-open { overflow: hidden; }

.auth-actions.scrolled {
    padding: 0.9rem 3vw;
    border-bottom: 1px solid rgba(159, 224, 238, 0.08);
    background: rgba(5, 9, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-btn:hover { transform: translateY(-2px); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:focus-visible,
.auth-close:focus-visible,
.auth-switch-link:focus-visible,
.auth-modal input:focus-visible {
    outline: 2px solid #7af0d6;
    outline-offset: 3px;
}

.auth-btn-ghost {
    border: 1px solid rgba(242, 248, 249, 0.4);
    background: transparent;
    color: #f2f8f9;
}

.auth-btn-ghost:hover {
    border-color: #9fe0ee;
    color: #9fe0ee;
    box-shadow: 0 0 26px rgba(159, 224, 238, 0.25);
}

.auth-btn-solid {
    border: 1px solid #f2c14e;
    background: rgba(242, 193, 78, 0.12);
    color: #f2c14e;
}

.auth-btn-solid:hover {
    background: #f2c14e;
    color: #05090f;
    box-shadow: 0 0 30px rgba(242, 193, 78, 0.45);
}

.auth-btn-portal { isolation: isolate; }
.auth-btn-portal::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from 0deg, #f2c14e, #7af0d6, #9fe0ee, #f2c14e);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: auth-spin 4s linear infinite;
}

.auth-btn-portal:hover::before { opacity: 1; }

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(3, 6, 10, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.auth-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

/* Курсор лишається над оверлеєм і не перекривається ним. */
body.auth-open .cdot,
body.auth-open .cring {
    z-index: 2001;
}

.auth-modal {
    width: min(440px, 90vw);
    padding: 3rem 2.6rem 2.5rem;
    position: relative;
    text-align: center;
    color: #f2f8f9;
    background: linear-gradient(165deg, rgba(18, 48, 73, 0.95), rgba(5, 9, 15, 0.98));
    border: 1px solid rgba(122, 240, 214, 0.3);
    border-radius: 16px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(122, 240, 214, 0.08);
    transform: translateY(16px) scale(0.94) rotate(-1deg);
    transition: transform 0.4s cubic-bezier(.3, .6, .3, 1);
}

.auth-overlay.active .auth-modal {
    transform: translateY(0) scale(1) rotate(0deg);
}

.auth-modal h2 {
    margin-bottom: 0.45rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.35rem);
    font-weight: 400;
    font-style: italic;
    color: #f2f8f9;
}

.auth-description {
    max-width: 340px;
    margin: 0 auto 1.9rem;
    color: rgba(242, 248, 249, 0.64);
    font-family: 'Jost', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 300;
    line-height: 1.6;
}

.auth-confirmation {
    padding-top: 0.4rem;
}

.auth-confirmation-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 1.2rem;
    place-items: center;
    border: 1px solid rgba(122, 240, 214, 0.45);
    border-radius: 50%;
    background: rgba(122, 240, 214, 0.08);
    box-shadow: 0 0 30px rgba(122, 240, 214, 0.18);
    color: #7af0d6;
    font-size: 1.5rem;
}

.auth-confirmation strong {
    display: inline-block;
    overflow-wrap: anywhere;
    color: #f2f8f9;
    font-weight: 500;
}

.auth-note {
    margin: -0.6rem auto 1.4rem;
    color: rgba(242, 248, 249, 0.48);
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
}

.auth-back-button {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
}

.auth-feedback {
    display: none;
    margin: 1rem 0 0;
    color: #ffb7aa;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
}

.auth-feedback.is-visible { display: block; }
.auth-feedback.is-success { color: #7af0d6; }

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.auth-modal input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.8rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(242, 248, 249, 0.22);
    border-radius: 8px;
    outline: none;
    background: rgba(242, 248, 249, 0.06);
    color: #f2f8f9;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-modal input::placeholder { color: rgba(242, 248, 249, 0.4); }
.auth-modal input:focus { border-color: #7af0d6; box-shadow: 0 0 16px rgba(122, 240, 214, 0.14); }

.auth-submit {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.8rem;
    border: 1px solid #f2c14e;
    border-radius: 8px;
    background: rgba(242, 193, 78, 0.12);
    color: #f2c14e;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.auth-submit:hover {
    background: #f2c14e;
    color: #05090f;
    box-shadow: 0 0 30px rgba(242, 193, 78, 0.45);
}

.auth-switch {
    margin-top: 1.3rem;
    color: rgba(242, 248, 249, 0.68);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
}

.auth-switch-link {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: #7af0d6;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.auth-switch-link:hover { border-bottom-color: #7af0d6; }

.auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: none;
    color: rgba(242, 248, 249, 0.68);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}

.auth-close:hover { color: #f2f8f9; transform: rotate(90deg); }

.auth-form { display: none; }
.auth-form.active { display: block; }

@media (max-width: 480px) {
    .auth-actions {
        gap: 0.5rem;
        padding: 0.85rem 1rem;
    }

    .auth-btn { padding: 0.55rem 0.9rem; }
    .account-menu-toggle { min-height: 38px; padding: 0.3rem 0.42rem; }
    .account-summary { display: none; }
    .account-menu { top: calc(100% + 0.55rem); }

    .hero-eyebrow { max-width: 20rem; font-size: 0.58rem; letter-spacing: 0.2em; }
    #platform-slogan { white-space: normal; }
    .oracle-card-stage { margin-top: 2.2rem; }
    .oracle-card-hint { margin-top: 1.1rem; }

    .panel-brand { gap: 0.34rem; font-size: 0.64rem; letter-spacing: 0.09em; }
    .panel-lighthouse { width: 27px; height: 32px; }

    .auth-modal { padding: 2.6rem 1.5rem 2rem; }
}

@media (max-width: 760px) {
    .panel-nav { display: none; }
    .info-grid { grid-template-columns: 1fr; max-width: 28rem; }
    .info-card { min-height: auto; }
}
