:root { font-family: "Segoe UI", Arial, sans-serif; color: #f4f1dc; background: #142621; font-synthesis: none; --cream: #f4f1dc; --muted: #b5c5b8; --lime: #d8eb98; --panel: #162c27; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #f2d479; outline-offset: 5px; }
#app { width: 100%; height: 100%; min-height: 100svh; position: relative; overflow: hidden; background: #17392e; }
#game { position: absolute; inset: 0; outline: none; }
#game canvas { display: block; }
.vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 140px 40px #0b201840; }
.hud { position: absolute; z-index: 5; left: max(4.5vw, env(safe-area-inset-left)); right: max(4.5vw, env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; pointer-events: none; gap: 20px; }
.top-hud { top: max(5vh, env(safe-area-inset-top)); }
.bottom-hud { bottom: max(5vh, env(safe-area-inset-bottom)); align-items: flex-end; }
.brand { display: flex; align-items: center; gap: 13px; filter: drop-shadow(0 2px 5px #081f16b3); }
.brand strong { font-size: clamp(23px, 2.4vw, 34px); letter-spacing: -.9px; font-weight: 750; display: block; line-height: 1.05; }
.brand-period { color: var(--lime); }
.eyebrow { font-size: clamp(8px, .72vw, 11px); letter-spacing: 2px; display: block; margin-top: 9px; color: #d1dbca; }
.brand-mark { width: 28px; height: 33px; position: relative; display: block; }
.brand-mark i { display: block; position: absolute; width: 11px; height: 16px; background: var(--lime); border-radius: 10px 0 10px 0; }
.brand-mark i:first-child { top: 1px; left: 1px; transform: rotate(-35deg); }
.brand-mark i:nth-child(2) { top: 0; right: 0; transform: rotate(35deg); }
.brand-mark i:nth-child(3) { width: 4px; height: 18px; bottom: 0; left: 12px; border-radius: 3px; }
.session-status { display: flex; align-items: center; gap: 10px; background: #132b25e3; border: 1px solid #c6d9b525; border-radius: 30px; padding: 12px 17px; font-size: clamp(11px, 1vw, 14px); color: #e4eadc; box-shadow: 0 4px 20px #061d1620; }
.status-dot, .identity-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9cab3; flex: 0 0 auto; }
.status-dot.live { background: #c5e88f; box-shadow: 0 0 8px #c5e88f60; }
.status-dot.waiting { background: #edbd77; animation: pulse 1.4s infinite; }
.status-dot.offline { background: #d49075; }
.status-divider { width: 1px; height: 15px; background: #c6d9b531; margin: 0 3px; }
.people-icon { font-size: 20px; color: #d5e1ca; line-height: 10px; }
.join-screen { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; padding: 8vh 8.5vw; background: linear-gradient(90deg, #112920f5 0%, #112920e6 24%, #112920a1 43%, #11292020 68%, transparent 100%); transition: opacity .45s ease; }
.join-screen.leaving { opacity: 0; pointer-events: none; }
.join-copy { margin-top: 18px; max-width: 640px; }
.section-kicker { font-size: clamp(10px, .86vw, 12px); font-weight: 600; letter-spacing: 2.3px; color: #d8e8aa; display: flex; align-items: center; gap: 10px; }
.section-kicker > span { display: block; width: 23px; height: 1px; background: #d8e8aa; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(38px, 5.4vw, 79px); letter-spacing: -2.3px; line-height: 1.08; margin: 22px 0 23px; text-shadow: 0 3px 20px #142b2360; }
h1 em { color: #dbe6af; font-weight: 400; }
.join-copy > p { font-size: clamp(13px, 1.25vw, 18px); line-height: 1.8; color: #c2cfc0; margin: 0 0 30px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid #e6f2b6; border-radius: 7px; padding: 16px 20px; color: #243626; background: var(--lime); font-size: clamp(13px, 1.1vw, 16px); font-weight: 650; box-shadow: 0 5px 0 #09221866, 0 10px 35px #0e211b50; transition: background .15s, transform .15s; }
.primary-button:hover { background: #e9f5b7; transform: translateY(-2px); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.a-button { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1.5px solid #47603b; border-radius: 50%; font-weight: 600; font-size: 14px; }
.button-arrow { font-size: 22px; font-weight: 400; margin-left: 12px; }
.join-hint { color: #a8b8a6; display: flex; align-items: center; gap: 9px; font-size: clamp(10px, .83vw, 12px); margin-top: 18px; }
kbd { font-family: inherit; display: inline-block; font-size: 10px; line-height: 20px; min-width: 24px; text-align: center; padding: 0 6px; color: #e2e8d5; border: 1px solid #b3c4aa65; border-radius: 4px; box-shadow: 0 2px #081e1850; letter-spacing: .5px; }
.world-note { position: absolute; right: 8%; bottom: 26%; display: flex; align-items: center; gap: 14px; font-size: 10px; line-height: 1.7; letter-spacing: 2px; color: #e5e7c8; text-shadow: 0 2px 3px #19342c; }
.note-line { width: 36px; height: 1px; background: #e5e7c89c; }
.controls-panel { display: flex; flex-direction: column; gap: 11px; padding: 13px 16px; background: #142d25db; border: 1px solid #c6d9b51d; border-radius: 8px; }
.control-options, .control-options > span { display: flex; align-items: center; gap: 6px; }
.control-options { gap: 12px; }
.control-or { font-size: 10px; color: #c0cdb6; }
.control-action { font-size: 12px; margin-left: 5px; color: #e2e8d5; }
.control-separator { width: 1px; height: 19px; background: #a2b49a45; }
.stick-icon { display: inline-flex; width: 22px; height: 22px; border: 1px solid #c5d1bb; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; box-shadow: inset 0 0 0 3px #172e27; background: #718466; }
.controller-status { color: #a6b99f; font-size: 11px; letter-spacing: .05px; }
.controller-status.ready { color: #d4eaa5; }
.identity-panel { pointer-events: auto; display: flex; gap: 9px; align-items: center; background: #142d25e8; padding: 13px 16px; border-radius: 8px; border: 1px solid #c6d9b526; font-size: 13px; }
.identity-dot { width: 9px; height: 9px; }
.text-button { color: #bfd198; border: 0; border-left: 1px solid #bdccaf30; background: none; padding: 0 0 0 12px; margin-left: 4px; font-size: 11px; }
.text-button:hover { color: #edf5c4; }
.text-button:disabled { opacity: .4; cursor: default; }
.join-footer { color: #c1cdb7; font-size: 11px; letter-spacing: .25px; padding-bottom: 5px; text-shadow: 0 2px 3px #10281f; }
.toast { position: absolute; z-index: 6; left: 50%; top: 17%; transform: translateX(-50%); border-radius: 7px; background: #122b25f2; padding: 12px 22px; border: 1px solid #deecb74a; box-shadow: 0 5px 20px #0b1c1640; font-size: 13px; text-align: center; max-width: 80%; }
.modal-backdrop { position: absolute; inset: 0; display: grid; place-items: center; z-index: 10; background: #071b17b8; backdrop-filter: blur(5px); padding: 25px; }
.name-card { width: min(460px, 100%); background: #203b2f; border: 1px solid #bfd1975c; box-shadow: 0 20px 90px #061a1666; border-radius: 14px; padding: 34px; }
.name-card h2 { font-family: Georgia, serif; font-weight: 400; font-size: 29px; line-height: 1.2; margin: 18px 0 12px; }
.name-card p { color: #bacab3; font-size: 13px; line-height: 1.6; }
.name-card label { display: block; font-size: 12px; margin: 24px 0 9px; }
.name-card input { width: 100%; background: #132b23; border: 1px solid #9bae846e; padding: 12px; color: #f4f1dc; font-size: 17px; border-radius: 5px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; gap: 12px; }
.secondary-button { background: none; border: 0; padding: 10px 0; color: #d3dfc6; font-size: 13px; }
.compact-button { padding: 11px 15px; font-size: 13px; }
.join-copy > .join-error, .name-card .form-error { color: #f3b7a2; margin-top: 15px; font-size: 13px; }
.no-script { position: fixed; inset: 30%; z-index: 20; padding: 30px; background: #172d2a; }
.touch-controls { position: absolute; left: max(5vw, env(safe-area-inset-left)); bottom: max(14vh, 78px); z-index: 6; display: flex; align-items: center; flex-direction: column; gap: 8px; user-select: none; -webkit-user-select: none; }
.touch-stick { position: relative; width: 126px; height: 126px; border: 1px solid #e2edbd5c; border-radius: 50%; background: #142d2599; box-shadow: inset 0 0 0 10px #d2dfaa08, 0 4px 24px #082b2130; touch-action: none; }
.touch-knob { position: absolute; width: 47px; height: 47px; top: calc(50% - 23.5px); left: calc(50% - 23.5px); border-radius: 50%; background: #d7e6aabf; border: 2px solid #eff4c8bb; box-shadow: 0 3px 10px #071e1650; pointer-events: none; }
.touch-stick.active { background: #173d2ecc; border-color: #e3edbcb0; }
.touch-stick.active .touch-knob { background: #d8eb98; }
.touch-cross { position: absolute; background: #d8e5b029; pointer-events: none; }
.touch-cross.horizontal { left: 18px; top: 50%; width: 88px; height: 1px; }
.touch-cross.vertical { left: 50%; top: 18px; width: 1px; height: 88px; }
.touch-caption { font-size: 9px; color: #d3e0b7; letter-spacing: 2px; text-shadow: 0 1px 4px #103025; }
.touch-device .control-options { display: none; }
.touch-playing .controls-panel { padding: 0; border: 0; background: none; }
.touch-playing .controller-status { max-width: 165px; text-shadow: 0 1px 5px #112b1c; }
@keyframes pulse { 50% { opacity: .35; } }
@media (min-aspect-ratio: 19/9) { .join-copy { margin-left: 4vw; } }
@media (max-width: 720px) { .hud { left: 5%; right: 5%; } .top-hud { top: 4%; } .bottom-hud { bottom: 4%; } .brand { gap: 9px; } .brand-mark { transform: scale(.8); } .eyebrow { letter-spacing: 1.2px; font-size: 8px; } .session-status { padding: 9px 12px; gap: 7px; } .session-status .people-icon, .status-divider { display: none; } #connection-label { max-width: 100px; } .join-screen { padding-left: 7%; background: linear-gradient(90deg, #112920f0, #112920ac 65%, #11292038); } h1 { letter-spacing: -1px; } .join-copy { margin-top: -20px; } .join-footer, .world-note { display: none; } .controls-panel { padding: 10px; gap: 8px; } .control-options { gap: 8px; } .control-action { font-size: 10px; margin-left: 2px; } .controller-status { max-width: 265px; font-size: 10px; } .identity-panel { flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 160px; padding: 10px; font-size: 11px; } .text-button { border: none; padding: 0; margin: 2px 0 0; flex-basis: 100%; text-align: right; font-size: 10px; } }
@media (max-height: 530px) { .top-hud { top: 5%; } .bottom-hud { bottom: 5%; } .join-copy { margin-top: 15px; } .section-kicker { font-size: 9px; } h1 { font-size: clamp(29px, 5.3vw, 47px); margin: 12px 0; } .join-copy > p { font-size: 12px; line-height: 1.5; margin-bottom: 15px; } .primary-button { padding: 10px 14px; } .join-hint { margin-top: 11px; } .controls-panel { padding: 8px 11px; gap: 5px; } .eyebrow { margin-top: 5px; } .name-card { padding: 20px; } .name-card h2 { margin: 10px 0; } .name-card label { margin-top: 14px; } .form-actions { margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (pointer: coarse) and (max-height: 530px) { .touch-controls { bottom: 15%; left: 5%; } .touch-stick { width: 104px; height: 104px; } .touch-cross.horizontal { width: 66px; } .touch-cross.vertical { height: 66px; } .touch-caption { display: none; } .identity-panel { font-size: 11px; } }
@media (max-aspect-ratio: 3/4) { .join-screen { align-items: center; padding-bottom: 12vh; } .join-copy { margin-top: 0; } h1 { font-size: 44px; } .top-hud { align-items: flex-start; } .session-status { flex-wrap: wrap; max-width: 122px; justify-content: center; font-size: 10px; } .brand strong { font-size: 24px; } .touch-controls { bottom: 15%; } .bottom-hud { align-items: center; } .identity-panel { max-width: 175px; } }
@media (max-width: 520px) { .top-hud { gap: 12px; } .brand strong { font-size: 20px; max-width: 145px; line-height: 1.1; } .brand-mark { flex: 0 0 28px; } }
