/* ═══════════════════════════════════════════════════════════
   CHRONODINO UNIVERSE — FICTIONAL WORLD-BUILDING PAGE
   Author: ChronoDino Team
   Description: All page-specific styles for chronodino-universe.html
   ═══════════════════════════════════════════════════════════ */

.universe-page {
  overflow-x: hidden;
}

/* ─── FICTION RIBBON / BADGE (normal flow — scrolls away) ─── */
.fiction-badge-wrap {
  position: relative; /* NOT fixed/sticky — scrolls away naturally */
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  pointer-events: none;
}
.fiction-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcb5e, #f0a92e 45%, #d97720);
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clr-void);
  box-shadow: 0 6px 28px rgba(217, 119, 32, .45), 0 0 40px rgba(255, 203, 94, .25);
  border: 2px solid rgba(255, 235, 190, .5);
  animation: fictionGlow 2.8s ease-in-out infinite;
}
@keyframes fictionGlow {
  0%, 100% { box-shadow: 0 6px 28px rgba(217, 119, 32, .45), 0 0 40px rgba(255, 203, 94, .25); }
  50%      { box-shadow: 0 6px 34px rgba(217, 119, 32, .7), 0 0 60px rgba(255, 203, 94, .4); }
}
.fiction-badge .badge-glow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-void);
  animation: badgeBlink 1.6s ease-in-out infinite;
}
@keyframes badgeBlink {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}

/* ─── STICKY BILINGUAL TOGGLER (top-right) ─── */
.universe-lang-toggle {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem 0;
  pointer-events: auto;
}
.universe-lang-toggle .lang-toggle {
  background: rgba(10, 8, 4, 0.75);
  border: 1px solid rgba(232, 160, 32, 0.25);
  border-radius: 999px;
  padding: 0.2rem;
  backdrop-filter: blur(6px);
}

/* ─── HERO ─── */
.universe-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 119, 32, .22) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 85%, rgba(88, 160, 220, .08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(232, 160, 32, .1) 0%, transparent 50%),
    radial-gradient(circle at 50% 35%, #241a0b 0%, #120c05 100%);
}
.universe-hero-bg-dino {
  position: absolute;
  font-size: clamp(8rem, 24vw, 16rem);
  opacity: .04;
  animation: heroDinoFloat 9s ease-in-out infinite;
  pointer-events: none;
}
.universe-hero-bg-dino.left  { left: 3%;  bottom: 6%;  transform: rotate(-12deg); }
.universe-hero-bg-dino.right { right: 3%; top: 12%;   transform: rotate(10deg); animation-delay: 2s; }
@keyframes heroDinoFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-22px) rotate(-4deg); }
}

.universe-hero-content {
  max-width: 860px;
  position: relative;
  z-index: 1;
}
.universe-hero-year {
  display: inline-block;
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: .5em;
  color: var(--clr-amber);
  background: rgba(232, 160, 32, .08);
  border: 1px solid rgba(232, 160, 32, .3);
  padding: .4rem 1.4rem .4rem 1.9rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  text-shadow: 0 0 18px rgba(232, 160, 32, .4);
}
.universe-hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(245, 234, 208, .5);
  margin-bottom: .6rem;
  font-weight: 800;
}
.universe-hero-title {
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff0cf, #ffcb5e 40%, #f0a92e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 18px rgba(232, 160, 32, .3));
}
.universe-hero-subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255, 246, 228, .85);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}
.universe-hero-intro {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  font-size: .96rem;
  color: rgba(255, 246, 228, .68);
  line-height: 1.8;
}
.universe-hero-intro .lang-hi {
  display: block;
  margin-top: .6rem;
  font-size: .86rem;
  color: rgba(255, 246, 228, .55);
}
.universe-hero-cta {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.universe-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.9rem;
  background: var(--clr-amber);
  color: var(--clr-void);
  border: 2px solid var(--clr-amber);
  border-radius: 30px;
  font-family: 'Lilita One', sans-serif;
  font-size: .95rem;
  text-decoration: none;
  transition: all .28s ease;
  cursor: pointer;
}
.universe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(232, 160, 32, .4);
  filter: brightness(1.1);
}
.universe-btn.ghost {
  background: transparent;
  color: var(--clr-amber);
  border-color: rgba(232, 160, 32, .5);
}
.universe-btn.ghost:hover {
  background: rgba(232, 160, 32, .1);
}

