/* Keeper and player presentation, aligned with the public reference library. */
.world-console,.player-site{--surface:#141b15;--border:#303b30;background:#101611}
.entry-screen{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;background:radial-gradient(ellipse at 20% 28%,#29372280,transparent 58%),#101611}
.entry-header,.entry-layout,.entry-footer{width:min(1320px,100%);margin-inline:auto}
.entry-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 40px;border-bottom:1px solid var(--border)}
.entry-brand{display:flex;align-items:center;gap:14px;color:var(--gold);font:28px var(--serif)}
.entry-brand span{font:19px var(--sans);letter-spacing:.13em;color:var(--text)}
.entry-brand small{display:block;font:9px var(--sans);letter-spacing:.21em;color:var(--muted);margin-top:6px}
.entry-header nav{display:flex;flex-wrap:wrap;gap:8px}.entry-header nav a{padding:8px 12px}
.entry-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:clamp(28px,6vw,96px);padding:70px 40px;align-items:center;flex:1}
.entry-story h1{font-size:clamp(42px,5.2vw,76px);letter-spacing:-.04em;line-height:1.08;margin-bottom:26px}
.entry-description{max-width:580px;color:#b7beae;font-size:17px;line-height:1.8}
.entry-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:38px}
.entry-paths a{border-top:1px solid #596348;padding:22px 0 8px;display:flex;flex-direction:column;gap:10px}
.entry-paths .eyebrow{margin:0;font-size:9px}.entry-paths strong{font:22px/1.25 var(--serif)}.entry-paths a>span:last-child{color:var(--muted);font-size:13px;line-height:1.7}.entry-paths a:hover strong{color:var(--gold)}
.entry-card{width:100%;margin:0;padding:36px;background:#141b15;border:1px solid #3c4736;border-radius:8px;box-shadow:0 20px 70px #0003}
.entry-card h2{font-size:34px;margin-bottom:16px}.entry-card .eyebrow{font-size:10px}.entry-card label{margin:22px 0}.entry-card input{padding:13px}.entry-card .primary{min-height:46px;border-radius:4px}.entry-note{margin:22px 0 0;font-size:12px;color:var(--muted)}.entry-note a,.entry-card> a,.entry-card details a{color:var(--gold);text-decoration:underline;text-underline-offset:4px}.entry-card> a{display:block;margin-top:12px;font-size:12px}.entry-card details{border-top:1px solid var(--border);margin-top:22px;padding-top:4px;font-size:13px}.entry-footer{padding:22px 40px;letter-spacing:.06em;font-size:11px;color:var(--muted)}
.skip-link{position:fixed;top:8px;left:8px;z-index:200;padding:12px;background:var(--gold);color:#101611;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}
.world-console .sidebar{background:#141b15;overflow-y:auto;padding:26px 18px}.world-console .brand{margin-bottom:28px}.world-console .sidebar nav a{padding:9px 12px}.world-console .sidebar-bottom{padding-top:24px}.world-console .sidebar-bottom p{color:var(--muted)}
.world-console .topbar{gap:16px;letter-spacing:.08em;min-height:82px;height:auto;padding:18px 0;flex-wrap:wrap}.world-console #world-select{max-width:220px;min-width:130px;width:auto}.world-console #breadcrumb{margin-right:auto}.world-console .topbar .secondary{padding:9px 12px}.topbar-library{color:var(--gold);font-size:12px;letter-spacing:0}
.world-console .hero{border-radius:8px;padding:40px;background:radial-gradient(ellipse at 90% 20%,#34462a90,transparent 65%),#19221a}.world-console .hero:after{font-size:200px;opacity:.1}.world-console .stats{border-radius:8px;background:#141b15;overflow:hidden}.world-console .stat{padding:24px}.world-console .panel,.world-console .card,.player-site .panel{border-radius:8px}.world-console .panel-title{flex-wrap:wrap;gap:12px}.world-console .page-head h1{font-size:clamp(32px,4vw,48px)}
.world-console .card h3{line-height:1.25}.world-console .card p{line-height:1.75}.world-console .message,.player-site .message{border-radius:8px;line-height:1.8}.world-console .message.assistant,.player-site .message.assistant{border-left:3px solid var(--gold)}.world-console .chat-sidebar{border-top:2px solid var(--gold)}.world-console .prose{color:#d8ddcf}
.player-main{max-width:1500px;margin:auto;padding:0 40px}.player-main .topbar{height:auto;min-height:88px;gap:20px;flex-wrap:wrap;padding:18px 0}.player-main .brand{font-size:19px;margin:0;letter-spacing:.07em}.player-main .topbar nav{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.player-content{padding:8px 0 36px}.player-main .chat-layout{grid-template-columns:minmax(0,1fr) 310px}.player-main #character-state{display:block;min-width:0;border-top:2px solid var(--gold)}.player-main #character-state h3{font-size:20px;border-top:1px solid var(--border);padding-top:18px;margin-top:20px}.player-main #character-state p{color:#b7beae}.player-main .page-head{margin-top:32px}.player-main #new-session{gap:18px}.player-main #new-session label{min-width:160px}.player-main .chat-log:empty{display:none}
.world-console .two-col>*{min-width:0}.world-console .panel{overflow-wrap:anywhere}.world-console .tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1050px){.entry-layout{gap:32px;padding-block:44px}.entry-paths{grid-template-columns:1fr;gap:10px}.entry-card{padding:26px}.world-console .topbar #model-status{white-space:normal}.player-main .chat-layout{grid-template-columns:minmax(0,1fr) 260px}.world-console .stats{grid-template-columns:repeat(2,1fr)}.world-console .stat{border-bottom:1px solid var(--border)}}
@media(max-width:700px){.entry-header{padding:20px;align-items:flex-start;flex-wrap:wrap;gap:18px}.entry-header nav{gap:0}.entry-header nav a{padding:6px 12px 6px 0;font-size:12px}.entry-layout{grid-template-columns:1fr;padding:32px 20px;gap:30px}.entry-story h1{font-size:44px}.entry-description{font-size:15px}.entry-paths{margin-top:24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.entry-paths strong{font-size:19px}.entry-paths .eyebrow{letter-spacing:.1em}.entry-card{padding:26px}.entry-footer{padding:20px;gap:16px;flex-wrap:wrap}.world-console .sidebar{padding:18px}.world-console .sidebar nav{padding-bottom:8px}.world-console .topbar{gap:12px}.world-console #breadcrumb{width:100%}.world-console #world-select{flex:1}.world-console .hero{padding:28px 22px}.world-console .hero h1{font-size:38px;letter-spacing:-1px}.world-console .stat{padding:18px}.world-console .stats{margin-top:18px}.world-console .page-head{align-items:flex-start;flex-direction:column}.world-console .panel{padding:20px}.player-main{padding:0 20px}.player-main .topbar nav{margin-left:0;order:3;width:100%}.player-main .topbar nav a{padding:4px 10px 4px 0}.player-main .chat-layout{grid-template-columns:1fr}.player-main #character-state{display:block}.player-main #new-session label{min-width:0}.player-main .message.user{margin-left:16px}}
@media(prefers-reduced-motion:no-preference){.entry-paths a,.world-console .card{transition:border-color .15s,color .15s}}

.world-console .health-panel{grid-column:1/-1}.health-panel>.row{display:inline-flex;width:calc(25% - 12px);margin:0 8px 20px 0;vertical-align:top;flex-wrap:wrap;align-content:center;min-height:90px;padding:18px;border:1px solid var(--border);border-radius:6px}.health-panel>.row .grow{flex-basis:100%;font-size:12px;color:var(--muted)}.health-activity{border-top:1px solid var(--border);margin-top:20px}.health-activity summary{font-size:14px;padding:6px 0}.world-console hr{border:0;border-top:1px solid var(--border);margin:24px 0}@media(max-width:700px){.health-panel>.row{width:calc(50% - 12px)}}

#codex-terminal-panel{margin-top:24px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#0d120e}#codex-terminal-frame{display:block;width:100%;height:70vh;min-height:380px;border:0}#codex-terminal-panel:fullscreen{margin:0;border:0}#codex-terminal-panel:fullscreen iframe{height:100vh}

.admin-label{margin-top:24px}.admin-heading{padding:24px 0 16px}.admin-heading h1{font-size:36px;margin:8px 0 12px}.admin-workspace{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#0d120e}.admin-workspace iframe{display:block;width:100%;height:75vh;min-height:420px;border:0}@media(max-width:700px){.admin-heading h1{font-size:28px}.admin-workspace iframe{height:70vh;min-height:360px}}
.login-captcha{margin:16px 0;min-height:0;color:var(--muted);font-size:13px;line-height:1.5}.login-captcha:not(:empty){padding:10px 0}
.login-captcha{margin:16px 0;min-height:0;color:var(--muted);font-size:13px;line-height:1.5}.login-captcha:not(:empty){padding:10px 0}

/* Site-level artwork: atmospheric backdrops belong to the experience, not rule entries. */
.entry-screen{background:linear-gradient(90deg,rgba(10,15,11,.96) 0%,rgba(10,15,11,.82) 43%,rgba(10,15,11,.48) 100%),url('/static/images/living-world-hero.png') center 54%/cover no-repeat,#101611}
.world-console .hero{background:linear-gradient(90deg,rgba(13,18,14,.9),rgba(17,24,17,.65) 62%,rgba(17,24,17,.5)),url('/static/images/living-world-hero.png') center 52%/cover no-repeat,#19221a;box-shadow:inset 0 0 0 1px #d3bd7540}
.world-console .hero:after{color:#e4d2a0;mix-blend-mode:screen}
@media(max-width:700px){.entry-screen{background-image:linear-gradient(180deg,rgba(10,15,11,.84),rgba(10,15,11,.91)),url('/static/images/living-world-hero.png');background-position:62% center}.world-console .hero{background-image:linear-gradient(90deg,rgba(13,18,14,.88),rgba(17,24,17,.68)),url('/static/images/living-world-hero.png');background-position:61% center}}
