.room-header {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:55px;
  padding:7px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(110deg,#29181c72,transparent 56%);
}
.room-header img { width:79px; height:34px; object-fit:contain; }
.room-header h1 { font-size:1.19rem; font-weight:600; line-height:1.3; }
.room-close {
  margin-inline-start:auto;
  width:30px;
  min-height:30px;
  padding:0;
  background:#1a171a;
  font-size:1.33rem;
  line-height:1;
}
.bench-location { color:var(--gold); font-size:.8rem; }
.bench-location span { margin:0 3px; font-size:.63rem; }
.tackle-room[data-inspected="rod"] [data-art="rod"],
.tackle-room[data-inspected="line"] [data-art="line"],
.tackle-room[data-inspected="hook"] [data-art="hook"],
.tackle-room[data-inspected="bait"] [data-art="bait"] {
  filter:brightness(1.22) drop-shadow(0 4px 5px #000b) drop-shadow(0 0 7px #b4936433);
}
.tackle-room[data-inspected="rod"] .rod-caption span,
.tackle-room[data-inspected="line"] [data-bench-item="line"] small:last-child,
.tackle-room[data-inspected="hook"] [data-bench-item="hook"] small:last-child,
.tackle-room[data-inspected="bait"] [data-bench-item="bait"] small:last-child { color:#ebc994; }
.tackle-room [data-saved] { animation:fishing-gear-saved .55s ease-out; }
@keyframes fishing-gear-saved {
  35% { color:#f3cd94; text-shadow:0 0 7px #b4936495; }
}
.repair-gain {
  display:block; position:absolute; inset:50% auto auto var(--before,0%);
  width:var(--gain,0%); height:5px; border-radius:999px; translate:0 -50%;
  background:linear-gradient(90deg,#ad8050,#e7c08b); pointer-events:none; opacity:0;
}
.rod-wear-track[data-repaired] .repair-gain { animation:fishing-repair-gain .72s ease-out; }
@keyframes fishing-repair-gain {
  from { clip-path:inset(0 100% 0 0); opacity:.9; }
  48% { clip-path:inset(0); opacity:1; }
  100% { opacity:0; }
}
.hud[data-phase=aiming] .fishing-track {
  background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),#b4936470 calc(25% - 1px) 25%),
    linear-gradient(180deg,#622c38 0 1px,#302126 1px,#1a1417);
}
.fight-heading { position:relative; }
.strike-confirm {
  position:absolute; right:10px; top:2px;
  background:#21171b; color:#eacda0; box-shadow:0 2px var(--gold);
  animation:fishing-strike-press .31s ease-out both;
}
@keyframes fishing-strike-press {
  0% { opacity:1; scale:1; }
  32% { opacity:1; scale:.83; translate:0 2px; }
  100% { opacity:0; scale:.95; translate:0 3px; }
}
.dial-safe-mark {
  position:absolute; top:8.5%; left:50%; width:2px; height:7%; translate:-50%;
  background:#fbdb9d; opacity:.35; z-index:1;
}
.hud[data-phase=snapped] .fight-heading::after {
  content:""; position:absolute; left:20%; right:20%; bottom:-4px; height:2px;
  background:linear-gradient(90deg,transparent,var(--red),transparent);
  animation:fishing-snap-line .32s ease-out both;
}
@keyframes fishing-snap-line { to { scale:.03 1; opacity:0; } }
.catch-window { width:min(630px,calc(100% - 26px)); }
body:has(#main[open]) #catch[open],
body:has(#main[open]) #catch[open]::backdrop { visibility:hidden; }
.catch-window .slip { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); align-items:center; }
.catch-stage { height:220px; }
.catch-halo { top:50%; translate:0 -50%; }
.catch-stage::before { inset-inline:0; }
.catch-fish { width:87%; }
.slip-info { padding:17px 20px 17px 8px; justify-items:start; text-align:start; }
.slip-info h2 { font-size:clamp(1.25rem,2.45vw,1.9rem); }
.slip-info .figures { justify-content:start; align-items:start; gap:14px; }
.slip-info .figures > div { text-align:start; }
.slip-info .figures .weight-cell { flex:1.55; }
.slip-info .weight-cell dd { font-size:clamp(1.85rem,3.3vw,2.35rem); line-height:1.15; }
.slip-info .footer-actions { justify-content:start; }
.catch-discovery { display:flex; align-items:center; flex-wrap:wrap; gap:4px 9px; }
.catch-discovery .catch-badge { padding-inline:0; }
.catch-book-link { min-height:29px; padding:3px 9px; color:#e6c28c; font-size:.78rem; }
.catch-book-link span { margin-inline-start:2px; color:var(--gold); }
.catch-record-slot { justify-items:start; }
.catch-record { margin-top:3px; }
.notice[data-tone],.slip-info .message[data-tone] { display:flex; align-items:center; gap:8px; }
.notice[data-tone]::before,.slip-info .message[data-tone]::before {
  content:"·"; flex:none; display:grid; place-items:center; width:18px; height:18px;
  border-radius:50%; background:#292123; color:#e0c3a0; font-weight:700;
}
.notice[data-tone=good]::before { content:"✓"; }
.notice[data-tone=warning]::before,.slip-info .message[data-tone=warning]::before {
  content:"!"; color:#ffd3cb; background:#642833;
}
.book-cover .collection-title:is(:hover,:focus-visible) .cover-image { filter:brightness(1.12); }
.book-cover .collection-title:is(:hover,:focus-visible)::after {
  content:""; position:absolute; height:5px; inset:auto 7px -5px 11px;
  border-radius:0 0 8px 4px; pointer-events:none;
  background:linear-gradient(#9e7a5759,#291c1a);
}
.book-reward:not([data-unlocking]) .reward-chest[data-reward-state=ready]:is(:hover,:focus-visible) .chest-lock {
  animation:fishing-lock-tap .32s ease-out;
}
.book-reward[data-unlocking] .chest-lock { animation:fishing-lock-tap .32s ease-out .43s both; }
.reward-detail .journal-seal { min-inline-size:104px; }
@keyframes fishing-lock-tap { 42% { translate:0 2px; rotate:8deg; } }
.collection-notice[data-paid] { animation:fishing-reward-receipt .35s ease-out both; }
@keyframes fishing-reward-receipt { from { opacity:0; translate:0 6px; } }
@media (max-width:520px) {
  .room-header { min-height:46px; padding:5px 10px; }
  .room-header img { width:62px; height:29px; }
  .room-header h1 { font-size:1rem; }
  .catch-window .slip { grid-template-columns:minmax(0,1fr); }
  .catch-stage { height:151px; }
  .catch-halo { width:165px; }
  .catch-fish img { max-height:123px; }
  .slip-info { padding:10px 17px 15px; }
}
