:root {
  --bg-night: #05070f;
  --bg-deep: #0d1224;
  --gold: #d6b36a;
  --gold-strong: #ffde8f;
  --paper: #f3e8cc;
  --ink: #2a1f14;
  --wine: #64222c;
  --mist: rgba(248, 235, 202, 0.08);
  --text-light: #f9f4e6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  height: 100dvh;
  font-family: "Marcellus", Georgia, serif;
  background: #020203;
  color: var(--text-light);
  overflow: hidden;
}

.app.wand-enabled,
.app.wand-enabled * {
  cursor: none !important;
}

.app {
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.bg-video-wrap {
  position: absolute;
  inset: 0;
  z-index: -6;
  overflow: hidden;
  pointer-events: none;
}

.bg-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, 0.36);
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.app::before,
.app::after {
  content: "";
  position: absolute;
  inset: -10% -14%;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 18% 44%, rgba(255, 255, 255, 0.12), transparent 30%),
    radial-gradient(circle at 72% 56%, rgba(245, 236, 214, 0.13), transparent 35%),
    radial-gradient(circle at 52% 85%, rgba(255, 245, 215, 0.09), transparent 30%);
  animation: globalFogDrift 24s linear infinite;
}

.app.dashboard-active::before,
.app.dashboard-active::after,
.app.dashboard-active .bg-video-wrap,
.app.dashboard-active .sky-glow,
.app.dashboard-active .stars {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

body.dashboard-mode {
  background: #060b16 !important;
}

.app::before {
  z-index: -2;
  opacity: 0.62;
  filter: blur(22px);
}

.app::after {
  z-index: 9;
  opacity: 0.48;
  filter: blur(28px);
  animation-duration: 30s;
  animation-direction: reverse;
}

.sky-glow,
.stars,
.tunnel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky-glow {
  background:
    radial-gradient(circle at 75% 20%, rgba(112, 150, 255, 0.25), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(214, 179, 106, 0.2), transparent 48%);
  z-index: -4;
}

.stars {
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0.8px, transparent 0.8px),
    radial-gradient(circle, rgba(255, 240, 210, 0.7) 0.9px, transparent 0.9px);
  background-size: 170px 170px, 240px 240px;
  background-position: 0 0, 50px 80px;
  animation: drift 30s linear infinite;
}

.screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  pointer-events: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

.screen:not(.active) {
  display: none;
}

.screen.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wand-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 88px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4e9cb 0%, #9d7140 38%, #4a2e18 70%, #25160c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 228, 173, 0.18),
    0 2px 9px rgba(0, 0, 0, 0.48);
  pointer-events: none;
  z-index: 520;
  transform-origin: 0% 50%;
  transform: translate3d(-120px, -120px, 0) rotate(164deg);
}

.wand-cursor::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 252, 240, 0.95) 0%, rgba(255, 214, 140, 0.88) 58%, rgba(255, 214, 140, 0) 100%);
  filter: drop-shadow(0 0 8px rgba(255, 220, 150, 0.85));
}

.wand-sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 259;
}

.wand-spark {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 240, 1) 0%, rgba(255, 210, 130, 0.92) 62%, rgba(255, 210, 130, 0) 100%);
  filter: blur(0.25px);
  pointer-events: none;
  animation: sparkFade 480ms ease-out forwards;
}

.panel,
.dashboard-wrap {
  width: min(920px, 92vw);
}

.intro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 233, 177, 0.42) 0%, rgba(255, 233, 177, 0) 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.intro-screen.flash::after {
  opacity: 1;
}

.intro-screen.spell-mode .scene-layer,
.intro-screen.spell-mode .intro-prompt,
.intro-screen.spell-mode .spell-trace {
  opacity: 0 !important;
  visibility: hidden;
}

.intro-screen.awaiting-tap {
  cursor: pointer;
}

.intro-cinematic {
  position: relative;
  width: min(980px, 92vw);
  height: min(70vh, 560px);
}

.scene-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.45rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  filter: blur(4px);
  transition: opacity 750ms ease, transform 750ms ease, filter 750ms ease;
}

.scene-layer.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.scene-layer.hide {
  opacity: 0;
  transform: translateY(-28px) scale(1.015);
  filter: blur(5px);
}

.brand-stage {
  gap: 1rem;
  filter: none;
  transition: opacity 750ms ease, transform 750ms ease;
}

.brand-stage::after {
  content: none;
}

.brand-stage.show::after {
  opacity: 0;
}

.brand-stage.show,
.brand-stage.hide {
  filter: none;
}

.brand-logo-wrap {
  position: relative;
  width: min(900px, 72vw);
  transform-origin: center;
}

.brand-logo-wrap::before {
  content: none;
}

.brand-logo-wrap::after {
  content: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 16px 40px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 26px rgba(255, 223, 150, 0.2));
}

.brand-sub {
  margin: 0;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #efe2bf;
  font-size: clamp(0.74rem, 1.6vw, 1rem);
}

.brand-stage.show .brand-logo-wrap {
  animation: logoApproach 6800ms cubic-bezier(0.1, 0.78, 0.2, 1) both;
}

.spell-flash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}

.spell-flash p {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  font-size: clamp(2rem, 12vw, 11rem);
  color: #fff3ce;
  text-shadow:
    0 0 24px rgba(255, 246, 215, 0.96),
    0 0 74px rgba(255, 219, 140, 0.78);
}

.spell-flash.active {
  animation: revelioFlash 1450ms cubic-bezier(0.14, 0.72, 0.2, 1);
}

.spell-flash.active p {
  animation: revelioText 1450ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.ingenuo-flash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 560;
}

.ingenuo-flash p {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  font-size: clamp(2.6rem, 14vw, 13rem);
  color: #fff5d6;
  text-shadow:
    0 0 28px rgba(255, 242, 202, 0.98),
    0 0 84px rgba(255, 218, 124, 0.8);
}

.ingenuo-flash.active {
  animation: revelioFlash 1500ms cubic-bezier(0.14, 0.72, 0.2, 1);
}

.ingenuo-flash.active p {
  animation: revelioText 1500ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.intro-prompt {
  margin: 0.4rem 0 0;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.45vw, 0.9rem);
  color: rgba(252, 239, 207, 0.92);
  opacity: 0;
  transition: opacity 480ms ease;
}

.intro-prompt.show {
  opacity: 1;
  animation: promptPulse 1700ms ease-in-out infinite;
}

.intro-start-btn {
  margin: 0.9rem auto 0;
  min-width: 220px;
  display: inline-flex;
  justify-content: center;
  cursor: pointer;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.06em;
}

.skip-intro-btn {
  margin: 0.35rem auto 0;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 12;
  pointer-events: auto;
}

