:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #0c1413; font-family: Georgia, 'Times New Roman', serif; color: #e5dfce; }
#game { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; background: #0c1413; }

.screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse at center, rgba(12,20,19,.55), rgba(5,9,8,.92)); }
.intro-copy { max-width: 36rem; padding: 2rem; }
.eyebrow { letter-spacing: .14em; font-size: .7rem; text-transform: uppercase; color: #c9a65c; margin: 0 0 .4rem; }
h1 { font-size: 2.4rem; margin: 0 0 1rem; letter-spacing: .04em; }
.intro-description { opacity: .85; line-height: 1.5; margin-bottom: 1.4rem; }
button.primary { font: inherit; font-size: 1rem; padding: .7rem 1.6rem; border-radius: .3rem; border: 1px solid #c9a65c; background: transparent; color: #e5dfce; cursor: pointer; letter-spacing: .04em; }
button.primary:disabled { opacity: .5; cursor: progress; }
button.primary:not(:disabled):hover { background: rgba(201,166,92,.15); }
.fineprint { font-size: .75rem; opacity: .65; margin-top: .9rem; }

#hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem 1.4rem; }
.hud-top { display: flex; justify-content: space-between; align-items: flex-start; }
.identity strong { font-size: 1.1rem; display: block; }
.place { text-align: right; font-size: .85rem; letter-spacing: .06em; opacity: .9; }
.objective { align-self: flex-start; max-width: 22rem; background: rgba(8,14,13,.55); border-left: 2px solid #c9a65c; padding: .6rem .9rem; border-radius: 0 .3rem .3rem 0; }
.objective p { margin: 0; }
#objective-text { font-size: .95rem; margin-top: .2rem; }

#prompt { position: absolute; left: 50%; bottom: 7rem; transform: translateX(-50%); display: flex; gap: .5rem; align-items: center; background: rgba(8,14,13,.75); padding: .4rem .8rem; border-radius: .4rem; }
kbd { font-family: inherit; border: 1px solid #c9a65c; border-radius: .25rem; padding: 0 .35rem; font-size: .8rem; }

.toast { position: absolute; left: 50%; top: 1.2rem; transform: translateX(-50%); background: rgba(8,14,13,.8); padding: .4rem .9rem; border-radius: .3rem; font-size: .85rem; opacity: 0; transition: opacity .3s; }
.toast.show { opacity: 1; }

.perf { position: absolute; right: 1rem; bottom: 4.6rem; font-size: .7rem; opacity: .55; font-family: monospace; text-align: right; }

.hud-bottom { display: flex; justify-content: space-between; font-size: .75rem; opacity: .75; gap: 1rem; flex-wrap: wrap; }

#transition { position: absolute; inset: 0; background: #05090a; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
#transition.active { opacity: 1; }

#fatal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #05090a; text-align: center; padding: 2rem; }
