/*
 * pocket-fishing 皮肤。
 *
 * 1) 设计令牌：只覆盖 `--gs-*` 变量（霓虹玩具街机 × 黄昏灯笼池：青柠主按钮、深青玻璃、金色数字）。
 * 2) 本作自己的 `pf-*` 类：分区、HUD、卡片、浮层。**不覆盖 `.gs-*` 选择器**——那会把组件库的
 *    44×44 下限、安全区与按下态一起改坏。
 * 横屏分支按画布方向走 `[data-layout="landscape"]`（ui.mjs 量 #app 的矩形得出），
 * 不按视口宽度写任何 `@media (min-width)`：桌面跑的是共用库锁出来的手机画布。
 */

:root {
  --gs-accent: #8de23a;
  --gs-accent-2: #3fb86a;
  --gs-gold: #ffd257;
  --gs-danger: #ff5f7e;
  --gs-surface: rgba(12, 38, 56, 0.86);
  --gs-surface-raised: rgba(18, 56, 78, 0.94);
  --gs-surface-sunken: rgba(6, 22, 36, 0.66);
  --gs-hairline: rgba(120, 232, 240, 0.28);
  --gs-ink-on-light: #10311c;
  --gs-cta: linear-gradient(180deg, #b6f25a 0%, #8de23a 46%, #5cbc22 100%);
  --gs-glow-accent: 0 0 0 1px rgba(141, 226, 58, 0.6), 0 0 26px rgba(141, 226, 58, 0.4);
  --gs-radius-md: 18px;
  --gs-radius-lg: 24px;
  --gs-font: "Nunito", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gs-bg-focus: 50% 70%;

  --pf-cyan: #3de0e6;
  --pf-pink: #ff3d7a;
  --pf-cream: #fdecc8;
  --pf-navy: #0c2733;
  --pf-deep: #071a26;
  --pf-glass: rgba(10, 34, 52, 0.84);
  --pf-line: rgba(61, 224, 230, 0.55);
}

html, body {
  margin: 0;
  height: 100%;
  background: #04121c;
  color: #fff;
  font-family: var(--gs-font);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--pf-deep);
  user-select: none;
  -webkit-user-select: none;
}

.pf-root *,
.pf-root *::before,
.pf-root *::after {
  box-sizing: border-box;
}

.pf-root,
.pf-scene-layer,
.pf-overlay-layer {
  position: absolute;
  inset: 0;
  container-type: size;
}

.pf-overlay-layer { pointer-events: none; }
.pf-overlay-layer > * { pointer-events: auto; }

.pf-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
}

.pf-zones {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
}

.pf-zone {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 5%;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  container-type: size;
}

/* 窄分区（横屏分栏、站点里的矮框）里，两列 / 三列的按钮改成一列，标签不被截断、触控件不缩水。 */
@container (max-width: 320px) {
  .pf-grid2,
  .pf-row3 { grid-template-columns: 1fr; }
  .pf-row3 .pf-btn { flex-direction: row; min-height: 46px; font-size: 14px; }
  .pf-lure-cards { grid-template-columns: 1fr 1fr 1fr; }
  .pf-btn { padding-inline: 10px; gap: 6px; font-size: 14px; }
  .pf-btn--hero { font-size: 16px; }
  .pf-btn .pf-btn__label { white-space: normal; text-align: center; line-height: 1.1; overflow: visible; }
}

@container (max-height: 420px) {
  .pf-btn { min-height: 46px; font-size: 15px; }
  .pf-btn--hero { min-height: 50px; font-size: 18px; }
  .pf-toggle { min-height: 46px; padding-block: 4px; }
  .pf-storage-row { padding: 4px 6px; }
}

/* 整块浮层层很矮（站点里的 342×403 框）：浮层按钮区收紧间距。量的是 .pf-overlay-layer 这个容器。 */
@container (max-height: 440px) {
  .pf-modal .pf-zone.pf-zone--play { gap: 8px; padding-block: 4px; }
}

.pf-scroll {
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 18px;
}

