/* Guild Rising - shared look (night sky + gold lanterns) */
:root { --sky: #0b0b0d; --sky2: #16140f; --card: #1a1813; --gold: #f2c35b; --ember: #f08a3c; --cream: #f4ecdc; --soft: #b9b3c9; --red: #ff6b6b; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Georgia, 'Times New Roman', serif; color: var(--cream); line-height: 1.7; font-size: 19px;
  background: radial-gradient(ellipse at 50% -10%, #2b2214 0%, var(--sky) 55%) fixed, var(--sky); min-height: 100vh; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px 80px; position: relative; z-index: 1; }
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sky i { position: absolute; bottom: -40px; width: 12px; height: 16px; border-radius: 6px 6px 4px 4px;
  background: radial-gradient(circle at 50% 40%, #ffe29a, var(--ember) 70%); box-shadow: 0 0 16px 5px rgba(240,160,60,.3);
  opacity: .4; animation: up linear infinite; }
@keyframes up { to { transform: translateY(-115vh) translateX(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sky { display: none; } }

nav.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; padding: 18px 0 0; font-family: system-ui, sans-serif; font-size: .9rem; }
nav.legal a { color: var(--soft); text-decoration: none; } nav.legal a:hover, nav.legal a[aria-current] { color: var(--gold); }
header { text-align: center; padding: 34px 0 18px; }
header .lamp { font-size: 40px; filter: drop-shadow(0 0 14px rgba(242,195,91,.7)); }
h1 { font-size: 2.6rem; color: var(--gold); text-shadow: 0 0 24px rgba(242,195,91,.45); line-height: 1.15; }
.meta { color: var(--soft); font-size: .92rem; margin-top: 8px; }
h2 { font-size: 1.45rem; color: var(--gold); margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(242,195,91,.3); }
h3 { font-size: 1.12rem; color: var(--ember); margin: 20px 0 6px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 26px; } li { margin-bottom: 8px; }
strong { color: #fff; }
a { color: var(--gold); }
.card { background: var(--card); border: 1px solid rgba(242,195,91,.18); border-left: 5px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .95rem; }
th { text-align: left; color: var(--gold); border-bottom: 2px solid rgba(242,195,91,.4); padding: 8px 10px; }
td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
footer { text-align: center; color: var(--soft); margin-top: 50px; font-size: .9rem; }

/* read-aloud bar */
#reader { position: sticky; top: 0; z-index: 9; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  background: rgba(11,11,13,.94); backdrop-filter: blur(6px); padding: 10px 14px; border-bottom: 1px solid rgba(242,195,91,.35);
  font-family: system-ui, sans-serif; font-size: .95rem; }
#reader button { font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 9px 18px; cursor: pointer; background: linear-gradient(var(--gold), var(--ember)); color: var(--sky); }
#reader button.ghost { background: #2c2a24; color: var(--cream); }
#reader select { font: inherit; padding: 6px; border-radius: 6px; max-width: 220px; }
#reader .hint { color: var(--soft); font-size: .82rem; }
.reading { background: rgba(242,195,91,.18) !important; outline: 2px solid var(--gold); border-radius: 6px; }
[data-say] { cursor: pointer; }
.wrap, li, td, p { overflow-wrap: anywhere; }
@media (max-width: 600px) { body { font-size: 17px; } h1 { font-size: 2rem; } table { display: block; overflow-x: auto; } #reader .hint { display: none; } }
ol.golden { counter-reset: g; list-style: none; margin-left: 0; }
ol.golden li { counter-increment: g; position: relative; padding: 10px 14px 10px 56px; margin-bottom: 8px; background: var(--card); border: 1px solid rgba(242,195,91,.2); border-radius: 10px; }
ol.golden li::before { content: counter(g); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: bold; color: var(--sky); background: linear-gradient(#ffe29a, var(--gold) 50%, var(--ember)); box-shadow: 0 0 12px rgba(242,195,91,.5); }

header .emblem { width: 150px; height: 150px; display: block; margin: 0 auto 6px; filter: drop-shadow(0 0 18px rgba(242,195,91,.35)); }
