:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #fff3da; background: #101c21; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; min-height: 100dvh; }
[hidden] { display: none !important; }
#world, #world canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.top { position: fixed; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 26px; background: linear-gradient(#0e171cea, #0e171c00); }
.top div { display: grid; gap: 3px; }
small, .eyebrow { font-size: .68rem; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; color: #ffd894; }
.top span { font-family: Georgia, serif; font-size: clamp(.85rem, 2vw, 1.15rem); }
a, button { color: inherit; }
.top a, .controls button { text-decoration: none; padding: .55rem .74rem; border: 1px solid #ffe6b458; border-radius: 6px; background: #10191cd9; white-space: nowrap; font-size: .8rem; }
.welcome { position: fixed; left: clamp(18px, 6vw, 104px); bottom: clamp(24px, 9vh, 105px); width: min(91vw, 480px); padding: clamp(20px, 3.8vw, 42px); background: linear-gradient(125deg,#14272aec,#111c24ea); border: 1px solid #f1cc8b6b; border-radius: 12px; box-shadow: 0 24px 80px #0e141b90; }
.rule { height: 2px; width: 56px; background: #efb85d; margin-bottom: 20px; }
h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(2.35rem, 6vw, 4.35rem); line-height: .96; letter-spacing: -.045em; margin: .34em 0; }
.welcome p:not(.eyebrow) { line-height: 1.55; color: #e6decb; max-width: 32ch; }
button { cursor: pointer; font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff3da; outline-offset: 3px; }
#enter { display: inline-flex; gap: 2rem; align-items: center; background: #f3ca7f; border: 0; color: #1b2326; font-weight: 750; padding: .85rem 1rem; border-radius: 6px; }
#enter:disabled { opacity: .48; cursor: wait; }
#loading { font-size: .8rem; margin-bottom: 0; }
.status { display: grid; gap: 3px; position: fixed; top: 87px; left: 26px; padding: .6rem .8rem; background: #111d23e8; border-left: 2px solid #f3ca7f; }
.status span { font-size: .72rem; color: #f3ca7f; }
.status strong { font-size: .9rem; font-weight: 550; }
.controls { position: fixed; inset: auto 20px 20px; display: flex; justify-content: space-between; gap: 7px; align-items: center; flex-wrap: wrap; }
.controls > div { display: flex; gap: .45rem; align-items: center; }
.keys { padding: .55rem .76rem; border-radius: 6px; background: #10191cec; font-size: .78rem; }
kbd { color: #ffdd91; }
.crosshair { width: 7px; height: 7px; border: 1px solid #ffffffdf; border-radius: 50%; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; box-shadow: 0 0 4px #000; }
.touch { display: none; }
@media (pointer: coarse) {
  .keys { display: none !important; }
  .touch { display: block; position: fixed; left: 18px; right: 18px; bottom: 76px; }
  .touch button { touch-action: none; width: 47px; height: 44px; margin: 2px; border-radius: 8px; border: 1px solid #fff0c47a; background: #13262cc2; font-size: 1.3rem; }
  .touch > button:first-child { margin-left: 55px; }
  #touch-jump { position: absolute; bottom: 0; right: 0; }
}

.welcome h1 { font-size: clamp(2.2rem,4.7vw,3.8rem); max-width: 13ch; }
@media (max-width: 520px) { .top{padding: 14px; } .status {top: 65px;left: 14px} }
#touch-use { position: absolute; bottom: 0; right: 56px; }
