/* 湖边钓鱼小窗（js/pond.js）：钓鱼专用的一套界面（木框、渔具栏、滑条）。2026-11-19 从 castle.css 拆出来，排在它后面。 */

/* ── 湖边钓鱼小窗（js/pond.js）：钓鱼专用的一套（本人：2D 的 UI 设计一个特殊的，只在钓鱼玩法用）──
   整个窗口是一块栈桥木板（横的板子一条条，上沿亮一道、板缝暗），标题是两根绳子吊着的一块浅色木牌，关闭键是一只红白浮标；
   画面镶一圈木框；底下一条凹进去的渔具栏（钓点牌子、鱼篓三格、水下几条、几把饵）；说话的是钉在板上的一张纸条；
   按钮是浅色木牌；最底下一行累计渔获。160×100 的像素画布放大两倍 */
#desktop .window.pond-win,
#desktop.three-d .window.pond-win {
  --line: #2a1c12;
  --wood: #6b4a2e;
  --wood-l: #8a6440;
  --wood-d: #4a3220;
  --sign: #d8b47a;
  --sign-l: #f0d29a;
  --sign-d: #a8844e;
  --btn: var(--sign);
  --btn-edge: var(--line);
  --btn-ink: var(--line);
  padding: 2px 10px 10px;
  color: #f0e2c0;
  background:
    linear-gradient(var(--line), var(--line)) calc(50% - 76px) 0 / 2px 10px no-repeat,
    linear-gradient(var(--line), var(--line)) calc(50% + 76px) 0 / 2px 10px no-repeat,
    repeating-conic-gradient(#0000 0 25%, #00000014 0 50%) 0 0 / 2px 2px,
    repeating-linear-gradient(180deg, var(--wood-l) 0 2px, var(--wood) 2px 14px, var(--wood-d) 14px 16px);
  box-shadow: 0 0 0 2px var(--line), inset 2px 0 0 var(--wood-l), inset -2px -2px 0 var(--wood-d), 8px 10px 0 2px #0000004d;
  border: 0;
  filter: none;
}

#desktop .window.pond-win .title-bar,
#desktop.three-d .window.pond-win .title-bar {
  width: 168px;
  margin: 8px auto 0;
  padding: 5px 8px;
  justify-content: center;
  background: var(--sign);
  color: var(--line);
  border: 0;
  box-shadow: inset 0 0 0 2px var(--line), inset 4px 4px 0 var(--sign-l), inset -4px -4px 0 var(--sign-d); /* 不能用 clip-path 切角：关闭键在标题栏里头，会被一起切掉 */
}

#desktop .window.pond-win .title-bar-text {
  justify-content: center;
  width: 100%;
}

#desktop .window.pond-win .title-bar-text::before {
  content: none;
}

#desktop .window.pond-win .title-bar-controls button {
  color: #e8d4a8;
}

/* 关闭键：一只浮标（红的上半截、白的下半截，顶上一根细杆），点它收竿走人 */
#desktop .window.pond-win .title-bar-controls button[aria-label='Close'],
#desktop .window.pond-win .title-bar-controls button[aria-label='Close']:active,
#desktop .window.pond-win .title-bar-controls button[aria-label='Close']:focus {
  margin-top: 2px;
  clip-path: none;
  box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 34' shape-rendering='crispEdges'%3E%3Cpath fill='%232a1c12' d='M9 1h2v8H9zM6 8h8v1H6zM5 9h10v18H5zM6 27h8v1H6zM9 28h2v4H9z'/%3E%3Cpath fill='%23d0402e' d='M6 9h8v8H6z'/%3E%3Cpath fill='%23f07a5e' d='M7 10h2v5H7z'/%3E%3Cpath fill='%23f4f1e6' d='M6 18h8v9H6z'/%3E%3Cpath fill='%23c8c2b4' d='M12 18h2v9h-2z'/%3E%3C/svg%3E") 0 0 / 20px 34px no-repeat;
}

