*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;overflow:hidden;background:#071827;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",sans-serif;color:#fff;touch-action:none;-webkit-user-select:none;user-select:none}
canvas{position:fixed;inset:0;width:100%;height:100%;display:block}
.screen{position:fixed;inset:0;display:grid;place-items:center;padding:18px;opacity:0;pointer-events:none;transition:opacity .22s;z-index:10}
.screen.active{opacity:1;pointer-events:auto}
.home-shell,.result-shell{width:min(92vw,430px);border-radius:28px;padding:24px;background:linear-gradient(180deg,rgba(9,73,116,.78),rgba(5,24,54,.9));border:1px solid rgba(255,255,255,.22);box-shadow:0 24px 70px rgba(0,12,30,.38);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);text-align:center}
.home-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:12px;font-weight:900;color:rgba(216,250,255,.78)}
.hero-fish-mark{height:150px;display:grid;place-items:center}
.hero-fish-mark span{width:138px;height:82px;border-radius:56% 44% 44% 56%;background:linear-gradient(135deg,#55f0bb,#3cc7ff);position:relative;display:block;filter:drop-shadow(0 20px 28px rgba(0,10,30,.38));animation:float 2.6s ease-in-out infinite}
.hero-fish-mark span::before{content:"";position:absolute;right:-34px;top:21px;border-left:44px solid #ffe084;border-top:22px solid transparent;border-bottom:22px solid transparent}
.hero-fish-mark span::after{content:"";position:absolute;left:28px;top:23px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:5px 0 0 -3px #0d1b2b}
@keyframes float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-10px) rotate(2deg)}}
h1{font-size:52px;line-height:.96;letter-spacing:0;font-weight:950;margin-bottom:10px}
p{font-size:15px;line-height:1.45;color:rgba(230,250,255,.78)}
.form-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0 14px}
.form-choice{min-height:76px;border-radius:18px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:#fff;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer}
.form-choice.active{background:linear-gradient(135deg,#fff,#bdf6ff);color:#05324e}
.form-choice span{font-size:22px}.form-choice strong{font-size:13px}.form-choice em{font-style:normal;font-size:10px;font-weight:800;opacity:.72}
.primary-action,.ghost-action{width:100%;min-height:50px;border:0;border-radius:999px;font:900 16px -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer}
.primary-action{background:linear-gradient(135deg,#ffd54a,#ff8a2a);color:#241200;box-shadow:0 14px 28px rgba(255,138,42,.32)}
.ghost-action{margin-top:10px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff}
.hud{position:fixed;top:calc(env(safe-area-inset-top,0px) + 14px);left:14px;right:14px;z-index:6;display:flex;align-items:flex-start;justify-content:space-between;opacity:0;pointer-events:none;transition:opacity .18s}
.hud.active{opacity:1}
.hud-left{display:flex;gap:8px;align-items:center}
.hud-score,.hud-meta,.hud-hearts{height:38px;border-radius:999px;background:rgba(5,20,38,.58);border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 10px 24px rgba(0,12,30,.18);display:flex;align-items:center;justify-content:center;font-weight:950;text-shadow:0 1px 5px rgba(0,0,0,.28)}
.hud-score{min-width:54px;padding:0 14px}.hud-meta{padding:0 14px;font-size:12px}.hud-hearts{padding:0 12px;color:#ff6b7a;letter-spacing:3px}
.combo-badge{--combo-progress:1;position:fixed;top:calc(env(safe-area-inset-top,0px) + 66px);left:18px;z-index:7;width:142px;height:42px;border-radius:999px;background:linear-gradient(135deg,rgba(255,241,168,.96),rgba(255,138,42,.94));box-shadow:0 14px 28px rgba(255,138,42,.25),0 0 0 calc(var(--combo-progress) * 3px) rgba(255,241,168,.18);color:#251202;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:950;opacity:0;transform:translateY(8px) scale(.94);pointer-events:none;transition:opacity .12s,transform .12s;white-space:nowrap;overflow:hidden}
.combo-badge.active{opacity:1;transform:translateY(0) scale(1)}
.combo-badge.surge{background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,212,74,.98),rgba(85,240,187,.92));box-shadow:0 18px 36px rgba(85,240,187,.22),0 0 0 calc(var(--combo-progress) * 4px) rgba(255,255,255,.24)}
.combo-badge span{font-size:11px}.combo-badge strong{font-size:20px;line-height:1}.combo-badge em{font-style:normal;font-size:11px;font-weight:950;opacity:.82}
.skill-button{--skill-color:#55f0bb;position:fixed;right:18px;bottom:calc(env(safe-area-inset-bottom,0px) + 82px);z-index:7;width:76px;height:76px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.44),rgba(255,255,255,.08) 36%,rgba(5,18,34,.78) 70%),linear-gradient(135deg,var(--skill-color),rgba(5,18,34,.9));box-shadow:0 18px 34px rgba(0,12,30,.32);color:#fff;font:inherit;font-weight:950;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;overflow:hidden}
.skill-button.active{opacity:.96;pointer-events:auto}.skill-button:disabled{filter:saturate(.62);opacity:.74}
.skill-button span{font-size:23px}.skill-button strong{font-size:10px}.skill-button em{position:absolute;inset:0;display:grid;place-items:center;background:rgba(4,12,28,.35);font-style:normal;font-size:22px}
.skill-button em:empty{display:none}
.toast{position:fixed;top:calc(env(safe-area-inset-top,0px) + 68px);left:50%;transform:translate(-50%,-16px);opacity:0;z-index:20;pointer-events:none;padding:10px 16px;border-radius:999px;background:rgba(5,20,38,.76);border:1px solid rgba(255,255,255,.22);font-size:13px;font-weight:900;color:#bfffea;transition:opacity .18s,transform .18s;white-space:nowrap}
.toast.show{opacity:1;transform:translate(-50%,0)}
.result-kicker{display:inline-flex;margin-bottom:12px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:900;color:#bdf6ff}
.result-shell h2{font-size:84px;line-height:.9;margin-bottom:10px}
@media(max-width:420px){.home-shell,.result-shell{width:100%;padding:20px;border-radius:24px}.hero-fish-mark{height:132px}h1{font-size:46px}.form-row{gap:6px}.form-choice{min-height:70px}.hud{left:12px;right:12px}.hud-meta{max-width:150px;font-size:11px}.combo-badge{left:12px;top:calc(env(safe-area-inset-top,0px) + 64px);width:132px;height:38px;gap:5px}.combo-badge strong{font-size:18px}.combo-badge em{font-size:10px}.skill-button{right:16px;bottom:calc(env(safe-area-inset-bottom,0px) + 86px);width:70px;height:70px}.toast{max-width:calc(100vw - 28px);white-space:normal;text-align:center;border-radius:18px}}