.skip-intro-floating {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3.4vh, 28px);
  transform: translateX(-50%);
  z-index: 245;
  margin: 0;
  min-width: 180px;
  padding: 0.6rem 1rem;
  border-color: rgba(255, 231, 176, 0.42);
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.46);
}

.title-stage h1 {
  font-size: clamp(2rem, 5.5vw, 4.6rem);
  text-shadow: 0 0 30px rgba(255, 227, 163, 0.3);
}

.eyebrow {
  margin: 0 0 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.85rem;
}

h1,
h2,
h3 {
  font-family: "Cinzel", Georgia, serif;
  margin: 0;
}

.manifesto-stage {
  gap: 0;
  display: grid;
  place-items: center;
}

.manifesto-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 980px);
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 2.1rem);
  color: #f4ebd6;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.manifesto-line.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.spell-trace {
  position: absolute;
  top: 52%;
  left: 50%;
  width: min(540px, 92vw);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 650ms ease, transform 650ms ease;
}

.spell-trace.ready {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.trace-title {
  margin: 0 0 0.75rem;
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: #f6edd8;
}

.trace-area {
  position: relative;
  width: min(520px, 92vw);
  height: min(300px, 40vh);
  margin: 0 auto;
  border: 1px solid rgba(255, 227, 163, 0.26);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(8, 11, 24, 0.54), rgba(20, 12, 9, 0.42));
  box-shadow: inset 0 0 32px rgba(255, 228, 170, 0.07), 0 18px 36px rgba(0, 0, 0, 0.3);
  touch-action: none;
}

.trace-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.trace-guide,
.trace-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-guide {
  stroke: rgba(186, 233, 255, 0.44);
  stroke-width: 4;
  stroke-dasharray: 8 10;
  filter: drop-shadow(0 0 9px rgba(111, 220, 255, 0.44));
}

.trace-path {
  stroke: rgba(196, 245, 255, 0.98);
  stroke-width: 5.5;
  filter: drop-shadow(0 0 12px rgba(125, 230, 255, 0.74));
}

.trace-message {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: #e8dcc0;
}

.trace-retry {
  margin-top: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.trace-retry.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.spell-trace.failed .trace-area {
  border-color: rgba(255, 130, 118, 0.56);
  box-shadow: inset 0 0 28px rgba(255, 130, 118, 0.14), 0 18px 36px rgba(0, 0, 0, 0.3);
}

.spell-trace.success .trace-area {
  border-color: rgba(176, 246, 193, 0.56);
  box-shadow: inset 0 0 28px rgba(176, 246, 193, 0.14), 0 18px 36px rgba(0, 0, 0, 0.3);
}

.intro-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 26px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  overflow: visible;
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  font-weight: 700;
  padding: 1rem 2.4rem;
  min-width: min(92vw, 430px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.14, 0.76, 0.2, 1);
}

.intro-cta::before {
  content: "";
  position: absolute;
  inset: -18px -30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 225, 150, 0.42), rgba(255, 225, 150, 0) 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 700ms ease, transform 700ms ease;
  z-index: -1;
}

.intro-cta.ready {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
  animation: ctaPulse 1800ms ease-in-out infinite;
}

.intro-cta.ready::before {
  opacity: 1;
  transform: scale(1);
}

.intro-cta.launch {
  animation: ctaLaunch 620ms cubic-bezier(0.14, 0.84, 0.2, 1) forwards;
}

.app.screen-warp::before,
.app.screen-warp::after {
  opacity: 0.95;
  filter: blur(36px);
}

.app.screen-warp .intro-screen {
  animation: introWarpOut 980ms cubic-bezier(0.16, 0.8, 0.2, 1) forwards;
}

.app.screen-warp .stars {
  animation: starsWarp 980ms cubic-bezier(0.16, 0.8, 0.2, 1) forwards;
}

.diffindo-transition {
  position: fixed;
  inset: 0;
  z-index: 240;
  opacity: 0;
  pointer-events: none;
}

.diffindo-transition.active {
  opacity: 1;
}

.diffindo-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 1180px);
  height: clamp(2.4rem, 9vw, 7.2rem);
  opacity: 0;
}

.diffindo-word-part {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2rem, 8vw, 6.8rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #fff2c8;
  text-shadow:
    0 0 12px rgba(255, 241, 207, 0.9),
    0 0 34px rgba(255, 215, 126, 0.5);
  opacity: 0;
}

.diffindo-word-top {
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 62%);
}

.diffindo-word-bottom {
  clip-path: polygon(0 38%, 100% 18%, 100% 100%, 0 100%);
}

.diffindo-slash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170vmax;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 243, 211, 1) 50%, rgba(255, 255, 255, 0) 100%);
  box-shadow:
    0 0 10px rgba(255, 244, 221, 0.8),
    0 0 28px rgba(255, 216, 146, 0.56);
  transform: translate(-50%, -50%) rotate(-27deg) scaleX(0);
  transform-origin: center;
  opacity: 0;
}

.diffindo-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.diffindo-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 240, 1) 0%, rgba(255, 216, 145, 0.9) 58%, rgba(255, 216, 145, 0) 100%);
  animation: diffindoSpark 820ms ease-out forwards;
}

.diffindo-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    radial-gradient(circle at 15% 22%, rgba(28, 37, 72, 0.84), rgba(7, 10, 20, 0.92) 56%),
    radial-gradient(circle at 74% 78%, rgba(185, 132, 61, 0.14), transparent 52%),
    rgba(6, 7, 12, 0.9);
  backdrop-filter: blur(0.5px);
  opacity: 0;
}

.diffindo-panel-left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%);
  transform: translateX(0);
}

.diffindo-panel-right {
  right: 0;
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(0);
}

.diffindo-transition.active .diffindo-word {
  opacity: 1;
}

.diffindo-transition.active .diffindo-slash {
  animation: diffindoSlash 560ms cubic-bezier(0.2, 0.82, 0.2, 1) 980ms forwards;
}

.diffindo-transition.active .diffindo-panel-left {
  animation: diffindoSplitLeft 780ms cubic-bezier(0.15, 0.8, 0.2, 1) 1180ms forwards;
}

.diffindo-transition.active .diffindo-panel-right {
  animation: diffindoSplitRight 780ms cubic-bezier(0.15, 0.8, 0.2, 1) 1180ms forwards;
}

.diffindo-transition.active .diffindo-word-top {
  animation: diffindoWordTop 1200ms ease-out forwards, diffindoWordSplitTop 760ms cubic-bezier(0.15, 0.8, 0.2, 1) 1180ms forwards;
}

.diffindo-transition.active .diffindo-word-bottom {
  animation: diffindoWordBottom 1200ms ease-out forwards, diffindoWordSplitBottom 760ms cubic-bezier(0.15, 0.8, 0.2, 1) 1180ms forwards;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Cinzel", Georgia, serif;
  padding: 0.72rem 1.25rem;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #1a1208;
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-strong) 100%);
  box-shadow: 0 8px 24px rgba(255, 211, 120, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f7f0dd;
  border-color: rgba(255, 255, 255, 0.22);
}