.pf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ═══════════ 满屏插画背景 ═══════════ */

.pf-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pf-bg__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--gs-bg-focus);
}

.pf-bg__layer + .pf-bg__layer--shore,
.pf-bg__layer--shore {
  inset: auto;
  left: -12%;
  width: 124%;
  height: auto;
  bottom: 40%;
  object-fit: contain;
}

.pf-bg__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 34, 0.7) 0%, rgba(6, 18, 34, 0.35) 40%, rgba(6, 18, 34, 0.85) 100%);
}

/* ═══════════ 字与小件 ═══════════ */

.pf-logo {
  width: min(46cqmin, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.pf-wordmark {
  margin: 0;
  font-size: clamp(34px, 11cqmin, 58px);
  line-height: 1;
  font-weight: 900;
  text-align: center;
  color: var(--pf-cream);
  -webkit-text-stroke: 2px #1b3a5c;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 #1b3a5c, 0 10px 22px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
}

.pf-tagline,
.pf-caption {
  margin: 0;
  font-size: clamp(15px, 4.2cqmin, 20px);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.pf-heading {
  margin: 0;
  font-size: clamp(20px, 6cqmin, 28px);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.pf-subheading {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--pf-cyan);
  align-self: stretch;
  text-align: center;
}

.pf-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.pf-star-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(10, 26, 48, 0.82);
  border: 2px solid var(--gs-gold);
  font-weight: 900;
  font-size: 18px;
}

.pf-star-chip__icon { width: 24px; height: 24px; }
.pf-star-chip--small { padding: 4px 12px; font-size: 16px; }

.pf-chip {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7fb0, #ff3d7a);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 3px 0 rgba(120, 10, 50, 0.45);
}

.pf-icon { width: 24px; height: 24px; filter: var(--gs-icon-tint-ink); }
.pf-lock { width: 22px; height: 22px; filter: var(--gs-icon-tint-ink); opacity: 0.8; }
.pf-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--gs-accent); filter: none; }
.pf-star { width: 20px; height: 20px; }
.pf-stars { display: inline-flex; gap: 2px; }

/* ═══════════ 按钮 ═══════════ */

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  font-size: 17px;
}

.pf-btn--primary {
  background: var(--gs-cta);
  color: var(--gs-ink-on-light);
  border: 3px solid #173a1f;
  box-shadow: 0 6px 0 #2f6d16, 0 12px 22px rgba(0, 0, 0, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.45);
}

.pf-btn--primary .pf-btn__icon { filter: none; opacity: 0.85; }

