/* 每日轻任务 & 荣誉称号 & 战绩名片（奶油卡通手绘风） */
#park-extras-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e46458;
  border: 1.5px solid #5a3c28;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
#park-extras-badge[hidden] { display: none !important; }

#my-park-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1.5px solid #5a3c28;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  background: #fff2cc;
  color: #6b3c12;
  cursor: pointer;
  box-shadow: 0 1.5px 0 #5a3c28;
}
#my-park-title[data-tone="mint"] { background: #e3f7e7; color: #245c31; }
#my-park-title[data-tone="orange"] { background: #ffe4c4; color: #8c3f08; }
#my-park-title[data-tone="gold"] { background: #fff0b8; color: #7a4b06; }
#my-park-title[data-tone="crimson"] { background: #ffdcd8; color: #8c231c; }
#my-park-title[data-tone="pink"] { background: #ffe2ea; color: #8f2d47; }
#my-park-title[data-tone="sky"] { background: #dff2fc; color: #1f5570; }
#my-park-title[data-tone="plum"] { background: #efe4ff; color: #512e85; }
body.world-boss-active #my-park-title { display: none !important; }

#park-extras-dialog {
  width: min(600px, 94vw);
  max-height: min(86dvh, 760px);
  overflow-y: auto;
}
.pe-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  margin-bottom: 14px;
  background: #f6e4c6;
  border: 1.5px solid #cfa97c;
  border-radius: 13px;
}
.pe-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6e4f3a;
  font-size: 13px;
  font-weight: 800;
}
.pe-tabs button[aria-selected="true"] {
  background: #fffdf8;
  color: #462e1f;
  box-shadow: 0 2px 0 rgba(90, 60, 40, 0.25);
}
.pe-profile-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  background: #f6e4c6;
  border: 2px solid #c9a77a;
  border-radius: 15px;
}
.pe-stat {
  text-align: center;
  padding: 8px 4px;
  background: #fffdf8;
  border: 1.5px solid #dbc09c;
  border-radius: 11px;
}
.pe-stat small { display: block; font-size: 10px; color: #93735b; font-weight: 700; }
.pe-stat b { display: block; margin-top: 3px; font-size: 16px; color: #462e1f; font-weight: 900; font-variant-numeric: tabular-nums; }

.pe-list { display: grid; gap: 10px; }
.pe-quest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fffdf8;
  border: 2px solid #dbc09c;
  border-radius: 15px;
}
.pe-quest.is-claimable {
  background: #fff9e3;
  border-color: #5a3c28;
  box-shadow: 0 2px 0 #5a3c28;
}
.pe-quest-copy { flex: 1; min-width: 0; }
.pe-quest-copy strong { display: block; font-size: 14px; color: #462e1f; font-weight: 900; }
.pe-quest-copy small { display: block; margin-top: 3px; font-size: 11px; color: #6e4f3a; }
.pe-bar {
  margin-top: 8px;
  height: 8px;
  background: #ebd8b7;
  border: 1.5px solid #5a3c28;
  border-radius: 999px;
  overflow: hidden;
}
.pe-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5ec472, #82dc92);
  border-radius: 999px;
}
.pe-quest-action {
  flex: none;
  min-width: 96px;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid #b89468;
  border-bottom: 3px solid #967147;
  border-radius: 11px;
  background: #fff3df;
  color: #6e4f3a;
  font-size: 12px;
  font-weight: 800;
}
.pe-quest-action.can-claim {
  background: linear-gradient(180deg, #ffb266, #f49442);
  border-color: #5a3c28;
  border-bottom-color: #b85d19;
  color: #3d1d06;
}
.pe-quest-action:disabled { opacity: 0.62; cursor: default; }

.pe-titles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pe-title-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  text-align: left;
  background: #fffdf8;
  border: 2px solid #dbc09c;
  border-radius: 14px;
  color: #462e1f;
}
.pe-title-card.is-equipped {
  background: #fff4d4;
  border-color: #5a3c28;
  box-shadow: 0 2px 0 #5a3c28;
}
.pe-title-card.is-locked { opacity: 0.62; }
.pe-title-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 9px;
  border: 1.5px solid #5a3c28;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #fff0b8;
  color: #462e1f;
}
.pe-title-card small { font-size: 11px; color: #6e4f3a; line-height: 1.45; }
.pe-title-status { font-size: 10px; font-weight: 800; color: #cc6b1c; margin-top: auto; }
.pe-notice { min-height: 18px; margin: 10px 0 0; font-size: 12px; font-weight: 700; color: #368749; }

/* ===== 6 款手绘猫咪头像框样式 ===== */
body.arcade-ui .player-card img#my-avatar[data-frame="paw-pink"],
.pe-frame-preview[data-frame="paw-pink"] {
  border: 2.5px solid #e66c88 !important;
  box-shadow: 0 0 0 2px #ffdbe4, 0 2px 0 #8f2d47;
}
body.arcade-ui .player-card img#my-avatar[data-frame="emerald-park"],
.pe-frame-preview[data-frame="emerald-park"] {
  border: 2.5px solid #3ca858 !important;
  box-shadow: 0 0 0 2px #d9f7df, 0 2px 0 #1f6130;
}
body.arcade-ui .player-card img#my-avatar[data-frame="cheese-gold"],
.pe-frame-preview[data-frame="cheese-gold"] {
  border: 2.5px solid #e6a817 !important;
  box-shadow: 0 0 0 2px #fff2ba, 0 2px 0 #8a5b08;
}
body.arcade-ui .player-card img#my-avatar[data-frame="flame-arcade"],
.pe-frame-preview[data-frame="flame-arcade"] {
  border: 2.5px solid #e6522e !important;
  box-shadow: 0 0 0 2px #ffd89b, 0 0 10px rgba(244, 118, 56, 0.55);
}
body.arcade-ui .player-card img#my-avatar[data-frame="starlight-cat"],
.pe-frame-preview[data-frame="starlight-cat"] {
  border: 2.5px solid #8a56d6 !important;
  box-shadow: 0 0 0 2px #eadcff, 0 0 10px rgba(138, 86, 214, 0.5);
}

.pe-section-title {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 900;
  color: #462e1f;
}
.pe-section-title:first-child { margin-top: 0; }
.pe-frames-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pe-frame-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fffdf8;
  border: 2px solid #dbc09c;
  border-radius: 14px;
}
.pe-frame-card.is-equipped {
  background: #fff4d4;
  border-color: #5a3c28;
  box-shadow: 0 2px 0 #5a3c28;
}
.pe-frame-preview {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: #f6e4c6;
  border: 2px solid #5a3c28;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.pe-frame-copy { flex: 1; min-width: 0; }
.pe-frame-copy strong { display: block; font-size: 13px; color: #462e1f; font-weight: 900; }
.pe-frame-copy small { display: block; margin-top: 2px; font-size: 10px; color: #6e4f3a; line-height: 1.4; }
.pe-frame-btn {
  flex: none;
  min-height: 34px;
  padding: 6px 10px;
  border: 1.5px solid #b89468;
  border-bottom: 3px solid #967147;
  border-radius: 10px;
  background: #fff3df;
  color: #462e1f;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.pe-frame-btn.is-buy {
  background: linear-gradient(180deg, #ffe694, #ffd45c);
  border-color: #5a3c28;
  border-bottom-color: #bd8818;
}
.pe-season-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 10px;
  background: linear-gradient(110deg, #fff5d6, #ffe3b0);
  border: 2px solid #5a3c28;
  border-radius: 14px;
}
.pe-season-banner strong { font-size: 14px; color: #462e1f; font-weight: 900; }
.pe-season-banner span { font-size: 11px; color: #8c4b0e; font-weight: 800; }
@media (max-width: 560px) {
  .pe-profile-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-titles-grid, .pe-frames-grid { grid-template-columns: 1fr; }
}

/* ===== S1 赛季横幅 & 园区更新公告板 & 猫友个人名片 ===== */
.pe-season-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid #5a3c28;
  margin-bottom: 12px;
  box-shadow: 0 3px 0 rgba(90, 60, 40, 0.28);
}
.pe-new-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7d70, #e45448);
  border: 1.5px solid #5a3c28;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.4px;
  box-shadow: 0 1.5px 0 #5a3c28;
}
.pe-new-pill[hidden] { display: none !important; }

#park-changelog-dialog {
  width: min(620px, 94vw);
  max-height: min(88dvh, 780px);
  overflow-y: auto;
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.pc-item {
  padding: 12px 13px;
  border-radius: 14px;
  background: #fffdf8;
  border: 2px solid #dbc09c;
}
.pc-item strong {
  display: block;
  font-size: 13px;
  color: #462e1f;
  font-weight: 900;
  margin-bottom: 5px;
}
.pc-item p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #6e4f3a;
}
.pc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pc-link-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  border: 2px solid #5a3c28;
  border-bottom: 4px solid #8a5b08;
  background: linear-gradient(180deg, #ffe899, #ffd257);
  color: #462e1f;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.pc-actions .wide { flex: 1; margin: 0; }

#park-card-dialog {
  width: min(460px, 92vw);
}
.pcard-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff5dc, #ffe7c2);
  border: 2px solid #d7a665;
  margin-bottom: 12px;
}
.pcard-avatar {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  background: #fffdf8;
  border: 2.5px solid #5a3c28;
}
.pcard-avatar[data-frame="paw-pink"] { border-color: #e66c88; box-shadow: 0 0 0 2px #ffdbe4; }
.pcard-avatar[data-frame="emerald-park"] { border-color: #3ca858; box-shadow: 0 0 0 2px #d9f7df; }
.pcard-avatar[data-frame="cheese-gold"] { border-color: #e6a817; box-shadow: 0 0 0 2px #fff2ba; }
.pcard-avatar[data-frame="flame-arcade"] { border-color: #e6522e; box-shadow: 0 0 0 2px #ffd89b, 0 0 10px rgba(244, 118, 56, 0.5); }
.pcard-avatar[data-frame="starlight-cat"] { border-color: #8a56d6; box-shadow: 0 0 0 2px #eadcff, 0 0 10px rgba(138, 86, 214, 0.45); }
.pcard-info { flex: 1; min-width: 0; }
.pcard-title-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff0b8;
  border: 1.5px solid #5a3c28;
  color: #5a3c28;
  font-size: 11px;
  font-weight: 900;
}
.pcard-info h3 {
  margin: 6px 0 3px;
  font-size: 20px;
  color: #462e1f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard-sub { margin: 0; font-size: 12px; font-weight: 700; color: #7b5436; }
.pcard-meta { display: block; margin-top: 4px; font-size: 10px; color: #93735b; line-height: 1.4; }
.pcard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.pcard-actions {
  display: flex;
  gap: 8px;
}
.pcard-btn {
  flex: 1;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 2px solid #b89468;
  border-bottom: 3px solid #967147;
  background: #fff3df;
  color: #462e1f;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.pcard-btn.is-primary {
  background: linear-gradient(180deg, #ffb266, #f49442);
  border-color: #5a3c28;
  border-bottom-color: #b85d19;
  color: #3d1d06;
}
#leaderboard > *, #cat-friends-list .cat-friend-row { cursor: pointer; }
body.arcade-ui .player-card img#my-avatar { cursor: pointer; }

@media (max-width: 560px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-actions { flex-direction: column; }
  .pc-link-btn, .pc-actions .wide { width: 100%; }
}

/* ===== 实时网络延迟 Ping + FPS 状态灯 ===== */
.park-net-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 249, 236, 0.92);
  border: 1.5px solid #5a3c28;
  color: #462e1f;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.park-net-pill small { color: #8c6b50; font-size: 10px; font-weight: 700; }
.park-net-pill .net-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3eb85f;
}
.park-net-pill.is-warn .net-dot { background: #f0a429; }
.park-net-pill.is-bad .net-dot { background: #e04f43; }
@media (max-width: 640px) {
  .park-net-pill small { display: none; }
  .park-net-pill { padding: 0 7px; height: 28px; font-size: 10px; }
}

/* ===== 合照模式手绘相框预览层 ===== */
#photo-frame-select {
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 9px;
  border: 1.5px solid #5a3c28;
  background: #fff9e8;
  color: #462e1f;
  font-size: 12px;
  font-weight: 800;
}
#photo-frame-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
#photo-frame-overlay[data-frame="s1-sunny"] {
  border: 14px solid #ffd45c;
  box-shadow: inset 0 0 0 3px #5a3c28;
}
#photo-frame-overlay[data-frame="polaroid"] {
  border: 18px solid #fffdf7;
  border-bottom-width: 68px;
  box-shadow: inset 0 0 0 2px #d4bfa0;
}
#photo-frame-overlay[data-frame="fish-paw"] {
  border: 12px solid #ff9bb3;
  box-shadow: inset 0 0 0 3px #fff0f5;
}
#photo-frame-overlay[data-frame="champion"] {
  border: 14px solid #f2b12c;
  box-shadow: inset 0 0 0 3px #fff2ba;
}

/* ===== 休闲区摸鱼小游戏：30 秒狂拍小鱼干 ===== */
#park-fish-dialog { width: min(590px, 94vw); }
.pfish-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.pfish-hud > div {
  text-align: center;
  padding: 7px 4px;
  border-radius: 11px;
  background: #fffdf8;
  border: 1.5px solid #dbc09c;
}
.pfish-hud small { display: block; font-size: 10px; color: #8c6b50; font-weight: 700; }
.pfish-hud b { display: block; margin-top: 2px; font-size: 17px; color: #462e1f; font-weight: 900; font-variant-numeric: tabular-nums; }
#pfish-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2.5px solid #5a3c28;
  touch-action: manipulation;
  cursor: pointer;
}
.pfish-tip { margin: 9px 0 10px; font-size: 12px; font-weight: 700; text-align: center; color: #6e4f3a; }