.letter-screen {
  background: radial-gradient(circle at center, rgba(48, 25, 5, 0.25), transparent 60%);
}

.letter-screen::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 18;
  background:
    radial-gradient(circle at 50% 56%, rgba(255, 249, 232, 0.98) 0%, rgba(255, 242, 210, 0.94) 35%, rgba(255, 234, 188, 0.82) 62%, rgba(255, 226, 171, 0.58) 82%, rgba(255, 226, 171, 0.26) 100%),
    radial-gradient(circle at center, rgba(255, 250, 238, 0.72), rgba(255, 250, 238, 0.2) 72%);
  transition: opacity 620ms ease;
}

.letter-screen.reveal-light::after {
  opacity: 1;
  animation: divineFlood 2100ms ease-out forwards;
}

.letter-screen.holy-whiteout::after {
  opacity: 1;
  background: #fff;
  animation: divineWhiteout 1450ms ease-out forwards;
}

.envelope {
  position: relative;
  width: min(700px, 92vw);
  aspect-ratio: 600 / 633;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.55));
  perspective: 1200px;
  transform-origin: 50% 56%;
  will-change: transform, filter;
}

.envelope.awaiting-open {
  animation: envelopeInvite 1450ms ease-in-out infinite;
}

.letter-screen.opening-cinematic .envelope {
  animation: envelopeZoomIn 1600ms cubic-bezier(0.12, 0.84, 0.2, 1) forwards;
}

.envelope-back-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.envelope-flap-wrap {
  position: absolute;
  top: 17.0%;
  left: 0;
  width: 100%;
  height: calc(420 / 633 * 100%);
  transform-origin: 50% 4.8%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: rotateX(0deg);
  transition: transform 980ms cubic-bezier(0.16, 0.82, 0.2, 1);
  z-index: 4;
}

.envelope-flap-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.envelope-seal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(47% 39% 8% 39%);
  transform: translateY(0.5%) scale(1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.envelope.open .envelope-flap-wrap {
  transform: rotateX(168deg) translateY(-1.5%);
}

.envelope.open .envelope-seal {
  opacity: 0.22;
  transform: translateY(0.5%) scale(0.92);
}

.letter {
  position: absolute;
  left: 15%;
  width: 70%;
  top: 29%;
  padding: 1.6rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8edd1 0%, #f2e2bd 100%);
  color: var(--ink);
  transform: translateY(58px) scale(0.96);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
  transition-delay: 360ms;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  z-index: 3;
}

.envelope.no-letter .letter {
  opacity: 0 !important;
  transform: translateY(58px) scale(0.96) !important;
  pointer-events: none;
}

.envelope.open .letter {
  opacity: 1;
  transform: translateY(-26px) scale(1);
  transition-delay: 540ms;
}

.letter h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  margin-bottom: 0.8rem;
}

.letter p {
  line-height: 1.45;
}

.login-screen .panel,
.dashboard-wrap {
  background: linear-gradient(145deg, rgba(20, 16, 14, 0.88), rgba(8, 8, 10, 0.84));
  border: 1px solid rgba(250, 220, 160, 0.24);
  border-radius: 18px;
  padding: clamp(1.2rem, 3.5vw, 2.2rem);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

.login-screen.login-arrive .panel {
  animation: loginArrival 900ms cubic-bezier(0.16, 0.82, 0.2, 1) both;
}

.letter-screen.portal-exit {
  opacity: 0 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none !important;
}

.login-screen {
  overflow: hidden;
}

.login-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.login-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 7, 16, 0.46);
  pointer-events: none;
}

.login-screen .panel {
  position: relative;
  z-index: 2;
}

.login-brand {
  display: grid;
  place-items: center;
  margin: 0 0 0.55rem;
}

.login-brand img {
  width: min(300px, 72%);
  max-height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
}

.panel h2 {
  margin-bottom: 0.5rem;
}

.panel-text {
  margin: 0 0 1.2rem;
  color: #ddd0b0;
}

.login-form {
  display: grid;
  gap: 0.9rem;
}

.login-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.login-form .remember-access {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #e7dbc2;
}

.login-form .remember-access input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: #dfbf78;
  box-shadow: none;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0.72rem 0.82rem;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.18);
}

select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0.72rem 0.82rem;
  font-family: inherit;
}

select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.18);
}

.login-message {
  min-height: 1.2rem;
  margin-top: 0.75rem;
}

.dashboard-screen {
  align-items: stretch;
  justify-items: stretch;
  padding: clamp(0.75rem, 2.3vw, 1.5rem);
  overflow: auto;
  overscroll-behavior-y: contain;
  background: #060b16;
  isolation: isolate;
}

.dashboard-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #060b16;
}

.dashboard-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.dashboard-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 8% 20%, rgba(134, 198, 255, 0.14), transparent 40%),
    radial-gradient(circle at 88% 78%, rgba(255, 220, 155, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(5, 7, 16, 0.46), rgba(5, 7, 16, 0.72));
  pointer-events: none;
  z-index: 1;
}

.dashboard-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dashboard-shell {
  border: 1px solid rgba(250, 220, 160, 0.25);
  border-radius: 24px;
  padding: clamp(1rem, 2vw, 1.5rem);
  background:
    radial-gradient(circle at 10% -20%, rgba(255, 219, 148, 0.2), rgba(255, 219, 148, 0) 36%),
    linear-gradient(150deg, rgba(18, 21, 34, 0.94), rgba(14, 10, 10, 0.93));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 242, 216, 0.12);
}

.dashboard-hero {
  display: grid;
  gap: 0.9rem;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 225, 162, 0.2);
  background:
    linear-gradient(120deg, rgba(255, 226, 170, 0.08), rgba(255, 226, 170, 0.01) 55%),
    rgba(6, 8, 17, 0.45);
}

.dashboard-nox-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(300px, 56vw);
  margin: 0 auto;
}

.dashboard-nox-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 14px rgba(255, 218, 140, 0.2));
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.dashboard-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-avatar-wrap,
.dashboard-house-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  padding: 3px;
  background: conic-gradient(from 0deg, rgba(255, 227, 165, 0.9), rgba(142, 214, 255, 0.8), rgba(255, 227, 165, 0.9));
  box-shadow: 0 0 28px rgba(255, 215, 140, 0.25);
}

.dashboard-avatar,
.dashboard-house-icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  border: 2px solid rgba(18, 20, 31, 0.95);
  background: rgba(0, 0, 0, 0.2);
}

.dashboard-house-icon {
  padding: 10px;
}

