Files

82 lines
3.7 KiB
CSS

:root {
--ink: #071322;
--blue: #4d6bfe;
--cyan: #7ff3ff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
margin: 0; height: 100%; background: #03080f; overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
color: #eaf2ff; user-select: none; touch-action: none;
}
#stage { position: fixed; inset: 0; display: grid; place-items: center; background: #03080f; }
#view {
position: fixed; inset: 0; width: 100%; height: 100%; display: block;
image-rendering: pixelated; image-rendering: crisp-edges;
background: #050b16;
}
#hud {
position: fixed; inset: 0; pointer-events: none; padding: max(10px, env(safe-area-inset-top)) 12px 0;
display: flex; justify-content: space-between; align-items: flex-start;
}
.row { display: flex; gap: 8px; }
.chip {
display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px;
border-radius: 999px; background: rgba(6, 16, 30, .55); border: 1px solid rgba(125, 165, 255, .25);
font-size: 13px; letter-spacing: .2px; backdrop-filter: blur(6px);
font-variant-numeric: tabular-nums;
}
.chip .ico { font-size: 13px; opacity: .9; }
.chip i { font-style: normal; opacity: .55; font-size: 12px; }
#fps { font-size: 11px; opacity: .7; }
#hp.low { border-color: rgba(255, 110, 120, .55); color: #ffd0d4; }
#map {
width: 96px; height: 96px; border-radius: 12px; opacity: .82;
background: rgba(4, 12, 22, .5); border: 1px solid rgba(125, 165, 255, .2);
}
#hint {
position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
font-size: 11.5px; line-height: 1.5; color: rgba(214, 230, 255, .62); text-align: center;
max-width: min(92vw, 520px); transition: opacity .6s; pointer-events: none;
}
#stick {
position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom));
width: 116px; height: 116px; border-radius: 50%;
border: 1px solid rgba(127, 243, 255, .22); background: rgba(10, 26, 46, .35);
opacity: .55; transition: opacity .2s; pointer-events: none;
}
#stick.on { opacity: 1; }
#knob {
position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9fe0ff, #4d6bfe 65%, #22348f);
box-shadow: 0 6px 18px rgba(77, 107, 254, .45);
}
#overlay {
position: fixed; inset: 0; display: grid; place-items: center; padding: 24px;
background: radial-gradient(circle at 50% 42%, rgba(10, 26, 52, .55), rgba(3, 8, 15, .88));
backdrop-filter: blur(4px); z-index: 5;
}
#overlay[hidden] { display: none; }
.card {
width: min(92vw, 380px); padding: 26px 22px 22px; border-radius: 20px; text-align: center;
background: linear-gradient(180deg, rgba(18, 40, 78, .92), rgba(9, 20, 38, .95));
border: 1px solid rgba(127, 243, 255, .25); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.card h1 { margin: 0 0 8px; font-size: 22px; letter-spacing: .5px; }
.card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: rgba(214, 230, 255, .75); }
.card button {
appearance: none; border: 0; border-radius: 999px; padding: 12px 28px; font-size: 15px; font-weight: 600;
color: #04101f; background: linear-gradient(180deg, #9ff4ff, #4dd2ff);
box-shadow: 0 10px 24px rgba(77, 210, 255, .35);
}
#vignette {
position: fixed; inset: 0; pointer-events: none;
background: radial-gradient(ellipse 75% 60% at 50% 46%, rgba(0, 0, 0, 0) 40%, rgba(2, 7, 14, .62) 100%);
mix-blend-mode: multiply;
}
#flash {
position: fixed; inset: 0; background: rgba(255, 70, 90, .35); opacity: 0; pointer-events: none;
transition: opacity .18s;
}
#flash.on { opacity: 1; }