* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; width: 100%; overflow: hidden; background: #101729; color: #fae8bb; font-family: Georgia, 'Times New Roman', serif; -webkit-user-select: none; user-select: none; touch-action: none; }
body { background: #101729 url('assets/hotel-backdrop.jpg') center top / cover no-repeat; }
button { font: inherit; color: inherit; border: 1px solid #b89a57; border-radius: 5px; background: #1b2436; cursor: pointer; touch-action: none; }
button:focus { outline: 2px solid #fae8bb; outline-offset: 2px; }
button:disabled { opacity: .4; }
header { position: absolute; top: 0; left: 0; width: 100%; height: 18%; text-align: center; padding: 13px 12px 0; }
.crest { width: 58%; height: 29%; min-height: 23px; margin: 0 auto 9px; position: relative; border-bottom: 1px solid #ad8c4b; }
.crest svg { height: 100%; width: 60px; padding: 0 10px; background: #101729; position: relative; top: 6px; fill: none; stroke: #c5a25a; stroke-width: 2; }
.small-brand { font-weight: bold; font-size: 11.6vw; line-height: 1.1; letter-spacing: -2px; transform: scaleY(1.28); text-shadow: 0 2px 0 #796440; }
.tagline { margin-top: 13px; color: #d0ac63; font: bold 8px Georgia, serif; letter-spacing: 2.1px; }
header button { position: absolute; right: 12px; top: 12px; padding: 7px 10px; font: 10px Arial, sans-serif; background: rgba(16,23,41,.85); }
main { position: absolute; top: 18%; left: 0; right: 0; bottom: 46px; margin: 0 auto; max-width: 650px; }
.identity { position: absolute; top: 0; left: 3%; width: 94%; height: 34%; display: flex; align-items: center; }
#portrait { width: 36%; height: auto; max-height: 115%; object-fit: contain; flex-shrink: 0; }
.identity-details { width: 64%; min-width: 0; padding-right: 4px; text-align: center; }
.player-plaque { position: relative; padding: 13px 6px 11px; border: 2px solid #b99a56; border-radius: 16px 3px; background: rgba(22,29,41,.9); box-shadow: inset 0 0 0 3px #363530, 0 2px 0 #604d2c; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; line-height: 1.5; }
h1 { font: bold 28px/1.15 Georgia, serif; color: #ff8074; text-transform: uppercase; margin: 5px 0 0; word-wrap: break-word; letter-spacing: 1px; }
#network { font: bold 10px Georgia, serif; letter-spacing: 1px; color: #ceb77f; margin: 15px -4px 0; line-height: 1.4; }
#network.online { color: #f6e7c7; }
#network.online:before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5ed39a; margin-right: 7px; vertical-align: -1px; }
.lantern-status { position: absolute; top: 36%; left: 14%; width: 76%; height: 11%; display: flex; align-items: center; padding: 0 9px 0 21%; border: 2px solid #b99a56; border-radius: 18px 4px; background: rgba(21,29,42,.93); box-shadow: inset 0 0 0 3px #353530; }
#lanternIcon { position: absolute; left: -9%; top: -18%; height: 136%; width: 34%; border: 2px solid #cfaf69; border-radius: 50%; background: #182234; display: flex; align-items: center; justify-content: center; }
#lanternIcon svg { height: 83%; width: 70%; fill: none; stroke: #c9a45a; stroke-width: 2; }
#lanternIcon .flame { fill: #e8c880; stroke: none; }
.lantern-status strong { font-size: 13px; letter-spacing: .7px; line-height: 1.3; }
.points { margin-left: auto; padding-left: 6px; text-align: center; color: #cdb279; }
#score { display: block; font-size: 13px; }
.points small { font: 7px Arial, sans-serif; letter-spacing: 1px; }
.lantern-status.held { border-color: #97d9ad; }
.lantern-status.held #lanternIcon { border-color: #97d9ad; }
.lantern-status.spirit strong { color: #cfb2ef; }
#instruction { position: absolute; top: 49%; left: 5%; width: 90%; margin: 0; text-align: center; color: #f4e4bf; font-size: 14px; font-style: italic; line-height: 1.4; }
#instruction:before, #instruction:after { content: '—'; color: #c8a65d; margin: 0 10px; }
#controls { position: absolute; left: 4%; right: 4%; bottom: 4px; display: flex; align-items: center; }
.direction { display: flex; width: 60%; height: 64%; border: 4px solid #c8ac71; border-radius: 29%; overflow: hidden; background: #252d3a; box-shadow: inset 0 0 0 3px #615639, 0 3px 0 #74603b; }
.direction button { width: 50%; height: 100%; border: none; border-radius: 0; background: #252d3a; box-shadow: inset 0 5px 14px rgba(255,244,202,.05); }
.direction #left { border-right: 2px solid #c5a666; }
.direction svg { width: 72%; max-height: 60%; fill: #fbe8b7; pointer-events: none; }
.actions { width: 36%; margin-left: 4%; height: 100%; position: relative; }
.actions button { position: absolute; left: 50%; transform: translateX(-50%); padding: 0; border-radius: 50%; border: 4px solid #d0b578; color: #fff0c6; font: bold 25px Georgia, serif; text-shadow: 0 1px 0 rgba(81,42,26,.3); box-shadow: inset 0 0 0 2px #4b3d2e, inset 0 5px 12px rgba(255,240,197,.23), 0 3px 0 #715b32; }
.actions #jump { top: 0; background: #c86250; }
.actions #zap { bottom: 0; background: #58ad83; }
.lantern-status.held ~ #controls #zap { font-size: 22px; }
.actions span { display: block; font: 8px Georgia, serif; letter-spacing: .3px; margin-top: 4px; }
#controls button.pressed { background: #fae6b3; color: #172133; box-shadow: inset 0 4px 8px rgba(34,26,18,.5); }
#controls button.pressed svg { fill: #172133; }
footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 44px; padding: 3px 15px; text-align: center; }
#room { display: block; font-size: 12px; letter-spacing: 2px; }
#room:before, #room:after { content: '—'; margin: 0 12px; color: #c8a65d; }
#status { display: block; margin-top: 5px; font: 9px Arial, sans-serif; color: #b4b9c7; }
.menu { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; height: 100%; background: rgba(8,12,25,.96); display: flex; align-items: center; justify-content: center; }
.menu.hidden { display: none; }
.menu-card { width: 85%; max-width: 430px; max-height: 95%; overflow: auto; touch-action: pan-y; border: 2px solid #b89a57; border-radius: 18px 4px; padding: 22px; background: #151e30; box-shadow: inset 0 0 0 4px #323433; }
h2 { font: 27px Georgia, serif; margin: 0 0 12px; }
.menu p { font: 13px/1.6 Arial, sans-serif; color: #c5c6c9; }
.menu button { display: block; width: 100%; min-height: 48px; margin-top: 12px; }
.menu .primary { background: #58ad83; color: #fff0c6; }
@media (max-height: 650px) and (orientation: portrait) {
    header { padding-top: 5px; } .crest { margin-bottom: 7px; } .tagline { margin-top: 10px; font-size: 6px; letter-spacing: 1.6px; }
    header button { top: 6px; padding: 5px 8px; }
    h1 { font-size: 20px; } .eyebrow { font-size: 8px; letter-spacing: 1px; } .player-plaque { padding: 8px 4px; }
    #network { font-size: 8px; margin-top: 9px; letter-spacing: .5px; }
    .lantern-status strong { font-size: 10px; } #instruction { font-size: 12px; }
    .actions button { font-size: 20px; } .actions span { font-size: 7px; }
    .lantern-status.held ~ #controls #zap { font-size: 16px; }
}
@media (min-width: 600px) and (orientation: portrait) {
    .small-brand { font-size: 69px; } .tagline { font-size: 11px; }
    h1 { font-size: 40px; } .eyebrow { font-size: 13px; } #network { font-size: 14px; }
    .lantern-status strong { font-size: 20px; } #instruction { font-size: 20px; } .actions button { font-size: 37px; }
}
@media (orientation: landscape) {
    header { width: 35%; height: 24%; padding: 6px 8px 0; } .crest { display: none; }
    .small-brand { font-size: 3.6vw; margin-top: 7px; letter-spacing: -1px; } .tagline { font-size: 5px; letter-spacing: 1px; margin-top: 8px; }
    header button { position: fixed; top: 8px; right: 10px; z-index: 2; padding: 5px 8px; }
    main { top: 0; bottom: 31px; max-width: none; }
    .identity { top: 22%; left: 1%; width: 33%; height: 42%; }
    .player-plaque { padding: 7px 3px; } h1 { font-size: 18px; } .eyebrow { font-size: 7px; letter-spacing: .5px; }
    #network { font-size: 8px; margin-top: 8px; letter-spacing: 0; }
    .lantern-status { top: 70%; left: 7%; width: 25%; height: 13%; padding-left: 7%; padding-right: 5px; }
    .lantern-status strong { font-size: 9px; } #score { font-size: 10px; }
    #instruction { top: 90%; left: 1%; width: 33%; font-size: 10px; } #instruction:before, #instruction:after { display: none; }
    #controls { left: 38%; right: 7%; bottom: 4%; } .direction { height: 78%; } .actions button { font-size: 23px; }
    .lantern-status.held ~ #controls #zap { font-size: 20px; }
    footer { height: 29px; padding: 3px 15px; } #room { font-size: 9px; display: inline; } #status { display: inline; margin-left: 14px; font-size: 8px; }
}
.lean button, .lean .direction, .lean .player-plaque, .lean .lantern-status, .lean .menu-card { box-shadow: none; }
.lean .small-brand, .lean .actions button { text-shadow: none; }

.menu-card .ecto-guide { margin-top:18px; }
.menu-card .guide-art { flex-basis:76px; width:76px; height:76px; }
.menu-card .ecto-guide p { font-size:12px; line-height:1.4; }
