/* 鱼群突围 — layout over the shared cozy UI kit. */
.cz-stage { background: #bfe4dc; }
.menu { display: flex; flex-direction: column; align-items: center; padding: calc(12px + var(--safe-top)) 16px calc(16px + var(--safe-bottom)); }
.menu-top { width: 100%; max-width: 560px; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; }
.menu-heading { display: flex; align-items: center; justify-content: center; gap: 10px; }
.menu-title { margin: 0; font-size: clamp(34px, 9.5vw, 54px); letter-spacing: .14em; padding-left: .14em; }
.small-round { width: 42px; height: 42px; }
.small-round svg { width: 22px; height: 22px; }
.rank-pill { margin-top: 10px; font-size: 16px; }
.menu-bottom { margin-top: auto; width: 100%; max-width: 460px; display: grid; gap: 16px; }
.menu-row { display: flex; justify-content: space-between; gap: 12px; }
.menu-row .cz-pill { font-size: 15px; }
.start-btn { min-height: 62px; font-size: 22px; }

.hud-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + var(--safe-top)) 14px 0; display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: start; max-width: 640px; margin: 0 auto; }
.status-card { display: grid; gap: 6px; padding: 8px 14px 10px; border-radius: 22px; background: rgba(255, 252, 242, .95); box-shadow: 0 0 0 3px var(--cz-line), 0 5px 0 3px var(--cz-line), 0 10px 18px rgba(60,44,28,.16); }
.status-card .timer { justify-self: center; font-size: 26px; line-height: 1; padding: 2px 16px; border-radius: 12px; background: #fff6dc; box-shadow: inset 0 0 0 2px rgba(106,74,47,.5); }
.status-card .timer.urgent { color: var(--cz-red); }
.bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-weight: 900; font-size: 13px; }
.bar .ico svg { width: 18px; height: 18px; color: var(--cz-coral); }
.track { height: 12px; border-radius: 999px; background: #eadcbe; box-shadow: inset 0 0 0 2px rgba(106,74,47,.55); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .2s; }
.hp .track i { background: linear-gradient(#a6e3a9, #5fbf7a); }
.hp.low .track i { background: linear-gradient(#ffb0a0, #ee6b57); }
.xp .track i { background: repeating-linear-gradient(-55deg, #ffe08a 0 6px, #f7c548 6px 12px); }
.xp .lv { min-width: 46px; font-size: 13px; color: var(--cz-ink); }
.boss-bar { position: absolute; left: 50%; top: calc(150px + var(--safe-top)); transform: translateX(-50%); width: min(360px, calc(100% - 28px)); display: grid; gap: 4px; padding: 6px 12px 8px; border-radius: 16px; background: rgba(255, 244, 236, .95); box-shadow: 0 0 0 2.5px var(--cz-line); text-align: center; font-weight: 900; font-size: 14px; color: #a34834; pointer-events: none; }
.boss-bar .track i { background: linear-gradient(#ff9c86, #e1543e); }
.banner { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); padding: 12px 28px; border-radius: 999px; background: linear-gradient(#ffe48f, #ffc94a); box-shadow: 0 0 0 3.5px var(--cz-line), 0 6px 0 3.5px var(--cz-line); font-weight: 900; font-size: 24px; letter-spacing: .1em; white-space: nowrap; pointer-events: none; animation: czPop .35s cubic-bezier(.2,1.5,.4,1); }
.banner.danger { background: linear-gradient(#ffb3a4, #f07a63); color: #fffaf0; -webkit-text-stroke: 4px #8a3b2c; paint-order: stroke fill; }
.joy { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), 0 0 0 2px rgba(106,74,47,.25); pointer-events: none; }
.joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffdf6, #f3e3c3); box-shadow: 0 0 0 3px var(--cz-line), 0 4px 0 3px var(--cz-line); }
.move-hint { position: absolute; left: 0; right: 0; bottom: calc(150px + var(--safe-bottom)); margin: 0; text-align: center; font-size: 13px; font-weight: 800; color: #fffef6; text-shadow: 0 1px 3px rgba(30,60,50,.7); pointer-events: none; transition: opacity .4s; }
.skill-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(12px + var(--safe-bottom)); max-width: 520px; margin: 0 auto; display: grid; gap: 8px; }
.actives { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.passives { display: flex; justify-content: center; gap: 10px; }
.slot { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 18px; background: linear-gradient(#fffdf6, #f3e6c9); border: 3px solid #fffdf5; box-shadow: 0 0 0 3px var(--cz-line), 0 4px 0 3px var(--cz-line); font-size: 12px; font-weight: 900; }
.slot .ico svg { width: 26px; height: 26px; }
.slot .lvl { position: absolute; top: -9px; right: -6px; padding: 0 6px; border-radius: 999px; background: var(--cz-yellow); box-shadow: 0 0 0 2px var(--cz-line); font-size: 11px; }
.slot.evo { background: repeating-linear-gradient(-55deg, rgba(255,255,255,.25) 0 7px, rgba(255,255,255,0) 7px 14px), linear-gradient(#ffe9a6, #ffc35a); }
.slot.empty { background: rgba(255, 250, 238, .55); border-style: dashed; box-shadow: 0 0 0 2px rgba(106,74,47,.45); color: var(--cz-ink-soft); }
.slot.empty .ico svg { opacity: .55; }
.passives .slot { width: 92px; grid-template-columns: auto auto; align-items: center; padding: 4px 8px; font-size: 11px; }
.passives .slot .ico svg { width: 18px; height: 18px; }
.passives .slot .lvl { position: static; }
.tone-bubble { color: #4aa9d8; } .tone-ring { color: #e9a23b; } .tone-arc { color: #e1b51e; } .tone-ice { color: #56b8e0; } .tone-ink { color: #8a6ab0; } .tone-wave { color: #3fa7a0; }
.tone-flow { color: #55b07a; } .tone-armor { color: #b07a44; } .tone-electric { color: #e1b51e; } .tone-frost { color: #56b8e0; } .tone-magnet { color: #e86a5c; } .tone-heal { color: #e86a5c; }

/* level up */
.levelup h3 { margin: 0 0 12px; text-align: center; font-size: 22px; }
.cards { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--cz-card); box-shadow: 0 0 0 3px var(--cz-line), 0 4px 0 3px var(--cz-line); text-align: left; transition: transform .08s; }
.card:active, .card:focus-visible { transform: translateY(2px); background: #eaf8ee; }
.card .big { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff2d2; box-shadow: inset 0 0 0 2px rgba(106,74,47,.45); }
.card .big svg { width: 34px; height: 34px; }
.card b { font-size: 17px; }
.card b small { font-size: 12px; margin-left: 6px; color: var(--cz-mint-deep); }
.card p { margin: 3px 0 0; font-size: 13px; color: var(--cz-ink-2); font-weight: 700; line-height: 1.45; }
.card .route { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #ffeec2; font-size: 11px; font-weight: 900; color: #a8741c; }
.codex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.codex-grid .card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 12px 8px; }
.result-fish { width: 120px; margin: -6px auto 0; }
.result-fish.sad { filter: grayscale(.6) brightness(1.05); }
.result-score { text-align: center; font-size: 62px; line-height: 1; margin: 6px 0; color: var(--cz-mint-deep); -webkit-text-stroke: 7px #fffaf0; paint-order: stroke fill; text-shadow: 0 5px 0 rgba(106,74,47,.22); font-weight: 900; }
.best-hint { text-align: center; font-weight: 900; font-size: 14px; margin-bottom: 10px; }
.best-hint.new { width: fit-content; margin: 0 auto 10px; padding: 3px 14px; border-radius: 999px; background: linear-gradient(#ffe48f, #ffc94a); box-shadow: 0 0 0 2.5px var(--cz-line); }
.rules { display: grid; gap: 10px; font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.rules p { margin: 0; padding-left: 26px; position: relative; }
.rules p::before { content: '🐟'; position: absolute; left: 0; }
.rules b { color: var(--cz-mint-deep); }
.period { text-align: center; font-size: 13px; font-weight: 800; color: var(--cz-ink-2); margin: 8px 0; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-row button { padding: 10px 6px; border-radius: 16px; background: var(--cz-card); box-shadow: 0 0 0 2.5px rgba(106,74,47,.7); font-weight: 900; font-size: 14px; }
.choice-row button[aria-pressed='true'] { background: linear-gradient(#a6e0b8, #6cc28b); color: #fff; box-shadow: 0 0 0 2.5px var(--cz-line); }
@media (max-height: 700px) { .actives .slot { padding: 5px 4px; } .slot .ico svg { width: 20px; height: 20px; } .status-card .timer { font-size: 22px; } }
