/* ============================================================
   Hammer-Orakel splash — 3D cinematic opening overlay
   Scoped to #orakel-splash + body.orakel-active so it never
   leaks into the main app after dismissal.
   ============================================================ */

body.orakel-active { overflow: hidden; height: 100%; }
body.orakel-active::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  z-index: 1100; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
body.orakel-active::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 900;
  background: linear-gradient(180deg, #000 0, #000 38px, transparent 38px, transparent calc(100% - 38px), #000 calc(100% - 38px), #000 100%);
}

#orakel-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background:
    radial-gradient(1400px 900px at 50% 30%, rgba(255,45,85,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(243,193,93,.06), transparent 70%),
    #07070c;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  transition: opacity .7s cubic-bezier(.4,0,.2,1);
}
#orakel-splash.dismissed { opacity: 0; pointer-events: none; }

#orakel-splash #stage { position: absolute; inset: 0; z-index: 1; }
#orakel-splash #c3d { width: 100%; height: 100%; display: block; }

#orakel-splash .vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 30;
  background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,.55) 100%);
}

#orakel-splash .topbar {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 60;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
  background: none; border: none; backdrop-filter: none;
}
#orakel-splash .topbar > * { pointer-events: auto; }
#orakel-splash .brand { display: flex; align-items: center; gap: 14px; }
#orakel-splash .brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1a1a22, #0f0f14); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(255,45,85,.28), inset 0 1px 0 rgba(255,255,255,.06);
}
#orakel-splash .brand-title {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 800; font-size: 20px; letter-spacing: -.03em; line-height: 1; color: #f5f5f7;
}
#orakel-splash .brand-sub {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #a0a0ac; margin-top: 5px;
}
#orakel-splash .toplinks { display: flex; gap: 8px; align-items: center; }
#orakel-splash .toplink {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: #a0a0ac; background: rgba(23,23,31,.55); border: 1px solid rgba(255,255,255,.08);
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1); backdrop-filter: blur(10px);
}
#orakel-splash .toplink:hover { color: #f5f5f7; border-color: rgba(255,255,255,.22); }

#orakel-splash .hero-ui {
  position: absolute; inset: 0; z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 28px calc(120px + env(safe-area-inset-bottom, 0px));
}
#orakel-splash .kicker {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(10px, 1.1vw, 12px); letter-spacing: .42em; text-transform: uppercase;
  color: #e8e3db; padding: 6px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(14px);
}
#orakel-splash .big-title {
  margin: 14px 0 6px; font-family: "Fraunces", ui-serif, Georgia, serif;
  font-variation-settings: "opsz" 144; font-weight: 900;
  font-size: clamp(60px, 10.5vw, 148px); letter-spacing: -.045em; line-height: .86; text-align: center;
  background: linear-gradient(180deg, #fff 0%, #d7d7dd 55%, #9a9aa3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 0 rgba(0,0,0,.3);
  position: relative; opacity: 0;
}
#orakel-splash .big-title::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -.12em; height: .08em;
  background: linear-gradient(90deg, transparent, #ff2d55, transparent); opacity: .75;
}
#orakel-splash .tagline {
  font-family: "Fraunces", ui-serif, Georgia, serif; font-style: italic;
  font-size: clamp(16px, 1.8vw, 22px); color: #dcdce3; letter-spacing: .005em;
  opacity: 0; transform: translateY(10px);
}
#orakel-splash .cta-row {
  display: flex; gap: 12px; margin-top: 18px; pointer-events: auto;
  opacity: 0; transform: translateY(10px);
}
#orakel-splash .cta {
  font-family: inherit; font-size: 13px; letter-spacing: .04em; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s;
}
#orakel-splash .cta.primary {
  background: linear-gradient(180deg, #ff2d55 0%, color-mix(in srgb, #ff2d55 78%, #000) 100%);
  color: #fff;
  box-shadow: 0 14px 36px color-mix(in srgb, #ff2d55 40%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
}
#orakel-splash .cta.primary:hover { transform: translateY(-2px); }
#orakel-splash .cta.ghost {
  background: rgba(255,255,255,.05); color: #f5f5f7;
  border-color: rgba(255,255,255,.08); backdrop-filter: blur(10px);
}

#orakel-splash .shown .kicker { animation: orakelTextUp .8s cubic-bezier(.16,1,.3,1) var(--t-kicker, 2.3s) both; }
#orakel-splash .shown .big-title { animation: orakelTitleCrash 1.1s cubic-bezier(.34,1.56,.64,1) var(--t-title, 2.45s) both; }
#orakel-splash .shown .tagline { animation: orakelTextUp 1s cubic-bezier(.16,1,.3,1) var(--t-tag, 2.9s) both; }
#orakel-splash .shown .cta-row { animation: orakelTextUp 1s cubic-bezier(.16,1,.3,1) var(--t-cta, 3.2s) both; }

@keyframes orakelTextUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes orakelTitleCrash {
  0% { opacity: 0; transform: translateY(-60px) scale(1.3); filter: blur(12px); letter-spacing: .16em; }
  40% { opacity: 1; transform: translateY(8px) scale(.98); filter: blur(0); letter-spacing: -.03em; }
  100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: -.045em; }
}

/* Designer-only elements: hidden in production splash */
#orakel-splash .variant-dots,
#orakel-splash .scene-label,
#orakel-splash .tweaks-toggle-btn,
#orakel-splash .tweaks { display: none !important; }

#orakel-splash .loading {
  position: absolute; inset: 0; z-index: 1200; background: #000;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  transition: opacity .6s .2s; opacity: 1;
}
#orakel-splash .loading.hidden { opacity: 0; pointer-events: none; }
#orakel-splash .spin {
  width: 44px; height: 44px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.15); border-top-color: #ff2d55;
  animation: orakelSpin 1s linear infinite;
}
#orakel-splash .loading-text {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: #a0a0ac;
}
@keyframes orakelSpin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  #orakel-splash .big-title { font-size: clamp(44px, 13.5vw, 64px); letter-spacing: -.05em; }
  #orakel-splash .tagline { font-size: 14px; padding: 0 12px; }
  #orakel-splash .kicker { font-size: 10px; letter-spacing: .3em; }
  #orakel-splash .hero-ui { padding: 0 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  #orakel-splash .topbar { padding: 0 14px; top: calc(env(safe-area-inset-top, 0px) + 28px); }
  #orakel-splash .cta { font-size: 12px; padding: 12px 18px; }
  #orakel-splash .cta-row { gap: 8px; margin-top: 14px; }
}
@media (max-width: 380px) {
  #orakel-splash .big-title { font-size: 42px; }
  #orakel-splash .brand-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  #orakel-splash .big-title, #orakel-splash .kicker,
  #orakel-splash .tagline, #orakel-splash .cta-row {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}