.pf-btn--secondary {
  background: linear-gradient(180deg, rgba(22, 64, 88, 0.95), rgba(10, 34, 52, 0.95));
  color: #fff;
  border: 2px solid var(--pf-line);
  box-shadow: 0 0 14px rgba(61, 224, 230, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}

.pf-btn--hero { min-height: 64px; font-size: 22px; width: 100%; }
.pf-btn__icon { width: 22px; height: 22px; filter: var(--gs-icon-tint-ink); flex: 0 0 auto; }
.pf-btn__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-icon-btn {
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(10, 34, 52, 0.86);
  border: 2px solid var(--pf-line);
}

.pf-icon-btn img { filter: var(--gs-icon-tint-ink); }

.pf-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.pf-grid2 .pf-btn { width: 100%; min-width: 0; font-size: 15px; padding: 0 10px; }

.pf-row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.pf-row3 .pf-btn { width: 100%; min-width: 0; padding: 0 6px; font-size: 13px; gap: 6px; flex-direction: column; min-height: 58px; border-radius: 18px; }

.pf-sticky-cta {
  position: sticky;
  bottom: 0;
  width: 100%;
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

.pf-sticky-cta .pf-btn { width: 86%; }

/* ═══════════ 加载 / 标题 ═══════════ */

.pf-progress {
  position: relative;
  width: 76%;
  height: 22px;
  border-radius: 999px;
  background: #1b2a3d;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.pf-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffc93c, #ffe27a);
  transition: width 120ms linear;
}

.pf-progress__value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 900;
  color: #0c2733;
}

[data-screen="title"] .pf-zone--top { flex-direction: row; justify-content: space-between; padding: 6px 3%; }
[data-screen="title"] .pf-zone--hero { justify-content: flex-start; gap: 8px; padding-top: 2%; }
[data-screen="title"] .pf-logo { width: min(34cqmin, 170px); }
[data-screen="title"] .pf-zone--play { justify-content: flex-start; gap: 14px; padding: 4% 6% 5%; }

.pf-vignette {
  width: 88%;
  flex: 1 1 60px;
  min-height: 48px;
  pointer-events: none;
}

/* ═══════════ 菜单屏：顶栏与卡片 ═══════════ */

.pf-zone--header {
  flex-direction: row;
  justify-content: space-between;
  padding: 4px 3%;
  background: linear-gradient(180deg, rgba(6, 30, 44, 0.9), rgba(6, 30, 44, 0.55));
  border-bottom: 1px solid var(--gs-hairline);
}

.pf-zone--header .pf-heading { flex: 1 1 auto; font-size: clamp(18px, 5.4cqmin, 24px); }
.pf-count-chip { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(10, 26, 48, 0.8); border: 2px solid var(--pf-line); font-weight: 900; font-size: 14px; white-space: nowrap; }

.pf-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(14, 44, 64, 0.84);
  border: 2px solid rgba(63, 182, 224, 0.6);
  color: #fff;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

button.pf-card { cursor: pointer; }
.pf-card.is-selected { border: 3px solid var(--gs-accent); box-shadow: 0 0 0 1px rgba(141, 226, 58, 0.4), 0 0 22px rgba(141, 226, 58, 0.45); background: rgba(30, 64, 44, 0.86); }
.pf-card.is-locked { filter: saturate(0.25) brightness(0.8); border-style: dashed; border-color: rgba(200, 210, 220, 0.45); cursor: default; }

.pf-card__name { display: block; font-weight: 900; font-size: 17px; }
.pf-card__rule { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.76); line-height: 1.3; }
.pf-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pf-card__best { font-weight: 800; font-size: 14px; color: var(--gs-gold); }
.pf-card__best--pink { color: #ff5fb0; }
.pf-locked-line { display: block; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.78); line-height: 1.3; }