/* ─── SECTION SHELLS ─── */
.universe-section {
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.universe-section:nth-child(odd) {
  background: var(--clr-void);
}
.universe-section:nth-child(even) {
  background: var(--clr-earth);
}
.universe-section-bgtext {
  position: absolute;
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(5rem, 14vw, 10rem);
  color: rgba(232, 160, 32, .045);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  letter-spacing: .04em;
}
.universe-section-bgtext.left  { left: -2%; }
.universe-section-bgtext.right { right: -2%; }
.universe-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.universe-section-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-amber);
  margin-bottom: .7rem;
}
.universe-section-title {
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  color: var(--clr-bone);
  margin-bottom: 1.6rem;
  line-height: 1.15;
}
.universe-section-subtitle {
  font-size: 1rem;
  color: rgba(255, 246, 228, .72);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.universe-section-subtitle .lang-hi {
  display: block;
  margin-top: .5rem;
  font-size: .9rem;
  color: rgba(255, 246, 228, .55);
}

/* ─── TIMELINE ─── */
.universe-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.universe-timeline-card {
  background: linear-gradient(170deg, rgba(38, 28, 12, .9), rgba(20, 14, 6, .95));
  border: 1px solid rgba(232, 160, 32, .15);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  position: relative;
  transition: all .3s ease;
}
.universe-timeline-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 160, 32, .45);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.universe-timeline-card .tl-year {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.6rem;
  color: var(--clr-amber);
  margin-bottom: .5rem;
  display: block;
  text-shadow: 0 0 14px rgba(232, 160, 32, .35);
}
.universe-timeline-card .tl-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.05rem;
  color: #fbeed8;
  margin-bottom: .55rem;
}
.universe-timeline-card p {
  font-size: .85rem;
  color: rgba(255, 246, 228, .65);
  line-height: 1.65;
}

/* ─── FOUNDING SIX ─── */
.founding-six {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-top: 1.4rem;
  margin-bottom: 2.2rem;
}
.founding-six-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  background: rgba(232, 160, 32, .07);
  border: 1px solid rgba(232, 160, 32, .25);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: #ffd47f;
  transition: all .25s ease;
}
.founding-six-item:hover {
  background: rgba(232, 160, 32, .15);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(232, 160, 32, .2);
}

/* ─── STORY CARDS (PARK / LAB DETAIL) ─── */
.universe-story-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.universe-story-card.flip {
  grid-template-columns: 1fr 1.1fr;
}
.universe-story-card-text h3 {
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--clr-bone);
  margin-bottom: .8rem;
}
.universe-story-card-text p {
  font-size: .95rem;
  color: rgba(255, 246, 228, .72);
  line-height: 1.75;
  margin-bottom: .8rem;
}
.universe-story-card-text p .lang-hi {
  display: block;
  font-size: .85rem;
  color: rgba(255, 246, 228, .55);
  margin-top: .3rem;
}
.universe-story-card-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(232, 160, 32, .18);
  background: #1a1208;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  transition: all .4s ease;
}
.universe-story-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.universe-story-card-visual:hover {
  transform: scale(1.015);
  border-color: rgba(232, 160, 32, .4);
}

/* ─── TALL CARDS: WORLD TODAY / GAMES ─── */
.universe-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
  margin-top: 2rem;
}
.universe-info-card {
  background: linear-gradient(165deg, rgba(38, 28, 12, .85), rgba(20, 14, 6, .95));
  border: 1px solid rgba(232, 160, 32, .15);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.5rem;
  transition: all .3s ease;
}
.universe-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 160, 32, .4);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.universe-info-card .ic-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: .9rem;
}
.universe-info-card .ic-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.25rem;
  color: #fbeed8;
  margin-bottom: .5rem;
}
.universe-info-card .ic-sub {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-amber);
  margin-bottom: .8rem;
}
.universe-info-card p {
  font-size: .87rem;
  color: rgba(255, 246, 228, .65);
  line-height: 1.7;
}
.universe-info-card p .lang-hi {
  display: block;
  font-size: .8rem;
  color: rgba(255, 246, 228, .5);
  margin-top: .35rem;
}
.universe-info-card.is-link {
  text-decoration: none;
  display: block;
}
.universe-info-card.is-link:hover {
  border-color: rgba(232, 160, 32, .55);
  box-shadow: 0 12px 34px rgba(232, 160, 32, .12);
}

