* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Manrope, Inter, system-ui, sans-serif; color: #2f1b0c; background: #08131c; }
body { position: relative; margin: 0; min-height: 100vh; background: #08131c url("/images/backgrounds/desktop-map-v2.webp") center/cover fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 0 23%, rgba(31,193,151,.12) 28%, transparent 34% 69%, rgba(228,173,69,.1) 74%, transparent 80%); animation: world-trace 18s ease-in-out infinite alternate; }
a { color: inherit; }
.page { width: min(920px, calc(100% - 28px)); margin: 24px auto; overflow: hidden; border: 1px solid rgba(235,190,91,.58); border-radius: 18px; background: linear-gradient(90deg, rgba(243,216,157,.97), rgba(255,239,196,.98) 49%, rgba(232,198,126,.97)); box-shadow: 0 28px 70px rgba(0,0,0,.42); }
.topbar { padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(107,74,31,.25); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
nav a { text-decoration: none; opacity: .75; }
nav a:hover { opacity: 1; }
.topbar nav a:focus-visible, .cta:focus-visible, .text-link:focus-visible { outline: 3px solid #20a87c; outline-offset: 3px; }
.hero { min-height: 390px; padding: 54px clamp(24px, 7vw, 72px); display: grid; align-content: end; color: #fff5d8; background: linear-gradient(to top, rgba(5,12,20,.94), rgba(5,12,20,.14)), url("/images/backgrounds/home-hero.webp") center/cover; }
.eyebrow { color: #e6ad3d; font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1 { max-width: 730px; margin: 8px 0 12px; font-family: Georgia, serif; font-size: 60px; line-height: 1.03; }
.hero p { max-width: 660px; margin: 0; font-size: 19px; line-height: 1.55; color: rgba(255,245,216,.85); }
.cta { margin-top: 24px; width: fit-content; padding: 14px 24px; border: 1px solid #f4d07c; border-radius: 10px; color: #261502; background: linear-gradient(#ffe8a7, #c99029); text-decoration: none; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.content { padding: clamp(24px, 6vw, 64px); }
.content h2 { margin: 34px 0 12px; font-family: Georgia, serif; font-size: 29px; }
.content p, .content li { color: #654721; font-size: 17px; line-height: 1.7; }
.content > p:first-of-type { font-size: 19px; }
.content ul, .content ol { padding-left: 24px; }
.content strong { color: #38200d; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { padding: 20px; border: 1px solid rgba(114,77,28,.25); border-radius: 12px; background: rgba(255,244,211,.65); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; font-size: 15px; }
.answer-grid { display: grid; gap: 10px; }
.answer { padding: 17px 19px; border-left: 4px solid #16805d; border-radius: 8px 12px 12px 8px; background: rgba(255,247,221,.62); }
.answer h3, .answer p { margin: 0; }
.answer p { margin-top: 5px; }
.story-example { margin: 24px 0; padding: 24px; border: 1px solid rgba(42,128,96,.3); border-radius: 14px; background: linear-gradient(135deg, rgba(14,87,70,.1), rgba(255,245,214,.58)); }
.story-example blockquote { margin: 8px 0 0; color: #442b15; font-family: Georgia, serif; font-size: 20px; line-height: 1.58; }
.text-link { color: #0d6b50; font-weight: 800; text-underline-offset: 3px; }
.related { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(107,74,31,.2); }
.related-links { display: flex; flex-wrap: wrap; gap: 9px; }
.related-links a { padding: 9px 12px; border: 1px solid rgba(107,74,31,.24); border-radius: 9px; text-decoration: none; background: rgba(255,247,221,.58); }
.library-hero { min-height: 330px; color: #fff5d8; background: #0b1b25; box-shadow: inset 0 0 0 1px rgba(238,190,86,.24); }
.library-hero p { color: rgba(255,245,216,.86); }
.library-controls { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 24px; }
.library-controls label { display: grid; gap: 5px; color: #70502a; font-size: 12px; font-weight: 800; }
.library-controls select { min-width: 0; padding: 11px 10px; border: 1px solid rgba(107,74,31,.3); border-radius: 9px; color: #311d0d; background: #fff1c9; font: inherit; }
.public-library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.public-book-card { overflow: hidden; border: 1px solid rgba(107,74,31,.28); border-radius: 12px; background: rgba(255,244,211,.76); box-shadow: 0 12px 26px rgba(70,43,14,.12); }
.public-book-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; object-position: center; background: #13232d; }
.public-book-card > div { padding: 17px; }
.public-book-card small { color: #147457; font-weight: 800; }
.public-book-card h2 { margin: 5px 0 7px; font: 800 23px/1.15 Georgia,serif; overflow-wrap: anywhere; }
.public-book-card p { margin: 0 0 12px; color: #674821; line-height: 1.5; }
.public-book-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.public-book-meta span { padding: 5px 8px; border-radius: 7px; color: #684719; background: #edcf8a; font-size: 12px; font-weight: 800; }
.public-book-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.public-book-actions a { color: #0d6b50; font-weight: 900; }
.public-rating { color: #99640e; font-weight: 900; }
.public-rating-stars { display: flex; align-items: center; gap: 2px; margin-top: 12px; }
.public-rating-stars button { width: 38px; height: 38px; border: 0; padding: 0; color: #a87620; background: transparent; cursor: pointer; font-size: 29px; line-height: 1; transition: transform .16s ease, color .16s ease; }
.public-rating-stars button:hover,.public-rating-stars button:focus-visible { color: #db9414; transform: translateY(-2px); outline: none; }
.public-rating-stars button.active { color: #c67f08; text-shadow: 0 2px 5px rgba(115,67,4,.2); }
.library-vote-guide { position: sticky; top: 10px; z-index: 4; margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(24,128,93,.45); border-radius: 10px; color: #174f3e; background: rgba(239,224,177,.94); box-shadow: 0 9px 22px rgba(63,41,16,.15); backdrop-filter: blur(12px); }
.library-vote-guide strong { display: block; color: #173c32; }
.library-status { padding: 26px; text-align: center; color: #664720; }
footer { padding: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(107,74,31,.2); color: #6d4e29; font-size: 13px; }
footer div { display: flex; gap: 14px; }
.lost-page { min-height: calc(100vh - 48px); display: grid; place-items: center; }
.lost-chapter { width: min(680px, 100%); padding: clamp(28px, 7vw, 68px); text-align: center; }
.lost-symbol { width: 88px; height: 88px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid rgba(231,184,79,.62); border-radius: 50%; color: #f2c158; background: #10232a; box-shadow: 0 0 0 10px rgba(242,193,88,.08), 0 18px 46px rgba(0,0,0,.24); font: 700 45px Georgia, serif; animation: lost-pulse 3.5s ease-in-out infinite; }
.lost-chapter h1 { margin-inline: auto; font-size: clamp(38px, 8vw, 62px); }
.lost-chapter p { color: #654721; font-size: 18px; line-height: 1.65; }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
@keyframes world-trace { to { transform: translate3d(1.5%, -.8%, 0); opacity: .72; } }
@keyframes lost-pulse { 50% { transform: rotate(6deg) scale(1.05); box-shadow: 0 0 0 16px rgba(242,193,88,.04), 0 20px 54px rgba(0,0,0,.3); } }
@media (max-width: 650px) { body { background-attachment: scroll; } .page { width: min(100% - 14px, 920px); margin: 7px auto; border-radius: 14px; } .topbar { align-items: flex-start; flex-direction: column; } .grid,.public-library-grid { grid-template-columns: 1fr; } .library-controls { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero { min-height: 430px; } h1 { font-size: 38px; } .content { padding: 24px 19px 38px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
