@font-face {
  font-family: "Carter One";
  src: url("../assets/fishing/fonts/carter-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fishing/fonts/barlow-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
/* The frame and plates are raster art. Nine-slice placement keeps the corners
   intact as dialogs and controls change size. */
:root {
  --case-frame: url('../assets/fishing/ui/case-frame.webp');
  --plate-rest: url('../assets/fishing/ui/plate-rest.webp');
  --plate-hover: url('../assets/fishing/ui/plate-hover.webp');
  --plate-held: url('../assets/fishing/ui/plate-held.webp');
  --fishing-gold: #ffd18a;
  --sign-lettering: "Carter One", Georgia, serif;
  --sign-caption: "Barlow Condensed", "Arial Narrow", sans-serif;
}

dialog:is(.fishing-picker, .fishing-frame) {
  --case-rim: 40px;
  color: #fff0ce;
  border: 0 solid transparent;
  border-radius: 0;
  border-image: var(--case-frame) 150 / var(--case-rim) round;
  background: #0a2424;
  box-shadow: none;
  filter: drop-shadow(0 15px 24px #010b0eaa);
}

dialog:is(.fishing-picker, .fishing-frame) button:not([data-map-cell], [data-video-close]) {
  --plate: var(--plate-rest);
  --plate-rim: 12px;
  border: 0 solid transparent;
  border-radius: 0;
  border-image: var(--plate) 75 80 fill / var(--plate-rim) calc(var(--plate-rim) * 80 / 75) stretch;
  background: transparent;
  color: #fff0ce;
  min-height: 44px;
  font-family: var(--sign-lettering);
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  dialog:is(.fishing-picker, .fishing-frame) button:enabled:not([data-map-cell], [data-video-close]):hover {
    --plate: var(--plate-hover);
    background: transparent;
    color: #fff0ce;
  }
}
dialog:is(.fishing-picker, .fishing-frame) button:not([data-map-cell], [data-video-close]):is(:focus-visible, [aria-pressed="true"]) {
  --plate: var(--plate-hover);
  background: transparent;
  color: #fff0ce;
}
dialog:is(.fishing-picker, .fishing-frame) button:enabled:not([data-map-cell], [data-video-close]):is(:active, [data-plate-held]) {
  --plate: var(--plate-held);
  background: transparent;
  color: #fff0ce;
}
dialog:is(.fishing-picker, .fishing-frame) button:disabled:not([data-map-cell]) { opacity: .65; }
dialog:is(.fishing-picker, .fishing-frame) button:focus-visible { outline: 2px solid #fff0b2; outline-offset: 2px; }
dialog:is(.fishing-picker, .fishing-frame) button:is([data-recap-next], [data-start-game]) { font-weight: 800; }
dialog:is(.fishing-picker, .fishing-frame) :is(h2,h3):focus-visible { outline-offset: 3px; }

.fishing-title[open] { overflow: hidden; isolation: isolate; }
dialog.fishing-picker.fishing-title:is([open], [data-from-ice]) {
  background: linear-gradient(95deg,#092125ee 5%,#09212599 46%,#09212526 74%),
    url('../assets/branding/tent-cutaway.webp') 50% 75% / cover;
  background-origin: padding-box;
}
.fishing-title-bryan {
  position: absolute;
  inset: auto 6% 10% auto;
  width: min(41%, 320px);
  height: min(78%, 330px);
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px #00181e99);
}
.fishing-title h2, .fishing-title-actions { position: relative; }
.fishing-title .fishing-version { inset: auto max(18px, 4%) max(16px, 5%) auto; }

dialog.fishing-picker.fishing-outing-picker[open] {
  background: #0a2424;
  border-image: var(--case-frame) 150 / var(--case-rim) round;
  border-radius: 0;
  box-shadow: none;
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  height: auto;
  padding: clamp(18px, 3.4vw, 44px);
  margin: auto;
}
/* The outing board uses the screen itself. The lesson inside the same dialog
   keeps its own content-sized layout. */
dialog.fishing-picker.fishing-outing-picker[open]:has([data-picker-page="outings"]:not([hidden])) {
  --board-edge: clamp(10px, min(2.4vw, 2.6dvh), 32px);
  --case-rim: calc(var(--board-edge) * 1.65);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  box-sizing: border-box;
  padding: max(var(--board-edge), env(safe-area-inset-top))
           max(var(--board-edge), env(safe-area-inset-right))
           max(var(--board-edge), env(safe-area-inset-bottom))
           max(var(--board-edge), env(safe-area-inset-left));
  overflow: auto;
  filter: none;
}
.fishing-outing-picker [data-picker-page="outings"]:not([hidden]) {
  height: 100%;
  min-height: 246px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--board-edge);
}
.fishing-outing-deck {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--board-edge);
}
.fishing-outing-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-content: center;
  padding: clamp(14px, 4vw, 74px);
  background: #2d403f url('../assets/fishing/outings/mille-lacs-horizon.webp') left 90% / 88% 124% no-repeat;
  border-block-end: 2px solid #a98c52;
}
/* Extend the lake behind the title, keeping the selected sled painting intact. */
.fishing-outing-cover > img {
  position: absolute;
  inset: -4% 0 auto auto;
  z-index: -2;
  height: 108%;
  width: auto;
  max-width: none;
  mask-image: linear-gradient(to right, transparent, black 15%);
}
.fishing-outing-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #10292ce8, #15343783 38%, transparent 70%);
}
.fishing-outing-cover [data-outing-message]:empty { display: none; }
.fishing-outing-cover [data-outing-message]:not(:empty) {
  padding: 4px 8px; margin: 0; background: #092729; font-size: .9rem;
}
.fishing-outing-choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(6px, 1.1vw, 18px);
  min-height: 0;
}
dialog.fishing-outing-picker button.fishing-outing-card:not([data-map-cell], [data-video-close]) {
  --plate-rim: clamp(8px, 1vw, 15px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 0;
  gap: 0;
  padding: var(--plate-rim);
}
.fishing-outing-card::after { content: none; }
.fishing-card-art { position: relative; display: block; min-height: 0; overflow: hidden; pointer-events: none; }
.fishing-card-art > img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
:is(.fishing-outing-shop, .fishing-outing-tutorial) .fishing-card-art img { object-position: 50% 24%; }
.fishing-outing-picker .fishing-outing-footer { justify-content: center; }

@media (max-width: 680px) and (min-height: 461px) {
  .fishing-outing-deck { grid-template-rows: minmax(min(68vw, 37dvh), .8fr) minmax(0, 1.2fr); }
  .fishing-outing-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fishing-outing-cover { align-content: start; padding: clamp(14px, 4vw, 24px); }
  .fishing-outing-cover > img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    mask-image: none;
  }
  .fishing-outing-cover::before {
    background: linear-gradient(135deg, #172d2de3, #14292470 33%, transparent 58%);
  }
  .fishing-outing-picker .fishing-outing-cover h2 { max-width: 55%; }
}
@media (max-height: 460px) {
  .fishing-outing-deck { grid-template-rows: minmax(65px, .78fr) minmax(82px, 1.22fr); }
  .fishing-outing-cover { padding: 5px 3.5vw; }
}
/* Painted captions from the shop, backed by the original brass-edged plates. */
dialog.fishing-title h2,
.fishing-outing-picker .fishing-outing-cover h2 {
  font-family: var(--sign-lettering);
  font-weight: 400;
  letter-spacing: -.035em;
  text-shadow: 2px 3px #12362f, 3px 5px #512f1db3;
}
.fishing-outing-picker .fishing-outing-cover h2 {
  max-width: 65%;
  font-size: clamp(2rem, min(6.2vw, 9.4dvh), 6.25rem);
  line-height: 1.12;
  text-wrap: balance;
}
.fishing-outing-cover > div { width: 100%; }
.fishing-outing-picker .fishing-outing-cover .fishing-menu-kicker,
.fishing-outing-cover [data-outing-message], .fishing-title .fishing-version,
.fishing-outing-picker .fishing-art-help {
  font: 600 clamp(.82rem, 1.5vw, 1.25rem)/1.15 var(--sign-caption);
}
.fishing-outing-picker .fishing-outing-cover .fishing-menu-kicker {
  margin: 0 0 .45em;
  letter-spacing: .18em;
  color: #ffda8c;
}
.fishing-outing-card { --paint: #28503e; }
.fishing-outing-tutorial { --paint: #88432b; }
.fishing-outing-shop { --paint: #74542f; }
.fishing-outing-skills { --paint: #2c5259; }
.fishing-outing-card .fishing-sign {
  position: relative;
  min-height: clamp(43px, 7.7dvh, 84px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .45em;
  padding: .35em .25em;
  background: var(--paint);
  border-block: 1px solid #dfba72;
  color: #fff1cf;
}
.fishing-outing-card strong, dialog.fishing-title .fishing-title-actions button,
.fishing-outing-picker .fishing-outing-footer button {
  font: 400 clamp(1.05rem, min(2.5vw, 5.2dvh), 2.55rem)/1.12 var(--sign-lettering);
  text-shadow: 1px 2px #15342a;
}
.fishing-outing-card strong { transform: rotate(-2deg); }
.fishing-outing-card .fishing-mode-note {
  font: 600 clamp(.7rem, 1.05vw, .98rem)/1.1 var(--sign-caption);
  text-transform: uppercase;
  letter-spacing: .055em;
  color: #ffe6ad;
}
.fishing-outing-picker .fishing-outing-footer button {
  padding: 6px clamp(18px, 2vw, 34px);
  text-decoration: none;
  font-size: clamp(.98rem, 1.45vw, 1.4rem);
}
@media (max-width: 680px) and (min-height: 461px) {
  .fishing-outing-picker .fishing-outing-cover h2 { font-size: clamp(2rem, 8.3vw, 3.2rem); }
  .fishing-outing-card .fishing-sign { min-height: 43px; flex-direction: column; gap: 2px; }
  .fishing-outing-card strong { font-size: clamp(1.05rem, 4.5vw, 1.65rem); }
}
@media (max-height: 460px) {
  .fishing-outing-card .fishing-sign { min-height: 31px; padding-block: 3px; }
  .fishing-outing-cover .fishing-menu-kicker { font-size: .72rem; }
}
.fishing-catch-popup[data-campaign-finale] [data-reward-goal] {
  border-block: 1px solid #a68e58;
  padding-block: .65rem;
  color: #f7e3b6;
  line-height: 1.4;
}
.fishing-outing-picker .fishing-menu-footer { border: 0; padding: 0; }
.fishing-outing-picker .fishing-menu-footer button { padding-inline: 14px; }
.fishing-art-help {
  position: fixed;
  z-index: 20;
  display: block;
  width: max-content;
  max-width: min(255px, calc(100vw - 16px));
  padding: 11px 14px;
  border: 0;
  border-image: var(--case-frame) 150 / 24px round;
  background: #102b2b;
  color: #fff0ce;
  font-size: .8rem;
  line-height: 1.35;
  filter: drop-shadow(0 4px 12px #010b0ebb);
}
.fishing-art-help[hidden] { display: none; }
.fishing-art-help[data-touch] { pointer-events: none; }
.tackle-art { display: inline-block; width: 30px; height: 25px; object-fit: contain; vertical-align: middle; }
.fishing-item-grid .tackle-art { width: 100%; height: clamp(40px, 8vh, 62px); }
.fishing-inspector-content .tackle-art, [data-item-description] .tackle-art { width: min(100%, 190px); height: clamp(54px, 14vh, 126px); }
.fishing-shop-categories .tackle-art { width: 29px; height: 26px; }
.fishing-lesson, .fishing-training-practice, .fishing-skill-level article {
  border: 0;
  border-radius: 0;
  border-image: var(--case-frame) 150 / 27px round;
  background: #092523;
}
.fishing-campaign-skills footer, .fishing-catch-popup footer { background: #102826; }

.fishing-day-recap[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(1040px, calc(100% - 18px));
  max-height: calc(100dvh - 18px);
  margin: auto;
  padding: clamp(17px, 3vw, 40px);
  gap: 12px;
  overflow: hidden;
}
.fishing-map-actions { position: relative; z-index: 1; background: #0a2424; }
.fishing-map-scroll { position: relative; z-index: 0; }
.fishing-day-recap h2:focus-visible { outline: none; }
.fishing-day-recap::backdrop { background: #07191be0; }
.recap-header {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: end;
  gap: 12px;
  padding: 16px 14px 12px;
  background: linear-gradient(90deg, #0a2428ee, #0a2428d5),
    url('../assets/fishing/mille-lacs-dawn.webp') center / cover;
}
.recap-header p { color: var(--fishing-gold); margin: 0 0 3px; font-size: .79rem; }
.recap-header h2 { margin: 0; font-size: clamp(1.95rem, 5.8vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
.recap-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.recap-totals dt { font-size: .75rem; color: #e2eadc; line-height: 1.22; }
.recap-totals dd {
  margin: 4px 0 0;
  color: var(--fishing-gold);
  font: 500 clamp(1rem, 2.55vw, 1.8rem)/1.08 Georgia, serif;
}
.recap-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 4px;
  overscroll-behavior: contain;
}
.recap-catch-list {
  flex: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
  padding: 3px;
}
.recap-catch-list button {
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px;
  line-height: 1.14;
}
.recap-catch-list svg { display: block; width: 100%; max-width: 110px; height: 39px; }
.recap-catch-list span { font-weight: 700; font-size: .82rem; text-align: center; }
.recap-catch-list small { color: #f5d499; font-size: .71rem; white-space: normal; }
.recap-inspection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(8px, 2.2vw, 24px);
}
.recap-inspection[hidden], .recap-catch-list[hidden] { display: none; }
.recap-fish-art {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 12px;
  align-self: stretch;
  border: 0;
  border-image: var(--case-frame) 150 / 30px round;
  background: #092523;
}
.recap-fish-art svg { display: block; width: 100%; max-height: 160px; filter: drop-shadow(0 8px 12px #061917); }
.recap-fish-details h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 3.2vw, 2rem); }
.recap-fish-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 9px;
  margin: 0 0 9px;
}
.recap-fish-details dt { color: #edd29c; font-size: .72rem; }
.recap-fish-details dd { margin: 1px 0 0; font-size: .86rem; overflow-wrap: anywhere; }
.recap-fish-details button { width: 100%; padding: 5px 11px; }
.recap-status { color: #ffdb97; margin: 0; font-size: .79rem; }
.recap-status:empty { display: none; }
.recap-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.recap-actions button { padding: 5px 8px; line-height: 1.2; white-space: normal; }

@media (max-width: 600px) {
  dialog:is(.fishing-picker, .fishing-frame) { --case-rim: 26px; }
  .fishing-title-bryan { width: 72%; height: 45%; inset: 8% 2% auto auto; }
  .recap-header { grid-template-columns: 1fr; padding: 8px 4px; }
  .recap-header h2 { font-size: 2.4rem; }
  .recap-catch-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 38%);
    overflow-x: auto;
  }
  .recap-fish-art { align-self: center; min-height: 120px; }
  .recap-fish-details dl { gap: 5px 6px; }
  .recap-fish-details dd { font-size: .76rem; }
  .recap-fish-details button { font-size: .79rem; }
  .recap-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-height: 460px) and (min-width: 601px) {
  dialog:is(.fishing-picker, .fishing-frame) { --case-rim: 27px; }
  .fishing-picker.fishing-outing-picker[open], .fishing-day-recap[open] { padding: 14px 18px; }
  .recap-header { padding: 6px 8px; }
  .recap-header h2 { font-size: 2.3rem; }
  .fishing-day-recap[open], .recap-body { gap: 7px; }
  .recap-catch-list button { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; }
  .recap-catch-list svg { height: 28px; grid-row: span 2; }
}

@media (max-width: 600px) {
  .fishing-day-recap[open] { gap: 8px; }
  .recap-header h2 { font-size: 2.15rem; }
  .recap-catch-list svg { height: 31px; }
  .recap-catch-list button { padding: 6px; }
  .recap-fish-details h3 { line-height: 1.12; }
  .recap-fish-details dl { gap: 4px 6px; }
}
@media (max-height: 460px) and (min-width: 601px) {
  .recap-body:has(.recap-inspection:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(105px, 19%) minmax(0, 1fr);
    align-items: start;
  }
  .recap-catch-list { grid-template-columns: minmax(0, 1fr); }
  .recap-fish-art { align-self: start; min-height: 94px; }
  .recap-fish-details h3 { margin-bottom: 4px; font-size: 1.23rem; }
  .recap-fish-details dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 6px; }
  .recap-fish-details dd { font-size: .75rem; }
}

.fishing-item-grid button[aria-pressed="true"] { padding: 10px; }
.fishing-lesson-art { background: #1b3734; }
.fishing-lesson-art img {
  object-fit: cover;
  object-position: 50% 14%;
  filter: none;
}
@media (max-width: 600px) {
  dialog.fishing-outing-picker[open]:has([data-picker-page="tutorial"]:not([hidden])) { padding: 14px; }
  .fishing-lesson {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    grid-template-areas: "art title" "art description" "steps steps" "start start";
    gap: 6px 12px;
    padding: 12px;
  }
  .fishing-lesson-art { grid-area: art; height: auto; aspect-ratio: 1; align-self: center; }
  .fishing-lesson-copy { display: contents; }
  .fishing-lesson-copy h3 { grid-area: title; align-self: end; }
  .fishing-lesson-copy > p { grid-area: description; margin: 0; }
  .fishing-lesson-steps { grid-area: steps; margin-block: 4px; }
  .fishing-lesson-start { grid-area: start; justify-self: start; }
}
@media (max-height: 460px) and (min-width: 601px) {
  dialog.fishing-outing-picker.fishing-picker[open] { padding-block: 13px; }
}

@media (max-height: 460px) and (min-width: 601px) {
  [data-picker-page="tutorial"] .fishing-lesson-copy > p,
  [data-picker-page="tutorial"] .fishing-practice-copy p { margin-block: 3px 0; font-size: .75rem; line-height: 1.28; }
  [data-picker-page="tutorial"] .fishing-lesson-steps {
    margin-block: 5px;
    padding-block: 2px;
  }
  [data-picker-page="tutorial"] .fishing-lesson-steps li { padding-block: 2px; }
  [data-picker-page="tutorial"] .fishing-lesson-steps .tackle-icon { width: 15px; height: 15px; }
}

dialog:is(.fishing-picker, .fishing-frame) button:is([data-start-game], [data-recap-next]):enabled:not(:active, [data-plate-held]) {
  --plate: var(--plate-hover);
}

/* A collectible reward is an action; the filled plate image otherwise hides
   the existing gold background. Collected and empty states keep the neutral plate. */
dialog.fishing-frame button:is([data-collect-fish], [data-collect-quest], [data-recap-claim]):enabled {
  border: 2px solid #fff0b2;
  border-image: none;
  border-radius: 5px;
  background: #ffd070;
  color: #172c24;
  font-weight: 800;
}
dialog.fishing-frame button:is([data-collect-fish], [data-collect-quest], [data-recap-claim]):enabled:is(:hover, :focus-visible) {
  border-image: none;
  background: #ffe5a4;
  color: #172c24;
}

.fishing-tray button {
  font-family: var(--sign-lettering);
  font-weight: 400;
}

dialog.fishing-loader[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border-image: none;
  background: linear-gradient(0deg, #071e20ec 5%, #071e20ba 50%, #071e2045),
    #0a2424 url('../assets/fishing/outings/mille-lacs-horizon.webp') center / cover;
  text-align: center;
}

dialog.fishing-loader::backdrop { background: #0a2424; }
.fishing-loader > div { width: min(100%, 28rem); padding: clamp(12px, 3vmin, 26px) clamp(6px, 2vmin, 26px); }
.fishing-loader h2 {
  margin: 0 0 .4em;
  font: 400 clamp(2.05rem, min(8vw, 13dvh), 4.65rem)/1.03 var(--sign-lettering);
  text-shadow: 0 3px 12px #081d1b;
}
.fishing-loader [data-load-message] {
  margin: 0 0 .45em;
  font: 600 clamp(1.15rem, 3.8vmin, 1.5rem)/1.2 var(--sign-caption);
}
.fishing-loader-progress:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4ch;
  align-items: center;
  gap: 0 .5rem;
  margin-bottom: .75rem;
  font: 600 1.05rem/1 var(--sign-caption);
  font-variant-numeric: tabular-nums;
  color: #ffe2a5;
  text-align: end;
}
/* A long line moves with the tackle. The window hides its upper end. */
.fishing-loader-jig {
  grid-column: 1 / -1;
  position: relative;
  height: clamp(34px, 8dvh, 58px);
  overflow: hidden;
}
.fishing-loader-jig span {
  position: absolute;
  top: 48%;
  left: calc(50% - 18px);
  width: clamp(31px, 6vmin, 40px);
  animation: fishing-loader-jigging 1.85s ease-in-out infinite;
}
.fishing-loader-jig span::before {
  position: absolute;
  bottom: 94%;
  left: 8%;
  width: 1px;
  height: 64px;
  background: #f6e2b3;
  content: "";
}
.fishing-loader-jig img { display: block; width: 100%; height: auto; }
@keyframes fishing-loader-jigging {
  0%, 100% { transform: translateY(0); }
  34% { transform: translateY(-10px); }
  51% { transform: translateY(-7px); }
}
.fishing-loader[data-load-failed] .fishing-loader-jig span,
body[data-reduced] .fishing-loader-jig span { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .fishing-loader .fishing-loader-jig span { animation: none; }
}

.fishing-loader progress {
  width: 100%;
  height: .65rem;
  accent-color: var(--fishing-gold);
  appearance: none;
  border: 1px solid #bea575;
  border-radius: 3px;
  background: #0a2424;
  overflow: hidden;
}
.fishing-loader progress::-webkit-progress-bar { background: #0a2424; }
.fishing-loader progress::-webkit-progress-value { background: #ffd18a; }
.fishing-loader progress::-moz-progress-bar { background: #ffd18a; }
.fishing-loader-guide {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.2vw, 14px);
  margin: 0 auto .75rem;
  padding: clamp(5px, 1.15vmin, 9px) clamp(8px, 2vmin, 14px);
  border: 1px solid #efc786;
  border-radius: 5px 14px 14px 5px;
  background: #102625;
  box-shadow: 0 4px 14px #05141066;
  color: #fff2d5;
  text-align: start;
}
.fishing-loader-guide img {
  width: clamp(46px, 9vmin, 60px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #bd9965;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #26463f;
  flex: 0 0 auto;
}
.fishing-loader-guide > div { flex: 1; min-width: 0; }
.fishing-loader-guide p { margin: 0; }
.fishing-loader-guide-label {
  font: 400 clamp(.76rem, 1.8vmin, .9rem)/1.2 var(--sign-lettering);
  color: #ffd18a;
}
.fishing-loader-guide [data-load-tip] {
  font: 600 clamp(1.16rem, 4vmin, 1.42rem)/1.16 var(--sign-caption);
}
.fishing-loader-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.fishing-loader-actions a:not([hidden]), .fishing-loader-actions button:not([hidden]) {
  display: inline-grid;
  place-items: center;
  padding: .4em .85em;
  min-height: 44px;
  font: 400 1rem/1.2 var(--sign-lettering);
  color: #fff0ce;
  border-image: var(--plate-rest) 75 80 fill / 12px stretch;
  text-decoration: none;
}
.fishing-loader-actions :is(a, button):is(:hover, :focus-visible) {
  border-image-source: var(--plate-hover);
}
.fishing-loader-actions :is(a, button):focus-visible { outline: 2px solid var(--fishing-gold); }

@media (orientation: landscape) and (max-height: 420px) {
  .fishing-loader h2 { font-size: clamp(1.65rem, 5.4vw, 2.2rem); }
  .fishing-loader h2 br { display: none; }
}

/* The Practice board reuses the painted fish and the outing menu's plates. */
[data-picker-page="practice"] { width: min(100%, 1040px); margin-inline: auto; }
[data-picker-page="practice"] .fishing-menu-masthead > p:last-child {
  margin: 0;
  color: #e2eee8;
  font: 600 clamp(1rem, 2.5vw, 1.2rem)/1.25 var(--sign-caption);
}
.fishing-practice-fish {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 1.5vw, 14px);
}
.fishing-outing-picker .fishing-practice-fish button {
  --plate-rim: 16px;
  display: grid;
  grid-template-rows: clamp(48px, 13vh, 104px) auto;
  place-items: center;
  gap: 6px;
  min-width: 0;
  padding: 9px 6px 11px;
  font-size: clamp(.87rem, 2.6vw, 1.32rem);
  text-align: center;
}
.fishing-practice-fish svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: visible;
  filter: drop-shadow(0 4px 4px #001a19b0);
}
.fishing-practice-gear-note { margin: 0 0 12px; }
.fishing-practice-gear { display: grid; gap: 14px; }
.fishing-practice-gear h3 { margin: 0 0 5px; }
.fishing-practice-gear section > p { margin: 0; }
dialog.fishing-pause .fishing-practice-gear .fishing-item-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
dialog.fishing-pause .fishing-practice-gear .fishing-item-grid [data-practice-gear] {
  --item-art-size: 46px;
  display: grid;
  grid-template-columns: var(--item-art-size) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  min-height: 65px;
  padding: 6px 9px;
  text-align: left;
}
.fishing-practice-gear [data-practice-gear][aria-pressed="true"] small { color: var(--fishing-gold); }

@media (max-width: 500px) {
  .fishing-practice-fish { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fishing-outing-picker .fishing-practice-fish button { grid-template-rows: 52px auto; }
  dialog.fishing-pause .fishing-practice-gear .fishing-item-grid [data-practice-gear] {
    --item-art-size: 40px;
    min-height: 59px;
  }
}
@media (max-height: 430px) and (orientation: landscape) {
  [data-picker-page="practice"] { gap: 7px; }
  .fishing-outing-picker .fishing-practice-fish button {
    grid-template-rows: 39px auto;
    gap: 4px;
    padding-block: 7px;
  }
}
