/* 抓大鱼 — screen layout on top of the shared cozy UI kit. */
.cz-stage { background: #d6efe2; }

/* ---------------- menu ---------------- */
.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(40px, 11vw, 58px); letter-spacing: .18em; padding-left: .18em; }
.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: 18px; }
.start-btn { min-height: 62px; font-size: 22px; }
.theme-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  padding: 14px 18px; border-radius: 26px; background: rgba(255, 251, 240, .94);
  box-shadow: 0 0 0 3px var(--cz-line), 0 5px 0 3px var(--cz-line), 0 12px 24px rgba(60, 44, 28, .2);
}
.theme-card .season { grid-row: span 2; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fffaf0; -webkit-text-stroke: 4px var(--cz-line); paint-order: stroke fill; box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), 0 0 0 2.5px var(--cz-line); }
.theme-card .season.spring { background: linear-gradient(#ffd0dc, #f59ab3); }
.theme-card .season.summer { background: linear-gradient(#a6ecd8, #5cc6a6); }
.theme-card .season.autumn { background: linear-gradient(#ffd98c, #f2a641); }
.theme-card .season.winter { background: linear-gradient(#d9efff, #9cc9ea); }
.theme-card .today { font-weight: 900; font-size: 20px; }
.theme-card .today small { font-size: 13px; color: var(--cz-ink-2); margin-left: 6px; }
.theme-card .meta { font-size: 13px; font-weight: 700; color: var(--cz-ink-2); line-height: 1.5; }
.theme-card .meta b { color: var(--cz-mint-deep); }
.theme-card .best { position: absolute; top: -14px; right: 16px; padding: 3px 12px; border-radius: 999px; background: var(--cz-yellow); box-shadow: 0 0 0 2.5px var(--cz-line); font-size: 13px; font-weight: 900; }

/* ---------------- HUD ---------------- */
.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 auto; align-items: start; gap: 10px; max-width: 640px; margin: 0 auto;
}
.timer-card {
  justify-self: center; display: grid; justify-items: center; padding: 6px 22px 8px; min-width: 132px; border-radius: 22px;
  background: linear-gradient(#fffdf6, #f6ead1); box-shadow: 0 0 0 3px var(--cz-line), 0 5px 0 3px var(--cz-line), 0 10px 20px rgba(60,44,28,.18);
}
.timer-card small { font-size: 12px; font-weight: 800; color: var(--cz-ink-2); }
.timer-card b { font-size: 30px; line-height: 1.05; color: var(--cz-ink); }
.timer-card.urgent b { color: var(--cz-red); animation: czPulse .8s ease-in-out infinite; }
.hud-stats { display: grid; gap: 10px; justify-items: end; }
.count-pill { padding: 5px 14px 5px 8px; }
.count-pill b { font-size: 20px; }
.count-pill small { font-size: 12px; color: var(--cz-ink-2); font-weight: 800; }
.count-pill svg { color: #e98a47; }
.combo { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #fff6dc; box-shadow: 0 0 0 2.5px var(--cz-line); font-size: 13px; font-weight: 900; color: var(--cz-ink-2); }
.combo i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--cz-yellow-2) calc(var(--p, 0) * 1turn), #ead9b4 0); box-shadow: inset 0 0 0 2px var(--cz-line); }
.combo.hot { background: linear-gradient(#ffe48f, #ffcf4f); color: var(--cz-ink); animation: czPulse .6s ease-in-out 3; }
.combo.cool { opacity: .7; }

.coach {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(118px + var(--safe-top)); width: min(360px, calc(100% - 32px));
  padding: 10px 16px; border-radius: 18px; background: rgba(255, 253, 244, .96); box-shadow: 0 0 0 3px var(--cz-line), 0 4px 0 3px var(--cz-line);
  font-weight: 800; font-size: 15px; text-align: center; line-height: 1.45; pointer-events: none; animation: czPop .3s ease;
}
.coach::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 18px; background: rgba(255, 253, 244, .96); transform: translateX(-50%) rotate(45deg); box-shadow: 3px 3px 0 0 var(--cz-line); }

.tray-glow { position: absolute; border-radius: 24px; pointer-events: none; opacity: 0; transition: opacity .2s; box-shadow: 0 0 0 4px rgba(232, 106, 92, .85), 0 0 26px 6px rgba(232, 106, 92, .45); }
.tray-glow.on { opacity: 1; animation: czPulse .7s ease-in-out infinite; }
.lock-btn { position: absolute; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 18px; background: transparent; }
.lock-btn::after { content: '分享+1格'; position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: var(--cz-yellow); box-shadow: 0 0 0 2px var(--cz-line); font-size: 11px; font-weight: 900; color: var(--cz-ink); }
.lock-btn[hidden] { display: none; }

.ready-banner {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 14px 34px; 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), 0 18px 30px rgba(50,36,20,.25);
  font-size: 28px; font-weight: 900; color: var(--cz-ink); letter-spacing: .12em; pointer-events: none; animation: czPop .35s cubic-bezier(.2,1.5,.4,1);
}

.hud-tools {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px calc(14px + var(--safe-bottom));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 480px; margin: 0 auto;
}
.tool {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 6px 9px; border-radius: 22px;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.18) 0 8px, rgba(255,255,255,0) 8px 16px), linear-gradient(#ffe48f, #f7bf3e);
  border: 3px solid #fffdf5; box-shadow: 0 0 0 3px var(--cz-line), 0 5px 0 3px var(--cz-line), 0 10px 18px rgba(60,44,28,.2);
  transition: transform .08s;
}
.tool:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 3px var(--cz-line), 0 2px 0 3px var(--cz-line); }
.tool .ico { width: 38px; height: 38px; display: grid; place-items: center; color: var(--cz-ink); }
.tool .ico svg { width: 30px; height: 30px; }
.tool .label { font-size: 15px; font-weight: 900; color: var(--cz-ink); }
.tool .badge { position: absolute; top: -10px; right: -6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: #fffdf6; box-shadow: 0 0 0 2.5px var(--cz-line); font-weight: 900; font-size: 15px; }
.tool.share .badge { background: var(--cz-mint); color: #fff; font-size: 12px; }
.tool.empty { filter: grayscale(.75); opacity: .62; }
.tool.active { animation: czPulse .5s ease 2; }

/* ---------------- result ---------------- */
.result-medal { width: 120px; height: 120px; margin: -6px auto 4px; display: grid; place-items: center; }
.result-medal svg { width: 100%; height: 100%; }
.result-title { text-align: center; font-size: 30px; margin: 4px 0 0; }
.result-score { text-align: center; font-size: 64px; line-height: 1; margin: 8px 0 12px; 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; }
.result-progress { text-align: center; font-size: 24px; font-weight: 900; margin: 14px auto 6px; padding: 10px 26px; width: fit-content; border-radius: 999px; background: #fffdf6; box-shadow: 0 0 0 3px var(--cz-line), 0 4px 0 3px var(--cz-line); }
.result-basket { width: 190px; margin: 2px auto 0; }
.badge-new { display: block; 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); font-weight: 900; font-size: 14px; }

.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.season-grid div { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; background: var(--cz-card); box-shadow: 0 0 0 2px rgba(106,74,47,.6); font-weight: 900; font-size: 13px; }
.season-grid b { font-size: 18px; color: var(--cz-mint-deep); }
.my-total { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-weight: 900; }
.my-total b { font-size: 36px; color: var(--cz-mint-deep); }
.rules { display: grid; gap: 10px; font-weight: 700; font-size: 14.5px; line-height: 1.6; color: var(--cz-ink); }
.rules p { margin: 0; padding-left: 26px; position: relative; }
.rules p::before { content: '🐟'; position: absolute; left: 0; top: 0; }
.rules b { color: var(--cz-mint-deep); }

@media (min-width: 900px) {
  .menu-title { font-size: 64px; }
  .hud-top { max-width: 760px; }
}
@media (max-height: 640px) {
  .timer-card b { font-size: 24px; }
  .tool .ico { width: 30px; height: 30px; }
  .tool .ico svg { width: 24px; height: 24px; }
}
