/* Yksin Lapissa 3D – pelinäkymän perustyylit (lataus, kalastusmittari) */
html, body { margin: 0; height: 100%; background: #0b1016; overflow: hidden; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #e8eef4; }
#g3-root { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
.g3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.g3-loader { position: absolute; inset: 0; z-index: 90; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(ellipse at 50% 30%, #1b2a38, #0b1016 70%); }
.g3-loader .t { font-size: clamp(28px, 7vw, 54px); font-weight: 700; letter-spacing: .04em; color: #f2f6fa; text-shadow: 0 2px 18px rgba(255,160,70,.25); }
.g3-loader .msg { font-size: 14px; color: #9fb2c2; }
.g3-loader .bar { width: min(320px, 70vw); height: 4px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.g3-loader .bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f0a040, #ffd08a); transition: width .25s; }
.g3-fish { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 30; padding: 10px 16px; border-radius: 12px; background: rgba(10,16,22,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #e8eef4; font-size: 14px; text-align: center; min-width: 200px; max-width: 86vw; pointer-events: none; border: 1px solid rgba(255,255,255,.12); }
.g3-fish b { font-size: 15px; } .g3-fish b.hot { color: #ffcf6a; animation: g3pulse .35s infinite alternate; } .g3-fish small { opacity: .7; }
.g3-fish kbd { background: rgba(255,255,255,.16); border-radius: 4px; padding: 1px 6px; font: inherit; font-weight: 700; }
.g3-fish .m { height: 8px; margin: 7px 0 2px; background: rgba(255,255,255,.13); border-radius: 5px; overflow: hidden; position: relative; }
.g3-fish .m > i { display: block; height: 100%; background: linear-gradient(90deg, #4aa3df, #8fd3ff); border-radius: 5px; }
.g3-fish .m.t > i.z { position: absolute; left: 30%; width: 50%; background: rgba(110,220,120,.28); }
.g3-fish .m.t > i:not(.z) { background: linear-gradient(90deg, #6bd36d, #e8d34a); } .g3-fish .m.t > i.r { background: #e5503f; }
@keyframes g3pulse { from { opacity: .55; } to { opacity: 1; } }
/* puraisu ja väsytys: ohje kohon yläpuolella (kohoa voi seurata samalla) */
.g3-fish.near { transform: translate(-50%, -100%); min-width: 0; width: max-content; max-width: 46vw; padding: 3px 8px; font-size: 11px; line-height: 1.25; border-radius: 8px; background: rgba(10,16,22,.42); backdrop-filter: none; -webkit-backdrop-filter: none; }
.g3-fish.near b { font-size: 11.5px; } .g3-fish.near small { display: none; } .g3-fish.near kbd { padding: 0 4px; }
.g3-fish.near .m { height: 5px; margin: 3px 0 1px; min-width: 90px; }
.g3-fish.near::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; border: 4px solid transparent; border-top-color: rgba(10,16,22,.42); border-bottom: 0; }