.pf-spot-cards, .pf-daily-rows { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pf-spot-card { align-items: stretch; padding: 0; overflow: hidden; min-height: 96px; }
.pf-spot-card__art { flex: 0 0 38%; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.pf-spot-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-spot-card__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 12px; min-width: 0; }
.pf-art--pond { background: linear-gradient(180deg, #5eb7e8, #ffd9a0 55%, #2a8fa8 56%, #123e5c); }
.pf-art--creek { background: linear-gradient(180deg, #7cc8f2, #e9f7d8 55%, #38a9a0 56%, #16526a); }
.pf-art--pier { background: linear-gradient(180deg, #1b1e4b, #b24c9a 55%, #27407e 56%, #0f1a3e); }

.pf-lure-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pf-lure-card { flex-direction: column; text-align: center; gap: 4px; padding: 10px 6px; min-height: 108px; }
.pf-lure-card__art { width: 54px; height: 54px; object-fit: contain; }
.pf-lure-card .pf-card__name { font-size: 14px; }
.pf-lure-card .pf-locked-line { font-size: 11px; }
.pf-lure-desc { margin: 0; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--gs-hairline); background: rgba(6, 22, 36, 0.66); font-size: 14px; line-height: 1.35; }

.pf-date-card { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; box-sizing: border-box; padding: 14px; border-radius: 20px; background: rgba(14, 47, 61, 0.86); border: 2px solid #35e0d8; box-shadow: 0 0 20px rgba(53, 224, 216, 0.3); }
.pf-date-card__icon { width: 30px; height: 30px; filter: var(--gs-icon-tint-accent); }
.pf-date-card__label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.72); }
.pf-date-card__date { font-size: clamp(24px, 8cqmin, 34px); font-weight: 900; color: #4de8ff; }
.pf-lure-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(12, 39, 51, 0.88); border: 2px solid var(--pf-line); font-weight: 800; }
.pf-lure-pill__icon { width: 28px; height: 28px; object-fit: contain; }
.pf-daily-row { min-height: 72px; }
.pf-daily-row__art { position: relative; overflow: hidden; flex: 0 0 64px; height: 52px; border-radius: 12px; }
.pf-row-chevron { width: 22px; height: 22px; filter: var(--gs-icon-tint-ink); margin-left: auto; }

.pf-journal-group { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.pf-journal-group__banner { margin: 6px 0 0; padding: 10px 14px; border-radius: 14px; font-size: 16px; font-weight: 900; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.pf-journal-group__banner { position: relative; overflow: hidden; }
.pf-journal-group__banner > span { position: relative; }
.pf-fish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-fish-card { flex-direction: column; align-items: center; text-align: center; gap: 3px; min-height: 150px; }
.pf-fish-card__photo { width: 100%; height: 64px; object-fit: contain; }
.pf-fish-card__photo.is-silhouette { filter: brightness(0) opacity(0.55); }
.pf-fish-card.is-unknown { background: rgba(8, 26, 40, 0.78); }

.pf-float-frame { width: 100%; height: 30cqh; max-height: 260px; min-height: 120px; border-radius: 20px; overflow: hidden; border: 2px solid var(--pf-line); flex: 0 0 auto; }
.pf-float-preview { display: block; width: 100%; height: 100%; }
.pf-float-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.pf-float-card { flex: 0 0 calc(33.33% - 7px); flex-direction: column; text-align: center; gap: 4px; min-height: 130px; padding: 8px 4px; }
.pf-float-card__art { width: 40px; height: 60px; object-fit: contain; }
.pf-float-card__lock { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pf-float-card .pf-locked-line { font-size: 11px; text-align: center; }

/* ═══════════ 游玩画面 ═══════════ */

.pf-stage { position: absolute; left: 0; top: 0; pointer-events: none; }

.pf-play .pf-zone { padding: 0; gap: 0; display: block; }

.pf-zone--hud {
  background: linear-gradient(180deg, rgba(8, 36, 52, 0.92), rgba(8, 36, 52, 0.7));
  border-bottom: 2px solid rgba(61, 224, 230, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

[data-layout="landscape"] .pf-zone--hud { border-bottom: 0; border-right: 2px solid rgba(61, 224, 230, 0.45); background: linear-gradient(90deg, rgba(8, 30, 46, 0.95), rgba(8, 30, 46, 0.85)); }

.pf-zone--hud > * { position: absolute; box-sizing: border-box; }

.pf-hud-spools { display: flex; align-items: center; gap: 2px; overflow: hidden; }
.pf-spool { flex: 0 1 26%; min-width: 0; height: auto; max-height: 100%; aspect-ratio: 1; object-fit: contain; }
.pf-spool.is-broken { opacity: 0.55; }
.pf-hud-count { margin-left: 2px; font-weight: 900; font-size: 13px; white-space: nowrap; }

.pf-hud-daylight { }
.pf-arc { position: absolute; inset: 20% 4% 0; }
.pf-arc svg { width: 100%; height: 100%; overflow: visible; }
.pf-arc__track { fill: none; stroke: rgba(255, 240, 200, 0.28); stroke-width: 4; }
.pf-arc__lit { fill: none; stroke: rgba(20, 30, 60, 0.7); stroke-width: 4; stroke-dasharray: 0 100; }
.pf-sun { position: absolute; width: auto; height: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); filter: none; }
.pf-hud-daylight.is-late .pf-sun { filter: hue-rotate(-25deg) saturate(1.6); }

.pf-hud-score { display: flex; align-items: baseline; gap: 6px; }
.pf-hud-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.72); }
.pf-hud-score__value { font-size: clamp(18px, 6cqmin, 28px); font-weight: 900; color: var(--gs-gold); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }

.pf-scorebar { }
.pf-scorebar__track { position: absolute; left: 0; right: 8%; top: 30%; height: 40%; border-radius: 999px; background: rgba(6, 18, 34, 0.8); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); overflow: hidden; }
.pf-scorebar__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffc93c, #ff9a3d); transition: width 200ms ease-out; }
.pf-scorebar__star { position: absolute; top: 50%; width: auto; height: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.pf-scorebar__star.is-on { animation: pf-pop 300ms ease-out; }

@keyframes pf-pop { 50% { transform: translate(-50%, -50%) scale(1.3); } }

.pf-zone--hud .pf-icon-btn { width: auto; height: auto; }
.pf-hud-tension, .pf-hud-wheel { display: none; }
[data-layout="landscape"] .pf-hud-tension { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
[data-layout="landscape"] .pf-hud-wheel { display: block; }
.pf-tension__head { display: flex; justify-content: space-between; align-items: baseline; }
.pf-tension__value { font-weight: 900; }
.pf-tension__track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #fff 0 49%, #ffe14a 50%, #ff8a3d 84%, #d0103a 85% 100%); overflow: hidden; }
.pf-tension__cover { position: absolute; top: 0; bottom: 0; right: 0; left: 0; background: rgba(6, 14, 30, 0.7); }
.pf-hud-tension.is-hot .pf-tension__value { color: #ff8aa0; }
.pf-wheel__img { position: absolute; left: 50%; top: 50%; width: min(100%, 100cqw); max-height: 100%; aspect-ratio: 1; object-fit: contain; translate: -50% -50%; filter: none; }
.pf-wheel__arrow { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; translate: -50% -50%; border-radius: 50%; background: rgba(10, 20, 40, 0.75); }
.pf-wheel__arrow::after { content: ""; position: absolute; inset: 5px; background: #ffe14a; clip-path: polygon(0 35%, 55% 35%, 55% 10%, 100% 50%, 55% 90%, 55% 65%, 0 65%); }
.pf-wheel__arrow.is-replaced { background: #fff; }
.pf-wheel__arrow.is-replaced::after { background: var(--pf-pink); }
.pf-wheel__arrow[data-dir="left"]::after { transform: rotate(180deg); }
.pf-wheel__arrow[data-dir="up"]::after { transform: rotate(-90deg); }
.pf-wheel__arrow[data-dir="down"]::after { transform: rotate(90deg); }

.pf-zone--scenery { pointer-events: none; }

[data-zone="water"] {
  touch-action: none;
  outline: none;
  cursor: pointer;
}

[data-zone="water"]:focus-visible { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6); }
[data-zone="water"] > * { pointer-events: none; position: absolute; }

.pf-hint {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(15px, 4.6cqmin, 20px);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.pf-hint.is-alert { background: rgba(12, 22, 48, 0.82); border: 2px solid var(--pf-pink); border-radius: 999px; }

.pf-coach {
  left: 8%;
  right: 8%;
  top: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fdeee0;
  border: 3px solid var(--pf-pink);
  color: #3a1a2c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.pf-coach__text { margin: 0; font-weight: 900; font-size: 17px; text-align: center; }
.pf-coach__dots { display: flex; gap: 6px; }
.pf-coach__dots .gs-coach__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(58, 26, 44, 0.25); }
.pf-coach__dots .gs-coach__dot[data-done="true"] { background: rgba(255, 61, 122, 0.55); }
.pf-coach__dots .gs-coach__dot[data-active="true"] { background: var(--pf-pink); transform: scale(1.3); }

.pf-catch {
  left: 12%;
  right: 12%;
  top: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: pf-rise 260ms ease-out;
}

@keyframes pf-rise { from { transform: translateY(12px) scale(0.92); } }

.pf-photo { position: relative; width: 100%; padding: 10px 10px 8px; border-radius: 10px; background: #fffaf0; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); transform: rotate(-2deg); box-sizing: border-box; }
.pf-catch__sparkle { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: contain; pointer-events: none; }
.pf-photo__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: linear-gradient(180deg, #bfe8f5, #7fc6de); border-radius: 4px; }
.pf-photo__caption { margin: 6px 0 0; color: #1c2a3a; font-size: 16px; text-align: center; display: flex; gap: 8px; justify-content: center; }
.pf-catch__points { margin: 0; font-size: clamp(26px, 9cqmin, 40px); font-weight: 900; color: var(--gs-gold); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); }
.pf-stamp { position: absolute; top: -6%; right: -4%; margin: 0; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 50%; border: 4px double var(--pf-pink); color: var(--pf-pink); background: rgba(255, 240, 246, 0.9); font-weight: 900; font-size: 13px; transform: rotate(12deg); }
.pf-chip--journal { position: absolute; top: -4%; left: -2%; }

.pf-lost {
  left: 10%;
  right: 10%;
  top: 22%;
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  text-align: center;
  font-size: clamp(22px, 7cqmin, 32px);
  font-weight: 900;
  color: #fff;
  background: rgba(120, 10, 40, 0.72);
  border: 2px solid #ff6b8a;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* ═══════════ 浮层：冻结的画面去饱和 + 60% 深蓝遮罩 ═══════════ */

.pf-modal { animation: pf-fade-in 160ms ease-out; }

@keyframes pf-fade-in { from { transform: translateY(8px); } }

.pf-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 48, 0.6);
  -webkit-backdrop-filter: saturate(0.25) blur(2px);
  backdrop-filter: saturate(0.25) blur(2px);
}

.pf-modal .pf-zone--card,
.pf-modal .pf-zone--header {
  background: var(--pf-glass);
  border: 2px solid var(--pf-line);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.pf-modal .pf-zone--header { flex-direction: row; justify-content: space-between; padding: 6px 14px; }
.pf-modal .pf-zone--play { justify-content: flex-start; gap: 12px; padding: 10px 4%; }
.pf-modal .pf-zone--play > .pf-btn { width: 100%; }
.pf-pause-status { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); text-align: center; }
.pf-pause .pf-zone--play .pf-btn--secondary { justify-content: flex-start; padding-left: 22px; }
.pf-pause .pf-zone--play .pf-btn--secondary::after { content: "›"; margin-left: auto; padding-right: 8px; font-size: 22px; opacity: 0.7; }

/* 结算 */
.pf-result .pf-bg + .pf-modal__scrim { background: rgba(6, 20, 48, 0.5); }
.pf-result .pf-zone--summary { gap: 8px; padding: 12px 6% 10px; }
.pf-result-spot { margin: -4px 0 0; font-weight: 800; color: var(--pf-cyan); }
.pf-result-stars { display: flex; gap: 10px; justify-content: center; }
.pf-result-star { position: relative; width: clamp(48px, 15cqmin, 72px); aspect-ratio: 1; }
.pf-result-star__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-result-star__burst { position: absolute; inset: -40%; width: 180%; height: 180%; opacity: 0.9; animation: pf-burst 700ms ease-out both; }
.pf-result-star.is-on .pf-result-star__img { animation: pf-star-in 420ms ease-out both; }

@keyframes pf-burst { from { transform: scale(0.6); } to { transform: scale(1); } }
@keyframes pf-star-in { 0% { transform: scale(0.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

.pf-hero-score { font-size: clamp(44px, 16cqmin, 72px); line-height: 1; font-weight: 900; color: var(--gs-gold); text-shadow: 0 4px 0 #7a4a00, 0 10px 24px rgba(0, 0, 0, 0.45); }
.pf-result-best { margin: 0; display: flex; gap: 8px; align-items: center; font-weight: 800; }
.pf-result-next { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.84); text-align: center; }
.pf-result-counts { display: flex; gap: 10px; }
.pf-result-counts .pf-pill { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pf-pill__icon { width: 26px; height: 26px; object-fit: contain; }
.pf-pill { padding: 6px 12px; border-radius: 999px; background: rgba(10, 34, 52, 0.9); border: 2px solid var(--pf-line); font-weight: 800; font-size: 14px; }
.pf-pill--lost { border-color: rgba(255, 61, 122, 0.7); }
.pf-result-end { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 16px; border-radius: 999px; background: rgba(6, 22, 36, 0.8); font-weight: 800; }
.pf-result-end__icon { width: 26px; height: 26px; }
.pf-tip { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(6, 22, 36, 0.86); border: 2px solid rgba(255, 210, 87, 0.6); font-size: 14px; }
.pf-tip p { margin: 0; }
.pf-tip__icon { width: 26px; height: 26px; filter: var(--gs-icon-tint-gold); flex: 0 0 auto; }
.pf-warn { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 138, 61, 0.2); border: 1px solid #ff8a3d; font-size: 13px; text-align: center; }
.pf-result .pf-zone--extras { flex-direction: row; gap: 10px; padding: 4px 6%; }
.pf-extras { display: flex; gap: 10px; width: 100%; max-height: 100%; overflow: auto; }
.pf-extras > .pf-extra-card { flex: 0 0 calc(50% - 5px); }
.pf-extra-card__copy { min-width: 0; }
.pf-result .pf-zone--extras .pf-extra-card { flex-direction: row; padding: 6px; }
.pf-result .pf-zone--extras .pf-extra-card__img { width: 36%; flex: 0 0 36%; }
.pf-result .pf-zone--extras .pf-chip { padding: 2px 4px; font-size: 11px; }
.pf-extra-card--unlocks { overflow-y: auto; }
.pf-extra-card { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 16px; background: rgba(10, 34, 52, 0.86); border: 2px solid var(--pf-line); font-size: 13px; min-width: 0; }
.pf-extra-card--unlocks { background: rgba(80, 14, 60, 0.8); border-color: rgba(255, 61, 122, 0.7); }
.pf-extra-card__img { width: 100%; height: 44px; object-fit: contain; }
.pf-chip--unlock { font-size: 12px; }
.pf-result .pf-zone--play { justify-content: flex-start; gap: 12px; padding: 6px 6% 14px; }

/* 分享 */
.pf-share-frame { width: 100%; border-radius: 14px; overflow: hidden; border: 2px solid var(--pf-line); background: #0c2733; }
.pf-share-preview { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.pf-share-text { margin: 0; font-size: 14px; text-align: center; color: rgba(255, 255, 255, 0.86); }
.pf-share-status { margin: 0; min-height: 20px; font-weight: 800; color: var(--pf-cyan); text-align: center; }

/* 设置 */
.pf-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; box-sizing: border-box; border-radius: 18px; background: rgba(10, 34, 52, 0.9); border: 2px solid var(--pf-line); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.pf-toggle__icon { width: 26px; height: 26px; filter: var(--gs-icon-tint-ink); }
.pf-toggle__label { flex: 1 1 auto; text-align: left; }
.pf-toggle__switch { position: relative; width: 56px; height: 32px; border-radius: 999px; background: #3a4a5c; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); flex: 0 0 auto; }
.pf-toggle__switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #c8d0da; transition: transform 120ms ease-out; }
.pf-toggle[aria-checked="true"] .pf-toggle__switch { background: var(--gs-accent); box-shadow: 0 0 12px rgba(141, 226, 58, 0.55); }
.pf-toggle[aria-checked="true"] .pf-toggle__switch::after { transform: translateX(24px); background: #fff; }
.pf-storage-row { display: flex; align-items: center; gap: 10px; margin: 0; width: 100%; padding: 8px 6px; border-top: 1px solid var(--gs-hairline); }
.pf-storage { margin: 0; font-size: 14px; }
.pf-storage.is-warn { color: #ffb27a; }

/* 帮助 */
.pf-zone--body { justify-content: flex-start; gap: 12px; background: var(--pf-glass); border: 2px solid var(--pf-line); border-radius: 20px; padding: 12px 14px; }
.pf-help-section { width: 100%; }
.pf-help-section .pf-subheading { text-align: left; }
.pf-help-p, .pf-help-list li { font-size: 14px; line-height: 1.45; margin: 6px 0; }
.pf-help-list { margin: 6px 0; padding-left: 20px; }
.pf-flick-diagram { position: relative; height: 150px; margin: 8px auto; width: min(220px, 100%); }
.pf-flick-diagram__fish { position: absolute; left: 50%; top: 50%; width: 36px; height: 72px; translate: -50% -50%; rotate: 90deg; }
.pf-flick-diagram__wake { position: absolute; left: 22%; top: 50%; width: 36px; height: 30px; translate: 0 -50%; border-left: 4px solid var(--pf-pink); border-radius: 50%; }
.pf-flick { position: absolute; font-size: 30px; font-weight: 900; line-height: 1; }
.pf-flick--left { left: 0; top: 50%; translate: 0 -50%; color: #ff6b6b; }
.pf-flick--right { right: 0; top: 50%; translate: 0 -50%; color: #b8ff3a; }
.pf-flick--down { left: 50%; bottom: 0; translate: -50% 0; color: #fff; }
.pf-flick--up { left: 50%; top: 0; translate: -50% 0; color: var(--pf-cyan); }

/* 失败 */
.pf-error-art { position: relative; width: 96px; height: 96px; }
.pf-error-art__ring { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; }
.pf-error-art__float { position: absolute; left: 50%; top: 42%; width: 40px; height: 60px; translate: -50% -50%; filter: none; }
.pf-error-msg { margin: 0; font-size: 20px; font-weight: 900; text-align: center; }
.pf-boot-fail { margin: 30% auto; max-width: 80%; display: flex; flex-direction: column; gap: 16px; text-align: center; }

/* ═══════════ 减少动态：只去掉动，不去掉形状 ═══════════ */

[data-reduced-motion="on"] .pf-modal,
[data-reduced-motion="on"] .pf-catch,
[data-reduced-motion="on"] .pf-card[data-nudge],
[data-reduced-motion="on"] .pf-scorebar__star.is-on,
[data-reduced-motion="on"] .pf-result-star__img,
[data-reduced-motion="on"] .pf-result-star__burst { animation: none; }
[data-reduced-motion="on"] .pf-catch__sparkle { display: none; }
[data-reduced-motion="on"] .pf-root * { transition: none; }

/* ═══════════ 手机横屏（画布是横的）：左右分栏，不是把竖屏拉宽 ═══════════ */

[data-screen="title"][data-layout="landscape"] .pf-zone--top { padding: 4px 2%; }
[data-screen="title"][data-layout="landscape"] .pf-logo { width: min(26cqh, 110px); }
[data-screen="title"][data-layout="landscape"] .pf-zone--play { justify-content: center; }
[data-layout="landscape"] .pf-wordmark { font-size: clamp(24px, 9cqh, 44px); }
[data-layout="landscape"] .pf-vignette { display: none; }
[data-layout="landscape"] .pf-btn { min-height: 46px; font-size: 15px; }
[data-layout="landscape"] .pf-btn--hero { min-height: 52px; font-size: 18px; }
.pf-modal[data-layout="landscape"] .pf-zone--play { gap: 8px; }
.pf-result[data-layout="landscape"] .pf-zone--play { justify-content: center; }
[data-layout="landscape"] .pf-hero-score { font-size: clamp(36px, 14cqh, 56px); }
[data-layout="landscape"] .pf-extras { display: flex; gap: 8px; width: 100%; }
[data-layout="landscape"] .pf-coach { top: 4%; left: 20%; right: 20%; }
[data-layout="landscape"] .pf-catch { left: 28%; right: 28%; top: 2%; }
[data-layout="landscape"] .pf-lost { top: 30%; left: 20%; right: 20%; }

@media (orientation: landscape) and (max-height: 560px) {
  .pf-card { min-height: 48px; padding: 8px 10px; }
  .pf-spot-card { min-height: 80px; }
  .pf-lure-card { min-height: 88px; }
}