#desktop .window.pond-win .title-bar-controls button[aria-label='Close']:hover {
  transform: translateY(2px);
}

#desktop .pond-win .window-body {
  margin-top: 10px;
}

.pond { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.pond > * { flex-shrink: 0; }
/* 画面那一块：平时就是画布那么大；窗口最大化、拉大时撑满剩下的地方，画布按整数倍放大、变宽（pond.js 的 fit） */
.pond-view { display: flex; align-items: center; justify-content: center; flex: 1 0 auto; min-height: 212px; }
.pond canvas {
  display: block;
  width: 320px;
  height: 200px;
  image-rendering: pixelated;
  cursor: pointer;
  border: 0;
  box-shadow: 0 0 0 2px #2a1c12, 0 0 0 4px #a8844e, 0 0 0 6px #2a1c12;
}

/* 渔具栏：凹进木板里的一条 */
.pond-hud {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  padding: 4px 8px;
  background: #3a2818;
  box-shadow: inset 2px 2px 0 #24170d, inset -2px -2px 0 #5a3e26, 0 0 0 2px #2a1c12;
}
.pond-hud small { margin-right: 3px; color: #c8b08a; }
.pond-hud em { font-style: normal; color: #a08a6a; }
.pond-hud svg { display: block; }
/* 季节牌：小像素图标 + 一个字，深底浅字，和钓点牌子并排 */
.ph-season {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px 1px 3px;
  font-weight: normal;
  color: #f0e2c0;
  background: #24170d;
  box-shadow: 0 0 0 2px #2a1c12, inset 0 0 0 1px #8a6440;
  white-space: nowrap;
}
.ph-season svg { width: 21px; height: 21px; } /* 7×7 的图放三倍，比别的小图大一号，一眼看得出 */
.ph-spot {
  padding: 1px 6px;
  font-weight: normal;
  color: #2a1c12;
  background: #d8b47a;
  box-shadow: 0 0 0 2px #2a1c12, inset 2px 2px 0 #f0d29a;
  white-space: nowrap;
}
.ph-basket { display: flex; gap: 3px; }
.ph-basket i { display: grid; place-items: center; width: 24px; height: 16px; background: #24170d; box-shadow: inset 0 0 0 1px #5a3e26; }
.ph-basket i.got { background: #4a3220; box-shadow: inset 0 0 0 1px #8a6440; }
.ph-school, .ph-bait { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ph-school { flex: 1; }

/* 纸条：钉在木板上（左上角一颗红钉子） */
.pond-msg {
  position: relative;
  margin: 0;
  min-height: 2.8em;
  padding: 5px 8px 5px 18px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--grain), var(--parch-hi);
  clip-path: var(--nick);
  box-shadow: inset -2px -2px 0 var(--parch-lo);
}
.pond-msg::before { content: ''; position: absolute; left: 6px; top: 7px; width: 4px; height: 4px; background: #c63a2e; box-shadow: 1px 1px 0 #6f2f1c; }

.pond-row { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#desktop .pond-row button {
  padding: 3px 10px;
  min-height: 0;
  box-shadow: 0 0 0 2px #2a1c12, inset 2px 2px 0 #f0d29a, inset -2px -2px 0 #a8844e;
}
#desktop .pond-row button:not(:disabled):active { box-shadow: 0 0 0 2px #2a1c12, inset 2px 2px 0 #a8844e, inset -2px -2px 0 #f0d29a; }
#desktop .pond-row button:disabled { background: #7a6448; color: #4a3a2a; box-shadow: 0 0 0 2px #2a1c12, inset 2px 2px 0 #8a7458, inset -2px -2px 0 #5e4a34; }
.pond-help { color: #c8b08a; line-height: 1.4; }
/* 累计渔获：木板上烙出来的一行 */
.pond-log { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; padding-top: 6px; color: #e0cca0; border-top: 2px solid #2a1c12; }
.pond-log b { color: #f0c95a; font-weight: normal; }
