.universe { max-width: 1500px; margin: auto; background: #0c101b; color: #f6f0e3; font-family: 'Segoe UI', Arial, sans-serif; --night: #0c101b; --panel: #121722; --line: rgba(232, 222, 196, .16); --ink: #f6f0e3; --muted: #a8abba; --gold: #e2bd7e; --accent: #d5aa76; }
@scope (.universe) {
.experience { display: grid; grid-template-columns: minmax(340px, 405px) minmax(0, 1fr); min-height: calc(100svh - 115px); }
.story-panel { min-width: 0; display: flex; flex-direction: column; gap: 0; padding: clamp(24px, 3vw, 43px) clamp(23px, 2.7vw, 39px) 22px; background: #121722; border-right: 1px solid var(--line); }
.eyebrow { margin: 0 0 17px; display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: .58rem; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #d9b278; box-shadow: 0 0 0 4px rgba(217, 178, 120, .12), 0 0 15px #d9b278; animation: breathe 2.5s ease-in-out infinite; }
.slash { color: #787d8b; }
.story-intro h1 { font: 400 clamp(2.7rem, 3.8vw, 4.2rem)/.98 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; margin: 0 0 18px; }
.story-intro h1 em { color: var(--gold); font-style: italic; }
.intro-copy { max-width: 330px; color: #b3b5c0; font-size: .83rem; line-height: 1.66; margin: 0 0 22px; }
.index-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #9095a3; font-size: .54rem; font-weight: 800; letter-spacing: .13em; }
.index-line span:first-child { color: #e9cf9f; }

.search-area { position: relative; margin-top: 23px; z-index: 20; }
.search-area label { display: block; color: #aeb0bd; margin-bottom: 9px; font-size: .57rem; font-weight: 800; letter-spacing: .15em; }
.search-box { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #1b2230; border: 1px solid #343b48; }
.search-box:focus-within { border-color: #cfad77; }
.search-box > span { color: var(--gold); font-size: 1.4rem; line-height: 1; }
.search-box input { width: 100%; min-width: 0; background: transparent; color: #f4efe5; border: 0; outline: 0; font-size: .78rem; }
.search-box input::placeholder { color: #7f8591; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; max-height: 250px; overflow: auto; background: #202735; border: 1px solid #51535a; box-shadow: 0 18px 35px rgba(0,0,0,.35); }
.search-results button { width: 100%; display: block; background: transparent; color: #f4eee1; border: 0; border-bottom: 1px solid #363d49; text-align: left; padding: 10px 13px; font-size: .76rem; }
.search-results button:hover, .search-results button:focus-visible { background: #34394a; }
.search-results button span { display: block; color: #b9a17d; font-size: .58rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 3px; }
.search-results p { color: #c4c0b7; font-size: .74rem; padding: 0 12px; }

.selected-book { margin-top: auto; padding-top: 25px; min-height: 0; }
.selected-rule { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; color: #8d929f; font-size: .55rem; font-weight: 800; letter-spacing: .13em; }
.selected-rule span:last-child { color: #d8bc8f; white-space: nowrap; }
.selected-category { color: var(--accent); margin: 22px 0 7px; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .17em; }
.selected-book h3 { font: 400 clamp(1.65rem, 2.2vw, 2.4rem)/1.13 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; margin: 0; }
.selected-series { color: #aeb0bb; font-size: .77rem; margin: 8px 0 0; min-height: 1.2em; }
.selected-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.selected-meta span { display: inline-block; padding: 6px 8px; color: #d9d2c4; border: 1px solid #55545a; font-size: .61rem; }
.selected-access { color: #b5a178; font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; margin: 18px 0 15px; }
.read-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 15px; background: #e7c791; color: #171713; text-decoration: none; font-size: .78rem; font-weight: 800; }
.read-link:hover { background: #f2d7a8; }
.read-link span { font-size: 1rem; }
.selected-download { display: block; margin-top: 8px; padding: 10px 15px; border: 1px solid #e7c791; color: #f2ddb6; text-align: center; text-decoration: none; font-size: .75rem; font-weight: 700; }
.selected-download:hover, .selected-download:focus-visible { background: rgba(231, 199, 145, .13); }
.controls { display: grid; grid-template-columns: 47px minmax(0, 1fr) 47px; gap: 9px; margin-top: 20px; }
.controls button { height: 44px; border: 1px solid #55535a; color: #e9dfd1; background: #202633; }
.controls button:hover { border-color: #d0aa70; color: #f4d9a9; }
.step-button { font-size: 1.18rem; }
.random-button { font-size: .75rem; font-weight: 750; }
.random-button span { color: #edc689; padding-left: 5px; }
.keyboard-hint { color: #7e8491; font-size: .63rem; text-align: center; margin: 11px 0 0; }

.cosmos { position: relative; overflow: hidden; isolation: isolate; min-width: 0; min-height: 680px; background: radial-gradient(circle at 52% 46%, rgba(55,72,112,.4) 0, transparent 41%), radial-gradient(circle at 90% 5%, rgba(98,65,104,.28), transparent 36%), linear-gradient(142deg, #10172b 0%, #0b1120 51%, #10121f 100%); }
.cosmos::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; background: linear-gradient(transparent 99%, rgba(240,240,255,.045) 100%), linear-gradient(90deg, transparent 99%, rgba(240,240,255,.04) 100%); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent 8%, black 70%); }
#starfield { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.cosmos-content { position: relative; height: 100%; min-height: 680px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.cosmos-top { display: flex; justify-content: space-between; gap: 20px; padding: 28px 35px 12px; color: #bdc0cc; font-size: .57rem; font-weight: 800; letter-spacing: .18em; }
.cosmos-top i { color: var(--gold); padding: 0 7px; font-style: normal; }
.cosmos-top span:last-child { color: #d4b584; text-align: right; }
.category-filters { display: flex; align-items: center; gap: 7px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 0 35px 8px; }
.category-filters::-webkit-scrollbar { display: none; }
.category-filters button { flex: 0 0 auto; border: 1px solid rgba(232,222,196,.18); background: rgba(17,23,39,.5); color: #b6b8c1; padding: 8px 11px; border-radius: 99px; font-size: .61rem; white-space: nowrap; }
.category-filters button:hover, .category-filters button[aria-pressed='true'] { border-color: var(--accent); color: #fff4e0; background: rgba(198,166,113,.16); }
.orbit-field { position: relative; min-height: 430px; overflow: hidden; perspective: 1200px; touch-action: pan-y; cursor: grab; }
.orbit-field.dragging { cursor: grabbing; }
.orbit-halo { position: absolute; left: 50%; top: 46%; width: min(80%, 780px); height: 55%; border: 1px solid rgba(219,197,166,.17); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); box-shadow: 0 0 55px rgba(192,164,135,.04), inset 0 0 35px rgba(192,164,135,.04); pointer-events: none; }
.halo-two { width: min(94%, 990px); height: 73%; transform: translate(-50%, -50%) rotate(16deg); opacity: .48; }
.orbit-core { position: absolute; width: 500px; height: 500px; left: 50%; top: 46%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent) 0, transparent 65%); filter: blur(18px); pointer-events: none; }
.book-orbit { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.portal-card { position: absolute; left: 50%; top: 46%; display: block; width: clamp(155px, 18vw, 230px); aspect-ratio: 3 / 4.25; border: 1px solid rgba(245,236,214,.3); background: #202734; padding: 0; overflow: hidden; transform-origin: center; transform-style: preserve-3d; box-shadow: 14px 25px 42px rgba(0,0,0,.55); transition: transform .72s cubic-bezier(.18,.75,.2,1), opacity .48s, filter .48s, box-shadow .4s; will-change: transform; pointer-events: auto; }
.portal-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 11px; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(255,255,255,.07)); pointer-events: none; }
.portal-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(145deg, rgba(255,255,255,.18), transparent 35%, rgba(0,0,0,.25)); }
.portal-card .portal-number { position: absolute; right: 8px; bottom: 8px; z-index: 3; background: rgba(9,12,20,.82); color: #f5e2bd; font-size: .55rem; font-weight: 800; letter-spacing: .08em; padding: 5px 6px; }
.portal-card[data-active='true'] { border-color: #e7c18b; box-shadow: 0 0 0 2px rgba(231,193,139,.55), 0 22px 60px rgba(0,0,0,.56), 0 0 60px rgba(227,179,121,.2); }
.portal-card[data-hidden='true'] { pointer-events: none; visibility: hidden; }
.orbit-hint { position: absolute; left: 50%; bottom: 17px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap; color: #9da2b4; font-size: .53rem; font-weight: 800; letter-spacing: .2em; pointer-events: none; }
.orbit-hint span { color: #d5b783; font-size: 1rem; font-weight: 400; }
.cosmos-bottom { display: flex; align-items: center; gap: 14px; padding: 17px 35px 28px; color: #e9d4ac; font: 400 1rem Georgia, serif; }
.progress-track { height: 1px; flex: 1; max-width: 250px; background: #5c6270; position: relative; }
.progress-track span { position: absolute; height: 2px; left: 0; top: 0; width: 0; background: #e1bf86; transition: width .6s ease; }
.cosmos-bottom-note { color: #8c93a6; margin-left: auto; font: 800 .51rem 'Segoe UI', Arial, sans-serif; letter-spacing: .19em; }

@keyframes breathe { 50% { opacity: .4; box-shadow: 0 0 0 7px rgba(217, 178, 120, .06), 0 0 8px #d9b278; } }

@media (max-height: 820px) and (min-width: 851px) {
  .story-panel { padding-top: 22px; }
  .story-intro h1 { font-size: 3rem; }
  .intro-copy { margin-bottom: 15px; }
  .search-area { margin-top: 16px; }
  .selected-book { padding-top: 15px; }
  .selected-category { margin-top: 15px; }
  .controls { margin-top: 12px; }
}

@media (max-width: 1100px) and (min-width: 851px) {
  .experience { grid-template-columns: 340px minmax(0,1fr); }
  .story-panel { padding-left: 23px; padding-right: 23px; }
  .story-intro h1 { font-size: 3.05rem; }
  .cosmos-top, .cosmos-bottom { padding-left: 23px; padding-right: 23px; }
  .category-filters { padding-left: 23px; padding-right: 23px; }
}

@media (max-width: 850px) {
  .experience { display: flex; flex-direction: column; }
  .story-panel { display: contents; }
  .story-intro { order: 2; padding: 32px 6% 27px; background: #121722; }
  .story-intro h1 { font-size: clamp(3rem, 9vw, 4.7rem); }
  .intro-copy { max-width: 620px; }
  .cosmos { order: 1; min-height: 560px; height: 560px; }
  .cosmos-content { min-height: 560px; }
  .search-area { order: 3; margin: 0; padding: 26px 6% 0; background: #121722; }
  .search-results { left: 6%; right: 6%; }
  .selected-book { order: 4; margin: 0; padding: 25px 6% 0; background: #121722; }
  .selected-book h3 { font-size: clamp(1.95rem, 5vw, 3rem); }
  .controls { order: 5; margin: 0; padding: 22px 6% 0; background: #121722; grid-template-columns: 50px minmax(0, 250px) 50px; }
  .keyboard-hint { order: 6; margin: 0; padding: 13px 6% 27px; background: #121722; text-align: left; }
}

@media (max-width: 520px) {
  .eyebrow { font-size: .5rem; }
  .story-intro { padding-top: 27px; }
  .story-intro h1 { font-size: clamp(2.7rem, 11vw, 3.7rem); }
  .index-line { font-size: .48rem; }
  .cosmos { height: 530px; min-height: 530px; }
  .cosmos-content { min-height: 530px; }
  .cosmos-top { padding: 18px 16px 10px; font-size: .48rem; }
  .cosmos-top span:last-child { display: none; }
  .category-filters { padding: 0 16px 8px; }
  .category-filters button { padding: 7px 9px; font-size: .56rem; }
  .orbit-field { min-height: 355px; }
  .portal-card { width: clamp(140px, 47vw, 190px); }
  .orbit-hint { font-size: .48rem; }
  .cosmos-bottom { padding: 10px 17px 21px; }
  .cosmos-bottom-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

}

.selected-meta span.soon { border-style: dashed; opacity: .66; }
.read-link.is-disabled { background: #2d2b27; color: #b8ac97; border: 1px solid #5d5648; }
.read-link.is-disabled:hover { background: #2d2b27; }