.dashboard-user-copy h2 {
  font-size: clamp(1.32rem, 3.8vw, 2rem);
}

.house-label {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(242, 227, 193, 0.9);
}

.house-line {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.house-badge-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 216, 140, 0.38));
}

.dashboard-status {
  margin: 0.25rem 0 0;
  color: rgba(242, 227, 193, 0.88);
  font-size: 0.95rem;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.dashboard-actions .btn {
  min-width: 165px;
}

.dashboard-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-view {
  display: block;
}

.dashboard-view[data-dashboard-view="overview"] {
  grid-column: span 12;
}

.dashboard-view[data-dashboard-view="lore"] {
  grid-column: span 4;
}

.dashboard-view[data-dashboard-view="character"] {
  grid-column: span 3;
}

.overview-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-stack > .creator-progress-card {
  grid-column: 1;
}

.overview-stack > .start-date-card {
  grid-column: 2;
}

.overview-stack > .character-card {
  grid-column: 3;
}

.overview-stack > .lore-card {
  grid-column: 1 / -1;
}

.card {
  height: 100%;
  border: 1px solid rgba(250, 220, 160, 0.2);
  border-radius: 18px;
  padding: clamp(0.9rem, 2vw, 1.2rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(5, 7, 15, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.07);
}

.card h3 {
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  margin-bottom: 0.5rem;
}

.admin-only {
  display: none;
}

.start-date-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 105% -25%, rgba(255, 102, 102, 0.2), rgba(255, 102, 102, 0) 45%),
    radial-gradient(circle at -12% 110%, rgba(255, 216, 137, 0.12), rgba(255, 216, 137, 0) 40%),
    linear-gradient(170deg, rgba(20, 10, 13, 0.92), rgba(10, 7, 11, 0.94));
}

.start-date-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -10%, rgba(255, 83, 83, 0.16), transparent 44%);
  pointer-events: none;
}

.prophecy-stage {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 188, 148, 0.24);
  border-radius: 14px;
  padding: 0.8rem;
  background:
    linear-gradient(120deg, rgba(255, 92, 92, 0.07), rgba(255, 92, 92, 0) 45%),
    rgba(7, 7, 12, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 225, 196, 0.08);
  margin-bottom: 0.7rem;
}

.prophecy-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 220, 184, 0.9);
}

.prophecy-clock {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.prophecy-time-slot {
  min-width: 78px;
  border-radius: 10px;
  border: 1px solid rgba(255, 147, 147, 0.28);
  background: linear-gradient(180deg, rgba(32, 11, 16, 0.88), rgba(20, 8, 12, 0.95));
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.prophecy-time-value {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: 0.08em;
  color: #ffd9d2;
  text-shadow: 0 0 10px rgba(255, 133, 133, 0.42);
}

.prophecy-time-slot small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 189, 189, 0.86);
}

.prophecy-sep {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  color: rgba(255, 190, 180, 0.88);
  text-shadow: 0 0 8px rgba(255, 120, 120, 0.36);
  transform: translateY(-7px);
}

.prophecy-status {
  margin: 0.6rem 0 0;
  min-height: 1.2rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 196, 196, 0.96);
  font-size: 0.82rem;
}

.prophecy-progress {
  margin-top: 0.55rem;
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.prophecy-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 121, 121, 0.94), rgba(255, 199, 136, 0.94));
  box-shadow: 0 0 12px rgba(255, 148, 120, 0.52);
  transition: width 900ms cubic-bezier(0.16, 0.84, 0.2, 1);
}

.prophecy-progress-text {
  margin: 0.38rem 0 0;
  font-size: 0.76rem;
  color: rgba(255, 218, 193, 0.86);
}

.alohomora-lock {
  margin: 0.68rem 0 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 220, 158, 0.3);
  background: rgba(8, 10, 17, 0.6);
  padding: 0.62rem;
  display: grid;
  gap: 0.52rem;
}

.alohomora-title {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 232, 192, 0.9);
}

.alohomora-dial {
  position: relative;
  width: 100%;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 167, 0.3);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 224, 167, 0.12), rgba(255, 224, 167, 0.02) 60%),
    rgba(4, 7, 12, 0.78);
  touch-action: none;
}

.alohomora-dial[data-hint="cold"] {
  box-shadow: inset 0 0 0 1px rgba(121, 173, 255, 0.18);
}

.alohomora-dial[data-hint="warm"] {
  box-shadow:
    inset 0 0 0 1px rgba(255, 212, 133, 0.32),
    0 0 14px rgba(255, 210, 122, 0.2);
}

.alohomora-dial[data-hint="hot"] {
  box-shadow:
    inset 0 0 0 1px rgba(167, 248, 197, 0.48),
    0 0 18px rgba(151, 245, 186, 0.3);
}

.alohomora-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 226, 163, 0.92);
  box-shadow: 0 0 12px rgba(255, 214, 133, 0.5);
}

.alohomora-pick {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 3px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2cf, #d8a85f);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-35deg);
  box-shadow: 0 0 10px rgba(255, 215, 140, 0.45);
}

.alohomora-message {
  margin: 0;
  min-height: 1.18rem;
  font-size: 0.8rem;
  color: rgba(245, 226, 194, 0.9);
}

.start-date-card.alohomora-unlocked .alohomora-lock {
  border-color: rgba(163, 248, 198, 0.44);
  box-shadow: 0 0 18px rgba(141, 241, 180, 0.25);
}

.alohomora-open-btn {
  width: 100%;
  margin-top: 0.7rem;
  min-height: 44px;
}

.alohomora-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 460;
  background: rgba(2, 5, 12, 0.72);
  backdrop-filter: blur(8px);
}

.alohomora-modal.open {
  display: flex;
}

.alohomora-modal-panel {
  width: min(540px, 94vw);
  border-radius: 16px;
  border: 1px solid rgba(255, 223, 166, 0.3);
  background: linear-gradient(165deg, rgba(10, 13, 24, 0.95), rgba(7, 10, 18, 0.96));
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.alohomora-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.alohomora-modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.prophecy-seal-burst {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.prophecy-seal-burst::before,
.prophecy-seal-burst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) scale(0.35);
  border-radius: 999px;
  opacity: 0;
}

.prophecy-seal-burst::before {
  width: min(320px, 72%);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 224, 177, 0.84);
  box-shadow:
    0 0 24px rgba(255, 215, 148, 0.72),
    inset 0 0 18px rgba(255, 231, 182, 0.42);
}

.prophecy-seal-burst::after {
  width: min(260px, 58%);
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 188, 148, 0.74);
}

.prophecy-seal-burst.active {
  animation: prophecySealFlash 940ms ease-out forwards;
}

.prophecy-seal-burst.active::before {
  animation: prophecySealRing 940ms cubic-bezier(0.14, 0.8, 0.2, 1) forwards;
}

