/* คีย์แคปอ้างอิง TextUI รุ่น 6 และหลอดอ้างอิง Action Progress Bar รุ่น 11 */
.hud:not([data-phase=fighting],[data-phase=snapped]) {
  width:max-content;
  max-width:calc(100% - 24px);
  border-radius:16px;
  background:var(--panel);
  box-shadow:0 3px 0 #08080a;
  padding:10px 14px 12px;
}
.hud:is([data-phase=aiming],[data-phase=biting]) {
  width:min(236px,calc(100% - 24px));
  display:grid;
  justify-items:stretch;
}
.hud:is([data-phase=aiming],[data-phase=biting]) .fishing-meter {
  width:100%;
  margin:5px 0 0;
  padding:3px 7px;
  border-radius:8px;
  background:#191619;
}
.hud[data-phase=biting] {
  background:linear-gradient(100deg,#e5092c14,transparent 57%),var(--panel);
}
.ready-summary,.water-status {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  text-align:start;
}
.ready-summary h2,.water-status h2 { margin:0; font-size:1rem; }
.ready-summary small,.water-status small,.strike-copy small { color:#e2d1cc; font-size:.78rem; }
.rig-spool {
  width:29px;
  aspect-ratio:1;
  flex:none;
  border-radius:50%;
  background:radial-gradient(circle at 60% 34%,#e1bd86 0 5%,transparent 7%),radial-gradient(circle,#c5a16d 0 8%,#3f3026 10% 30%,#b49364 32% 35%,#201818 38% 50%,#796044 52% 57%,transparent 61%);
  rotate:-21deg;
  transform:scaleX(.83);
  filter:drop-shadow(0 1px 1px #101012);
}
.rig-spool[data-equipped] { animation:fishing-spool .48s cubic-bezier(.19,.75,.27,1); }
@keyframes fishing-spool {
  from { transform:scaleX(.83) rotate(-210deg); }
  to { transform:scaleX(.83) rotate(0); }
}
.rig-controls { display:flex; justify-content:center; flex-wrap:wrap; gap:2px 14px; margin-top:9px; }
.hud :is(.rig-controls button,.cast-release,.strike-cue) {
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:transparent;
  padding:3px 0;
  font-size:.82rem;
  text-shadow:inherit;
}
.hud :is(.rig-controls button,.cast-release,.strike-cue):hover { background:transparent; color:#fff; }
.hud :is(.rig-controls,.cast-release,.strike-cue,.water-status) kbd {
  display:inline-grid;
  place-items:center;
  min-height:26px;
  padding:0 6px;
  background:#171517;
  color:#f2d5a0;
  border-radius:8px;
  box-shadow:0 2px #b49364,inset 0 1px #b4936450;
  text-shadow:none;
  -webkit-text-stroke:0;
}
.hud .water-status small kbd { min-height:0; margin-inline:1px; padding:2px 4px; font-size:.72rem; }
.hud .cast-release { min-height:34px; }
.hud :is(.cast-release,.strike-cue) { padding-inline:7px; }
.fishing-meter {
  display:grid;
  grid-template-columns:minmax(0,1fr) 60px;
  align-items:center;
  gap:8px;
  text-align:start;
}
.fishing-meter strong { font-size:12px; line-height:20px; white-space:nowrap; }
.fishing-track {
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:linear-gradient(180deg,#622c38 0 1px,#302126 1px,#1a1417);
  box-shadow:inset 0 -1px 2px #080608a6,0 0 0 1px #101012e8;
}
.fishing-fill {
  display:block;
  position:relative;
  height:100%;
  width:var(--value,0%);
  border-radius:inherit;
  background:linear-gradient(90deg,#782735,#a7394d);
}
.fishing-fill::after {
  content:"";
  position:absolute;
  inset:0 0 0 auto;
  width:min(8px,100%);
  border-radius:inherit;
  background:linear-gradient(90deg,transparent,#c9a574);
}
.fishing-fill[data-charged]::after { animation:fishing-charge-tip .33s ease-out; }
@keyframes fishing-charge-tip {
  42% { filter:brightness(1.8); width:min(19px,100%); }
}
.hud .strike-cue { gap:11px; text-align:start; }
.hud .strike-cue kbd {
  position:relative;
  height:34px;
  width:34px;
  border-radius:9px;
  font-size:19px;
  animation:fishing-strike-in .24s ease-out;
}
.hud .strike-cue kbd::after {
  content:"";
  position:absolute;
  inset:auto 2px 0;
  height:2px;
  border-radius:50%;
  background:linear-gradient(90deg,transparent,#d85666,#f5d28e,transparent);
  animation:fishing-key-light .52s ease-out both;
}
.strike-copy { animation:fishing-caption-in .42s ease-out .1s both; }
.strike-copy strong { font-size:1rem; }
.watch-float,.cast-line,.catch-knot { position:relative; display:block; width:33px; height:29px; flex:none; filter:drop-shadow(0 1px 1px #101012); }
.watch-float::before {
  content:"";
  position:absolute;
  inset:1px auto auto 13px;
  width:7px;
  height:16px;
  border-radius:60%;
  background:linear-gradient(#d1ae7d 46%,#8b2435 47% 95%,#40282a 96%);
  animation:fishing-float-settle .65s ease-out;
}
.watch-float::after {
  content:"";
  position:absolute;
  inset:13px 0 0;
  background:radial-gradient(ellipse,transparent 31%,#b4936480 35% 39%,transparent 44% 58%,#b4936454 62% 65%,transparent 70%);
}
.cast-line {
  background:radial-gradient(ellipse at 50% 85%,transparent 57%,#b49364a8 62% 65%,transparent 70%);
  clip-path:inset(0 0 44%);
  animation:fishing-cast-line .57s ease-out both;
}
.catch-knot { background:radial-gradient(circle,#d4b381 0 10%,#b4936433 12% 20%,transparent 32%); }
@keyframes fishing-strike-in {
  from { scale:.82; }
  60% { scale:1.06; }
}
@keyframes fishing-key-light {
  from { translate:-5px; opacity:0; }
  35% { opacity:1; }
  to { translate:5px; opacity:0; }
}
@keyframes fishing-caption-in {
  from { opacity:0; translate:-5px; }
}
@keyframes fishing-cast-line {
  from { opacity:0; transform:translate(-9px,3px) scaleX(.4); }
  30% { opacity:1; }
  to { opacity:.55; transform:translateX(2px); }
}
@keyframes fishing-float-settle {
  from { opacity:0; translate:0 -6px; }
  55% { translate:0 2px; }
}
.cast-path {
  position:fixed;
  pointer-events:none;
  left:50%;
  top:49%;
  width:11%;
  height:calc(51vh - max(145px,19vh));
  background:linear-gradient(0deg,transparent 27%,#e3b77adc 51%,#a47b5070 65%,transparent 76%) 0 100%/100% 270%;
  clip-path:polygon(0 100%,2px 100%,100% 0,calc(100% - 2px) 0);
  animation:fishing-cast-path .72s linear both;
}
@keyframes fishing-cast-path {
  from { background-position:0 100%; opacity:0; }
  18%,79% { opacity:1; }
  to { background-position:0 0; opacity:0; }
}
@media (prefers-reduced-motion:reduce) { .cast-path { display:none; } }