/* ─── ROUTES LIST ─── */
.universe-routes {
  margin-top: 1.5rem;
}
.universe-route {
  background: rgba(38, 28, 12, .8);
  border: 1px solid rgba(232, 160, 32, .14);
  border-left: 4px solid var(--clr-amber);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
  transition: all .3s ease;
}
.universe-route:hover {
  background: rgba(48, 36, 16, .9);
  border-left-color: #ffd47f;
  transform: translateX(4px);
}
.universe-route h4 {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.2rem;
  color: #fbeed8;
  margin-bottom: .5rem;
}
.universe-route h4 .lang-hi {
  font-size: .9rem;
  color: var(--clr-amber);
  font-family: 'Lilita One', sans-serif;
  font-weight: 400;
  display: block;
  margin-top: .1rem;
}
.universe-route > p {
  font-size: .9rem;
  color: rgba(255, 246, 228, .7);
  line-height: 1.7;
  margin-bottom: .9rem;
}
.universe-route > p .lang-hi {
  display: block;
  font-size: .82rem;
  color: rgba(255, 246, 228, .52);
  margin-top: .3rem;
}
.universe-route ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.universe-route ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .84rem;
  color: rgba(255, 246, 228, .6);
  line-height: 1.65;
  margin-bottom: .35rem;
}
.universe-route ul li::before {
  content: '🦴';
  position: absolute;
  left: 0;
  font-size: .85rem;
}
.universe-route ul li .lang-hi {
  display: block;
  font-size: .78rem;
  color: rgba(255, 246, 228, .45);
}

/* ─── MAP / LAYOUT SECTION ─── */
.universe-map-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(232, 160, 32, .25);
  box-shadow: 0 16px 50px rgba(0,0,0,.4);
  background: #140f07;
  position: relative;
}
.universe-map-frame img {
  width: 100%;
  display: block;
}
.universe-map-note {
  padding: 1rem 1.3rem;
  background: rgba(38, 28, 12, .7);
  border-top: 1px solid rgba(232, 160, 32, .2);
  font-size: .78rem;
  color: rgba(255, 246, 228, .55);
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* ─── CTA FOOTER ─── */
.universe-exit {
  text-align: center;
  padding: 5rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(232, 160, 32, .14) 0%, transparent 60%),
    var(--clr-void);
}
.universe-exit .exit-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: heroDinoFloat 5s ease-in-out infinite;
}
.universe-exit h2 {
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--clr-bone);
  margin-bottom: .8rem;
}
.universe-exit p {
  color: rgba(255, 246, 228, .65);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.7;
}
.universe-exit .universe-btn {
  margin: 0 .4rem .8rem;
}

/* ─── EXTRACTED INLINE-STYLE UTILITIES ─── */
.universe-route-title {
  font-family: 'Lilita One', sans-serif;
  color: var(--clr-amber);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.universe-route-title.sm {
  font-size: 1.2rem;
  margin-bottom: .8rem;
}
.universe-route-title.lg {
  font-size: 1.3rem;
}
.universe-body-copy {
  font-size: .95rem;
  color: rgba(255, 246, 228, .72);
  line-height: 1.8;
}
.universe-body-copy.sm {
  font-size: .92rem;
  color: rgba(255, 246, 228, .65);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.universe-body-copy.top-space {
  margin-top: 1.5rem;
}
.universe-body-copy .lang-hi {
  display: block;
  font-size: .85rem;
  color: rgba(255, 246, 228, .55);
  margin-top: .3rem;
}
.universe-origin-label {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.1rem;
  color: var(--clr-amber);
  margin-top: 1.8rem;
  margin-bottom: .6rem;
}
.universe-card-full {
  grid-column: 1 / -1;
}
.universe-card-grid.stack {
  margin-top: 1.3rem;
}
.universe-map-frame.stack {
  margin-top: 2rem;
}
.universe-founding-heading {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.1rem;
  color: var(--clr-amber);
  margin-top: 1.8rem;
  margin-bottom: .6rem;
}
/* JSON-driven language element that holds a single visible line */
.uni-dynamic {
  display: inline;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .universe-story-card,
  .universe-story-card.flip {
    grid-template-columns: 1fr;
  }
  .universe-story-card-visual {
    order: -1;
    min-height: 180px;
  }
}
@media (max-width: 480px) {
  .universe-section { padding: 3.5rem 1rem; }
  .universe-timeline { grid-template-columns: 1fr; }
  .universe-lang-toggle { padding: 0.5rem 0.75rem 0; }
}