.prophecy-seal-burst.active::after {
  animation: prophecySealInner 940ms cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
}

.error-storm {
  position: relative;
  height: 140px;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 90, 0.35);
  background: linear-gradient(180deg, rgba(35, 8, 11, 0.88), rgba(12, 5, 8, 0.95));
  overflow: hidden;
}

.error-line {
  position: absolute;
  left: 10px;
  right: 10px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255, 136, 136, 0.88);
  text-shadow: 0 0 8px rgba(255, 74, 74, 0.34);
  opacity: 0;
  animation: errorScroll linear infinite;
}

.lore-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 148, 0.3);
  height: 215px;
}

.lore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.lore-state-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 221, 164, 0.34);
  padding: 0.22rem 0.62rem;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 231, 192, 0.92);
  background: rgba(255, 255, 255, 0.04);
}

.lore-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(9px) saturate(0.75) brightness(0.6);
  transform: scale(1.12);
}

.lore-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.9rem;
  color: rgba(255, 239, 208, 0.94);
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
}

.lore-sigil {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 166, 0.66);
  box-shadow: 0 0 16px rgba(255, 219, 150, 0.36);
  background:
    radial-gradient(circle at center, rgba(255, 246, 222, 0.2), rgba(255, 246, 222, 0) 64%),
    conic-gradient(from 0deg, rgba(255, 224, 167, 0.7), rgba(255, 224, 167, 0.08), rgba(255, 224, 167, 0.7));
  animation: loreSigilSpin 9.8s linear infinite;
}

.lore-fragments {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.48rem;
}

.lore-fragment {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 219, 148, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.62rem;
  color: rgba(239, 225, 195, 0.9);
  font-size: 0.82rem;
}

.lore-locked-btn {
  margin-top: 0.72rem;
  width: 100%;
  min-height: 44px;
  opacity: 0.9;
}

.lore-locked-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.lore-footnote {
  margin: 0.5rem 0 0;
  color: rgba(236, 221, 188, 0.86);
  font-size: 0.78rem;
}

.lore-card {
  border-color: rgba(144, 232, 167, 0.34);
  background:
    radial-gradient(circle at 110% -12%, rgba(152, 243, 178, 0.18), rgba(152, 243, 178, 0) 44%),
    linear-gradient(165deg, rgba(8, 24, 16, 0.9), rgba(8, 18, 13, 0.92));
}

.character-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: space-between;
  border-color: rgba(255, 219, 120, 0.35);
  background:
    radial-gradient(circle at 108% -8%, rgba(255, 228, 140, 0.22), rgba(255, 228, 140, 0) 42%),
    linear-gradient(165deg, rgba(33, 24, 8, 0.9), rgba(20, 14, 6, 0.92));
}

.character-card .btn {
  width: 100%;
  min-height: 48px;
}

.profile-quick-card .btn {
  width: 100%;
}

.creator-progress-card {
  border-color: rgba(181, 233, 255, 0.26);
  background:
    radial-gradient(circle at -5% -5%, rgba(147, 212, 255, 0.14), rgba(147, 212, 255, 0) 42%),
    linear-gradient(160deg, rgba(8, 14, 26, 0.85), rgba(9, 10, 19, 0.88));
}

.creator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.creator-progress-percent {
  border-radius: 999px;
  border: 1px solid rgba(171, 236, 255, 0.36);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.58rem;
  font-family: "Cinzel", Georgia, serif;
  color: rgba(218, 243, 255, 0.96);
}

.creator-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.creator-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(117, 198, 255, 0.95), rgba(181, 240, 255, 0.95));
  box-shadow: 0 0 16px rgba(129, 209, 255, 0.52);
  transition: width 420ms ease;
}

.creator-checklist {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.creator-check {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.48rem 0.6rem 0.48rem 1.7rem;
  font-size: 0.84rem;
}

.creator-check::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  transform: translateY(-50%);
}

.creator-check.pending::before {
  background: rgba(255, 166, 133, 0.8);
  box-shadow: 0 0 10px rgba(255, 136, 102, 0.4);
}

.creator-check.done {
  border-color: rgba(172, 238, 197, 0.32);
  background: rgba(126, 221, 171, 0.08);
}

.creator-check.done::before {
  background: rgba(151, 245, 186, 0.96);
  box-shadow: 0 0 12px rgba(151, 245, 186, 0.55);
}

.roadmap-card,
.tasks-card,
.history-card {
  border-color: rgba(255, 222, 160, 0.22);
  background:
    radial-gradient(circle at 110% -8%, rgba(255, 224, 153, 0.1), rgba(255, 224, 153, 0) 44%),
    linear-gradient(170deg, rgba(8, 12, 22, 0.84), rgba(7, 9, 16, 0.9));
}

.roadmap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.62rem;
}

.roadmap-kicker {
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 160, 0.28);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.18rem 0.52rem;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 231, 197, 0.9);
}

.roadmap-list,
.tasks-list,
.history-list {
  display: grid;
  gap: 0.56rem;
}

.roadmap-item,
.task-item,
.history-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 225, 164, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.58rem 0.64rem;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.58rem;
}

.roadmap-item h4,
.task-item h4 {
  margin: 0;
  font-size: 0.9rem;
}

.roadmap-item p,
.task-item p {
  margin: 0.18rem 0 0;
  font-size: 0.76rem;
  color: rgba(240, 227, 199, 0.84);
}

.roadmap-item small,
.task-meta small,
.history-item small {
  color: rgba(235, 219, 186, 0.72);
  font-size: 0.72rem;
}

