html, body { margin: 0; height: 100%; background: #05070a; overflow: hidden; color: #cfe; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: fixed; inset: 0; pointer-events: none; user-select: none; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: rgba(190, 255, 250, .75); box-shadow: 0 0 6px rgba(80, 255, 240, .6); }
#hurt { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(255, 0, 0, 0) 55%, rgba(200, 8, 0, .45) 84%, rgba(150, 0, 0, .9) 100%); }
#banner { position: absolute; left: 0; right: 0; top: 30%; padding: 22px 0; text-align: center; opacity: 0; background: linear-gradient(90deg, rgba(0, 20, 22, 0), rgba(0, 28, 30, .82) 30%, rgba(0, 28, 30, .82) 70%, rgba(0, 20, 22, 0)); border-top: 1px solid rgba(80, 255, 240, .35); border-bottom: 1px solid rgba(80, 255, 240, .35); }
#banner b { display: block; font-size: 46px; font-weight: 300; letter-spacing: .6em; text-indent: .6em; color: #bffff8; text-shadow: 0 0 18px #2fe; }
#banner span { display: block; margin-top: 10px; font-size: 14px; letter-spacing: .3em; color: #f2a65a; }
#edge-warn { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 140px 30px rgba(255, 20, 10, .75); transition: opacity .12s linear; }
#edge-warn span { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); padding: 6px 18px; font-size: 17px; letter-spacing: .3em; color: #ff5a48; border: 1px solid rgba(255, 70, 50, .7); background: rgba(40, 0, 0, .55); text-shadow: 0 0 8px #f00; white-space: nowrap; }
#flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(120, 190, 220, .25), rgba(4, 12, 20, .96)); display: flex; align-items: center; justify-content: center; }
#flash span { font-size: 22px; letter-spacing: .35em; color: #bff; text-shadow: 0 0 12px #3df; }
#toast { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); font-size: 15px; letter-spacing: .25em; color: #9fe; opacity: 0; transition: opacity .4s; text-shadow: 0 0 8px #088; width: max-content; max-width: 86vw; text-align: center; line-height: 1.6; }
#prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 15px; letter-spacing: .2em; color: #ffd28a; opacity: 0; transition: opacity .2s; text-shadow: 0 0 8px #a50; white-space: nowrap; }
#start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(2, 5, 8, .72); text-align: center; pointer-events: auto; cursor: pointer; }
#start h1 { margin: 0; font-size: 56px; font-weight: 300; letter-spacing: .5em; color: #e9f6f4; text-indent: .5em; }
#start h2 { margin: 6px 0 26px; font-size: 15px; font-weight: 400; letter-spacing: .9em; color: #f2a65a; text-indent: .9em; }
#start .lore { font-size: 14px; line-height: 2; color: #8fb; opacity: .8; }
#start .keys { font-size: 13px; color: #9ab; max-width: 720px; line-height: 1.9; }
#start .go { margin-top: 22px; font-size: 16px; letter-spacing: .4em; color: #6ff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* language switch on the start card */
#start .lang { position: absolute; right: 18px; top: 14px; display: flex; gap: 6px; }
#start .lang button { font: inherit; font-size: 12px; letter-spacing: .12em; color: #9ab; background: rgba(0, 0, 0, .35); border: 1px solid rgba(150, 190, 200, .35); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
#start .lang button.on { color: #071012; background: #6ff; border-color: #6ff; }
/* English text is wider: tighter letter-spacing */
html[lang=en] #toast, html[lang=en] #prompt { letter-spacing: .1em; }
html[lang=en] #banner b { letter-spacing: .3em; text-indent: .3em; font-size: 40px; }
html[lang=en] #banner span, html[lang=en] #edge-warn span { letter-spacing: .14em; }
html[lang=en] #start h1 { letter-spacing: .3em; text-indent: .3em; }
html[lang=en] #start h2 { letter-spacing: .5em; text-indent: .5em; }
html[lang=en] #start .go { letter-spacing: .25em; }
