.player-hud{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;align-items:center;gap:18px;padding:14px 20px;background:linear-gradient(115deg,#38251afc,#1b120dfc);border-bottom:1px solid #bf96514d;box-shadow:0 6px 18px #0004;color:#f8e7c7;box-sizing:border-box;font-family:system-ui,sans-serif;isolation:isolate}.hud-identity{display:flex;align-items:center;gap:11px;min-width:0}.player-hud .hud-avatar{position:relative;flex:0 0 46px;min-width:46px;width:46px;height:46px;min-height:46px;overflow:hidden;border:2px solid #cba25c;border-radius:50%;padding:0;background:radial-gradient(#815c34,#332114);box-shadow:0 0 0 3px #100a06;color:#ffe5ac;font:23px Georgia}.hud-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hud-avatar img[hidden]{display:none!important}.hud-player{display:flex;flex-direction:column;gap:3px;min-width:0}.hud-player>strong{font:600 16px/1.2 system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hud-player>small{font:10px/1.4 system-ui;color:#dab77e;white-space:nowrap}.hud-experience{display:flex;align-items:center;gap:7px}.hud-experience progress{height:4px;width:55px;border:0;accent-color:#eac379}.hud-experience span{font:9px/1.3 system-ui;color:#c7b38c;white-space:nowrap}.hud-currencies{display:flex;align-items:center;gap:10px}.hud-currency{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:7px;min-width:83px;padding:6px 11px;border:1px solid #a57c3c55;border-radius:9px;background:#100b07a6}.hud-currency>span{grid-row:1/3;align-self:center;font:25px Georgia}.hud-currency>strong{font:600 15px/1.2 system-ui;font-variant-numeric:tabular-nums}.hud-currency>small{font:9px/1.4 system-ui;color:#c9b48d}.hud-coin{color:#e6bc62;text-shadow:0 0 8px #ddad3933}.hud-crystal{color:#93d8ed;text-shadow:0 0 8px #4dbee255}.hud-tools{display:flex;gap:6px}.player-hud .hud-tools button{display:grid;place-items:center;min-width:44px;min-height:44px;height:44px;width:44px;padding:0;border:1px solid #ae854344;border-radius:9px;background:#130d0877;color:#e8c78b;font:21px Georgia}.player-hud button:focus-visible{outline:3px solid #ffe5a6;outline-offset:2px}.selection-dialog>.player-hud{position:sticky;top:-28px;z-index:20;margin:-28px -28px 24px}.sheba-dialog>.player-hud{position:sticky;top:-20px;z-index:20;margin:-20px calc(-1 * clamp(16px,3vw,48px)) 20px}.sheba-header{width:100%}.selection-dialog>.player-hud~header{margin-top:0}.sheba-header .sheba-eyebrow{display:none}.sheba-stage{margin-top:18px}.selection-kicker{font-size:12px!important;letter-spacing:1px}.selection-dialog>.selection-status:empty{display:none}.selection-card{box-shadow:inset 0 1px #e8c78b0a}.selection-card>.primary{min-width:135px}.selection-card:has(>h2:first-child){position:relative}.selection-dialog .memory-grid{max-width:400px}.memory-help{max-width:460px;text-align:center;margin:10px auto 20px!important}.memory-input-progress{display:flex;justify-content:center;gap:9px;min-height:18px;margin:8px auto 18px}.memory-input-progress span{width:10px;height:10px;border:1px solid #b28a4b;border-radius:50%;background:#120b07}.memory-input-progress span.entered{background:#eac379;box-shadow:0 0 8px #eac37944}.memory-grid button:disabled{opacity:.75;cursor:default}.selection-sync{font:11px/1.5 system-ui;color:#bdab89}.sheba-reconnect{display:block;margin:10px auto;min-height:44px}.selection-return{margin-top:18px}
#game-shell>.player-hud{position:fixed;top:0;left:0;right:0;z-index:9;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}body:not(.account-view) .players{top:80px}body:not(.account-view) .game-hub{top:95px}body:not(.account-view) #game-shell main{padding-top:80px;padding-bottom:70px}body:not(.account-view) #game-shell .scene{width:min(100vw,calc((100svh - 150px)*1.7768))}body:not(.account-view) .language-tools{display:none}
@media(max-width:950px){body:not(.account-view) .game-hub{top:188px}body:not(.account-view) #game-shell main{padding-top:280px}}
@media(max-width:650px){.player-hud{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px 14px}.hud-player>strong{font-size:14px}.hud-player>small{font-size:9px}.hud-experience span{font-size:9px}.hud-currencies{grid-column:1/-1;grid-row:2;gap:8px}.hud-currency{display:flex;justify-content:center;align-items:center;gap:7px;flex:1;min-width:0;padding:5px 9px}.hud-currency>span{font-size:19px}.hud-currency>small{font-size:10px}.hud-currency>strong{font-size:13px}.hud-tools{grid-column:2;grid-row:1}.selection-dialog>.player-hud{top:-18px;margin:-18px -18px 18px}.sheba-dialog>.player-hud{top:-12px;margin:-12px -14px 15px}.selection-dialog h1{font-size:25px}.selection-dialog .memory-grid{gap:12px;margin:16px auto}.memory-grid button{font-size:48px}.sheba-stage{margin-top:12px}body:not(.account-view) .players{top:116px}body:not(.account-view) .game-hub{top:213px}body:not(.account-view) #game-shell main{padding-top:310px;padding-bottom:80px}body:not(.account-view) #game-shell .scene{width:100vw}}
@media(max-height:450px) and (orientation:landscape){#game-shell>.player-hud{padding:5px 12px;gap:10px}.player-hud[data-mode=game] .hud-avatar{height:38px;width:38px;min-height:38px;min-width:38px;flex-basis:38px}.player-hud[data-mode=game] .hud-player>small,.player-hud[data-mode=game] .hud-experience{display:none}.player-hud[data-mode=game] .hud-currency{padding:3px 8px}.player-hud[data-mode=game] .hud-tools button{height:38px;width:38px;min-height:38px;min-width:38px}body:not(.account-view) .players{top:56px}body:not(.account-view) .game-hub{top:62px}body:not(.account-view) #game-shell main{padding-top:60px;padding-bottom:55px}body:not(.account-view) #game-shell .scene{width:min(100vw,calc((100svh - 115px)*1.7768))}}
@media(prefers-reduced-motion:reduce){.player-hud *{transition:none!important}}
/* Queen-led royal presentation, built around the user's character reference. */
.queen-guide{position:relative;display:flex;align-items:center;gap:26px;min-height:250px;margin:4px 0 26px;padding:22px 32px 20px 210px;overflow:hidden;border:1px solid #d8af635e;border-bottom:4px solid #795025;border-radius:22px;background:radial-gradient(ellipse at 12% 40%,#9c743755,transparent 48%),radial-gradient(ellipse at 90% 0,#7f4c9255,transparent 70%),linear-gradient(120deg,#48321c,#342039 70%,#221629);box-shadow:inset 0 1px #ffe5ae33,0 10px 24px #0004}.queen-guide:before{content:'✦';position:absolute;right:24px;top:15px;color:#f6d89966;font:30px Georgia;text-shadow:-40px 160px #f6d89933,-260px 18px #f6d89922}.queen-guide>img{position:absolute;left:16px;bottom:-9px;width:185px;height:278px;object-fit:contain;object-position:bottom;filter:drop-shadow(0 10px 13px #10081688);transform-origin:50% 100%;animation:queen-idle 5s ease-in-out infinite}.queen-guide-copy{position:relative;z-index:1;max-width:520px}.queen-guide-copy>small{font:10px system-ui;letter-spacing:2px;text-transform:uppercase;color:#e5c27d}.queen-guide-copy h2{font:32px/1.15 Georgia!important;color:#ffe1a1!important;margin:10px 0 12px!important;text-shadow:0 2px 2px #1d100b}.queen-guide-copy p{font:14px/1.5 system-ui;color:#ead9c1;margin-bottom:18px}.queen-guide-copy button{min-height:46px;border:1px solid #ffe1a0;border-bottom:4px solid #9d6728!important;border-radius:14px!important;background:linear-gradient(#ffe2a0,#d4a04c)!important;color:#2d1a0b!important;padding:10px 25px;font:700 14px system-ui;box-shadow:inset 0 1px #fff7da,0 4px 10px #0004}.queen-guide-copy button:hover{filter:brightness(1.08)}.queen-guide-copy button:active{transform:translateY(2px)}.queen-guide-compact{min-height:185px;padding-left:165px;width:100%;margin:10px 0 28px}.queen-guide-compact>img{height:205px;width:145px;left:12px;bottom:-8px}.queen-guide-compact .queen-guide-copy h2{font-size:27px!important}.queen-guide-compact .queen-guide-copy p{margin-bottom:12px;font-size:13px}.selection-dialog .selection-card{border-radius:17px;background:linear-gradient(145deg,#51331c55,#190f0bbb);border-color:#bc95553b}.selection-dialog .selection-card h2{font-size:23px}.selection-structure button{border-radius:11px;border-bottom:3px solid #795326;box-shadow:inset 0 1px #d8b97718}.selection-grid>.selection-card{animation:trial-arrive .25s ease-out}.memory-grid button{border-radius:20px;border:2px solid #c5a16888;border-bottom-width:6px;background:radial-gradient(ellipse at 35% 20%,#87633d,#473124 55%,#281a13);text-shadow:0 2px 5px #0008;box-shadow:inset 0 2px #ffe3ab22,0 6px 14px #0005}.memory-grid button:nth-child(2){background:radial-gradient(ellipse at 35% 20%,#497187,#273d4d 55%,#162632)}.memory-grid button:nth-child(3){background:radial-gradient(ellipse at 35% 20%,#9f702a,#61421c 55%,#32200f)}.memory-grid button:nth-child(4){background:radial-gradient(ellipse at 35% 20%,#357b7b,#254a50 55%,#132b32)}@keyframes queen-idle{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.006)}}@keyframes trial-arrive{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:650px){.queen-guide{min-height:218px;padding:18px 16px 18px 127px;gap:10px;border-radius:17px}.queen-guide>img{height:210px;width:140px;left:-8px;bottom:-5px}.queen-guide-copy>small{font-size:8px;letter-spacing:1px}.queen-guide-copy h2{font-size:24px!important;margin:8px 0 10px!important}.queen-guide-copy p{font-size:12px;margin-bottom:12px}.queen-guide-copy button{font-size:12px;padding:9px 14px}.queen-guide-compact{min-height:175px;padding-left:123px;margin:6px 0 22px}.queen-guide-compact>img{height:185px;width:123px;left:-3px}.queen-guide-compact .queen-guide-copy h2{font-size:24px!important}.queen-guide-compact .queen-guide-copy p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.queen-guide>img,.selection-grid>.selection-card{animation:none!important}.queen-guide-copy button:active{transform:none}}
.queen-guide>img{height:240px;width:160px;left:28px;bottom:4px}.queen-guide-compact>img{height:178px;width:120px;left:20px;bottom:0}
@media(max-width:650px){.queen-guide>img{height:210px;width:140px;left:-8px;bottom:0}.queen-guide-compact>img{height:173px;width:115px;left:2px;bottom:0}}
#game-shell .game-hub .wallet-strip{display:none}
@media(max-width:650px){#game-shell .player input{font-size:13px;max-width:125px}}
.hud-experience progress::-webkit-progress-bar{background:#130c08;border-radius:4px}.hud-experience progress::-webkit-progress-value{background:linear-gradient(90deg,#b7873d,#f3d592);border-radius:4px}.hud-experience progress::-moz-progress-bar{background:#dfb76b}
body.selection-open{overflow:hidden}.queen-guide-copy button:disabled{opacity:.75;cursor:wait}
.hud-toast{position:fixed;z-index:99;top:125px;left:50%;transform:translateX(-50%);max-width:min(90vw,440px);padding:13px 20px;border:1px solid #d7b371;border-radius:12px;background:#342116f5;box-shadow:0 8px 30px #0008;color:#ffe0a2;font:14px/1.5 system-ui;pointer-events:none;text-align:center}
@media(max-height:450px) and (orientation:landscape){body:not(.account-view) .game-hub{width:calc(100% - 460px)}}
html[lang=am] .queen-guide-copy h2{font-family:Nyala,'Noto Sans Ethiopic',system-ui!important;line-height:1.35!important}html[lang=am] .hud-player>small{font-size:11px}.hud-player>small{max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* A single welcome motion, then a quiet idle; readiness is also conveyed in text. */
.queen-guide>img{animation:queen-arrive .65s ease-out both,queen-idle 5s .65s ease-in-out infinite}.queen-ready{border-color:#edc77e;box-shadow:inset 0 1px #ffe5ae55,0 0 24px #dfb35325}.selection-gate{scroll-margin:20px}@keyframes queen-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.queen-guide>img{animation:none}}

.hud-player>.hud-examiner{font:11px/1.35 system-ui;color:#d9bd82;margin-top:3px;white-space:nowrap}