.roadmap-state {
  border-radius: 999px;
  border: 1px solid rgba(255, 219, 148, 0.3);
  padding: 0.13rem 0.5rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-state.done {
  color: rgba(164, 246, 196, 0.98);
  border-color: rgba(141, 243, 184, 0.42);
  background: rgba(132, 220, 166, 0.12);
}

.roadmap-state.active {
  color: rgba(255, 236, 194, 0.98);
  border-color: rgba(255, 223, 160, 0.42);
  background: rgba(255, 219, 143, 0.11);
}

.roadmap-state.locked {
  color: rgba(239, 215, 181, 0.82);
  border-color: rgba(255, 227, 173, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.task-item.done {
  border-color: rgba(148, 238, 180, 0.35);
  background: rgba(122, 224, 160, 0.1);
}

.task-meta {
  display: grid;
  justify-items: end;
  gap: 0.22rem;
}

.task-priority {
  border-radius: 999px;
  border: 1px solid rgba(170, 235, 255, 0.35);
  padding: 0.14rem 0.5rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(204, 241, 255, 0.95);
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.history-item strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(245, 232, 205, 0.94);
}

.admin-control-card {
  border-color: rgba(255, 226, 160, 0.28);
  background:
    radial-gradient(circle at 120% -5%, rgba(255, 216, 138, 0.16), rgba(255, 216, 138, 0) 34%),
    linear-gradient(165deg, rgba(18, 17, 11, 0.88), rgba(11, 10, 8, 0.92));
}

.admin-form {
  display: grid;
  gap: 0.56rem;
}

.admin-form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.84rem;
}

.admin-users-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.62rem;
}

.admin-user-row {
  border-radius: 12px;
  border: 1px solid rgba(255, 219, 148, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.admin-user-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 232, 204, 0.92);
}

.admin-user-meta span {
  font-size: 0.77rem;
  color: rgba(219, 202, 168, 0.8);
}

.admin-user-controls {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: 120px 1fr 1fr auto;
}

.admin-user-controls input,
.admin-user-controls select {
  padding: 0.5rem 0.56rem;
  font-size: 0.83rem;
}

.admin-user-controls .btn {
  min-height: 38px;
}

.dashboard-mobile-nav {
  display: none;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  place-items: center;
  background: rgba(2, 4, 10, 0.74);
  backdrop-filter: blur(10px);
  padding: 1rem;
}

.profile-modal.open {
  display: grid;
}

.profile-required-modal {
  z-index: 470;
}

.profile-required-panel {
  width: min(680px, 94vw);
  max-height: none;
  overflow: visible;
}

.profile-required-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-panel {
  width: min(900px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 219, 148, 0.44);
  background:
    radial-gradient(circle at 14% -8%, rgba(255, 221, 160, 0.16), rgba(255, 221, 160, 0) 42%),
    linear-gradient(160deg, rgba(13, 17, 28, 0.96), rgba(26, 16, 11, 0.92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 226, 171, 0.14);
  padding: clamp(0.95rem, 2vw, 1.3rem);
}

.profile-hero {
  border-radius: 14px;
  border: 1px solid rgba(255, 219, 148, 0.26);
  background: linear-gradient(130deg, rgba(255, 220, 158, 0.1), rgba(255, 220, 158, 0.02));
  padding: 0.9rem;
  margin-bottom: 0.8rem;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.profile-form {
  display: grid;
  gap: 0.78rem;
  margin-top: 0.85rem;
}

.profile-layout {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.6fr);
  align-items: start;
}

.profile-preview-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 160, 0.26);
  background:
    radial-gradient(circle at 10% 0%, rgba(145, 215, 255, 0.15), rgba(145, 215, 255, 0) 42%),
    linear-gradient(150deg, rgba(8, 12, 24, 0.84), rgba(20, 13, 9, 0.84));
  padding: 0.85rem;
}

.profile-preview-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 223, 160, 0.88);
}

.profile-preview-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 223, 163, 0.62);
  background: rgba(0, 0, 0, 0.26);
}

.profile-preview-name {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
  color: #f9ecd1;
}

.profile-preview-sub {
  margin: 0.2rem 0 0;
  color: rgba(223, 209, 178, 0.82);
  font-size: 0.88rem;
}

.profile-preview-chips {
  margin-top: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 160, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 233, 204, 0.88);
  font-size: 0.74rem;
  padding: 0.28rem 0.5rem;
}

.profile-preview-note {
  margin: 0.8rem 0 0;
}

.profile-form-group {
  border: 1px solid rgba(255, 219, 148, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem;
}

.profile-save-btn {
  margin-top: 0.2rem;
  min-height: 46px;
}

.form-section-title {
  margin: 0.2rem 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: rgba(255, 223, 160, 0.95);
}

.password-form {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 219, 148, 0.22);
}

.password-form h4 {
  margin: 0;
}

@keyframes errorScroll {
  0% {
    transform: translateY(132px) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 0.95;
  }
  100% {
    transform: translateY(-24px) translateX(8px);
    opacity: 0;
  }
}

@keyframes prophecySealFlash {
  0% {
    opacity: 0;
    background: rgba(255, 241, 214, 0);
  }
  26% {
    opacity: 1;
    background: rgba(255, 241, 214, 0.42);
  }
  100% {
    opacity: 0;
    background: rgba(255, 241, 214, 0);
  }
}

@keyframes prophecySealRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
  }
  26% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.28);
  }
}

@keyframes prophecySealInner {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }
  34% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1) rotate(22deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.24) rotate(82deg);
  }
}

@keyframes loreSigilSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tunnel {
  z-index: 12;
  --tunnel-duration: 3600ms;
  opacity: 0;
  overflow: hidden;
  background: rgba(2, 3, 8, 1);
  transform: perspective(1200px) translateZ(0) scale(0.76);
  transition: opacity 120ms linear;
}

.tunnel.active {
  opacity: 1;
  animation: tunnelTravel var(--tunnel-duration) cubic-bezier(0.1, 0.82, 0.2, 1) forwards;
}

.tunnel::before,
.tunnel::after {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
  opacity: 0;
}

.tunnel::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 226, 0.24) 0 18%, rgba(255, 248, 226, 0) 38%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(183, 228, 255, 0.24) 0 1deg, rgba(183, 228, 255, 0) 1.2deg 4.2deg);
  mix-blend-mode: screen;
  filter: blur(0.45px);
}

.tunnel::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 249, 230, 0.58) 0%, rgba(255, 231, 170, 0.18) 34%, rgba(255, 231, 170, 0) 66%),
    radial-gradient(ellipse at center, rgba(13, 20, 40, 0) 40%, rgba(3, 6, 12, 0.86) 100%);
}

.tunnel.active::before {
  opacity: 1;
  animation: tunnelHyperBurst var(--tunnel-duration) cubic-bezier(0.1, 0.86, 0.2, 1) forwards;
}

.tunnel.active::after {
  opacity: 1;
  animation: tunnelEdgeFlash var(--tunnel-duration) ease-out forwards;
}

.tunnel-depth,
.tunnel-ring-lattice,
.tunnel-streak-field,
.tunnel-glow {
  position: absolute;
  inset: -10%;
  opacity: 0;
}

.tunnel-depth {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 220, 0.12) 0 18%, rgba(255, 246, 220, 0) 32%),
    repeating-radial-gradient(circle at 50% 50%, rgba(221, 188, 120, 0.28) 0 2px, rgba(221, 188, 120, 0) 4px 16px);
  mix-blend-mode: screen;
  filter: blur(0.4px);
}

.tunnel-ring-lattice {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(165, 218, 255, 0.34) 0 1px, rgba(165, 218, 255, 0) 2px 11px),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 233, 190, 0.2) 0 1.1deg, rgba(255, 233, 190, 0) 1.2deg 6deg);
  mix-blend-mode: screen;
}

.tunnel-streak-field {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 251, 237, 0.38) 0%, rgba(255, 251, 237, 0) 58%),
    repeating-conic-gradient(from 8deg at 50% 50%, rgba(222, 244, 255, 0.22) 0 0.9deg, rgba(222, 244, 255, 0) 1deg 3.8deg);
  filter: blur(0.3px);
}

.tunnel-glow {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 223, 0.66) 0%, rgba(255, 232, 173, 0.24) 28%, rgba(255, 232, 173, 0) 60%);
  mix-blend-mode: screen;
}

.tunnel.active .tunnel-depth {
  opacity: 1;
  animation: tunnelDepthZoom var(--tunnel-duration) cubic-bezier(0.08, 0.86, 0.2, 1) forwards;
}

.tunnel.active .tunnel-ring-lattice {
  opacity: 1;
  animation: tunnelRingsSpin var(--tunnel-duration) linear forwards;
}

.tunnel.active .tunnel-streak-field {
  opacity: 1;
  animation: tunnelStreakRush var(--tunnel-duration) cubic-bezier(0.1, 0.86, 0.2, 1) forwards;
}

.tunnel.active .tunnel-glow {
  opacity: 1;
  animation: tunnelGlowPulse var(--tunnel-duration) ease-out forwards;
}

.divine-portal {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 225;
  overflow: hidden;
}

.divine-portal.active {
  opacity: 1;
  animation: divinePortalIn 2000ms ease-out forwards;
}

.divine-portal-core,
.divine-portal-rings,
.divine-portal-streaks {
  position: absolute;
  inset: 0;
}

.divine-portal-core {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 251, 241, 1) 0%, rgba(255, 243, 216, 0.96) 18%, rgba(255, 227, 173, 0.82) 38%, rgba(255, 227, 173, 0.2) 62%, rgba(255, 227, 173, 0) 74%);
  transform: scale(0.4);
  filter: blur(1px);
}

.divine-portal-rings {
  background:
    repeating-radial-gradient(circle at center, rgba(255, 250, 235, 0.3) 0 5px, rgba(255, 220, 148, 0.1) 6px 12px, rgba(255, 220, 148, 0) 13px 24px),
    conic-gradient(from 0deg at 50% 50%, rgba(255, 236, 198, 0.36), rgba(255, 213, 147, 0.05), rgba(255, 236, 198, 0.36));
  mix-blend-mode: screen;
  transform: scale(0.6);
}

.divine-portal-streaks {
  background:
    radial-gradient(ellipse at center, rgba(255, 254, 246, 0.42) 0%, rgba(255, 254, 246, 0) 62%),
    repeating-conic-gradient(from 6deg at 50% 50%, rgba(255, 246, 218, 0.24) 0 1.5deg, rgba(255, 246, 218, 0) 2.2deg 7deg);
  opacity: 0.92;
  transform: scale(0.72);
  filter: blur(0.25px);
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-30px) translateX(-20px);
  }
}

@keyframes logoApproach {
  0% {
    opacity: 0;
    transform: translateY(52px) scale(0.03);
    filter: brightness(1.42);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes globalFogDrift {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -1.5%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
}

@keyframes revelioFlash {
  0% {
    opacity: 0;
    background: rgba(255, 245, 216, 0);
  }
  16% {
    opacity: 1;
    background: rgba(255, 245, 216, 0.97);
  }
  45% {
    opacity: 1;
    background: rgba(255, 245, 216, 0.45);
  }
  100% {
    opacity: 0;
    background: rgba(255, 245, 216, 0);
  }
}

@keyframes revelioText {
  0% {
    opacity: 0;
    transform: scale(0.45) translateZ(0);
  }
  18% {
    opacity: 1;
    transform: scale(0.95) translateZ(0);
  }
  62% {
    opacity: 1;
    transform: scale(1.28) translateZ(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.56) translateZ(0);
  }
}

@keyframes promptPulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

@keyframes ctaPulse {
  0% {
    transform: translate(-50%, 0) scale(1);
    box-shadow: 0 10px 28px rgba(255, 211, 120, 0.24);
  }
  50% {
    transform: translate(-50%, 0) scale(1.08);
    box-shadow: 0 14px 36px rgba(255, 211, 120, 0.4);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    box-shadow: 0 10px 28px rgba(255, 211, 120, 0.24);
  }
}

@keyframes ctaLaunch {
  0% {
    transform: translate(-50%, 0) scale(1.08);
    filter: brightness(1.08);
  }
  55% {
    transform: translate(-50%, 0) scale(1.24);
    filter: brightness(1.22);
  }
  100% {
    transform: translate(-50%, 0) scale(0.52);
    opacity: 0;
    filter: brightness(1.35);
  }
}

@keyframes introWarpOut {
  0% {
    transform: scale(1);
    filter: brightness(1);
    opacity: 1;
  }
  65% {
    transform: scale(1.08);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1.18);
    filter: brightness(1.45);
    opacity: 0;
  }
}

@keyframes starsWarp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
  }
  100% {
    transform: translateY(-80px) translateX(-65px) scale(1.24);
  }
}

@keyframes sparkFade {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sx, 0), var(--sy, -12px), 0) scale(0.2);
  }
}

@keyframes diffindoWordTop {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.92);
  }
  18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(1.04);
  }
}

@keyframes diffindoWordBottom {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.92);
  }
  18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(1.04);
  }
}

@keyframes diffindoSlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-27deg) scaleX(0.04);
  }
  30% {
    opacity: 1;
  }
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-27deg) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-27deg) scaleX(1.02);
  }
}

@keyframes diffindoSplitLeft {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateX(-106%);
    opacity: 0;
  }
}

@keyframes diffindoSplitRight {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateX(106%);
    opacity: 0;
  }
}

@keyframes diffindoWordSplitTop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translate(-20px, -62px);
    opacity: 0;
  }
}

@keyframes diffindoWordSplitBottom {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translate(20px, 62px);
    opacity: 0;
  }
}

@keyframes diffindoSpark {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sx, 0), var(--sy, -18px), 0) scale(0.25);
  }
}

@keyframes divineFlood {
  0% {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(1px);
  }
  44% {
    opacity: 1;
    transform: scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 0.92;
    transform: scale(1.08);
    filter: blur(0.7px);
  }
}

@keyframes divineWhiteout {
  0% {
    opacity: 0;
    filter: blur(1px);
  }
  35% {
    opacity: 0.95;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes envelopeInvite {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes envelopeZoomIn {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.55));
  }
  100% {
    transform: translateY(-2.5vh) scale(2.55);
    filter: drop-shadow(0 34px 72px rgba(0, 0, 0, 0.35));
  }
}

@keyframes divinePortalIn {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.divine-portal.active .divine-portal-core {
  animation: portalCoreZoom 2000ms cubic-bezier(0.06, 0.88, 0.2, 1) forwards;
}

.divine-portal.active .divine-portal-rings {
  animation: portalRingsZoom 2000ms cubic-bezier(0.06, 0.88, 0.2, 1) forwards;
}

.divine-portal.active .divine-portal-streaks {
  animation: portalStreaksSpin 2000ms linear forwards;
}

@keyframes portalCoreZoom {
  0% {
    transform: scale(0.42);
    filter: blur(2px) brightness(1);
  }
  100% {
    transform: scale(3.7);
    filter: blur(0) brightness(1.34);
  }
}

@keyframes portalRingsZoom {
  0% {
    transform: scale(0.6) rotate(0deg);
    opacity: 0.65;
  }
  100% {
    transform: scale(4.8) rotate(40deg);
    opacity: 1;
  }
}

@keyframes portalStreaksSpin {
  0% {
    transform: scale(0.72) rotate(0deg);
    opacity: 0.88;
  }
  100% {
    transform: scale(5.2) rotate(160deg);
    opacity: 1;
  }
}

@keyframes tunnelTravel {
  0% {
    transform: perspective(1200px) translateZ(0) scale(0.76);
    filter: blur(0) brightness(1);
  }
  24% {
    transform: perspective(1200px) translateZ(140px) scale(1.05);
    filter: blur(0.2px) brightness(1.08);
  }
  64% {
    transform: perspective(1200px) translateZ(520px) scale(1.7);
    filter: blur(0.35px) brightness(1.22);
  }
  100% {
    transform: perspective(1200px) translateZ(980px) scale(2.85);
    filter: blur(1px) brightness(1.46);
  }
}

@keyframes tunnelDepthZoom {
  0% {
    transform: scale(0.84);
  }
  100% {
    transform: scale(4.1);
  }
}

@keyframes tunnelRingsSpin {
  0% {
    transform: scale(0.8) rotate(0deg);
  }
  100% {
    transform: scale(5.2) rotate(580deg);
  }
}

@keyframes tunnelStreakRush {
  0% {
    transform: scale(0.76) rotate(0deg);
    opacity: 0.25;
  }
  24% {
    opacity: 0.78;
  }
  62% {
    transform: scale(3.1) rotate(16deg);
    opacity: 1;
  }
  100% {
    transform: scale(6.4) rotate(28deg);
    opacity: 1;
  }
}

@keyframes tunnelGlowPulse {
  0% {
    transform: scale(0.76);
    opacity: 0.35;
  }
  36% {
    transform: scale(1.08);
    opacity: 0.84;
  }
  62% {
    transform: scale(1.66);
    opacity: 1;
  }
  100% {
    transform: scale(3.25);
    opacity: 1;
  }
}

@keyframes tunnelHyperBurst {
  0% {
    transform: scale(0.74) rotate(0deg);
    opacity: 0.16;
  }
  44% {
    transform: scale(1.8) rotate(120deg);
    opacity: 0.48;
  }
  100% {
    transform: scale(4.5) rotate(300deg);
    opacity: 0.92;
  }
}

@keyframes tunnelEdgeFlash {
  0% {
    transform: scale(0.78);
    opacity: 0.18;
  }
  38% {
    transform: scale(1.2);
    opacity: 0.44;
  }
  100% {
    transform: scale(2.8);
    opacity: 1;
  }
}

@keyframes loginArrival {
  0% {
    opacity: 0;
    transform: translateY(38px) scale(0.94);
    filter: blur(2px) brightness(1.15);
    box-shadow: 0 0 0 rgba(255, 230, 175, 0);
  }
  65% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
    filter: blur(0) brightness(1.03);
    box-shadow: 0 0 42px rgba(255, 230, 175, 0.2);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 720px) {
  .spell-trace {
    top: 54%;
    width: min(94vw, 520px);
  }

  .trace-area {
    height: min(260px, 38vh);
  }

  .intro-cta {
    top: 52%;
    min-width: min(92vw, 360px);
    padding: 0.95rem 1.6rem;
  }

  .brand-logo-wrap {
    width: min(840px, 86vw);
  }

  .brand-sub {
    letter-spacing: 0.22em;
  }

  .letter {
    top: 31%;
    left: 14%;
    width: 72%;
    padding: 1.05rem;
  }

  .letter p {
    font-size: 0.92rem;
  }

  .dashboard-screen {
    padding: 0.7rem 0.7rem 5.9rem;
  }

  .dashboard-shell {
    border-radius: 18px;
    padding: 0.75rem;
  }

  .dashboard-hero {
    padding: 0.8rem;
    gap: 0.75rem;
  }

  .dashboard-nox-brand {
    width: min(180px, 52vw);
    min-width: 120px;
  }

  .dashboard-hero-main {
    width: 100%;
  }

  .dashboard-user {
    min-width: 100%;
    align-items: flex-start;
  }

  .dashboard-avatar-wrap,
  .dashboard-house-wrap {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
  }

  .dashboard-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .dashboard-actions .btn {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 0.62rem 0.65rem;
    font-size: 0.83rem;
  }

  .dashboard-grid {
    display: block;
    margin-top: 0.78rem;
  }

  .overview-stack {
    grid-template-columns: 1fr;
  }

  .overview-stack > .creator-progress-card,
  .overview-stack > .start-date-card,
  .overview-stack > .character-card,
  .overview-stack > .lore-card {
    grid-column: 1;
  }

  .dashboard-view {
    display: none;
  }

  .dashboard-view.is-active {
    display: block;
    animation: mobileCardReveal 320ms ease-out both;
  }

  .lore-preview {
    height: 210px;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .task-item,
  .history-item {
    display: grid;
    gap: 0.4rem;
  }

  .task-meta {
    justify-items: start;
  }

  .error-storm {
    height: 126px;
  }

  .admin-user-controls {
    grid-template-columns: 1fr;
  }

  .dashboard-mobile-nav {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 220, 160, 0.28);
    background: rgba(7, 9, 18, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .dash-nav-btn {
    border: 1px solid rgba(255, 220, 160, 0.2);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(246, 235, 208, 0.9);
    border-radius: 12px;
    min-height: 42px;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .dash-nav-btn.is-active {
    color: #1c1408;
    border-color: transparent;
    background: linear-gradient(120deg, rgba(255, 218, 141, 0.98), rgba(255, 234, 175, 0.98));
    box-shadow: 0 8px 20px rgba(255, 208, 120, 0.35);
  }

  .profile-modal {
    padding: 0;
    align-items: stretch;
  }

  .profile-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
    padding: 0.95rem 0.85rem calc(1.1rem + env(safe-area-inset-bottom));
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .profile-preview-card {
    order: -1;
  }

  .profile-save-btn {
    position: sticky;
    bottom: 8px;
    z-index: 4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }
}

@media (min-width: 721px) {
  .dashboard-mobile-nav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-view.is-active,
  .dash-nav-btn,
  .dashboard-actions .btn {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes mobileCardReveal {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
