@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2?v=3100e775e8616cd2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/barlow-condensed.woff2?v=2515494e8cc2ca07") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #eaf0ed;
  --muted: #a6b7b9;
  --gold: #edbd76;
  --edge: #2b3a3e;
  --base: #0a1418;
  --panel: #101d22;
  --accent: #72c7be;
  --display-scale: 1;
  --safe-top: calc(env(safe-area-inset-top) / var(--display-scale));
  --safe-bottom: calc(env(safe-area-inset-bottom) / var(--display-scale));
  --safe-left: calc(env(safe-area-inset-left) / var(--display-scale));
  --safe-right: calc(env(safe-area-inset-right) / var(--display-scale));
  --pier-viewport-height: var(--pier-portrait-height, 100dvh);
  --pier-viewport-top: var(--pier-portrait-top, 0px);
  font:
    16px Inter,
    Arial,
    sans-serif;
}
/* Scale the interface layers in normal layout. The viewport and the game's
   WebGL surface keep their physical CSS-pixel dimensions at every setting. */
:root[data-display-size="medium"] { --display-scale: .9; }
:root[data-display-size="small"] { --display-scale: .8; }
.shell > :not(.stage-frame),
.stage > :is(.welcome, .fishing-recovery, .hud-top, .species-line, #play-hud) { zoom: var(--display-scale); }
#panel {
  --panel-scale: var(--display-scale);
  zoom: var(--panel-scale);
}

/* An open keyboard's measurements apply only in the orientation that
   produced them, even before the browser delivers the resize event. */
@media (orientation: landscape) {
  :root {
    --pier-viewport-height: var(--pier-landscape-height, 100dvh);
    --pier-viewport-top: var(--pier-landscape-top, 0px);
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  height: 100%;
  overflow: clip;
  margin: 0;
  background: var(--base);
  color: var(--ink);
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button svg,
.brand svg,
.location svg,
.chat-pier svg,
.weather-icon svg,
.position-readout svg,
.launch-compass svg,
.species-line svg,
.gear-item svg,
.log-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
[hidden] {
  display: none !important;
}
.symbols,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.shell {
  position: relative;
  top: var(--pier-viewport-top, 0px);
  height: 100%;
  height: var(--pier-viewport-height, 100dvh);
  display: flex;
  flex-direction: column;
  overflow: clip;
  background: var(--base);
}
.topbar,
.tackle-strip,
.release-notice {
  flex: none;
}
.topbar,
.tackle-strip {
  touch-action: pinch-zoom;
}
.shell > .topbar { padding-block-start: var(--safe-top); }
.topbar[data-session]:not([data-session="signed-in"]) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-inline: max(var(--safe-left), clamp(14px, 3vw, 44px)) max(var(--safe-right), clamp(14px, 3vw, 44px));
  border-bottom-color: #494238;
}
.guest-pier-title {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  min-width: 0;
  text-transform: uppercase;
}
.guest-pier-title .brand-icon { flex: none; }
.guest-pier-title strong {
  display: block;
  color: var(--gold);
  font: 800 clamp(1.45rem, 2.3vw, 1.9rem)/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .025em;
}
.guest-pier-title small {
  display: block;
  margin-top: 3px;
  color: #c6d1ce;
  font: 600 clamp(.6rem, 1vw, .68rem)/1.25 Inter, sans-serif;
  letter-spacing: .1em;
}
.guest-pier-title svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
@media (max-width: 359px) {
  .guest-pier-title .brand-icon { display: none; }
  [data-pier="johnnie-mercers"] .guest-pier-title strong,
  [data-pier="surf-city"] .guest-pier-title strong { font-size: 1.2rem; }
}
.topbar[data-session="signed-in"] .guest-pier-title { display: none; }
.topbar[data-session]:not([data-session="signed-in"]) > :is(.brand, .location, .utility) { display: none; }
.topbar #launcher-sign-in {
  margin-inline-start: auto;
  flex: none;
  color: var(--gold);
  text-decoration: none;
  min-height: 44px;
  border: 1px solid #766043;
}
.topbar #launcher-sign-in:is(:hover, :focus-visible) {
  color: #ffe2ad;
  background: #2a2821;
  border-color: var(--gold);
}
.topbar #launcher-sign-in svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
@media (display-mode: standalone) and (pointer: coarse) {
  .shell { border-block-start: 8px solid #0b171c; }
}
.shell > .tackle-strip { padding-block-end: var(--safe-bottom); }
.stage-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(26px, 3vw);
  background: #0b171c;
  border-bottom: 1px solid #344044;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold);
  border: 1px solid #665540;
  background: #1d2525;
  border-radius: 9px;
}
.brand-icon svg {
  width: 24px;
  height: 24px;
  margin-top: -4px;
}
.shell:has(.stage.playing) .launcher-brand-prefix { display: none; }
.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
  letter-spacing: 0.12em;
}
.brand strong {
  font-size: 14px;
  font-weight: 700;
}
.brand small {
  margin-top: 6px;
  color: #a3b2b3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.27em;
}
.location {
  color: #c8d2d1;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.location svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.utility {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}
.utility button,
.controls-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #d1dbd8;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .utility button:hover, .controls-link:hover {
    background: #1c292d;
    border-color: #354348;
    color: var(--ink);
  }
}
.utility button svg {
  width: 17px;
  height: 17px;
  color: #adc1c0;
}
.account-menu-icon { display: inline-flex; position: relative; grid-column: 1 / -1; grid-row: 1; justify-self: center; flex: none; }
#account-unread-dot {
  position: absolute; inset-block-start: -2px; inset-inline-end: -4px; width: 8px; height: 8px;
  background: #fd6464; border: 1px solid #ffaaa1; border-radius: 50%; box-shadow: 0 0 0 2px #112026; pointer-events: none;
}
.count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #344b49;
  border-radius: 20px;
  color: #d9f0df;
  font-size: 10px;
}
.stage {
  display: grid;
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  min-height: 530px;
  overflow: hidden;
  background: #2c454a;
}
.environment,
#world,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.environment {
  z-index: -3;
  background: #29454e;
  background-image: url("./assets/pier-end-title.webp?v=b6af69a9ca20edce");
  background-position: center;
  background-size: cover;
}
[data-pier="johnnie-mercers"] .environment { background-image: url("./assets/johnnie-mercers-title.webp?v=287338a04a971b4d"); }
[data-pier="surf-city"] .environment { background-image: url("./assets/surf-city-title.webp?v=a4308d6e2187b16b"); }
.pier-directory-card .secondary { margin-top: .55rem; min-height: 44px; }
#world {
  z-index: -2;
  display: block;
  touch-action: none;
  outline: none;
}
.stage.playing {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Keep the pointer surface and its captures when a lost GPU context is replaced. */
.recovered-world { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.fishing-recovery { position:absolute; z-index:6; inset:50% auto auto 50%; transform:translate(-50%,-50%);
  width:min(340px,calc(100% - 28px)); padding:18px; background:#15282d; color:#e5eee7;
  border:1px solid #52706a; border-radius:10px; box-shadow:0 8px 35px #031014bb; }
.fishing-recovery h2 { margin:0; font:700 1.4rem/1.2 "Barlow Condensed",sans-serif; }
.fishing-recovery p { font-size:.9rem; line-height:1.45; margin:.55rem 0 .9rem; }
.fishing-recovery button { min-height:44px; }
.stage:not(.playing) #world {
  pointer-events: none;
}
.shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 23, 0.9) 0%,
      rgba(9, 19, 24, 0.68) 24%,
      rgba(11, 22, 25, 0.27) 55%,
      transparent 78%
    ),
    linear-gradient(
      0deg,
      rgba(8, 18, 22, 0.78),
      transparent 22%,
      transparent 74%,
      rgba(8, 18, 22, 0.26)
    );
}
.welcome {
  align-self: center;
  width: min(550px, 70%);
  margin: 0 0 28px max(38px, 5.4vw);
  padding: 52px 0 50px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #f3c78b;
}
.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}
.welcome h1 {
  font:
    800 clamp(6.2rem, 11.4vw, 11.1rem)/0.77 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.025em;
  margin: 18px 0 26px;
  color: #fff8eb;
  text-shadow: 0 3px 24px #0b202344;
}
.welcome h1 span {
  display: block;
  margin-top: .13em;
  font-size: .62em;
  white-space: nowrap;
  color: var(--gold);
}
.welcome p:not(.start-status) {
  max-width: min(465px, 100%);
  color: #e3e8e3;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pier-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pier-links a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 14px; border: 1px solid #6e8c8c; border-radius: 6px;
  background: #122c32ee; color: #e1efea; font-size: .825rem; font-weight: 600;
  text-decoration: none; touch-action: manipulation;
}
.pier-links a:hover, .pier-links a:focus-visible { background: #23464b; border-color: #b2d1cb; }
.pier-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pier-links svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; color: #aad8cf; }
@media (orientation: portrait) and (max-height: 680px) {
  #welcome:not(:has(.start-link[aria-busy="true"])) { margin: 0 16px; padding: 10px 0; }
  #welcome h1 { font-size: clamp(3.8rem, 20vw, 4.8rem); margin: 8px 0 12px; }
  #welcome .pier-links, #welcome .home-tip { margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 450px) and (min-width: 650px) {
  #welcome:not(:has(.start-link[aria-busy="true"])) { margin-bottom: 0; padding: 12px 0; }
  #welcome h1 { font-size: clamp(3.15rem, 7.6vw, 4.25rem); margin: 7px 0 9px; }
  #welcome .home-tip { margin-top: 8px; }
}
@media (orientation: portrait) and (max-height: 680px), (orientation: landscape) and (min-width: 650px) and (max-height: 450px) {
  #welcome:has(#home-tip:not([hidden]) details[open]):not(:has(.start-link[aria-busy="true"])) { padding-bottom: 36px; }
}
@media (min-width: 650px) and (max-height: 550px) {
  .pier-links { position: absolute; right: max(24px, var(--safe-right)); top: 44%; flex-direction: column; margin: 0; }
}
.home-tip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 0 12px; max-width: 28rem; margin-top: 14px; padding: 0 12px; background: #112429eb; border: 1px solid #47605f; border-radius: 6px; }
.home-tip details[open] { flex-basis: 100%; }
.home-tip summary, #home-dismiss { min-height: 44px; align-content: center; cursor: pointer; }
.home-tip summary { color: #e4f2ed; font-size: .87rem; font-weight: 600; padding-block: .55rem; }
.home-tip .secondary { margin-bottom: .5rem; }
.welcome .home-tip #home-instructions { max-width: none; margin: 0 0 .7rem; color: #cadcd8; font-size: .82rem; }
#home-dismiss { background: none; border: 0; padding-inline: 0; color: #b9ceca; font-size: .77rem; text-decoration: underline; text-underline-offset: .16em; }
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.primary {
  background: #e9b772;
  border-color: #f1cc95;
  color: #131913;
  box-shadow: 0 2px 10px #0a151b44;
}
.primary:hover {
  background: #f4ce94;
}
.start-link {
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.start-link:focus-visible {
  outline: 2px solid #fff4db;
  outline-offset: 4px;
}
.start-link[aria-busy="true"] {
  cursor: progress;
}
.primary svg {
  width: 18px;
  height: 18px;
}
.secondary {
  background: #132127aa;
  color: var(--ink);
  border-color: #a7b6b76e;
}
.secondary:hover {
  background: #233539;
  border-color: #c5d3d0;
}
.secondary svg {
  width: 17px;
  height: 17px;
  color: #d7dedb;
}
.start-status {
  color: #fff0ce;
  background: #12242be8;
  padding: 12px 14px;
  border-radius: 6px;
  line-height: 1.5;
  font-size: 14px;
  max-width: 400px;
}
.launch-heading, .launch-track { display: none; }
.welcome:has(.start-link[aria-busy="true"]) {
  width: min(26rem, calc(100% - 32px));
  margin: auto;
  padding: 0;
}
.welcome:has(.start-link[aria-busy="true"]) > :not(.launch-feedback),
.stage:has(.start-link[aria-busy="true"]) :is(.hud-top, .species-line) { display: none; }
.welcome:has(.start-link[aria-busy="true"]) .launch-feedback {
  padding: clamp(20px, 4.5vmin, 38px);
  color: var(--ink);
  border: 1px solid #82958c;
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(145deg, #173039f5, #0b191ff7 85%);
  box-shadow: 0 14px 50px #07131770;
}
.welcome:has(.start-link[aria-busy="true"]) .launch-heading { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 12px; }
.launch-compass {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #677366;
  border-radius: 50%;
  color: var(--gold);
}
.launch-compass svg { width: 28px; height: 28px; }
.launch-name { color: #edcb98; font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.launch-heading h2 {
  grid-column: 1 / -1;
  margin: 20px 0 6px;
  font: 800 clamp(2.5rem, 6vw, 3.8rem)/1 "Barlow Condensed", Impact, sans-serif;
  color: #fff8eb;
}
.welcome:has(.start-link[aria-busy="true"]) .start-status {
  margin: 0;
  padding: 0;
  background: none;
  color: #cededc;
}
.welcome:has(.start-link[aria-busy="true"]) .launch-track {
  display: block;
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 2px;
  background: #384f53;
}
.launch-track span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #74b9af, #f2c47d);
  animation: pier-launch-scan 1.7s ease-in-out infinite alternate;
}
@keyframes pier-launch-scan { to { transform: translateX(150%); } }
@media (prefers-reduced-motion: reduce) {
  .launch-track span { animation: none; margin-inline: auto; }
}
.conditions {
  position: absolute;
  top: 31px;
  right: max(26px, 3vw);
  width: 239px;
  background: #101d22e8;
  border: 1px solid #526563;
  border-radius: 9px;
  padding: 13px 14px;
  color: #f3f3ed;
  box-shadow: 0 8px 25px #07151c39;
  backdrop-filter: blur(9px);
  pointer-events: none;
}
.conditions-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.hud-reading {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 6px;
}
.hud-reading > strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.weather-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: #3c3528;
  color: #f2be7c;
}
.weather-icon svg {
  width: 21px;
  height: 21px;
}
.conditions-top small,
.conditions dt {
  display: block;
  color: #b2c3c2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.conditions-top strong { font-size: 14px; line-height: 1.2; }
.conditions dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid #64757560;
}
.conditions dt {
  font-size: 9px;
}
.conditions dd {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin: 5px 0 0;
}
.species-line {
  position: absolute;
  display: flex;
  gap: 9px;
  align-items: center;
  left: max(38px, 5.4vw);
  bottom: 24px;
  color: #dfebe4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.species-line svg {
  color: var(--gold);
}
.species-line b {
  color: #e9b772;
  padding: 0 4px;
}
.tackle-strip {
  min-height: 81px;
  display: grid;
  grid-template-columns: 112px repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  padding: 0 max(26px, 3vw);
  background: #0d1a1f;
  border-top: 1px solid #45534f;
  z-index: 2;
}
.loadout-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #acbfc0;
}
.loadout-label > span {
  width: 7px;
  height: 7px;
  background: #7bb1a6;
  border-radius: 50%;
  box-shadow: 0 0 10px #76c7ac55;
}
.tackle-strip button:not(.controls-link) {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-left: 1px solid #3a4b4f;
  border-radius: 0;
  background: transparent;
  min-height: 47px;
  padding: 5px 20px;
  color: #e5eee8;
}
.tackle-strip button:not(.controls-link):hover {
  background: #19292d;
}
.tackle-strip button > svg {
  color: var(--gold);
  width: 22px;
  height: 22px;
}
.tackle-strip small,
.tackle-strip strong {
  display: block;
}
.tackle-strip small {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #a5b8b9;
  margin-bottom: 4px;
}
.tackle-strip strong {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}
.tackle-strip .controls-link {
  border: 1px solid #35484e;
  font-size: 12px;
}
.tackle-strip .controls-link svg {
  color: #a7bcba;
  width: 17px;
  height: 17px;
}
.stage.playing .shade {
  background: linear-gradient(
    0deg,
    #051319a6,
    transparent 32%,
    transparent 82%,
    #0a182847
  );
}
.stage.playing {
  --hud-inset: clamp(12px, 2.5vw, 36px);
  min-height: 0;
}
.stage:not(.playing) .hud-top {
  display: none;
}
/* Both side panels share a grid row. The centered fishing status and the
   separate fullscreen button cannot change their measured height. */
.stage.playing .hud-top {
  --hud-left: max(var(--hud-inset), var(--safe-left));
  --hud-right: max(var(--hud-inset), var(--safe-right));
  --hud-panel-width: 245px;
  --hud-panel-padding: 11px 13px;
  --hud-status-width: 40%;
  display: grid;
  position: absolute;
  top: var(--hud-inset);
  align-items: start;
  gap: 12px;
  pointer-events: none;
  z-index: 1;
  left: 0;
  right: 0;
  grid-template-columns: minmax(0, 1fr) var(--hud-status-width) minmax(0, 1fr);
  row-gap: 5px;
}
.stage.playing .hud-location { display: contents; }
.stage.playing :is(.conditions, .position-readout) {
  container: hud-card / inline-size;
  position: relative;
  inset: auto;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  width: min(var(--hud-panel-width), calc(100% - max(var(--hud-left), var(--hud-right))));
  padding: var(--hud-panel-padding);
  background: #101d22e8;
  border: 1px solid #526563;
  border-radius: 9px;
  color: #f3f3ed;
  box-shadow: 0 8px 25px #07151c39;
  backdrop-filter: blur(9px);
}
.stage.playing .conditions { grid-column: 1; justify-self: start; margin-left: var(--hud-left); }
.stage.playing .position-readout {
  display: flex;
  min-height: 44px;
  max-width: 100%;
  grid-column: 3;
  justify-self: end;
  margin-right: var(--hud-right);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  text-align: left;
}
.stage.playing .full { grid-column: 3; grid-row: 2; justify-self: end; margin-right: var(--hud-right); }
.stage.playing .action-hud {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--hud-status-width), 360px);
}
.position-header { display: flex; align-items: center; gap: 11px; }
.position-header strong { font-size: 14px; line-height: 1.2; }
.position-label { color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.position-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #64757560; }
.position-facts small { display: block; margin: 0; color: #b2c3c2; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.position-facts span[id] { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; }
@media (max-width: 570px) {
  .stage.playing .hud-top { --hud-panel-padding: 8px 5px; }
  .position-header .weather-icon { display: none; }
  .position-label { font-size: .55rem; }
  .position-header strong { font-size: 11px; }
  .position-facts { grid-template-columns: 1fr; gap: 4px; margin-top: 5px; padding-top: 4px; }
  .position-facts small { font-size: 7px; }
  .position-facts span[id] { margin-top: 0; font-size: 9px; }
}

#play-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#play-hud button,
.hud-location button {
  pointer-events: auto;
}
.icon-button {
  display: grid;
  place-items: center;
  padding: 0;
  width: 42px;
  height: 42px;
  background: #17282f;
  color: var(--ink);
  border: 1px solid #53666a;
  border-radius: 6px;
}
.icon-button:hover {
  background: #2b4147;
}
.full {
  background: #13242be6;
}
.stage[data-phase="caught"] .reticle,
.stage[data-phase="releasing"] .reticle { display: none; }

#view-fps {
  position: absolute; inset-block-start: 2px; inset-inline-start: max(5px, var(--safe-left));
  color: #fff; z-index: 4; pointer-events: none; font: 700 12px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000, 0 0 2px #000;
}
#view-fps[hidden], body:has(#panel[open]) #view-fps { display: none; }
#pier-guide {
  position: absolute; top: calc(var(--guide-top, 14px) / var(--display-scale)); left: 50%; translate: -50% 0; z-index: 2;
  display: grid; justify-items: center; gap: 0; pointer-events: none; user-select: none;
  color: #fff2ca; font-size: 12px; line-height: 1.25; font-weight: 650;
  white-space: nowrap; filter: drop-shadow(0 2px 3px #0c151c99);
}
#pier-guide svg {
  width: clamp(37px, 5vmin, 46px); height: clamp(37px, 5vmin, 46px);
  transform-origin: center; will-change: transform;
}
#pier-guide-label, #pier-guide-distance {
  padding: 2px 8px; background: #142126ed; color: #fff1c5; border-radius: 4px;
}
#pier-guide-distance {
  padding-top: 1px; font-size: 11px; font-variant-numeric: tabular-nums; color: #e2ece7;
}
body:has(#panel[open]) #pier-guide,
.stage:has(#fishing-recovery:not([hidden])) #pier-guide,
#pier-guide[hidden] { display: none; }

.reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  translate: -50% -50%;
  border: 1px solid #ecf2efb3;
  border-radius: 50%;
  box-shadow: 0 0 5px #0a141a;
}
.action-hud {
  width: min(100%, 360px);
  justify-self: center;
  padding: 12px 15px;
  background: linear-gradient(145deg, #1a3038ec, #0a1b22f4);
  border: 1px solid #607777;
  border-radius: 8px;
  box-shadow: 0 8px 24px #08181f55;
  text-align: center;
}
.action-hud .action-meta {
  justify-content: center;
  align-items: center;
}
.action-hud .action-meta #distance:not(:empty)::before {
  content: "·";
  margin-right: 7px;
  color: #7d979a;
}
.stage[data-phase="fight"] .action-hud {
  border-color: #c9a773;
}
.action-meta,
.fight-info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.13em;
}
.action-meta span + span,
.fight-info span + span {
  color: #bdcec9;
  letter-spacing: normal;
}
.action-hud h2 {
  font-size: 19px;
  margin: 6px 0 3px;
  line-height: 1.2;
}
.action-hud p {
  font-size: 13px;
  margin: 0;
  color: #cad9d4;
  line-height: 1.45;
}
.meter {
  margin: 10px 0 5px;
  height: 7px;
  background: #435656;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.meter span {
  display: block;
  width: var(--meter, 0%);
  height: 100%;
  background: #79c1ad;
  transition: background-color 0.12s;
}
[data-phase="charge"] .meter::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 70%;
  width: 15%;
  background: #fff3c789;
  border-inline: 1px solid #eed2aa;
}
[data-phase="bite"] .action-hud {
  border-color: #ffc278;
}
[data-phase="charge"] .meter span,
[data-phase="bite"] .meter span {
  background: var(--gold);
}
[data-danger] .meter span {
  background: #ef987d;
}
.fight-info {
  margin-top: 8px;
  letter-spacing: 0.05em;
}
.action {
  position: absolute;
  right: max(26px, 3vw);
  bottom: max(24px, var(--safe-bottom));
  min-width: 146px;
  touch-action: none;
  user-select: none;
}
.shop-balance {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.fishing-actions {
  position: absolute;
  right: max(26px, 3vw);
  bottom: max(24px, var(--safe-bottom));
  display: flex;
  gap: 8px;
  align-items: end;
}
.fishing-actions .action {
  position: static;
}
[data-phase="caught"] .fishing-actions .action {
  background: #13262e;
  border-color: #6e8f90;
  color: #e8f0eb;
}
.market-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  margin-bottom: 12px;
  border: 1px solid #4e7277;
  border-radius: 8px;
  background: linear-gradient(135deg, #18383f, #10252d);
}
.market-summary span:last-child { text-align: right; }
.market-summary small {
  display: block;
  color: #aec5c5;
  font-size: 10px;
  letter-spacing: .10em;
  margin-bottom: 4px;
}
.market-summary strong { font-size: 20px; }
.market-summary span:last-child strong,
.market-value { color: var(--gold); }
.market-tabs { flex-wrap: wrap; }
.market-list,
.board-records {
  margin: 10px 0 14px;
  padding: 0;
}
.market-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #365158;
}
.market-description small {
  display: block;
  margin-top: 3px;
  color: #a8c0bf;
  font-variant-numeric: tabular-nums;
}
.market-row .secondary {
  min-height: 37px;
  padding-inline: 8px;
}
.market-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 9px 13px;
}
.market-shortfall,
.market-receipt { margin-block: 0 10px; }
.market-receipt { color: #9cdfc2; }
.account-form,
.account-form label,
.board-filter { display: grid; gap: 8px; }
.account-form { margin-top: 12px; gap: 12px; }
.account-form input,
.board-filter select {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  background: #0b1b21;
  border: 1px solid #5b777b;
  border-radius: 6px;
  padding: 8px 10px;
}
.account-form .primary { justify-self: start; }
.account-message:empty { display: none; }
#panel-content .account-tabs { grid-template-columns: 1fr 1fr; }
#panel-content .account-form { max-width: 32rem; gap: 14px; }
.account-form label { font-size: .875rem; font-weight: 600; }
.account-form input { font-weight: 400; }
.account-tabs button, .auth-form .primary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; }
.account-tabs svg, .auth-form svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #436167;
  border-radius: .8rem;
  background: linear-gradient(150deg, #19373c, #10232a 72%);
}
#panel-content .auth-card h3 { margin: 0 0 .4rem; color: #fff6e5; font-size: clamp(1.35rem, 3vw, 1.65rem); line-height: 1.15; }
.auth-card h3:focus { outline: none; }
#panel[open]:has(.auth-card) {
  width: min(34rem, calc(100% - 2 * var(--side-inset, 12px)));
  height: auto;
  top: calc((var(--pier-viewport-top) + var(--pier-viewport-height) / 2) / var(--panel-scale));
  margin-block-start: 0;
  transform: translateY(-50%);
}
.guest-provider, .account-provider, .pier-directory-brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #dbbd8b;
  font: 700 10px/1.2 Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.guest-provider img, .account-provider img, .pier-directory-brand img { display: block; width: 94px; height: auto; }
.guest-provider { grid-auto-flow: column; align-items: center; justify-content: center; gap: 12px; margin-top: .75rem; }
.guest-provider img { width: 64px; }
.account-provider img { width: 80px; }
.landing-provider {
  flex: none; display: flex; align-items: center; justify-content: center; gap: .8rem;
  padding: .4rem 1rem max(.45rem, env(safe-area-inset-bottom));
  border-top: 1px solid #31454a; background: #0d1c21;
  color: #dbbd8b; font: 700 .68rem/1.2 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.landing-provider img { display: block; width: 64px; height: auto; }
.stage.playing + .landing-provider, .stage:has(.start-link[aria-busy="true"]) + .landing-provider { display: none; }
.auth-card .account-copy { margin: 0; color: #c1d5d4; line-height: 1.45; }
#panel-content .auth-form { max-width: none; margin-top: 1.1rem; align-items: start; }
.setup-avatar { display: grid; gap: .45rem; min-width: 0; margin: 0; padding: .75rem; border: 1px solid #496368; border-radius: .55rem; }
.setup-avatar legend { padding: 0 .3rem; font-size: .875rem; font-weight: 600; }
.setup-avatar input { box-sizing: border-box; width: 100%; min-width: 0; }
.setup-avatar small { color: #bbcfca; }
.setup-avatar canvas { display: block; width: 72px; height: 72px; border-radius: 50%; }
.setup-avatar button { justify-self: start; min-height: 44px; }

.auth-field { display: grid; gap: .35rem; min-width: 0; }
.auth-form label, .setup-size-options legend { min-width: 0; color: #e2ece7; }
.auth-hint { color: #b2c8c7; font-size: .77rem; }
.auth-input { position: relative; }
.auth-input > svg { position: absolute; inset-inline-start: .75rem; top: 50%; transform: translateY(-50%); color: #95bcb7; pointer-events: none; }
.auth-input input { min-height: 45px; padding-inline-start: 2.55rem; }
.auth-input:has(.auth-reveal) input { padding-inline-end: 3rem; }
.auth-reveal {
  position: absolute; inset-inline-end: 1px; inset-block: 1px;
  display: grid; place-items: center; min-width: 44px; padding: 0;
  border: 0; border-radius: 5px; background: transparent; color: #c1d5d4;
}
.auth-reveal:hover { color: #fff6e5; background: #284248; }
.auth-reveal .eye-slash { display: none; }
.auth-reveal.revealed .eye-slash { display: initial; }
.auth-form input:focus-visible { outline: 2px solid #a7d6cc; outline-offset: 1px; }
.auth-form .primary { justify-self: stretch; }
.auth-form .account-message { margin: 0; }
#angler-recovery-form ~ button { margin-top: .65rem; }
.setup-steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0; margin: 0 0 1.15rem; gap: .55rem;
}
.setup-steps li {
  border-top: 2px solid #48676a; padding-top: .35rem;
  color: #b6c9c8; font-size: .73rem; line-height: 1.15; font-weight: 600;
}
.setup-steps [aria-current="step"] { border-color: var(--gold); color: #f3d998; }
.setup-size-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; border: 0; margin: 0; padding: 0; gap: .4rem; }
.setup-size-options legend { padding: 0; margin-bottom: .45rem; font-size: .875rem; font-weight: 600; }
.auth-form .setup-size-options label {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .3rem; border: 1px solid #4a686c; border-radius: .4rem; cursor: pointer;
}
.auth-form .setup-size-options input { width: .95rem; height: .95rem; min-height: 0; margin: 0; padding: 0; accent-color: #afd9ce; }
.setup-size-options label:has(:checked) { background: #23444a; border-color: #a6c9c0; }
.setup-size-options label:has(:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.setup-size-preview { margin: 0; padding: .8rem; border: 1px solid #37575d; border-radius: .55rem; background: #0d2026; }
.setup-size-preview figcaption { color: #a9c0bd; font-size: .72rem; font-weight: 600; }
.setup-sample { min-height: 4rem; display: grid; align-items: center; }
.setup-sample > div {
  display: flex; align-items: center; justify-self: start; gap: .65rem;
  padding: .45rem .8rem; border-inline-start: 2px solid var(--gold); background: #172f34;
  zoom: calc(var(--sample-scale, 1) / var(--display-scale));
}
.setup-size-preview[data-size="medium"] { --sample-scale: .9; }
.setup-size-preview[data-size="small"] { --sample-scale: .8; }
.setup-sample strong, .setup-sample small { display: block; line-height: 1.35; }
.setup-sample small { color: #b9cdca; font-size: .8rem; }
.setup-sample svg { color: var(--gold); }
.setup-sign-out { justify-self: center; min-height: 44px; padding: .35rem .8rem; color: #bdd2ce; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 370px) {
  .auth-form .setup-size-options label { gap: .25rem; font-size: .8rem; }
}
.angler-identity {
  display: grid;
  grid-template-columns: 4rem minmax(0,1fr);
  align-items: center;
  gap: .8rem 1rem;
  padding: 1rem;
  border: 1px solid #49696a;
  border-radius: .55rem;
  background: linear-gradient(120deg,#19363b,#122329 85%);
}
.angler-portrait {
  display: grid;
  place-items: center;
  position: relative;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 50%;
  background: #27504f;
  color: #d0ebe4;
  font: 800 2rem "Barlow Condensed", sans-serif;
}
.angler-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; }
#panel-content .angler-info h3 { margin: 0; font-size: 1.4rem; overflow-wrap: anywhere; }
.angler-name { display: flex; align-items: center; min-width: 0; }
.angler-name h3 { min-width: 0; }
.angler-name:has(.staff-badge) { column-gap: .45rem; }
.angler-link-name { min-width: 0; overflow-wrap: anywhere; }
.staff-badge {
  display: inline-flex; flex: none; width: 1.2rem; height: 1.2rem; color: #f3cb62;
}
.staff-badge svg { display: block; width: 100%; height: 100%; }
#profile-username:has(.staff-badge), .community-author-name:has(.staff-badge) { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; }
.auth-input > .staff-badge { position: absolute; inset-inline-end: .7rem; top: 50%; transform: translateY(-50%); }
.auth-input:has(> .staff-badge) input { padding-inline-end: 2.75rem; }
.angler-name .staff-badge { width: 1.4rem; height: 1.4rem; }
@media (max-width: 360px) {
  .angler-identity:has(#profile-edit-name):has(.staff-badge) {
    grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: .5rem; padding-inline: .75rem;
  }
  .angler-identity:has(#profile-edit-name):has(.staff-badge) .angler-portrait { width: 2.5rem; height: 2.5rem; }
}
:is(#profile-edit-name, #profile-edit-email) {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #a7d6cc;
}
:is(#profile-edit-name, #profile-edit-email) svg { width: 16px; height: 16px; }
:is(#profile-edit-name, #profile-edit-email):is(:enabled:hover, :focus-visible) { background: #25474a; color: #e4f4ed; }
:is(#profile-edit-name, #profile-edit-email):disabled { color: #889493; opacity: 1; }
.angler-identity > .profile-hint, .angler-identity > .profile-edit, #profile-name-status { grid-column: 1 / -1; }
.angler-rank-title {
  display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; margin-top: .35rem;
  padding: .15rem .55rem; border: 1px solid #776340; border-radius: 1rem;
  background: #34352c; color: #f4d59c; font-size: .8rem; font-weight: 600; line-height: 1.35;
}
.angler-rank-title svg { width: 1rem; height: 1rem; flex: none; stroke: currentColor; fill: none; }
.angler-rank-progress { grid-column: 1 / -1; min-width: 0; padding-top: .7rem; border-top: 1px solid #365357; }
.angler-rank-counts {
  display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem;
  font-variant-numeric: tabular-nums;
}
.angler-level { font-size: .95rem; color: var(--ink); }
.angler-xp-remaining { font-size: .8rem; color: #c0d6d1; }
#angler-xp-progress {
  appearance: none; display: block; width: 100%; height: .4rem; margin-top: .4rem; overflow: hidden;
  border: 0; border-radius: 1rem; background: #344e52; accent-color: #8fd4c5;
}
#angler-xp-progress::-webkit-progress-bar { background: #344e52; }
#angler-xp-progress::-webkit-progress-value { background: #8fd4c5; }
#angler-xp-progress::-moz-progress-bar { background: #8fd4c5; }
.angler-avatar-actions, .profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.recovery-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: max(.6rem, calc(8px / var(--display-scale)));
  margin-top: max(1rem, calc(16px / var(--display-scale)));
}
.recovery-actions .secondary {
  min-width: 0;
  min-height: calc(44px / var(--display-scale));
  gap: .35rem;
  padding: .45rem .35rem;
  line-height: 1.25;
}
@media (max-width: 400px) {
  .recovery-actions .secondary svg { display: none; }
}
.angler-avatar-actions { grid-column: 1 / -1; }
.angler-avatar-actions .account-message { flex-basis: 100%; text-align: center; }
#panel-content .account-copy, #panel-content .account-message { margin: 0; }
.profile-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem;
  padding: .8rem .95rem;
  text-align: center;
}
.profile-field + .profile-field { border-top: 1px solid #35484c; }
#panel-content .profile-field dl { margin: 0; }
.profile-field dt { color: #bed0cc; font-size: .8rem; font-weight: 600; }
.profile-field dd { margin: .25rem 0 0; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.profile-field .profile-email-line { display: flex; align-items: center; width: fit-content; max-width: 100%; margin-inline: auto; }
#profile-email-value { min-width: 0; }
#profile-confirm-email { justify-self: center; }
.profile-editor > .account-provider { padding: .85rem; border-top: 1px solid #35484c; }
.profile-editor button, .angler-identity .profile-edit button { min-height: 44px; }
.profile-editor button svg { stroke: currentColor; }
.profile-hint { color: var(--muted); font-size: .8rem; line-height: 1.45; }
#panel-content .profile-edit {
  max-width: none; min-width: 0; margin: 0; padding: .75rem;
  grid-template-columns: minmax(0,1fr); gap: .7rem; border-radius: .4rem; background: #11242b; text-align: left;
}
#panel-content .profile-edit input { min-width: 0; }
#panel-content .profile-editor > .account-message:not(:empty) { margin: 0 .9rem .8rem; font-size: .85rem; }
.account-session { display: grid; justify-items: center; gap: .75rem; text-align: center; }
.board-records {
  padding-inline-start: 22px;
  color: #afc5c5;
}
.board-records li { padding: 7px 0; border-bottom: 1px solid #365158; }
.board-records strong { color: var(--ink); overflow-wrap: anywhere; }
.board-records span { float: right; color: var(--gold); margin-inline-start: 10px; }
dialog {
  width: min(540px, calc(100% - 28px));
  max-height: min(740px, calc(100% - 32px));
  overscroll-behavior: contain;
  padding: 0;
  background: #101e23;
  color: var(--ink);
  border: 1px solid #5b706f;
  border-radius: 12px;
  box-shadow: 0 26px 90px #030a0cbe;
}
dialog::backdrop {
  background: #050b10c7;
  backdrop-filter: blur(6px);
}
#panel, #panel * { scrollbar-width: none; }
#panel::-webkit-scrollbar, #panel *::-webkit-scrollbar { display: none; }
dialog[open] {
  --panel-viewport-height: calc(var(--pier-viewport-height) / var(--panel-scale));
  --panel-safe-block: calc(max(env(safe-area-inset-top), env(safe-area-inset-bottom)) / var(--panel-scale));
  --panel-end-inset: max(12px, var(--panel-safe-block));
  --side-inset: max(12px, calc(max(env(safe-area-inset-left), env(safe-area-inset-right)) / var(--panel-scale)));
  position: absolute;
  top: calc(var(--pier-viewport-top) / var(--panel-scale));
  bottom: auto;
  display: flex;
  flex-direction: column;
  /* Keep Close in place as account, leaderboard and other asynchronous content arrives. */
  margin-block-start: max(var(--panel-end-inset), calc((var(--panel-viewport-height) - 740px) / 2));
  max-width: calc(100% - 2 * var(--side-inset));
  max-height: min(740px, calc(var(--panel-viewport-height) - 2 * var(--panel-end-inset)));
  /* Only the content pane scrolls, including when a focused field moves. */
  overflow: clip;
}
@media (pointer: coarse) {
  /* Keep the card fitted to the phone as its contents change size or the keyboard opens. */
  #panel[open] {
    --panel-scale: 1;
    height: var(--panel-viewport-height);
  }
  #panel > * { zoom: var(--display-scale); }
  #panel-content { flex: 1 1 auto; }
}
.panel-head {
  position: relative;
  flex: none;
  background: #14242a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 21px;
  border-bottom: 1px solid #415558;
  z-index: 1;
}
.topbar, .panel-head, .topbar *, .panel-head * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.panel-head > div:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.panel-head .modal-close { width: 48px; height: 48px; flex: none; align-self: flex-start; touch-action: none; }
.modal-close svg { pointer-events: none; }
@media (pointer: coarse) {
  /* Leave a finger-sized hit area around the scaled Close icon. */
  .panel-head .modal-close { position: relative; }
  .panel-head .modal-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, calc(44px / var(--display-scale)));
    height: max(100%, calc(44px / var(--display-scale)));
    transform: translate(-50%, -50%);
  }
  /* Keep keyboard entry readable without iOS zooming the page on focus. */
  :root:is([data-display-size="medium"], [data-display-size="small"]) #panel
    :is(textarea, input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])) {
    font-size: max(1em, calc(16px / var(--display-scale)));
  }
}
.panel-head small {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}
.panel-head h2 {
  font-size: 26px;
  margin: 3px 0 0;
  line-height: 1.18;
}
.panel-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  gap: 16px;
  padding: 18px 21px 22px;
}
/* One shared section gap covers lists, previews, selectors and action
   buttons, including neighboring controls when an optional section is empty. */
#panel-content > * {
  min-width: 0;
  margin-block: 0;
}
#panel-content > :is(button, a) {
  justify-self: start;
  max-width: 100%;
  margin-inline-start: 0;
}
#panel-content > h3:not(:first-child) { margin-top: 4px; }
.board-filter { grid-template-columns: minmax(0, 1fr); }
.panel-content h3 {
  font-size: 16px;
  margin: 18px 0 7px;
}
.panel-content p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: #c5d2d0;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.tabs button {
  min-width: 0;
  padding: 8px 6px;
  line-height: 1.3;
  min-height: 42px;
  background: #18292f;
  color: #c4d0ce;
  border: 1px solid #43595b;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.tabs button[aria-pressed="true"] {
  background: #3b3326;
  border-color: #d8a869;
  color: #ffddab;
}
.gear-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.gear-item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 9px;
  background: #15272b;
  border: 1px solid #3c5251;
  border-radius: 7px;
  padding: 10px 12px;
}
.gear-item:hover:not(:disabled) {
  border-color: #92b8ae;
  background: #1b3033;
}
.gear-item[aria-pressed="true"] {
  border-color: #d6ae70;
  background: #2d2b22;
}
.gear-item .gear-icon {
  color: #e5ba7e;
}
.gear-item strong,
.gear-item small,
.gear-item em {
  display: block;
  line-height: 1.35;
}
.gear-item strong {
  font-size: 15px;
}
.gear-item small,
.gear-item em {
  color: #c1d1cc;
  font-size: 12px;
  margin-top: 2px;
  font-style: normal;
}
.gear-item .select-gear {
  color: #f1cb8e;
  font-size: 12px;
  font-weight: 700;
}
.gear-item .select-gear svg {
  width: 16px;
  height: 16px;
}
.model-card {
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid #557171;
  border-radius: 8px;
  background: #15252a;
}
.model-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(150px, 27svh, 225px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 53% 26%, #36596380, transparent 69%),
    linear-gradient(155deg, #1b353d, #0d2127);
}
.model-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.model-stage canvas:active {
  cursor: grabbing;
}
.model-loading {
  color: #d5e4de;
  font-size: 14px;
  z-index: 1;
  pointer-events: none;
}
.model-caption {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border-top: 1px solid #3e5b5b;
}
.model-caption strong,
.model-caption small {
  display: block;
  line-height: 1.4;
}
.model-caption > div:first-child { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.model-caption small {
  color: #becccb;
  font-size: 12px;
  margin-top: 5px;
}
.model-controls {
  display: flex;
  flex: none;
  gap: 8px;
  margin-inline-start: auto;
}
.model-controls button {
  width: 38px;
  height: 38px;
  font-size: 21px;
  color: var(--gold);
}
.model-controls .model-detail {
  width: auto;
  padding-inline: 8px;
  border: 1px solid #53666a;
  border-radius: 6px;
  background: #17282f;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.model-controls .model-detail:hover {
  background: #2b4147;
}
.pier-chart {
  margin: 0 0 14px;
  padding: 16px 13px 9px;
  border: 1px solid #446264;
  border-radius: 7px;
  background: linear-gradient(90deg, #374236 20%, #183c49 20%, #102e3b);
}
.pier-chart-track {
  position: relative;
  height: 5px;
  margin: 3px 6px 8px;
  border-radius: 3px;
  background: #aabcb7;
}
.pier-chart-track span {
  position: absolute;
  top: 50%;
  left: var(--pier-location);
  width: 12px;
  height: 12px;
  border: 2px solid #192d32;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.pier-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #e0e8e4;
}
kbd {
  font:
    600 12px Inter,
    Arial,
    sans-serif;
  border: 1px solid #5b706e;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 3px 6px;
  background: #213238;
  white-space: nowrap;
}
.setting {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 14px;
  margin-bottom: 14px;
}
.setting label {
  font-weight: 700;
  font-size: 15px;
}
.setting small {
  display: block;
  color: #c2d1cb;
  margin-top: 4px;
  line-height: 1.4;
}
.setting input[type="range"] {
  accent-color: var(--gold);
  width: 100%;
}
.setting output {
  color: var(--gold);
  font-weight: 700;
}
.setting input[type="range"] {
  grid-column: 1 / 3;
}
.setting input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--gold);
}
.setting select {
  min-width: 0; max-width: 100%; min-height: 44px;
  border: 1px solid #526b6b; border-radius: 6px; padding: .35rem .5rem;
  background: #14262c; color: var(--ink); font: inherit; font-size: .9rem;
}
.setting select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 410px) {
  .setting:has(#graphics-quality, #display-size) select { grid-column: 1 / -1; }
}
.secondary + .settings-help {
  margin-left: 5px;
}
#panel-content .server-stats, .stats-reading {
  display:grid; gap:.8rem; min-width:0; font-variant-numeric:tabular-nums;
}
.stats-toolbar, .stats-period, .stats-chart figcaption {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem;
}
.stats-toolbar button, .stats-tabs button { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:44px; }
.stats-toolbar svg, .stats-tabs svg { width:1rem; height:1rem; fill:none; stroke:currentColor; stroke-width:1.7; }
.stats-tabs, .stats-period-buttons { display:flex; gap:.22rem; }
.stats-tabs { padding:.2rem; border:1px solid #3b555b; border-radius:8px; background:#14272b; }
.stats-tabs button { flex:1; border-color:transparent; background:transparent; color:var(--muted); }
.stats-tabs button[aria-selected="true"] { color:var(--gold); border-color:#7a6750; background:#343831; }
.stats-period { font-size:.83rem; color:#c9d8d2; }
.stats-period-buttons { border-bottom:1px solid #425a5d; }
.stats-period-buttons button {
  min-height:40px; padding:.38rem .7rem; border:0; border-bottom:2px solid transparent; border-radius:4px 4px 0 0;
  background:transparent; font-size:.83rem; color:#c9d8d2;
}
.stats-period-buttons button[aria-pressed="true"] { border-color:#9edaca; color:#c9eee4; background:#1c3538; }
.server-stats [hidden], .server-stats .stats-message:empty, .stats-reading:empty { display:none; }
.server-stats .stats-message, .server-stats .stats-footnote { margin:0; color:#bfd1cb; font-size:.79rem; line-height:1.5; }
.stats-resources { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr)); gap:.7rem; }
.stats-card, .stats-chart { min-width:0; margin:0; padding:.9rem 1rem; background:#172b30; border:1px solid #3a555b; border-radius:9px; }
.stats-card h3, .stats-chart h3 { margin:0; color:#eff3e9; font:700 1.27rem/1.15 "Barlow Condensed",sans-serif; }
.stats-facts, .stats-chart-data dl { margin:.65rem 0 0; }
.stats-facts > div, .stats-chart-data dl > div {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,auto); align-items:baseline;
  gap:.15rem .8rem; padding:.42rem 0; border-top:1px solid #34494c;
}
.stats-facts dt, .stats-chart-data dt { color:#b9cec7; font-size:.8rem; line-height:1.3; }
.stats-facts dd, .stats-chart-data dd { overflow-wrap:anywhere; text-align:end; margin:0; color:#f0f1e8; font-weight:600; font-size:.87rem; }
.stats-facts small { display:block; color:#bacbc5; font-weight:400; font-size:.73rem; margin-top:.12rem; }
.stats-resource .stats-facts dd { color:#f4d299; font-size:1.05rem; }
.stats-resource progress { grid-column:1/-1; display:block; width:100%; height:.4rem; accent-color:#8ad2be; }
.stats-kpis .stats-facts, .stats-activity .stats-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; }
.stats-kpis .stats-facts > div, .stats-activity .stats-facts > div {
  display:flex; align-items:flex-start; flex-direction:column; gap:.36rem; justify-content:flex-start; padding:.65rem .35rem .25rem 0;
}
.stats-kpis dd, .stats-activity dd { text-align:start; color:#f1d398; font:700 2rem/1.05 "Barlow Condensed",sans-serif; }
.stats-kpis .stats-facts > div:nth-child(2) dd { color:#a4dfc9; }
.stats-kpis .stats-footnote { margin-top:.55rem; }
.stats-activity .stats-facts { grid-template-columns:repeat(3,minmax(0,1fr)); }
.stats-activity dd { font-size:1.55rem; color:#edf0e9; }
.stats-kpis small, .stats-activity small { font:400 .72rem/1.35 Inter,sans-serif; margin-top:.25rem; }
.stats-chart { background:linear-gradient(155deg,#1b3439,#16282d); }
.stats-chart select {
  min-width:0; max-width:100%; min-height:40px; font:inherit; font-size:.83rem;
  padding:.35rem .45rem; color:var(--ink); border-radius:5px; background:#16272b; border:1px solid #4b676b;
}
.stats-chart-grid { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.55rem; margin:1rem 0 .35rem; height:6.8rem; }
.stats-chart-scale { display:flex; flex-direction:column; justify-content:space-between; color:#bfd1cb; font-size:.7rem; }
.stats-bars {
  display:flex; align-items:stretch; gap:clamp(1px,.5vw,5px); min-width:0; position:relative;
  border-block:1px solid #496266; background:linear-gradient(to bottom,transparent calc(50% - .5px),#385055 50%,transparent calc(50% + .5px));
}
.stats-bar { display:flex; flex:1; align-items:flex-end; justify-content:center; min-width:0; }
.stats-bar i { display:block; width:100%; max-width:3rem; background:#8ed1bc; border-radius:2px 2px 0 0; }
.stats-bar-missing { background:repeating-linear-gradient(120deg,transparent,transparent 5px,#48606466 5px,#48606466 6px); }
.stats-chart-dates { display:flex; justify-content:space-between; gap:1rem; color:#becfc9; font-size:.7rem; }
.stats-chart-dates > :last-child { text-align:end; }
.stats-chart .stats-footnote { margin-top:.4rem; }
.stats-chart-data { margin-top:.6rem; }
.stats-chart-data summary { cursor:pointer; color:#cbdcd5; font-size:.8rem; line-height:2rem; }
.stats-chart-data dl { margin:0; }
.stats-chart-data dt,.stats-chart-data dd { font-size:.76rem; }
@media(max-width:600px) {
  .stats-card,.stats-chart { padding:.7rem .75rem; }
  .stats-kpis .stats-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stats-activity .stats-facts { grid-template-columns:1fr; }
  .stats-activity .stats-facts > div { flex-direction:row; justify-content:space-between; align-items:center; }
  .stats-activity .stats-facts dd { text-align:end; }
}
.panel-notice {
  padding: 9px 11px;
  border: 1px solid #756447;
  border-radius: 6px;
  background: #392c24;
}
@media (max-width: 850px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 17px;
    gap: 12px;
  }
  .location {
    display: none;
  }
  .tackle-strip {
    padding: 0 17px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  }
  .loadout-label {
    display: none;
  }
  .tackle-strip button:not(.controls-link) {
    padding-inline: 12px;
    gap: 7px;
  }
  .tackle-strip button:first-of-type {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 1100px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .location { display: none; }
  .utility button { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .utility button { position: relative; }
  .utility button > span:not(.count) {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .utility .count {
    position: absolute;
    right: 0;
    top: 0;
    min-width: 15px;
    height: 15px;
    padding-inline: 3px;
    font-size: 8px;
  }
}
@media (max-width: 570px) {
  .topbar {
    min-height: 58px;
    padding: 0 12px;
    gap: 6px;
  }
  .brand {
    gap: 7px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }
  .brand-icon svg {
    width: 19px;
    height: 19px;
  }
  .brand strong {
    font-size: 11px;
    letter-spacing: 0.065em;
  }
  .brand small {
    font-size: 8px;
    margin-top: 4px;
    letter-spacing: 0.15em;
  }
  .utility {
    gap: 2px;
  }
  .utility button {
    padding: 0 8px;
    min-height: 37px;
    min-width: 35px;
  }
  .fishing-actions {
    right: max(9px, var(--safe-right));
    bottom: max(14px, var(--safe-bottom));
  }
  .utility button > span:not(.count) {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .stage {
    min-height: 464px;
  }
  .environment {
    background-position: 61% center;
  }
  .shade {
    background:
      linear-gradient(90deg, #0a171dd7, #0a171d33 82%),
      linear-gradient(
        0deg,
        #09171dda,
        transparent 22%,
        transparent 65%,
        #0a171d7a
      );
  }
  .welcome {
    width: calc(100% - 32px);
    margin: 44px 16px 10px;
    padding: 75px 0 40px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.19em;
    gap: 8px;
  }
  .eyebrow span {
    width: 17px;
  }
  .welcome h1 {
    font-size: clamp(4.9rem, 19.5vw, 7rem);
    margin: 14px 0 19px;
  }
  .welcome p:not(.start-status) {
    max-width: min(380px, 100%);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .welcome-actions {
    gap: 7px;
  }
  .primary,
  .secondary {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 13px;
  }
  .conditions {
    top: 12px;
    right: 12px;
    width: 193px;
    padding: 8px 10px;
    border-radius: 6px;
  }
  .weather-icon {
    width: 28px;
    height: 28px;
  }
  .weather-icon svg {
    width: 16px;
    height: 16px;
  }
  .conditions-top {
    gap: 7px;
  }
  .conditions-top strong {
    font-size: 12px;
  }
  .conditions-top small {
    font-size: 9px;
  }
  .conditions dl {
    margin-top: 6px;
    padding-top: 6px;
  }
  .conditions dd {
    font-size: 11px;
    margin-top: 3px;
  }
  .species-line {
    left: 16px;
    bottom: 13px;
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0;
  }
  .species-line svg {
    height: 17px;
    width: 17px;
  }
  .species-line b {
    padding: 0 1px;
  }
  .tackle-strip {
    min-height: 69px;
    padding: 0 9px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tackle-strip button:not(.controls-link) {
    padding: 3px 6px;
    gap: 4px;
    min-height: 45px;
  }
  .tackle-strip button:first-of-type {
    padding-left: 1px;
  }
  .tackle-strip button > svg {
    width: 16px;
    height: 16px;
  }
  .tackle-strip small {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .tackle-strip strong {
    font-size: 11px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .tackle-strip button > span { min-width: 0; }
  .tackle-strip .controls-link,
  .full {
    display: none;
  }
  .action-hud {
    padding: 9px 8px;
  }
  .action-hud h2 {
    font-size: 15px;
  }
  .action-hud p {
    font-size: 11px;
  }
  .action-meta,
  .fight-info {
    font-size: 9px;
  }
  .action {
    right: 9px;
    bottom: max(14px, var(--safe-bottom));
    min-width: 105px;
    max-width: 110px;
  }
  .panel-head {
    padding: 13px 15px;
  }
  .panel-content {
    padding: 14px 15px 17px;
  }
}
@media (max-width: 410px) {
  .board-records span { display: block; float: none; margin: 4px 0 0; }
  .topbar { padding-inline: 8px; }
  .brand > span:last-child { display: none; }
  .utility { gap: 2px; }
  .utility button {
    padding-inline: 6px;
    min-width: 33px;
    margin-left: 0;
  }
  .fishing-actions { flex-direction: column; }
}
.move-stick {
  display: grid;
  position: absolute;
  left: max(20px, 3vw);
  bottom: max(36px, calc(18px + var(--safe-bottom)));
  width: 126px;
  aspect-ratio: 1;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid #9fbcbd9c;
  border-radius: 50%;
  background: radial-gradient(circle at 48% 40%, #10242a88, #101b23b8 73%, #9baeb050 74%, #203239ce 76%);
  box-shadow: inset 0 0 14px #0c151dcc, 0 6px 20px #04101548;
  pointer-events: auto;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.stick-track {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid #b1c7c457;
  background:
    linear-gradient(#b8d1ce8f 0 0) top center / 1px 7px,
    linear-gradient(#b8d1ce8f 0 0) bottom center / 1px 7px,
    linear-gradient(#b8d1ce8f 0 0) center left / 7px 1px,
    linear-gradient(#b8d1ce8f 0 0) center right / 7px 1px;
  background-repeat: no-repeat;
  pointer-events: none;
}
.stick-knob {
  width: 39%;
  aspect-ratio: 1;
  border: 1px solid #ccdedad0;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 34%, #84a4a5, #45656a 63%, #29454e 65%, #3d5d64 77%);
  box-shadow: inset 0 2px 4px #d1e5de46, 0 6px 13px #050b13a0;
  transform: translate(calc(var(--stick-x, 0px) / var(--display-scale)), calc(var(--stick-y, 0px) / var(--display-scale)));
  transition: transform 140ms cubic-bezier(.2,.8,.3,1), border-color 130ms;
  pointer-events: none;
}
.stick-label {
  position: absolute;
  bottom: -13px;
  left: 50%;
  padding: 3px 7px;
  border: 1px solid #899f9fa6;
  border-radius: 4px;
  background: #12232ae8;
  color: #e8eeea;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}
.move-stick.engaged {
  border-color: #d2e2d5b5;
}
.move-stick.engaged .stick-knob {
  border-color: #eff2e9;
  transition: none;
}
.action:active {
  background: #e2b475;
  color: #19232a;
}
@media (max-width: 570px) {
  .stage.playing {
    --hud-inset: 8px;
  }
  .stage.playing .hud-top {
    gap: 5px;
  }
  .stage.playing .conditions .weather-icon { display: none; }
  .stage.playing .hud-reading { column-gap: 4px; }
  .stage.playing .conditions-top strong { font-size: 11px; }
  .stage.playing .conditions small {
    font-size: 8px;
    letter-spacing: .06em;
  }
  .stage.playing .conditions dl {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .stage.playing .conditions dl div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px;
  }
  .stage.playing .conditions dt {
    font-size: 7px;
    letter-spacing: .035em;
  }
  .stage.playing .conditions dd {
    font-size: 8.5px;
    margin: 0;
  }
  .action-hud {
    padding: 8px 5px;
  }
  .action-meta,
  .fight-info {
    font-size: 8px;
    gap: 4px;
    letter-spacing: .06em;
  }
  .action-hud .action-meta #distance:not(:empty)::before {
    margin-right: 3px;
  }
  .action-hud h2 {
    font-size: 14px;
  }
  .action-hud p {
    font-size: 10px;
    line-height: 1.3;
  }
  .move-stick {
    left: 15px;
    bottom: max(24px, calc(14px + var(--safe-bottom)));
    width: clamp(100px, 29vw, 118px);
  }
}
@media (max-height: 550px) and (min-width: 650px) {
  .topbar {
    min-height: 49px;
  }
  .stage {
    min-height: 310px;
  }
  .tackle-strip {
    min-height: 54px;
  }
  .welcome {
    padding: 23px 0 30px;
    margin-bottom: 7px;
  }
  .welcome h1 {
    font-size: clamp(4rem, 9vw, 5.7rem);
    margin: 11px 0 15px;
  }
  .welcome p:not(.start-status) {
    margin-bottom: 12px;
    font-size: 13px;
  }
  .species-line {
    bottom: 8px;
  }
  .conditions {
    top: 13px;
  }
  .move-stick {
    bottom: max(26px, calc(14px + var(--safe-bottom)));
    width: 103px;
  }
  .stage.playing {
    --hud-inset: 11px;
  }
  .action {
    bottom: max(10px, var(--safe-bottom));
  }
  .fishing-actions { bottom: max(10px, var(--safe-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.item-description { color: #d6e3df; line-height: 1.5; }
.release-notice {
  z-index: 3; display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 5px 10px; background: #22383a; color: #f5e0b2; font-size: .875rem;
}
.release-notice button {
  border: 1px solid #ae9562; border-radius: 5px; background: #2e3832; color: #fff2d4;
  min-height: 36px; padding: 4px 12px;
}

.product-specs { border-top: 1px solid var(--edge); margin-top: 12px; }
.product-specs .comparison-label { font-size: .85rem; margin: 10px 0 0; color: #c2ceca; }
.product-specs dl { display: flex; gap: 10px 20px; flex-wrap: wrap; margin: 12px 0 2px; }
.product-specs dt { color: #abc0c0; font-size: .8rem; }
.product-specs dd { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; margin: 4px 0; }

.product-reference { display: inline-block; margin-top: 15px; color: var(--accent); text-underline-offset: 3px; }

.conditions-link { background: transparent; color: var(--gold); border: 0; border-bottom: 1px dotted currentColor; padding: 2px 0; font: inherit; font-size: .68rem; letter-spacing: .08em; font-weight: 700; pointer-events: auto; }
@media (max-width: 570px) { .stage.playing .conditions-link { font-size: .55rem; } }

.inventory-panel, .shop-panel, .king-panel, .cleaning-panel, .cooler-panel, .stats-panel { width: min(750px, calc(100% - var(--side-inset, 12px) - var(--side-inset, 12px))); }
.inventory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.inventory-filters button {
  flex: 1 0 auto;
  min-height: 38px;
  padding: 6px 11px;
}
.inventory-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-block: 14px 10px;
}
.inventory-tools input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 7px 12px;
  border: 1px solid #466166;
  border-radius: 6px;
  background: #0c191d;
  color: var(--ink);
}
.inventory-tools input::placeholder { color: #a9bfbd; }
.inventory-tools [role="status"] { color: #bed0ca; font-size: .85rem; white-space: nowrap; }
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 137px), 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.inventory-grid li { min-width: 0; }
.inventory-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  text-align: start;
  border: 1px solid #496465;
  border-radius: 8px;
  background: radial-gradient(ellipse at 55% 34%, #324e53, #192e33 66%, #122227);
}
.inventory-tile:hover, .inventory-tile:focus-visible { border-color: #93c9bf; }
.inventory-tile:has(.inventory-equipped) { border-color: #af996d; }
.inventory-picture {
  position: absolute;
  inset: 2px 0 auto;
  margin-inline: auto;
  height: calc(100% - 42px);
  aspect-ratio: 1;
  background-image: url("./assets/inventory-atlas.webp?v=7142970807890a84");
  background-size: 1000% 1000%;
  background-repeat: no-repeat;
}
.inventory-picture.mono-spool-picture, .inventory-picture.thingama-picture, .inventory-picture.holder-picture { background-image: none; }
.mono-spool-picture canvas, .thingama-picture canvas, .holder-picture canvas { display:block; width:100%; height:100%; object-fit:contain; }
.inventory-picture.rig-catalog-picture { display: grid; place-items: center; background: none; }
.inventory-tile .rig-catalog-picture { aspect-ratio: 10 / 7; max-width: 100%; }
.inventory-picture.rig-catalog-picture::before {
  content: ""; display: block; width: 100%; aspect-ratio: 10 / 7;
  background-position: inherit; background-repeat: no-repeat;
  background-image: url("./assets/rig-catalog.webp?v=4da8e30b4f8cb5db");
  background-size: 400% 600%;
}
.jig-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.jig-options label { display:grid; gap:.4rem; }
.line-test { display:grid; gap:.4rem; font-size:.9rem; font-weight:600; }
.jig-options select, .line-test select { width:100%; min-height:44px; padding:.4rem .6rem; color:var(--ink); background:#0b1b21; border:1px solid #5b777b; border-radius:.35rem; font:inherit; }
.inventory-tile-meta {
  position: absolute;
  inset: 6px 6px auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  font-size: .77rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.inventory-tile-meta > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 6px;
  background: #0b1a1eea;
  border-radius: 4px;
}
.inventory-tile-meta .inventory-equipped { color: #241e17; background: #e8bc7a; padding: 2px 4px; }
.inventory-equipped svg { width: 15px; height: 15px; stroke-width: 2.5; }
.inventory-tile-name {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 9px;
  background: #102125eb;
  border-top: 1px solid #74928c38;
  font-size: .85rem;
  line-height: 1.17;
  overflow-wrap: anywhere;
}
.inventory-empty { padding: 16px; border: 1px dashed #597473; border-radius: 6px; }
.inventory-back { margin-bottom: 14px; }
.inventory-detail-meta, .inventory-detail-actions { display: flex; align-items: center; gap: 10px; }
.inventory-detail-meta { justify-content: space-between; margin-bottom: 8px; color: #b3cbc6; font-size: .875rem; }
.inventory-detail-meta strong { color: var(--gold); }
.inventory-detail-actions { margin-block: 10px; flex-wrap: wrap; }
.inventory-detail-actions p { margin: 0; }
.gear-setup {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #405858;
  border-radius: 6px;
}
.gear-setup label { display: grid; min-width: 0; gap: 5px; color: #c3d7d2; font-size: .875rem; }
.gear-setup select {
  width: 100%; min-width: 0; min-height: 44px;
  padding: 6px 8px; color: var(--ink); background: #0b1b21;
  border: 1px solid #5b777b; border-radius: 5px; font: inherit;
}
.gear-setup button { min-height: 44px; }
.gear-setup p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 540px) {
  .gear-setup { grid-template-columns: minmax(0, 1fr); }
  .gear-setup select { font-size: 16px; }
}
.inventory-spools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  padding: 12px;
  margin-block: 12px;
  border: 1px solid #405858;
  border-radius: 5px;
  font-size: .875rem;
}
.inventory-spools dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.inventory-panel .product-specs { margin-bottom: 14px; }
@media (max-width: 400px) {
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .inventory-filters button { padding-inline: 8px; }
}


.shop-tile .inventory-tile-meta > :first-child { color: #ffda9f; }
.shop-tile .inventory-picture { height: calc(100% - 59px); }
.shop-tile .inventory-tile-name {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 58px;
}
.shop-tile .inventory-tile-name small { color: #b3c7c5; font-size: .75rem; line-height: 1.18; }
.shop-detail-price strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.rail-actions { display: contents; }
.stage[data-preset-drag] .fishing-actions,
.stage[data-phase="fight"] .fishing-actions { flex-direction: column; align-items: stretch; }
.stage[data-preset-drag] .fishing-actions .action,
.stage[data-phase="fight"] .fishing-actions .action { max-width: none; }
.fight-brake {
  display: grid;
  grid-template-columns: 44px minmax(50px, auto) 44px;
  align-items: center;
  border: 1px solid #687e80;
  border-radius: 8px;
  background: #10232bf2;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fight-brake button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e6edea;
  font-size: 24px;
  touch-action: manipulation;
}
.fight-brake button:enabled:active { background: #324b52; }
.fight-brake button:disabled { color: #8d9596; opacity: 1; }
.fight-brake span { color: #a8bcb8; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.fight-brake strong { display: block; color: #fff1d6; font-size: 14px; letter-spacing: normal; text-transform: none; }
.fight-spool {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 6px;
  color: #bdcec9;
  font-size: 11px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.fight-spool strong { color: #ecf2ef; }
.spool-track { grid-column: 1 / -1; overflow: hidden; height: 3px; border-radius: 3px; background: #435656; }
.spool-track i { display: block; width: var(--remaining, 100%); height: 100%; background: #98b3b0; }
.fight-spool[data-low] strong { color: #ffad8b; }
.fight-spool[data-low] .spool-track i { background: #ef987d; }
.fight-info { font-variant-numeric: tabular-nums; }
.stage[data-phase="landing"] .fishing-actions {
  flex-direction: column;
  align-items: stretch;
  width: min(220px, 52vw);
}
.landing-methods { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.landing-methods button { flex: 1 1 auto; min-height: 38px; padding: 6px 9px; }
.landing-sight {
  color: #e6eeeb;
  background: #10252de8;
  border: 1px solid #55767b;
  border-radius: 8px;
  padding: 8px 12px 6px;
  font-size: 12px;
  text-align: center;
}
.landing-track {
  display: block;
  height: 38px;
  margin: 2px 4px 5px;
  background: linear-gradient(0deg, #27444a, #3d575c);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.landing-track i, .landing-track b { position: absolute; transform: translate(-50%, -50%); }
.landing-track i { left: 50%; top: 50%; width: var(--target-width); height: 34%; border: 1px solid #c2dbd4; border-radius: 50%; background: #76a69955; }
.landing-track b { left: var(--fish-position); top: var(--fish-fore,50%); width: 7px; height: 7px; background: #ffd185; border-radius: 50%; box-shadow: 0 0 0 1px #23393a; }
.landing-sight[data-in-reach] { border-color: #e9bd79; }
@media (max-height: 510px) {
  .stage[data-phase="landing"] .fishing-actions { width: min(235px, 39vw); gap: 4px; }
  .landing-methods button { min-height: 31px; }
  .landing-sight { padding-block: 2px; }
}

.inventory-picture.bucket-picture {
  background-image: url("./assets/flow-troll.webp?v=aa15368916cebbd4");
  background-size: contain;
  background-position: center;
}
.king-panel-heading { display: grid; gap: .32rem; padding: .15rem 0 .7rem; }
.king-panel-heading small, .king-kit small { color: #a9c2c0; letter-spacing: .07em; font-size: .71rem; }
.king-panel-heading strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.65rem; }
.king-kit { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: .6rem; }
.king-kit > div { display: grid; gap: .32rem; padding: .75rem; border: 1px solid #405858; border-radius: .5rem; }
.king-kit strong { font-size: .88rem; }
.king-station-link[data-running], #tend-rod[data-running] { color: #1c291e; background: #edc678; }
.stage[data-phase="caught"] .fishing-actions { flex-wrap: wrap; justify-content: end; max-width: min(520px,60%); }
@media(max-width:700px) {
  .stage[data-phase="caught"] .fishing-actions { flex-direction:column; align-items:stretch; gap:4px; }
  .king-station-link { min-height: 40px; }
}

.inventory-picture.flounder-jig-picture {
  background-image: url("./assets/flounder-jigs.webp?v=0124266b3bd48fb3");
  background-size: 200% 100%;
}
.inventory-picture.king-tackle-picture {
  background-image: url("./assets/king-tackle.webp?v=c45f2efc174ea494");
  background-size: 400% 400%;
}
.king-outfit-picker { display: grid; gap: .55rem; margin: .8rem 0; }
.king-outfit-picker label { display: grid; gap: .3rem; font-weight: 600; }
.king-outfit-picker select { width: 100%; max-width: 100%; padding: .55rem; font: inherit; }

/* A short laptop window needs the same vertical clearance to open the
   King Rig controls below the position card. */
@media (orientation: landscape) and (max-height: 550px) and (pointer: coarse),
       (orientation: landscape) and (max-height: 550px) and (max-width: 960px) {
  .shell:has(.stage.playing) .tackle-strip { display: none; }
  .topbar {
    container: pier-header / inline-size;
    grid-template-columns: minmax(0, 1fr);
    min-height: 49px;
    gap: 0;
    padding: var(--safe-top) max(6px, var(--safe-right)) 0 max(6px, var(--safe-left));
  }
  .topbar .brand, .topbar .location { display: none; }
  .topbar .utility { width: 100%; gap: 2px; }
  .topbar .utility button {
    flex: 1 0 auto;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 4px;
    margin: 0;
    gap: 4px;
    font-size: clamp(11px, 1.45vw, 13px);
  }
  .topbar .utility button > span:not(.count) {
    position: static;
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
  }
  .topbar .utility .count { position: static; }
  @container pier-header (max-width: 710px) {
    .topbar .utility button {
      display: grid;
      flex: 1 1 auto;
      grid-template-columns: auto auto;
      align-content: center;
      gap: 2px 0;
      padding-inline: 2px;
      font-size: 11px;
    }
    .topbar .utility #shop-balance { display: none; }
    .topbar .utility button > svg { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
    .topbar .utility button:has(.count:not([hidden])) > svg { grid-column: 1; }
    .topbar .utility button > span:not(.count) { grid-column: 1 / -1; grid-row: 2; }
    .topbar .utility .count { grid-column: 2; grid-row: 1; margin-left: 3px; }
  }
  .stage.playing { --hud-inset: 5px; }
  .stage.playing .hud-top {
    --hud-panel-width: 168px;
    --hud-panel-padding: 4px 6px;
    --hud-status-width: 34%;
    gap: 4px;
  }
  .stage.playing .conditions-top { display: block; }
  .stage.playing .hud-reading { column-gap: 5px; }
  .stage.playing .conditions .weather-icon { display: none; }
  .stage.playing .conditions strong { display: block; margin: 0; font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
  .stage.playing .conditions-link { padding: 0; border: 0; font-size: 9px; line-height: 1.3; }
  .stage.playing .conditions-link::after { content: ""; position: absolute; inset: 0; }
  .stage.playing .conditions dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 5px;
    margin: 3px 0 0;
    padding: 3px 0 0;
  }
  .stage.playing .conditions dl div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 0 3px; }
  .stage.playing .conditions dt { font-size: 8px; line-height: 1.2; letter-spacing: .02em; }
  .stage.playing .conditions dd { margin: 0; font-size: 10px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
  .stage.playing .action-hud { width: max-content; max-width: min(var(--hud-status-width), 245px); padding: 6px; }
  .stage.playing .action-meta { font-size: 10px; }
  .stage.playing .action-meta #distance:empty { display: none; }
  .stage.playing .action-hud h2 { margin: 2px 0 0; font-size: 14px; line-height: 1.1; }
  .stage.playing .action-hud p { margin: 3px 0 0; font-size: 10px; line-height: 1.2; }
  .stage[data-phase="idle"]:not([data-carrying]):not([data-leaned]) .action-hud h2,
  .stage[data-phase="idle"]:not([data-carrying]):not([data-leaned]) .action-hud p { display: none; }
  .stage.playing .position-header { gap: 0; }
  .stage.playing .position-header .weather-icon { display: none; }
  .stage.playing .position-label { font-size: 9px; line-height: 1.3; }
  .stage.playing .position-header strong { font-size: 10px; margin: 0; }
  .stage.playing .position-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 5px; margin-top: 3px; padding-top: 3px; }
  .stage.playing .position-facts > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 3px; }
  .stage.playing .position-facts small { font-size: 8px; line-height: 1.2; letter-spacing: .02em; }
  .stage.playing .position-facts span[id] { margin: 0; font-size: 10px; line-height: 1.15; }
  .stage.playing .full { width: 31px; height: 31px; }
  .stage.playing .full svg { width: 15px; height: 15px; }
  .stage.playing .move-stick { left: max(15px, var(--safe-left)); }
  .stage.playing .fishing-actions { right: max(10px, var(--safe-right)); }
}


@media (orientation: landscape) and (max-height: 340px) and (pointer: coarse) {
  .stage[data-preset-drag] .fishing-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 3px 5px;
    align-items: end;
    width: min(284px, calc(100% - 142px));
    bottom: max(2px, var(--safe-bottom));
  }
  .stage[data-preset-drag] .rail-actions { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 3px; }
  .stage[data-preset-drag] .rail-actions button { min-width: 0; padding-inline: 3px; font-size: 11px; white-space: normal; }
  .stage[data-preset-drag] .fight-brake, .stage[data-preset-drag] .action { grid-column: 2; }
}

.board-controls {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 14px 18px;
  padding: clamp(12px, 3vw, 18px);
}
.board-controls, .journal-summary, .cleaning-summary, .cooler-summary {
  background: linear-gradient(95deg, #102b32f7 20%, #153c43e3 62%, #204d55ac),
    url("./assets/pier-sky.webp?v=ba7a5a3cc3ad27f2") center 40% / cover;
  border: 1px solid #41636a; border-radius: 8px;
}
.board-periods {
  grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
  min-width: 0; margin: 0; padding: 3px; border: 1px solid #44626a; border-radius: 7px; background: #0a2027;
}
.board-periods label { position: relative; min-width: 0; }
.board-periods input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.board-periods span {
  display: grid; place-items: center; min-height: 44px; border-radius: 4px;
  font: 600 .875rem/1.25 Inter, sans-serif; color: #c0d4d0;
}
.board-periods input:checked + span { background: #d5e8de; color: #12312e; }
.board-periods input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 1px; }
.board-controls h3 { margin: 0; font: 700 clamp(24px, 3.6vw, 32px)/1.08 "Barlow Condensed", sans-serif; color: #f4f2e8; }
.board-controls h3 small { font: 600 .72rem Inter, sans-serif; color: #bbd6cf; white-space: nowrap; }
.board-controls .board-intro { margin: 5px 0 0; max-width: 34ch; color: #d7e6e3; font-size: .8rem; line-height: 1.4; }
.board-controls .board-filter { min-width: 0; font-size: 12px; font-weight: 600; gap: 5px; }
.board-filter select { min-height: 44px; padding: 6px 10px; border-radius: 5px; }
.board-results { min-width: 0; }
.board-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.board-catch, .board-no-catch { display: flex; flex-direction: column; min-width: 0; background: #182c30; border: 1px solid #365054; border-radius: 8px; }
.board-record { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 5px 8px; padding: 15px 14px 10px; }
.board-record h4 { grid-column: 1 / -1; margin: 0; color: #f3f4e9; font: 700 18px/1.2 Inter, sans-serif; }
.board-no-catch { background: #14272b; }
.board-no-catch .board-record { grid-template-columns: minmax(0, 1fr); align-content: start; padding-bottom: 15px; }
.board-no-catch-note { margin: 0; color: #b4c6c4; font-size: .85rem; line-height: 1.45; }
.board-size { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; margin: 0; font-variant-numeric: tabular-nums; }
.board-size .encounter-label { flex-basis: 100%; color: #aacdc7; font-size: .78rem; }
.board-size strong { color: #f0c77d; font: 800 36px/1.1 "Barlow Condensed", sans-serif; }
.board-size span { color: #edd6ac; font-size: 14px; }
.board-size small { margin-left: 4px; padding-left: 8px; border-left: 1px solid #587074; color: #d0e1dc; font-size: 13px; white-space: nowrap; }
.board-open-catch { min-height: 44px; display: flex; align-items: center; justify-content: end; gap: 5px; padding: 0; background: transparent; color: #a6dcd1; border: 0; font: 600 13px/1.2 Inter, sans-serif; }
.board-open-catch span { font-size: 17px; }
.board-byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 8px; padding: 3px 14px; border-top: 1px solid #354d4f; }
.board-byline time { color: #b4c6c4; font-size: 12px; }
.board-angler { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; max-width: 100%; padding: 0; text-align: left; background: none; border: 0; color: #edf4eb; font: 600 13px/1.3 Inter, sans-serif; overflow-wrap: anywhere; }
.board-angler:hover, .board-open-catch:hover { color: var(--gold); text-decoration: underline; }
.board-empty { padding: 20px; color: #bed2cc; border: 1px solid #365054; border-radius: 8px; margin: 0; }
@media (max-width: 480px) {
  .board-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.journal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: .85rem 1.1rem;
}
.journal-summary > div + div { border-inline-start: 1px solid #45636a; padding-inline-start: 1.15rem; }
.journal-summary dt { color: #c9ded9; font-size: .8rem; font-weight: 600; }
.journal-summary dd { margin: .2rem 0 0; color: #f3f4e9; font: 800 2.15rem/1 "Barlow Condensed", sans-serif; }
.journal-summary dd small { color: #b5cfc9; font: 500 .85rem Inter, sans-serif; }
.cooler-panel .panel-content { gap: .8rem; }
.cooler-summary { padding: .8rem 1rem 0; }
.cooler-summary header { display: flex; align-items: center; gap: .75rem; }
.cooler-summary .inventory-picture {
  position: static; flex: none; width: 3.75rem; height: 3.75rem; margin: 0;
  border-radius: 6px; background-color: #10292f;
}
.cooler-summary header small, .cooler-summary dt, .cooler-space > div { color: #c4dad6; font-size: .8rem; }
.cooler-panel .cooler-summary h3 { margin: .15rem 0 0; color: var(--ink); font: 700 1.5rem/1.1 "Barlow Condensed", sans-serif; overflow-wrap: anywhere; }
.cooler-summary dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem 1rem; margin: .8rem 0; }
.cooler-summary dl > div + div { padding-inline-start: 1rem; border-inline-start: 1px solid #49666b; }
.cooler-summary dd { margin: .12rem 0 0; color: #f3ead1; font: 700 1.8rem/1.05 "Barlow Condensed", sans-serif; overflow-wrap: anywhere; }
.cooler-space { padding-block-end: .75rem; }
.cooler-space > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2rem .6rem; }
.cooler-space-reading { color: #e7f1e9; font-variant-numeric: tabular-nums; }
.cooler-space progress {
  appearance: none; display: block; width: 100%; height: .4rem; margin-top: .4rem; overflow: hidden;
  border: 0; border-radius: .4rem; background: #38565b; accent-color: #8fd3c4;
}
.cooler-space progress::-webkit-progress-bar { background: #38565b; }
.cooler-space progress::-webkit-progress-value { background: #8fd3c4; }
.cooler-space progress::-moz-progress-bar { background: #8fd3c4; }
.cooler-inspection { border-top: 1px solid #416369; }
.cooler-inspection summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: #c4e1d8; font-size: .85rem; font-weight: 600; cursor: pointer; }
.cooler-inspection summary::-webkit-details-marker { display: none; }
.cooler-inspection summary::after { content: ""; flex: none; width: .48rem; height: .48rem; margin-right: .2rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cooler-inspection[open] summary::after { transform: rotate(225deg); }
.cooler-inspection .model-card { margin-bottom: .8rem; }
.cooler-inspection .model-controls button { min-width: 44px; min-height: 44px; }
.cooler-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap: .5rem; }
.cooler-actions button { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .5rem .7rem; }
.cooler-actions svg, .cooler-empty > svg { width: 1.15rem; height: 1.15rem; flex: none; stroke: currentColor; stroke-width: 1.6; fill: none; color: #a5d4c8; }
.cooler-empty { display: flex; gap: .65rem; padding: .9rem 1rem; border: 1px solid #3c565b; border-radius: 8px; background: #13252b; }
.cooler-empty > svg { margin-top: .15rem; }
.cooler-panel :is(.cooler-empty,.cooler-group) h3 { margin: 0; font: 700 1.25rem/1.25 "Barlow Condensed", sans-serif; }
.cooler-panel .cooler-empty p { margin: .2rem 0 0; font-size: .85rem; line-height: 1.4; }
.cooler-group h3 small { margin-inline-start: .5rem; color: #adc8c0; font: 600 .8rem Inter, sans-serif; }
.cooler-group ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15.5rem),1fr)); gap: .45rem; list-style: none; margin: .4rem 0 0; padding: 0; }
.cooler-group li {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto); align-content: center; gap: .25rem .65rem; min-width: 0;
  padding: .65rem .8rem; border: 1px solid #3c565b; border-radius: 7px; background: #14282e;
}
.cooler-species { align-self: end; color: #f0f2e6; font: 700 1.18rem/1.1 "Barlow Condensed", sans-serif; overflow-wrap: anywhere; }
.cooler-measure { grid-column: 1; color: #c4d5d0; font-size: .8rem; line-height: 1.35; }
.cooler-catch-value { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; max-width: 9ch; color: #e8c98e; font-size: .87rem; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.cooler-catch-value small { display: block; margin-top: .15rem; color: #b7ccc6; font-size: .72rem; font-weight: 400; }
.cleaning-panel .panel-content { gap: 12px; }
.cleaning-panel button { min-height: 44px; }
.cleaning-summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .6rem 1rem; padding: .9rem 1rem;
}
.cleaning-summary h3, .cleaning-bench-header h3, .cleaning-panel .cleaning-list-title {
  margin: 0; color: #f2f3e9; font: 700 1.45rem/1.1 "Barlow Condensed", sans-serif;
}
.cleaning-sink { display: inline-flex; align-items: center; gap: .4rem; }
.cleaning-sink svg, .cleaning-message > svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; color: #a9d8cb;
}
.cleaning-summary dl { display: flex; gap: .9rem; margin: 0; }
.cleaning-summary dl > div { padding-inline-start: .9rem; border-inline-start: 1px solid #466367; }
.cleaning-summary dt { font-size: .75rem; color: #c7d9d5; }
.cleaning-summary dd { margin: .1rem 0 0; color: #f2cf91; font: 700 1.75rem/1 "Barlow Condensed", sans-serif; }
.cleaning-panel .cleaning-list-title { font-size: 1.2rem; }
.cleaning-message {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start;
  gap: .55rem .7rem; padding: .9rem; background: #172b30; border: 1px solid #3b5658; border-radius: 8px;
}
.cleaning-message > svg { margin-top: .13rem; }
.cleaning-message h3 { font-size: 1.03rem; line-height: 1.3; margin: 0; }
.cleaning-panel .cleaning-message p, .cleaning-panel .cleaning-bench-meta, .cleaning-panel .cleaning-guide {
  margin: .25rem 0 0; color: #c3d3ce; font-size: .83rem; line-height: 1.45;
}
.cleaning-message > button { grid-column: 2; justify-self: start; }
.cleaning-receipt { background: #19352f; border-color: #52786a; }
.cleaning-catches li { min-width: 0; }
.clean-catch-option {
  display: grid; align-content: start; width: 100%; height: 100%; gap: .35rem;
  padding: .85rem; background: #182c30; border: 1px solid #3b5759; border-radius: 8px;
  text-align: start; color: #ecf1eb;
}
.clean-catch-option:hover, .clean-catch-option:focus-visible { background: #20383b; border-color: #8fb8ac; }
.cleaning-choice-head { display: flex; align-items: baseline; justify-content: space-between; gap: .55rem; }
.cleaning-choice-head strong { font: 700 1.16rem/1.15 "Barlow Condensed", sans-serif; overflow-wrap: anywhere; }
.cleaning-choice-head small { flex: none; color: #a9c6be; font: 500 .76rem Inter, sans-serif; }
.cleaning-whole { color: #f0c77d; font: 700 1.45rem/1.12 "Barlow Condensed", sans-serif; }
.cleaning-yield { color: #c3d5cf; font: 500 .8rem/1.42 Inter, sans-serif; }
.cleaning-choice-action {
  display: flex; justify-content: space-between; align-items: center; margin-top: .22rem;
  padding-top: .5rem; border-top: 1px solid #3a5557; color: #a7dccd; font: 650 .8rem Inter, sans-serif;
}
.cleaning-choice-action::after { content: ""; width: .42rem; height: .42rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.cleaning-bench-header { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.cleaning-bench-header h3 { overflow-wrap: anywhere; }
.cleaning-bench-header button { flex: none; }
.cleaning-workbench, .cleaning-cut-controls { display: grid; min-width: 0; gap: .55rem; }
.cleaning-surface { width: 100%; aspect-ratio: 2; min-height: 156px; max-height: 310px; overflow: hidden; border: 1px solid #4c6666; border-radius: 7px; box-sizing: border-box; }
.cleaning-surface canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; user-select: none; }
.cleaning-cut-controls { align-content: start; padding: .75rem .85rem; background: #172b30; border: 1px solid #3b5658; border-radius: 7px; }
.cleaning-panel .cleaning-stage { margin: 0; color: #f0cc87; font: 700 1.12rem/1.1 "Barlow Condensed", sans-serif; }
.cleaning-cut-controls progress { display: block; width: 100%; height: 7px; accent-color: #ceaa68; }
.cleaning-cut-controls .primary { justify-self: start; }
@media (orientation: landscape) and (min-width: 520px) and (max-height: 560px) {
  .cleaning-workbench { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: start; }
  .cleaning-panel .panel-content { gap: 8px; padding-block: 8px; }
  .cleaning-surface { min-height: 140px; max-height: 200px; }
}
.journal-guide { background: #13262c; border: 1px solid #365054; border-radius: 8px; }
.journal-guide summary {
  display: flex; align-items: center; gap: .6rem; min-height: 46px;
  padding: .55rem .9rem; color: #d6e8e3; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.journal-guide summary::-webkit-details-marker { display: none; }
.journal-guide summary svg, .journal-byline svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.journal-guide summary::after {
  content: ""; margin-inline-start: auto; width: 8px; height: 8px;
  border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.journal-guide[open] summary::after { transform: rotate(225deg); }
.journal-guide summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.journal-guide ul {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  list-style: none; margin: 0; padding: 0 .9rem .5rem; column-gap: 1.25rem;
}
.journal-guide button {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%;
  min-height: 48px; padding: .6rem 0; text-align: start; color: var(--ink);
  background: transparent; border: 0; border-top: 1px solid #354d4f;
}
.journal-guide button small { display: block; margin-top: .2rem; color: #b5c7c4; font-size: .76rem; }
.journal-guide button > span:last-child { color: var(--accent); font-size: 1.15rem; }
.journal-record {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  grid-template-rows: auto auto 1fr auto; gap: .4rem .5rem; width: 100%; height: 100%; padding: .85rem .9rem 0;
  background: #182c30; border: 1px solid #365054; border-radius: 8px; text-align: start;
}
.journal-record:hover, .journal-record:focus-visible { background: #1d3439; border-color: #80a9a2; }
.journal-species {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem;
  color: #f3f4e9; font-size: 1.08rem; line-height: 1.25;
}
.journal-species small {
  padding: .16rem .4rem; color: #f0ce90; background: #393329;
  border: 1px solid #796740; border-radius: 4px; font-size: .67rem; font-weight: 600;
}
.journal-open { align-self: center; color: #a6dcd1; font-size: .8rem; font-weight: 600; }
.journal-tackle { grid-column: 1 / -1; align-self: start; color: #c7d6d1; font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.journal-byline {
  grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .3rem .65rem; margin: .2rem -.9rem 0; padding: .55rem .9rem;
  border-top: 1px solid #354d4f; color: #b8cdc7; font-size: .75rem;
}
.journal-byline > span { display: inline-flex; align-items: center; gap: .3rem; overflow-wrap: anywhere; min-width: 0; }
.journal-byline svg { width: 14px; height: 14px; }
.journal-byline time { margin-inline-start: auto; }
.angler-avatar { display: inline-grid; position: relative; flex-shrink: 0; place-items: center; width: 31px; height: 31px; border-radius: 50%; overflow: hidden; background: #284641; color: #d2eee3; border: 1px solid #4e7269; font: 700 11px/1 Inter,sans-serif; }
.angler-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board-profile { display: grid; gap: 1rem; min-width: 0; margin-top: .75rem; }
.board-profile .angler-portrait img { object-fit: cover; }
.profile-wallet { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; color: #bbd1ce; font-size: .8rem; }
.profile-wallet strong { color: #d9ebe3; font-size: .9rem; }
.profile-records { min-width: 0; padding: .9rem; border: 1px solid #365156; border-radius: .55rem; background: #122328; }
.profile-record-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .35rem .75rem; margin-bottom: .75rem; }
#panel-content .profile-record-heading h4 { display: inline-flex; align-items: center; gap: .45rem; margin: 0; color: var(--ink); font-size: 1.05rem; }
.profile-record-heading h4 svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: #e5c189; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-record-heading > span { color: #aec8c4; font-size: .78rem; font-variant-numeric: tabular-nums; }
.profile-record-list { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,12.5rem),1fr)); padding: 0; margin: 0; list-style: none; }
.profile-record { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: .45rem; min-width: 0; padding: .75rem .85rem .6rem; text-align: start; border: 1px solid #3e5c60; border-radius: .45rem; background: linear-gradient(150deg,#1c363a,#172b31 80%); }
button.profile-record:hover, button.profile-record:focus-visible { background: #234044; border-color: #90b8af; }
.profile-species { color: var(--ink); font: 650 1rem/1.3 Inter,sans-serif; overflow-wrap: anywhere; }
.profile-record .board-size { align-self: end; }
.profile-record .board-size strong { font-size: 1.95rem; }
.profile-record-meta { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding-top: .5rem; margin-top: .1rem; border-top: 1px solid #39565b; color: #bed1ce; font: 500 .76rem/1.4 Inter,sans-serif; }
.profile-record-meta > span { color: #b5dcd1; font-size: 1.05rem; line-height: 1; }
#panel-content .profile-empty, #panel-content .profile-status { margin: 0; color: #c0d4ce; font-size: .9rem; }
.profile-status { padding: 1rem; border: 1px solid #365156; border-radius: .55rem; background: #122328; }
.board-profile > button { justify-self: start; }
.buyback-header { padding: .8rem 1rem; border-left: 3px solid #96b8a8; background: #1b3034; border-radius: 0 6px 6px 0; }
.buyback-header h3, .buyback-group h3 { margin: 0; color: #edf0e7; font: 700 1.2rem/1.1 "Barlow Condensed",sans-serif; }
.buyback-header p { margin: .3rem 0 0; color: #b8c9c4; font-size: .83rem; line-height: 1.4; }
.buyback-group { display: grid; gap: .45rem; min-width: 0; }
.buyback-group > h3 { padding-bottom: .2rem; }
.buyback-item {
  display: grid; grid-template-columns: 78px minmax(0,1fr) auto; gap: .55rem .85rem; align-items: center;
  padding: .6rem; border: 1px solid #365052; border-radius: 8px; background: #182a2e; color: #e6ebe3;
}
.buyback-inspect { align-self: stretch; display: grid; grid-template-rows: minmax(0,1fr) auto; align-items: center; justify-items: center; min-width: 0; min-height: 76px; border: 1px solid #476260; border-radius: 6px; overflow: hidden; padding: .2rem; background: radial-gradient(ellipse at 50% 32%,#375554,#1e3438 88%); }
.buyback-inspect:hover, .buyback-inspect[aria-expanded=true] { border-color: #9ec9b8; }
.buyback-inspect .inventory-picture { display: block; position: relative; inset: auto; margin: 0; width: 54px; height: 54px; max-width: 100%; }
.buyback-inspect .inventory-picture.rig-catalog-picture { display: grid; width: 67px; height: 47px; aspect-ratio: 10/7; }
.buyback-inspect-label { color: #cfddd4; font-weight: 600; font-size: .68rem; }
.buyback-caption { min-width: 0; }
.buyback-caption h4 { margin: 0; font-size: .93rem; line-height: 1.25; overflow-wrap: anywhere; }
.buyback-counts, .buyback-reason { margin: .25rem 0 0; color: #b3c7bd; font-size: .76rem; line-height: 1.38; }
.buyback-reason { color: #d2c2a7; }
.buyback-payout { display: grid; justify-items: end; align-content: center; gap: .12rem; }
.buyback-payout small { color: #b3c7bd; font-size: .68rem; }
.buyback-payout strong { color: #f3d197; font-size: .99rem; font-variant-numeric: tabular-nums; }
.buyback-payout button { min-height: 44px; padding: .3rem .6rem; margin-top: .15rem; font-size: .79rem; }
.buyback-review { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .65rem; border: 1px solid #58635b; border-radius: 5px; background: #233638; }
.buyback-review p { margin: 0; flex: 1 1 180px; color: #e4e7dd; font-size: .83rem; line-height: 1.4; }
.buyback-review button { min-height: 44px; }
.buyback-preview { grid-column: 1 / -1; min-width: 0; margin: 0; }
@media (max-width: 400px) {
  .buyback-item { grid-template-columns: 64px minmax(0,1fr); gap: .4rem .55rem; }
  .buyback-inspect { min-height: 70px; }
  .buyback-payout { grid-column: 1/-1; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; padding-top: .35rem; border-top: 1px solid #35494a; }
  .buyback-payout strong { margin-inline-end: auto; }
  .buyback-payout button { margin: 0; }
}


/* Keep winding, lifting and drag within the same thumb reach. */
.rod-controls { display: contents; }
.stage[data-phase="fight"] .fishing-actions {
  width: min(234px, calc(100% - 137px));
}
.stage[data-phase="fight"] .rod-controls {
  display: grid;
  grid-template-columns: minmax(62px, .78fr) minmax(82px, 1fr);
  gap: 5px;
}
.stage[data-phase="fight"] .rod-controls button,
.stage .landing-methods button { min-height: 44px; min-width: 0; padding-inline: 6px; touch-action: none; }
.stage[data-phase="fight"] .rod-controls .action { width: 100%; }
.stage[data-phase="fight"] .fight-brake { grid-template-columns: 1fr auto 1fr; }
#action[aria-pressed="true"], #lift-rod[aria-pressed="true"] {
  background: #284f4d;
  border-color: #a7d7c9;
  color: #f7fff9;
}
#carry-catch.carry-offer {
  border-color: #e4c58d;
  background: #edcd98;
  color: #172a2c;
}
.stage.playing .conditions-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  pointer-events: auto;
}
.stage.playing .conditions-link:focus-visible::after { outline: 3px solid #ffe1a4; outline-offset: 2px; }
/* A report reads top to bottom; its rows keep their intrinsic height at every viewport. */
.panel-content:has(.conditions-details) {
  display: block;
  padding: clamp(12px, 3vw, 20px);
}
.conditions-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.conditions-summary > div {
  min-width: 0; container-type: inline-size;
  padding: .65rem .6rem .7rem;
  border: 1px solid #385457;
  border-radius: 6px;
  background: linear-gradient(160deg, #1d3539, #172a30);
}
.conditions-summary dt {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  color: #b9d8d2; font-size: .73rem; font-weight: 600; line-height: 1.35;
}
.conditions-summary svg {
  width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.conditions-summary dd {
  margin: .32rem 0 0; color: #f0f5ed; font: 800 clamp(1.12rem, 25cqi, 1.65rem)/1.05 "Barlow Condensed", Inter, sans-serif;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.conditions-outlook {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem;
  padding: 1rem 0; border-bottom: 1px solid #344a4e;
}
.conditions-outlook dt { color: #b8c9c7; font-size: .75rem; line-height: 1.4; }
.conditions-outlook dd { margin: .2rem 0 0; font-size: .95rem; line-height: 1.45; }
.tide-window { padding: .9rem 0; }
.tide-window-heading, .tide-times {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .75rem;
}
.tide-window-heading h3 { margin: 0; font-size: .9rem; }
.tide-window-heading span { color: var(--gold); font-size: .84rem; font-weight: 600; }
.tide-window progress {
  appearance: none; display: block; width: 100%; height: .35rem; margin: .65rem 0 .45rem;
  border: 0; border-radius: 2rem; overflow: hidden; background: #2d4245; color: #79c9bb;
}
.tide-window progress::-webkit-progress-bar { background: #2d4245; }
.tide-window progress::-webkit-progress-value { background: #79c9bb; }
.tide-window progress::-moz-progress-bar { background: #79c9bb; }
.tide-times { color: #c0cecb; font-size: .75rem; line-height: 1.45; }
.conditions-sources { border-top: 1px solid #344a4e; }
.conditions-sources summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: .5rem 0; cursor: pointer;
  color: #dfeae6; font-size: .87rem; font-weight: 600; list-style: none;
}
.conditions-sources summary::-webkit-details-marker { display: none; }
.conditions-sources summary::after {
  content: ""; width: .5rem; height: .5rem; margin-right: .25rem;
  border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.conditions-sources[open] summary::after { transform: rotate(225deg); }
.conditions-sources summary:focus-visible, .conditions-details a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.conditions-details section {
  display: grid; grid-template-columns: minmax(6rem, .5fr) minmax(0, 1fr);
  gap: .25rem .75rem; padding: .6rem 0; border-top: 1px solid #293f43; overflow-wrap: anywhere;
}
.conditions-details h3 { margin: 0; font-size: .84rem; line-height: 1.45; }
.conditions-details p { margin: 0; font-size: .83rem; line-height: 1.5; }
.conditions-details a { display: inline-block; color: var(--accent); font-size: .78rem; line-height: 1.45; text-underline-offset: .17em; padding: .22rem 0; }
.panel-content .conditions-clock, .panel-content .conditions-missing { margin: .35rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.panel-content .conditions-missing { color: var(--gold); }
@media (max-width: 30rem) {
  .conditions-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conditions-details section { grid-template-columns: minmax(0, 1fr); }
}
@media (orientation: landscape) and (max-height: 470px) {
  dialog:has(.conditions-details) .panel-head { padding: 4px 14px; }
  dialog:has(.conditions-details) .panel-head > div > small { display: none; }
  dialog:has(.conditions-details) .panel-head h2 { font-size: 23px; margin: 0; }
  .panel-content:has(.conditions-details) { padding: .65rem .9rem 0; }
}
@container hud-card (max-width: 196px) {
  :is(.conditions-top, .position-header) .weather-icon { display: none; }
}
@container hud-card (max-width: 152px) {
  .hud-reading { column-gap: 4px; }
  .hud-reading :is(.conditions-link, .position-label) { font-size: .56rem; }
  .hud-reading > strong { font-size: 11px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .stage.playing .hud-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage.playing .position-readout, .stage.playing .full { grid-column: 2; }
  .stage.playing .action-hud {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(68%, 250px);
    transform: none;
  }
}
@media (orientation: portrait) {
  #coastal-summary, .stage .position-facts,
  .stage :is(.conditions-top, .position-header) .weather-icon { display: none; }
  .stage .conditions { display: grid; align-content: center; min-height: 44px; }
  .stage.playing .position-readout { justify-content: center; }
}
@media (orientation: portrait) and (pointer: coarse) and (max-width: 570px) {
  .topbar .utility button {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 0;
    margin: 0;
  }
}
@media (orientation: portrait) and (pointer: coarse) and (max-width: 460px) {
  .topbar .brand > span:last-child { display: none; }
}
@media (orientation: portrait) and (pointer: coarse) and (max-width: 374px) {
  .topbar { grid-template-columns: minmax(0, 1fr); padding-inline: 4px; }
  .topbar .brand { display: none; }
  .topbar .utility { width: 100%; gap: 0; }
  .topbar .utility button { flex: 1; min-width: 0; }
}
@media (orientation: landscape) and (max-height: 480px) and (pointer: coarse) {
  .stage[data-phase="fight"] .fishing-actions, .stage[data-phase="landing"] .fishing-actions {
    bottom: max(4px, var(--safe-bottom));
    gap: 3px;
  }
  .stage[data-phase="caught"] .fishing-actions {
    display: grid;
    width: min(288px, calc(100% - 138px));
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: max(3px, var(--safe-bottom));
    gap: 3px;
  }
  .stage[data-phase="caught"] .fishing-actions button { min-width: 0; min-height: 44px; padding: 3px; font-size: 12px; line-height: 1.15; }
  .stage[data-phase="caught"] .fishing-actions .action { max-width: none; }
}
.thumb-cue { display: none; }
@media (orientation: landscape) and (max-height: 280px) and (pointer: coarse) {
  .stage:is([data-phase="fight"], [data-phase="landing"], [data-phase="caught"]) .action-hud { padding: 4px; }
  .stage:is([data-phase="fight"], [data-phase="landing"], [data-phase="caught"]) .action-hud p,
  .stage:is([data-phase="fight"], [data-phase="landing"]) .action-hud h2 { display: none; }
  .stage .thumb-cue:not(:empty) { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: #fff1d6; }
  .stage .fight-info { flex-wrap: wrap; gap: 1px 3px; margin-top: 2px; }
  .stage .fight-spool { margin-top: 2px; }
  .stage[data-phase="landing"] .fishing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(260px, calc(100% - 137px));
  }
  .stage[data-phase="landing"] .landing-methods { grid-row: 1; grid-column: 1 / -1; flex-wrap: nowrap; gap: 3px; }
  .stage[data-phase="landing"] .landing-sight { grid-row: 2; grid-column: 1; align-self: end; padding: 3px; font-size: 10px; line-height: 1.1; }
  .stage[data-phase="landing"] .landing-track { height: 22px; }
  .stage[data-phase="landing"] .action { grid-row: 2; grid-column: 2; max-width: none; padding-inline: 4px; }
  .stage .action-hud .meter { height: 4px; margin: 3px 0 2px; }
  .stage .action-hud .fight-info, .stage .action-hud .fight-spool { font-size: 9px; line-height: 1.1; }
  .stage .action-hud .spool-track { display: none; }
  .stage[data-phase="landing"] .landing-sight { height: 44px; }
  .stage[data-phase="landing"] .rod-controls .action { height: 44px; min-height: 44px; }
}

dialog.king-panel[open] {
  --end-inset: max(16px, var(--panel-safe-block));
  display: flex;
  flex-direction: column;
  max-height: min(740px, calc(var(--panel-viewport-height) - var(--end-inset) - var(--end-inset)));
}
.king-panel .panel-head { flex: none; padding-block: 11px; }
.king-panel .panel-content { min-height: 0; display: block; overflow-y: auto; overscroll-behavior: contain; padding: 0; }
.king-panel .panel-content:not(:has(.king-guide)) { display: grid; padding: 14px 16px; }
#back-to-king { margin-left: auto; }
.king-guide { color: #e7efeb; }
.king-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid #354e50;
  background: #102127;
}
.king-steps li { display: flex; position: relative; align-items: center; gap: 6px; color: #a9bcb9; font-size: 12px; }
.king-steps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; margin: 0 9px 0 3px; background: #405959; }
.king-steps li > span {
  flex: 0 0 22px; display: grid; place-items: center; height: 22px; border-radius: 50%;
  border: 1px solid #546968; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.king-steps li[aria-current] { color: #f4cf94; }
.king-steps li[aria-current] > span { color: #152429; background: #edc489; border-color: #edc489; }
.king-steps li.complete { color: #a3d5bf; }
.king-steps li.complete > span { color: #b8e4d1; background: #23473e; border-color: #4b7363; }
.king-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.king-task, .king-equipment { min-width: 0; padding: clamp(14px, 2vw, 20px); }
.king-equipment { background: #13242a; border-left: 1px solid #354e50; }
.king-location { color: #b5cec6; text-transform: uppercase; letter-spacing: .1em; font: 700 11px/1.2 Inter, sans-serif; }
.king-panel .king-task h3 { margin: 6px 0 7px; color: #fff2db; font: 600 clamp(24px, 3vw, 31px)/1.08 "Barlow Condensed",sans-serif; }
.king-instruction { color: #d2dfd9; line-height: 1.48; font-size: 14px; margin: 0; }
.king-main-actions, .king-other-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: start; }
.king-main-actions:not(:empty) { margin-top: 15px; }
.king-other-actions:not(:empty) { border-top: 1px solid #395054; margin-top: 15px; padding-top: 13px; }
.king-other-actions > p, .king-main-actions > p, .king-main-actions > .king-outfit-picker { flex: 1 1 100%; margin: 0; }
.king-main-actions button, .king-other-actions button { min-height: 44px; height: auto; padding: 7px 12px; line-height: 1.25; }
.king-other-actions button { font-size: .82rem; }
.king-panel .king-equipment h3 { margin: 0 0 8px; font: 600 23px/1.15 "Barlow Condensed",sans-serif; color: #f2e8d4; }
.king-kit-list { list-style: none; padding: 0; margin: 0; display: grid; }
.king-kit-list > li { display: grid; align-items: center; grid-template-columns: 54px minmax(0,1fr); gap: 9px; padding: 7px 0; border-top: 1px solid #355057; }
.king-kit-art { position: relative; display: grid; place-items: center; width: 54px; height: 52px; border-radius: 7px; border: 1px solid #395457; background: radial-gradient(ellipse at 42% 28%, #344f50, #182d31 77%); }
.king-kit-art .inventory-picture { position: static; inset: auto; width: 50px; height: 50px; }
.king-kit-art:has(.inventory-picture + .inventory-picture) .inventory-picture { position: absolute; width: 41px; height: 41px; left: 0; top: 0; margin: 0; }
.king-kit-art:has(.inventory-picture + .inventory-picture) .inventory-picture + .inventory-picture { width: 32px; height: 32px; left: auto; top: auto; right: 0; bottom: 0; }
.king-item { min-width: 0; }
.king-component { display: flex; align-items: baseline; gap: 6px; }
.king-component small { flex-shrink: 0; color: #bdcec5; font-size: 10px; }
.king-item-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.king-item-title strong { font: 600 18px/1.1 "Barlow Condensed",sans-serif; color: #f3f3e7; }
.king-item-title small { color: #dbc69d; font: 600 10px/1.3 Inter,sans-serif; }
.king-item-link {
  display: block; width: fit-content; max-width: 100%; padding: 3px 1px; margin: 0; min-width: 0; min-height: 24px; text-align: left;
  color: #bbded8; border: 0; background: transparent; font: 600 12px/1.35 Inter,sans-serif;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #64918c; text-underline-offset: 2px;
}
.king-item-link:hover, .king-item-link:focus-visible { color: #fde1ab; }
.king-panel .king-item-detail { margin: 2px 0 0; color: #b3c8c4; font: 400 12px/1.35 Inter,sans-serif; }
.king-panel .king-outfit-picker { min-width: 0; grid-template-columns: minmax(0,1fr); margin: 0; }
.king-panel .king-outfit-picker label, .king-panel .king-outfit-picker select { min-width: 0; }
.king-panel .king-outfit-picker select { min-height: 43px; border: 1px solid #526b6b; border-radius: 6px; background: #14252a; color: #e6eeea; }
@media (max-width: 539px), (max-width: 690px) and (orientation: portrait) {
  .king-layout { grid-template-columns: minmax(0,1fr); }
  .king-equipment { border-left: 0; border-top: 1px solid #354e50; }
  .king-steps { padding: 11px 12px; }
  .king-steps li { flex-direction: column; gap: 4px; font-size: 10px; line-height: 1.2; }
  .king-steps li > span { flex: 0 0 21px; width: 21px; }
  .king-steps li:not(:last-child)::after { position: absolute; left: calc(50% + 14px); right: calc(-50% + 14px); top: 10px; margin: 0; }
  .king-main-actions button, .king-other-actions button { flex: 1 1 auto; }
}
@media (min-width: 691px), (min-width: 540px) and (orientation: landscape) {
  .king-panel .panel-content:has(.king-guide), .king-guide { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .king-steps { flex: none; }
  .king-layout { min-height: 0; grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); grid-template-rows: minmax(0,1fr); }
  .king-task, .king-equipment { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}
@media (orientation: landscape) and (max-height: 470px) {
  .king-panel .panel-head { padding: 4px 12px; }
  .king-panel .panel-head > div > small { display: none; }
  .king-panel .panel-head h2 { margin: 0; font-size: 22px; }
  .king-steps { padding: 6px 12px; }
  .king-task, .king-equipment { padding: 9px 12px; }
  .king-panel .king-instruction { margin: 4px 0; font-size: 13px; line-height: 1.35; }
  .king-task h3 { overflow-wrap: anywhere; }
  .king-main-actions:not(:empty), .king-other-actions:not(:empty), .king-rig-diagram { margin-top: 8px; }
  .king-steps li:not(:last-child)::after { margin-inline: 4px; }
}
.inventory-picture.tarpon-tackle-picture { display: grid; place-items: center; background: none; }
.inventory-picture.tarpon-tackle-picture::before {
  content: ""; width: 100%; aspect-ratio: 10 / 7; background-position: inherit; background-repeat: no-repeat;
  background-image: url("./assets/tarpon-tackle.webp?v=77a21b03b819e7e4"); background-size: 300% 200%;
}
.inventory-picture.coastal-tackle-picture { display: grid; place-items: center; background: none; }
.inventory-picture.coastal-tackle-picture::before {
  content: ""; width: 100%; aspect-ratio: 1; background-position: inherit; background-repeat: no-repeat;
  background-image: url("./assets/coastal-tackle.webp?v=ab3cefa4a217f8fb"); background-size: 400% 500%;
}
.king-kit-art > svg { width: 1.6rem; height: 1.6rem; color: #b3c9c4; }

.king-rig-diagram { margin-top: 1.15rem; border-top: 1px solid #345056; }
.king-rig-diagram summary { padding: .8rem 0; color: #c2dbd4; cursor: pointer; font-weight: 650; }
.king-rig-diagram summary:focus-visible { outline: 2px solid #efc17c; outline-offset: 2px; }
.king-rig-diagram canvas { display: block; width: 100%; height: auto; background: #11252a; border: 1px solid #314c50; border-radius: 6px; }

.catch-sheet { margin-top: 14px; color: #e2eae5; }
.catch-sheet h3 { margin: 0; }
.catch-sheet-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 0 0 12px; }
.catch-sheet-head h3 { font: 600 clamp(25px, 4.5vw, 36px)/1.1 "Barlow Condensed",sans-serif; }
.catch-sheet-head p { margin: 4px 0 0; color: #bacbc5; font-size: .87rem; overflow-wrap: anywhere; }
.catch-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }
.catch-size { display: grid; justify-items: end; white-space: nowrap; }
.catch-size strong { color: var(--gold); font: 600 27px/1.1 "Barlow Condensed",sans-serif; }
.catch-size span { color: #c7d7d0; font-size: .88rem; }
.catch-board-photo { margin: 0; overflow: hidden; border-radius: 6px; background: #263b3d; border: 1px solid #536762; aspect-ratio: 5 / 2; display: grid; place-items: center; }
.catch-board-photo canvas { display: block; width: 100%; height: auto; }
.catch-sheet .catch-muted, .catch-play-state { margin: 8px 0; color: #bdcec8; font-size: .9rem; }
.catch-sheet section { margin-top: 18px; }
.catch-sheet section h3 { font: 600 23px "Barlow Condensed",sans-serif; }
.catch-sheet dl { margin: 8px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.catch-sheet dl div { padding: 7px 0; border-top: 1px solid #3a5052; }
.catch-sheet dt { font: 500 .79rem Inter,sans-serif; color: #afc3bd; }
.catch-sheet dd { margin: 4px 0 0; font: 500 .93rem/1.35 Inter,sans-serif; overflow-wrap: anywhere; }
.catch-fight-stats dl { grid-template-columns: repeat(3,minmax(0,1fr)); }
.catch-fight-stats dd { color: #ecd6a6; }
.catch-plot { margin-top: 7px; overflow: hidden; padding: 9px 8px 0; border-radius: 5px; background: #101f24; }
.catch-plot-key { display: flex; justify-content: space-between; padding: 0 3px; color: #bed0c8; font-size: .82rem; }
.catch-plot svg { display: block; width: 100%; height: clamp(68px,13vw,108px); }
.replay-grid { stroke: #365051; stroke-width: 1; }
.replay-run { fill: #39544c; opacity: .55; }
.replay-trace { fill: none; stroke: #87d6c9; stroke-width: 2.8; vector-effect: non-scaling-stroke; }
.replay-cursor { stroke: #ffd48d; stroke-width: 1.5; }
.replay-dot { fill: #ffde9a; }
.catch-transport { margin: 6px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catch-transport .secondary { min-height: 38px; }
.catch-transport input { flex: 1 1 64px; min-width: 48px; accent-color: #e7bc76; cursor: pointer; }
.catch-transport output { font-size: .83rem; font-variant-numeric: tabular-nums; }
.catch-moments summary { width: fit-content; cursor: pointer; padding-block: 8px; color: #e9d29f; }
.catch-moments ol { list-style: none; padding: 0; margin: 0; }
.catch-moments button { width: 100%; padding: 8px 4px; text-align: left; border: 0; border-bottom: 1px solid #354c50; background: transparent; color: #daebe3; font: 500 .85rem/1.4 Inter,sans-serif; }

.rig-bench-link {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.85rem;
  width:100%; padding:.8rem .95rem; text-align:left; border:1px solid #55746a; border-radius:8px;
  background:linear-gradient(115deg,#2a443e,#193037); color:#f0efdf;
}
.rig-bench-link::after {content:""; width:.47rem; height:.47rem; border:solid #d3e5d7; border-width:2px 2px 0 0; transform:rotate(45deg);}
.rig-bench-link:hover,.rig-bench-link:focus-visible {border-color:#c3ddbb;}
.rig-entry-art {display:flex; align-items:center; isolation:isolate; padding-right:2px;}
.rig-entry-art .inventory-picture {position:relative; inset:auto; flex:none; width:clamp(34px,7.3vw,56px); height:auto; margin:0;
  border:1px solid #536c65; border-radius:6px; background-color:#20302e;}
.rig-entry-art .inventory-picture + .inventory-picture {margin-left:-11px;}
.rig-entry-art .inventory-picture:first-child {transform:rotate(-6deg);}
.rig-entry-art .inventory-picture:last-child {transform:rotate(5deg);}
.rig-entry-copy {display:grid; gap:.16rem;}
.rig-entry-copy strong {font:700 1.35rem/1.1 "Barlow Condensed",sans-serif;}
.rig-entry-copy small {color:#c2d7cf; font-size:.82rem; line-height:1.4;}
.rig-bench {display:grid; gap:1rem; min-width:0; padding-bottom:.3rem;}
.rig-bench > .inventory-back {justify-self:start; margin:0;}
.rig-summary {
  overflow:hidden; padding:clamp(.8rem,2vw,1.3rem); border:1px solid #52685f;
  border-radius:12px; background:linear-gradient(120deg,#263f3c,#172d31 70%);
}
.rig-bench .rig-summary h3 {margin:0; color:#f4eddb; font-size:1.35rem;}
.rig-detail,.rig-advice,.rig-status {margin:.35rem 0; font-size:.89rem; line-height:1.4;}
.rig-summary .rig-detail,.rig-summary .rig-edit-instruction,.rig-summary .rig-field-hint,.rig-saved .rig-save-hint {color:#c6d8d1; font-size:.85rem; margin:.25rem 0;}
.rig-summary .rig-edit-instruction {margin-top:.9rem;}
.rig-assembly {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; list-style:none;
  padding:0; margin:.55rem 0 .7rem; position:relative;
}
.rig-part {display:flex; min-width:0;}
.rig-part-control {width:100%; min-width:0; min-height:44px; display:flex; flex-direction:column; align-items:center;
  gap:.15rem; padding:.3rem .12rem .42rem; text-align:center; border-radius:6px; background:#1b302f; border:1px solid #4a625e;}
.rig-part-control:hover,.rig-part-control:focus-visible {border-color:#bdcfc3;}
.rig-part-control[aria-pressed="true"] {border-color:#e4c47e; background:#353c31; box-shadow:inset 0 -3px #e4c47e;}
.rig-part .inventory-picture,.rig-leader-art,.rig-missing-art {
  display:block; position:relative; inset:auto; width:min(70px,100%); height:auto; aspect-ratio:1;
  margin:0;
}
.rig-part-label {margin-top:.15rem; color:#c1d2c9; font-size:.78rem; line-height:1.15;}
.rig-part strong {font-size:.91rem; line-height:1.2; color:#f3e9ce;}
.rig-leader-art::before,.rig-leader-art::after {
  content:""; position:absolute; top:28%; left:16%; width:64%; height:40%;
  border:1.5px solid #e3e9d8; border-radius:50%; transform:rotate(-22deg);
  box-shadow:0 2px 0 #97aaa0,0 4px 0 #657d75;
}
.rig-leader-art::after {top:60%; left:61%; width:26%; height:12%; border-width:1px 0 0; box-shadow:none; transform:rotate(28deg);}
.rig-readings {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4rem; margin:0; padding-top:.8rem; border-top:1px solid #52645b;}
.rig-readings dt,.rig-bench label > span {font-size:.85rem; color:#c4d3cb;}
.rig-readings dd {margin:.2rem 0 0; color:#f2e4bd; font-variant-numeric:tabular-nums; font-weight:650;}
.rig-fields {display:grid; gap:.15rem; margin-bottom:.9rem;}
.rig-bench label {display:grid; gap:.35rem; min-width:0;}
.rig-bench input,.rig-bench select {width:100%; max-width:100%; min-width:0; min-height:44px; box-sizing:border-box; color:#f1eee0; background-color:#15272b; border:1px solid #63796e; border-radius:6px; padding:.5rem; font-size:1rem;}
.rig-actions {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.35rem .75rem;}
.rig-actions .primary {min-height:44px; margin:0;}
.rig-readiness {color:#f1d49c; font-size:.95rem;}
.rig-readiness[data-ready="true"] {color:#aedac3;}
.rig-actions .rig-advice {grid-column:1/-1; margin:0; color:#ebd395;}
.rig-bench .rig-status {grid-column:1/-1; margin:0; color:#e7d8b2;}
.rig-status:empty {display:none;}
.rig-saved {display:grid; gap:.65rem; border-top:1px solid #465853; padding-top:.9rem;}
.rig-bench .rig-saved h3 {margin:0; color:#f3eddd;}
.rig-preset-controls {display:flex; flex-wrap:wrap; align-items:end; gap:.5rem;}
.rig-preset-controls label {flex:1 1 12rem;}
.rig-preset-controls button {min-height:42px;}
@media(max-width:480px) {
  .rig-fields {grid-template-columns:minmax(0,1fr);}
  .rig-assembly {gap:3px;}
  .rig-part-label {font-size:.75rem;}
  .rig-part strong {font-size:.79rem;}
  .rig-readings dd {font-size:.87rem;}
}

.model-card .lure-trial-controls[hidden], .model-card .trial-readout[hidden], .model-card .model-controls button[hidden] { display:none }
.lure-trial-controls { padding: .7rem .9rem .85rem; border-top: 1px solid #435655; background: #182b2c; }
.lure-trial-controls .trial-cue { margin: 0 0 .6rem; color: #e2eae2; font-size:.94rem; }
.trial-buttons { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.trial-buttons button {
  touch-action:none;
  user-select:none;
  min-height:42px;
  padding:6px 12px;
  border:1px solid #526f70;
  border-radius:6px;
  color:#e9f0e8;
  background:#274044;
  font-family:inherit;
  font-size:.86rem;
  font-weight:600;
  line-height:1.2;
}
.trial-buttons button:hover { background:#345256; }
.trial-buttons button:disabled { opacity:.52; }
.trial-buttons button[aria-pressed="true"] { background:#ccdbad; color:#17251d; }
.trial-buttons kbd { margin-inline-start:.3em; }
.trial-outfit { display:block; color:#bdd0c8; margin-top:.55rem; }
.model-stage .trial-readout { position:absolute; inset:.65rem auto auto .7rem; padding:.3rem .55rem; border-radius:.3rem; background:#102927eb; color:#edf5e9; font:600 .81rem/1.3 system-ui,sans-serif; font-variant-numeric:tabular-nums; pointer-events:none; }
.model-card.trial-open .model-stage { position:relative; overflow:hidden; }
.model-card.trial-open .model-stage canvas { cursor:default; }
.model-card .model-controls .model-detail { white-space:normal; font-size:.8rem; }
@media (hover:none) { .trial-buttons kbd { display:none; } }
@media (orientation:landscape) and (max-height:470px) {
  dialog:has(.model-card) .panel-head { padding:4px 12px; }
  dialog:has(.model-card) .panel-head > div > small { display:none; }
  dialog:has(.model-card) .panel-head h2 { margin:0; font-size:22px; }
  .model-card.trial-open {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
    grid-template-rows:auto 1fr;
  }
  .trial-open .model-stage {
    grid-area:1 / 1 / 3 / 2;
    height:100%;
    min-height:180px;
  }
  .trial-open .model-caption, .trial-open .lure-trial-controls {
    grid-column:2;
    padding:.42rem .6rem;
    border-left:1px solid #435655;
  }
  .trial-open .model-caption { border-top:0; gap:.25rem; }
  .trial-open .model-caption > div:first-child { flex:1 1 8rem; }
  .trial-open .model-caption small { margin-top:0; }
  .trial-open .model-controls button { height:34px; }
  .lure-trial-controls .trial-cue { font-size:.84rem; line-height:1.28; margin-bottom:.4rem; }
  .trial-buttons { gap:.25rem; }
  .trial-buttons button { min-height:35px; padding:4px 7px; }
  .trial-outfit { font-size:.75rem; margin-top:.4rem; }
}

dialog.catch-detail-panel { width: min(750px, calc(100% - var(--side-inset,12px) - var(--side-inset,12px))); }
.catch-detail-panel .catch-back { min-height: 34px; padding: 5px 10px; font-size: .85rem; }
@media (min-width: 650px) {
  .catch-sheet { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(0,.85fr); gap: 12px 20px; }
  .catch-sheet-head, .catch-board-photo, .catch-archive-note { grid-column: 1; }
  .catch-sheet-head { padding: 0; }
  .catch-board-photo, .catch-archive-note { grid-row: 2; align-self: start; }
  .catch-sheet .catch-outfit { grid-column: 2; grid-row: 1 / 3; padding-left: 16px; border-left: 1px solid #395052; }
  .catch-sheet .catch-outfit dl { grid-template-columns: minmax(0,1fr); gap: 0; }
  .catch-sheet .catch-outfit dl div { padding: 4px 0; }
  .catch-sheet .catch-outfit dd { margin: 1px 0 0; font-size: .85rem; }
  .catch-sheet .catch-fight-stats, .catch-sheet .catch-replay { grid-column: 1 / -1; }
  .catch-sheet section, .catch-sheet dl { margin-top: 0; }
}
@media (orientation: landscape) and (max-height: 470px) {
  .catch-detail-panel .panel-head { padding: 4px 14px; }
  .catch-detail-panel .panel-head > div > small { display: none; }
  .catch-detail-panel .panel-head h2 { font-size: 23px; margin: 0; }
  .catch-detail-panel .panel-content { padding: 9px 14px; }
  .catch-sheet { margin-top: 7px; }
  .catch-sheet-head h3 { font-size: 25px; }
}

.settings-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #385156;
  border-radius: 9px;
  background: #172a30;
}
.settings-group > h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .7rem .9rem;
  border-bottom: 1px solid #334c50;
  background: #1c3238;
  color: #d9e9e3;
  font-size: .9rem;
}
.settings-group svg, .settings-link svg {
  width: 1.14rem; height: 1.14rem; flex: none;
  fill: none; stroke: #9dcfc2; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.settings-group .setting {
  margin: 0; padding: .8rem .9rem;
  grid-template-columns: minmax(0, 1fr) auto;
}
.settings-group .setting + .setting, .settings-group .settings-link + .settings-link { border-top: 1px solid #30474c; }
.settings-group .setting label {
  display: grid;
  grid-template-columns: 1.14rem minmax(0, 1fr);
  align-items: start;
  gap: .7rem;
  font-size: .9rem;
  cursor: pointer;
}
.settings-group .setting label svg { margin-block-start: .05rem; }
.settings-group .setting small, .settings-link small { font-size: .78rem; font-weight: 400; color: #bed0cc; }
.settings-group > .secondary { margin: .2rem .9rem .8rem; }
.settings-link {
  display: flex; align-items: center; width: 100%; min-height: 48px;
  gap: .7rem; border: 0; background: transparent; padding: .7rem .9rem;
  color: var(--ink); text-align: left; cursor: pointer;
}
.settings-link:hover, .settings-link:focus-visible { background: #223b40; }
.settings-link:focus-visible { outline-offset: -3px; }
.settings-link > span:first-of-type { flex: 1; min-width: 0; }
.settings-link strong, .settings-link small { display: block; line-height: 1.45; }
.settings-link strong { font-size: .9rem; }
.settings-link > span:last-child { color: var(--accent); font-size: 1.35rem; }
.release-report, .release-history {
  background: #172a30; border: 1px solid #385156; border-radius: 9px; overflow: hidden;
}
.release-report header, .archived-release[open] > summary {
  padding: .95rem 1rem; background: #1c3439; border-inline-start: 3px solid var(--gold);
}
.release-report .release-date {
  margin: 0 0 .45rem; display: flex; align-items: baseline; flex-wrap: wrap;
  justify-content: space-between; gap: .2rem .8rem; color: #bfd2ce; font-size: .78rem;
}
.release-date span { font-weight: 700; color: var(--gold); }
.release-report h3, .archived-release[open] > summary > span {
  margin: 0; font: 800 1.65rem/1.05 "Barlow Condensed", sans-serif;
}
.release-category { padding: .8rem 1rem; border-top: 1px solid #344e53; }
.release-category h4 { margin: 0 0 .4rem; color: var(--gold); font: 700 1.12rem/1.2 "Barlow Condensed", sans-serif; }
.release-category ul { margin: 0; padding-inline-start: 1.15rem; font-size: .9rem; line-height: 1.5; }
.release-category li + li { margin-top: .35rem; }
.release-category li::marker { color: #80a69f; }
.release-category strong { color: #edf3ea; }
.archived-release li > strong { display: block; }
.release-history > h3 {
  margin: 0; padding: .75rem 1rem; background: #1c3238; font-size: 1rem;
}
.release-history details { border-top: 1px solid #344e53; }
.archived-release > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  min-height: 44px; gap: .2rem .85rem; padding: .7rem 1rem; list-style: none; cursor: pointer;
}
.archived-release > summary::-webkit-details-marker { display: none; }
.archived-release > summary > span { grid-column: 1; font: 700 1.15rem/1.16 "Barlow Condensed", sans-serif; }
.archived-release > summary > time { grid-column: 1; color: #bfd2ce; font-size: .78rem; }
.archived-release > summary::after {
  content: ""; grid-column: 2; grid-row: 1 / 3; width: .5rem; height: .5rem; margin-inline-end: .2rem;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.archived-release[open] > summary::after { transform: rotate(225deg); }
.archived-release > summary:is(:hover, :focus-visible) { background: #223b40; }
.archived-release > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.inbox-card h3 { margin: 0; color: var(--ink); font: 700 1.35rem/1.16 "Barlow Condensed", sans-serif; }
.release-report p, .feedback-form > p, .inbox-card p { font-size: .9rem; line-height: 1.5; margin: 0; }
.feedback-back { justify-self: start; }
.feedback-area { min-width: 0; }
.feedback-form, .inbox-list { display: grid; gap: .85rem; }
.feedback-form label { display: grid; gap: .3rem; color: #dce9e4; font-weight: 600; font-size: .86rem; }
.feedback-form :is(select,input,textarea) {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: .58rem .65rem;
  border: 1px solid #567073; border-radius: 5px; color: var(--ink); background: #14292f;
  font: inherit; font-size: 1rem; font-weight: 400;
}
.feedback-form textarea { resize: vertical; }
.feedback-form :is(select,input,textarea):focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.feedback-form .primary { justify-self: end; }
#panel-content:has(.release-report) > .primary { justify-self: end; }
.feedback-status, .feedback-success { color: var(--accent); font-size: .88rem; line-height: 1.45; }
.feedback-status:empty { display: none; }
.inbox-card { display: grid; gap: .55rem; min-width: 0; padding: .9rem 1rem; background: #17282e; border: 1px solid #40565b; border-radius: 8px; overflow-wrap: anywhere; }
.inbox-card[data-unread="true"] { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.inbox-card-header, .inbox-byline { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.inbox-card-header { justify-content: space-between; }
.inbox-card-header small, .support-device { color: #b7cbc7; font-size: .78rem; line-height: 1.4; }
.inbox-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-line; color: #cbd9d7; }
.inbox-byline .board-angler { max-width: 100%; margin: 0; }
.support-device { display: inline-flex; align-items: center; gap: .32rem; }
.support-device svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.inbox-card .request-links { margin-top: .1rem; border-top: 1px solid #34494e; padding-top: .6rem; }
.inbox-card .request-links button { min-height: 44px; }
.feedback-area > .secondary { margin-top: .75rem; }
.suggestion-inbox { display: grid; gap: .8rem; }
.suggestion-inbox > .secondary { justify-self: start; margin: 0; }
.suggestion-inbox .guide-mode svg { width: 1rem; height: 1rem; flex: none; }
.inbox-tally {
  min-width: 1.6em; padding: .1rem .36rem; border-radius: 1rem;
  background: #283d42; font-size: .75rem; font-variant-numeric: tabular-nums;
}
[aria-selected="true"] .inbox-tally { background: #514831; }
.inbox-card .inbox-reviewed { margin-top: .65rem; color: #a6c6bf; font-size: .76rem; }

.request-links,.request-flags {display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}
.request-links button {min-height:42px;margin:0}
.request-flags .request-state,.request-thread .request-state,.request-unread {display:inline-block;margin:0;padding:.18rem .5rem;border:1px solid #415c60;border-radius:6px;font-size:.75rem;font-weight:650;color:#d2e0dd}
.request-flags .request-unread {color:#f8df9b;background:#423b29;border-color:#78663c}
.request-thread {display:grid;gap:.85rem}
.request-thread > header {display:grid;justify-items:start;gap:.35rem}
.request-thread h3 {margin:0;overflow-wrap:anywhere;font-size:1.22rem}
.request-thread .request-category {font-size:.77rem;color:#9cbab7;margin:0}
.request-history {display:grid;gap:.52rem;list-style:none;margin:0;padding:0}
.request-message {border:1px solid #344e53;border-radius:8px;padding:.8rem .9rem;background:#172a30;overflow-wrap:anywhere}
.request-message header {display:flex;align-items:baseline;justify-content:space-between;gap:.25rem .8rem;flex-wrap:wrap}
.request-message strong {font-size:.88rem}
.request-message time {color:#adc2c0;font-size:.73rem}
.request-message p {margin:.45rem 0 0;line-height:1.52;font-size:.93rem;white-space:pre-wrap}
.request-staff {border-inline-start:3px solid #c6aa68;background:#203034}
.request-staff strong {color:#f0d298}
.request-thread .request-reply {padding-top:.35rem;gap:.55rem}
.inbox-card > .board-angler { margin-bottom:.45rem; }
.request-message header { align-items:center; }
.request-flags .request-new { color:#d4eaff; border-color:#486884; background:#20394c; }
.request-flags .request-followup { color:#ffe8af; border-color:#8e7040; background:#403728; }
.request-flags .request-responded { color:#cdf4de; border-color:#4c7763; background:#223e34; }
.request-flags .request-closed { color:#e4d9ff; border-color:#70638a; background:#352f46; }
.support-contact { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .5rem; max-width:100%; padding-top:.35rem; color:#ccdcda; font-size:.8rem; }
.support-contact svg { width:1rem; height:1rem; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; }
.support-contact span { font-weight:650; }
.support-contact a { color:#a9ddd2; text-underline-offset:.15em; overflow-wrap:anywhere; }


.seafood-market-panel { width: min(38rem, calc(100% - 1.5rem)); }
.seafood-market-panel .panel-content { gap: .85rem; }
.seafood-counter {
  padding: .8rem 1rem .95rem; border: 1px solid #4c6966; border-radius: 9px;
  background: linear-gradient(115deg,#234744,#193333 64%,#1a3032); color: #f4eee0;
}
.seafood-counter-location { display: flex; align-items: center; gap: .4rem; color: #b4d0c6; font-size: .76rem; }
.seafood-counter-location svg, .fish-market-board summary svg {
  width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.seafood-counter dl { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); margin: .65rem 0 0; }
.seafood-counter dl > div + div { border-left: 1px solid #4f6864; padding-left: 1.15rem; }
.seafood-counter dt { color: #bed2c9; font-size: .76rem; }
.seafood-counter dd { margin: .2rem 0 0; font: 700 1.6rem/1.04 "Barlow Condensed",sans-serif; font-variant-numeric: tabular-nums; }
.seafood-counter dl > div:first-child dd { color: #ffdc98; }
.market-list-title { color: #edf2eb; font: 700 1.15rem/1.1 "Barlow Condensed",sans-serif; }
.seafood-market-panel .market-list {
  overflow: hidden; border: 1px solid #385153; border-radius: 8px; background: #172a2d;
}
.seafood-market-panel .market-row {
  grid-template-columns: minmax(0,1fr) auto; gap: .65rem; padding: .4rem .7rem;
}
.seafood-market-panel .market-row:last-child { border-bottom: 0; }
.seafood-market-panel .market-row > .secondary { min-height: 44px; color: #f3d59a; border-color: #596659; }
.market-species-button { appearance: none; min-height: 44px; border: 0; padding: .35rem 0; text-align: start; background: transparent; color: #f1eee2; }
.market-species-button strong { font-weight: 600; line-height: 1.3; }
.market-species-button strong::after { content: "›"; margin-inline-start: .35em; color: #87c6b6; }
.market-species-button:hover strong, .market-species-button:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.market-owned-fish small { display: block; margin-top: .2rem; color: #aec3bc; font-size: .77rem; line-height: 1.4; }
.fish-market-board { overflow: hidden; border: 1px solid #405d59; border-radius: 9px; background: #152a2d; }
.fish-market-board summary { display: flex; gap: .55rem; align-items: center; min-height: 48px; padding: .55rem .8rem; cursor: pointer; }
.fish-market-board summary svg { color: #a3cfb9; }
.fish-market-board summary small { margin-inline-start: auto; color: #adc2b9; font-size: .74rem; }
.fish-market-board summary::after { content: "⌄"; margin-inline-start: .1rem; }
.fish-market-board[open] summary::after { transform: rotate(180deg); }
.fish-market-board summary::-webkit-details-marker { display: none; }
.fish-market-board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fish-market-board caption { padding: 0 .8rem .65rem; color: #b2c8be; text-align: start; font-size: .78rem; }
.fish-market-board :is(th,td) { padding: .15rem .55rem; border-top: 1px solid #334b4a; text-align: end; font-size: .8rem; }
.fish-market-board thead th { padding-block: .4rem; color: #a9c4b9; font-size: .68rem; font-weight: 600; background: #1c3837; }
.fish-market-board th:first-child { text-align: start; }
.fish-market-board tbody tr { cursor: pointer; }
.fish-market-board tbody tr:hover, .fish-market-board tbody tr:focus-within { background: #213b3b; }
.fish-market-board td { white-space: nowrap; color: #b3c7be; font-size: .78rem; }
.fish-market-board td:nth-child(2) { color: #f4d592; font-weight: 650; }
.market-unit-price { white-space: nowrap; }
.market-direction { display: inline-flex; align-items: center; gap: .25em; color: #b5c4bf; white-space: nowrap; vertical-align: baseline; }
.market-direction-up { color: #83dfab; }
.market-direction-down { color: #ff9b96; }
.market-direction svg { width: 1em; height: 1em; align-self: center; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.market-direction-down svg { transform: rotate(180deg); }
.market-direction[role="img"] { margin-inline-start: .22em; vertical-align: -.12em; }
.fish-market-board > :is(p,button) { margin: .6rem .8rem; }
.market-board-note { color: #a8c0b8; font-size: .75rem; }
.market-species-detail { display: grid; gap: .8rem; min-width: 0; }
.market-back { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; }
.market-back::before { content: "‹"; color: #abd6c5; font-size: 1.3rem; line-height: 1; }
.market-fish-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .6rem; }
.market-fish-header h3 { margin: 0; font: 700 1.85rem/1 "Barlow Condensed",sans-serif; color: #f6efe1; }
.market-fish-header i { display: block; margin-top: .25rem; color: #b4c8bf; font-size: .8rem; }
.market-fish-header p { margin: 0; text-align: end; }
.market-fish-header strong { display: block; color: #ffda94; font: 700 1.7rem/1 "Barlow Condensed",sans-serif; }
.market-fish-header small { color: #b7c9be; font-size: .69rem; }
.market-portrait {
  display: grid; place-items: center; margin: 0; padding: .8rem 1.6rem; border: 1px solid #90aca1;
  min-height: 7rem; height: clamp(7rem, 22vh, 11.5rem); overflow: hidden; border-radius: 8px;
  background: radial-gradient(ellipse at 42% 20%,#edf1db 2%,#c2d3bf 59%,#90afa5 100%);
}
.market-portrait canvas { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 4px 4px #294e493e); }
.market-portrait-status { margin: 0; color: #304c45; font-size: .85rem; text-align: center; }
.market-price-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border: 1px solid #3b5753; border-radius: 7px; background: #182b2e; }
.market-price-facts > div { padding: .55rem .7rem; }
.market-price-facts > div + div { border-left: 1px solid #3b5753; }
.market-price-facts dt { color: #b0c7bb; font-size: .72rem; }
.market-price-facts dd { margin: .18rem 0 0; color: #e8ece2; font-weight: 650; font-size: .93rem; }
.market-history { padding: .7rem .8rem; border: 1px solid #3b5753; border-radius: 8px; background: #16282b; }
.market-history header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .6rem; }
.market-history h3 { margin: 0; font: 700 1.25rem/1.1 "Barlow Condensed",sans-serif; }
.market-history-periods { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #3a514b; border-radius: 6px; background: #112124; }
.market-range-button { min-height: 38px; min-width: 44px; padding: .3rem .6rem; border: 0; border-radius: 4px; color: #bbcec3; background: transparent; font-size: .78rem; font-weight: 600; }
.market-range-button[aria-pressed=true] { background: #36594f; color: #f4f2da; }
.market-chart { margin: .9rem 0 0; }
.market-chart-grid { display: grid; grid-template-columns: 3.15rem minmax(0,1fr); gap: .4rem; padding-block: .2rem; }
.market-y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .71rem; color: #b5c9be; font-variant-numeric: tabular-nums; }
.market-chart-plot { position: relative; height: clamp(72px,12vh,110px); margin-right: 4px; border-block: 1px solid #496158; background: linear-gradient(transparent calc(50% - .5px),#344c44 50%,transparent calc(50% + .5px)); }
.market-chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.market-chart-plot path { fill: none; stroke: #8fd3af; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.market-chart-plot i { position: absolute; width: 8px; height: 8px; border: 1px solid #fff0c6; border-radius: 50%; transform: translate(-50%,-50%); background: #dbab61; }
.market-x-axis { display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0 0 3.55rem; font-size: .65rem; color: #b5c9be; }
.market-x-axis span:last-child { text-align: end; }
.market-x-axis span:only-child { flex: 1; text-align: center; }
.market-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem .7rem; flex-wrap: wrap; margin-top: .65rem; font-size: .79rem; }
.market-chart figcaption strong { color: #f5d69a; }
.market-chart figcaption time { color: #c1cfc3; }
.market-chart input[type=range] { width: 100%; height: 32px; margin: .25rem 0; accent-color: #b9d7b7; }
.market-history-status { margin: .7rem 0; font-size: .81rem; line-height: 1.4; color: #b4c7bf; }
.market-history-records { margin-top: .5rem; border-top: 1px solid #394f49; }
.market-history-records summary { min-height: 44px; padding: .7rem 0; color: #c8dad0; font-size: .8rem; cursor: pointer; }
.market-history-records dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .3rem .5rem; font-size: .76rem; margin: 0; }
.market-history-records dt { color: #b5c9bf; }
.market-history-records dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) {
  .seafood-market-panel #panel-title { font-size: 1.35rem; }
  .seafood-market-panel .panel-content { padding-inline: .7rem; }
  .fish-market-board :is(th,td) { padding-inline: .32rem; }
  .market-price-facts > div { padding: .45rem .4rem; }
  .market-history { padding-inline: .55rem; }
  .market-chart-grid { display: block; position: relative; padding-block: .95rem; }
  .market-y-axis { position: absolute; inset: 0 auto 0 0; }
  .market-chart-plot { margin-inline: 3px; }
  .market-x-axis { padding-inline-start: 0; }
}
@media (orientation: portrait) and (max-width: 460px) {
  .topbar { grid-template-columns: minmax(0,1fr); padding-inline: 4px; }
  .topbar .brand { display: none; }
  .topbar .utility { width: 100%; gap: 0; }
  .topbar .utility button { min-width: 0; flex: 1; }
}

/* Inventory sections and shop destinations share the compact game menu. */
.panel-sections, .auction-tabs, .community-tabs {
  display: grid;
  grid-template-columns: repeat(var(--section-tab-count, 3), minmax(0, 1fr));
  flex: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid #385258;
  border-radius: 8px;
  background: #112126;
}
.panel-sections, #panel-content:has(#community-chat-page) {
  margin: 9px clamp(10px, 3vw, 21px) 0;
}
#panel-content:has(#community-chat-page) {
  padding-block-start: 0;
  padding-inline: 0;
}
:is(.panel-sections, .auction-tabs, .community-tabs) button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .35rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #b7cac6;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
}
:is(.panel-sections, .auction-tabs, .community-tabs) [aria-selected="true"] { background: #253d40; border-color: #456361; color: #faf3dd; }
:is(.panel-sections, .auction-tabs, .community-tabs) svg { width: 18px; height: 18px; flex: none; }

.outfit-library { display: grid; gap: .7rem; }
.outfit-library-heading { display: flex; align-items: baseline; justify-content: space-between; margin-top: .55rem; }
.outfit-library-heading h3, .saved-outfit-info h4 { margin: 0; font: 700 1.4rem/1.15 "Barlow Condensed", sans-serif; color: #f3efdb; }
.outfit-library-heading span, .saved-outfit-info small, .saved-outfit-status { color: #bed2cc; font-size: .8rem; }
.outfit-library-empty { margin: 0; padding: 1rem; border: 1px dashed #466561; border-radius: 8px; color: #c5d7d0; }
.saved-outfit-card { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: .5rem .8rem;
  padding: .85rem; border: 1px solid #405a58; border-radius: 9px; background: #172a2c; }
.saved-outfit-card > .inventory-picture { position: relative; inset: auto; width: 58px; height: 55px; margin: 0; }
.saved-outfit-info { min-width: 0; overflow-wrap: anywhere; }
.saved-outfit-info p { margin: .25rem 0; font-size: .88rem; color: #e0e9df; }
.saved-outfit-actions { display: flex; gap: .4rem; }
.saved-outfit-actions button { min-height: 44px; }
.saved-outfit-status { grid-column: 1 / -1; }
.saved-outfit-status:empty { display: none; }
.secondary-outfits .outfit-library-intro {margin:0;color:#c5d7d0;font-size:.9rem;line-height:1.5}
.secondary-outfits .saved-outfit-card {grid-template-columns:minmax(75px,auto) minmax(0,1fr)}
.secondary-outfits .rig-entry-art .inventory-picture {width:clamp(28px,5vw,46px)}
.secondary-outfits .saved-outfit-actions {grid-column:1/-1}
.secondary-outfits .saved-outfit-actions button {width:100%}

@media (max-width: 650px) {
  .saved-outfit-card { grid-template-columns: 48px minmax(0,1fr); }
  .saved-outfit-card > .inventory-picture { width: 48px; }
  .saved-outfit-actions { grid-column: 1 / -1; }
  .saved-outfit-actions button { flex: 1; }
}
@media (max-width: 380px) {
  :is(.panel-sections, .auction-tabs, .community-tabs) button { gap: .22rem; padding-inline: .12rem; font-size: .77rem; white-space: nowrap; }
  :is(.panel-sections, .auction-tabs, .community-tabs) svg { width: 15px; height: 15px; }
}

#shops-back {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  margin: -8px 0 0 -5px;
  padding: 4px 6px;
  min-height: 36px;
  color: #dfc396;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: .83rem;
  font-weight: 650;
}
#shops-back svg { width: 14px; height: 14px; }
#shops-back:hover, #shops-back:focus-visible { background: #29393a; }
.shop-directory { display: grid; gap: .8rem; }
.shop-destination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 2.4vw, 1.1rem);
  width: 100%;
  min-height: 96px;
  padding: clamp(.8rem, 3vw, 1.2rem);
  text-align: start;
  color: #f5edda;
  background: #262e2d;
  border: 1px solid #625b49;
  border-radius: 9px;
}
.shop-destination[data-destination="outdoors"] { background: #212f3a; border-color: #495f6f; }
[data-destination="outdoors"] .destination-icon { background: #2b4051; color: #bdd8ed; border-color: #516f83; }
.shop-destination[data-destination="market"] { background: #18302f; border-color: #446761; }
.shop-destination:is(:hover,:focus-visible) { border-color: #e0bd83; }
.shop-destination[data-destination="market"]:is(:hover,:focus-visible) { border-color: #8dc2ae; }
.destination-icon { display: grid; place-items: center; width: clamp(40px, 9vw, 52px); aspect-ratio: 1; border: 1px solid #786b50; border-radius: 9px; background: #3a392e; color: #efd09a; }
[data-destination="market"] .destination-icon { border-color: #507c70; background: #234640; color: #b5daca; }
.destination-icon svg { width: 55%; height: 55%; }
.destination-copy { display: grid; gap: .34rem; }
.destination-copy strong { white-space: nowrap; font: 700 clamp(1.25rem, 3vw, 1.55rem)/1.06 "Barlow Condensed", sans-serif; }
.destination-copy small { color: #c4cfca; font-size: .83rem; line-height: 1.4; }
.destination-arrow { color: #b6c6bf; font-size: 1.6rem; }
@media (orientation: portrait) and (max-width: 460px) {
  .topbar .utility { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .topbar .utility button { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 44px; margin: 0; padding: 3px 0; }
  .topbar .utility button > span:not(.count):not(.shop-balance) { display: block; position: static; clip-path: none; width: auto; height: auto; overflow: visible; font-size: 10px; line-height: 1.15; }
  .topbar .utility .count { position: absolute; inset: 1px 1px auto auto; }
  .topbar .utility #shop-balance { display: none; }
}

.outdoors-counter { border-color: #536d80; background: linear-gradient(112deg,#263e50,#182d39); }
.outdoors-counter > span:first-child > small { color: #b7d3e6; }
.pier-shop-counter { border-color: #65705d; background: linear-gradient(112deg,#314738,#203335); }

.journal-pages { display: grid; gap: .7rem; min-width: 0; }
.journal-paging { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.journal-range { flex: 1 1 auto; margin: 0; color: #d0e1dc; font: 600 .85rem/1.4 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.journal-paging button { min-height: 44px; padding: .45rem .7rem; font-size: .85rem; }
.journal-paging button:disabled { opacity: .46; }
@media (max-width: 420px) {
  .journal-range { flex-basis: 100%; }
  .journal-paging button { flex: 1; }
}

.journal-outstanding:empty, .journal-storage-warning[hidden] { display: none; }
.journal-storage-warning { flex: none; margin: 0; padding: .5rem 1rem; background: #352f23; color: #ffe3a8; text-align: center; font-size: .85rem; }
.journal-pending-note { margin: 0; color: #cbdad4; font-size: .85rem; line-height: 1.45; }
.journal-unsynced[open] { padding: 0 .75rem .75rem; }
.journal-unsynced[open] > * + * { margin-top: .5rem; }
.journal-guide.journal-unsynced button.journal-record { display: grid; width: 100%; }

#panel:has(#shops-back:not([hidden])) #panel-title {
  white-space: nowrap;
  font: 700 clamp(1.25rem, 5.3vw, 1.75rem)/1.12 "Barlow Condensed", sans-serif;
}
@media (max-width: 460px) {
  #panel:has(#shops-back:not([hidden])) #back-to-king:not([hidden]) { order: 1; flex-basis: 100%; }
  .shop-destination {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    column-gap: .55rem; row-gap: .22rem; padding: .7rem;
  }
  .destination-copy { display: contents; }
  .destination-icon { grid-column: 1; grid-row: 1 / 3; width: 2rem; }
  .destination-copy strong { grid-column: 2 / -1; grid-row: 1; align-self: end; font-size: clamp(1.1rem, 5.1vw, 1.35rem); }
  .destination-copy small { grid-column: 2; grid-row: 2; align-self: start; }
  .destination-arrow { grid-column: 3; grid-row: 2; line-height: 1; }
}

/* Player guide */
.guide-panel { width: min(42rem, calc(100% - 1.5rem)); }
.guide-panel .panel-content { padding: clamp(.7rem, 2.8vw, 1.2rem); }
.play-guide { display: grid; gap: 1.2rem; color: #e8f1eb; }
.play-guide h3, .play-guide h4, .play-guide p { margin: 0; }
.play-guide h3 { color: #f4f0e1; font: 700 1.5rem/1.05 "Barlow Condensed", sans-serif; }
.play-guide h4 { font: 650 .94rem/1.35 Inter, sans-serif; }
.play-guide svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.play-guide kbd { display: inline-block; padding: .02em .28em; font-size: .88em; line-height: 1.4; }
.guide-intro {
  padding: clamp(.9rem, 2.8vw, 1.3rem); border: 1px solid #4c6968; border-radius: .6rem;
  background: linear-gradient(100deg,#142d34 4%,#16353beb 56%,#25464ad6),
    url("./assets/pier-sky.webp?v=ba7a5a3cc3ad27f2") center 46% / cover;
}
.guide-intro h3 { margin-bottom: .35rem; font-size: clamp(1.65rem, 4.6vw, 2.1rem); }
.guide-intro > p { max-width: 52ch; color: #e6ede4; font-size: .94rem; line-height: 1.52; }
.guide-orientation { display: flex; align-items: center; gap: .7rem; margin-top: .8rem; padding-top: .72rem; border-top: 1px solid #66878380; color: #d5e6de; font-size: .84rem; line-height: 1.48; }
.guide-orientation strong { color: #e9d6a9; }
.guide-phones { display: inline-flex; gap: .1rem; align-items: center; color: #e0c591; }
.guide-phones svg:last-child { transform: rotate(-90deg); }
.guide-controls, .guide-topics { display: grid; gap: .65rem; min-width: 0; }
.guide-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; background: #101f24; border: 1px solid #385054; border-radius: .55rem; }
.guide-mode { display: flex; justify-content: center; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .45rem; background: transparent; border: 1px solid transparent; border-radius: .3rem; color: #c7d8d2; font-size: .88rem; font-weight: 650; }
.guide-mode[aria-selected="true"] { color: #f8dfaa; background: #35352c; border-color: #927d54; }
.guide-bindings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.guide-binding { min-width: 0; padding: .85rem .95rem; border: 1px solid #385255; border-radius: .45rem; background: #182b30; }
.guide-binding h4 { display: flex; align-items: center; gap: .5rem; color: #ecf2e9; }
.guide-binding h4 svg, .guide-topics summary svg { color: #a9d1bf; }
.guide-binding p { margin-top: .4rem; color: #cbd9d3; font-size: .84rem; line-height: 1.55; }
.guide-topics { gap: .38rem; }
.guide-topics > h3 { margin-bottom: .23rem; }
.guide-topics details { border: 1px solid #354e51; border-radius: .45rem; background: #15272c; }
.guide-topics details[open] { border-color: #54726c; }
.guide-topics summary { display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: .45rem .85rem; border-radius: .4rem; list-style: none; color: #e8efe7; font: 600 .9rem/1.4 Inter,sans-serif; cursor: pointer; }
.guide-topics summary::-webkit-details-marker { display: none; }
.guide-topics summary::after { content:""; width:.45rem; height:.45rem; flex:none; margin: -.25rem .1rem 0 auto; border: solid #b6cec3; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.guide-topics details[open] summary::after { margin-top:.2rem; transform:rotate(225deg); }
.guide-topics summary:focus-visible, .guide-mode:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.guide-topics ul { display: grid; gap: .55rem; margin: 0 .85rem; padding: .75rem 0 .95rem 1.1rem; border-top: 1px solid #30494c; color: #d0dcd5; font-size: .86rem; line-height: 1.55; }
.guide-topics li::marker { color: #8db6a6; }
@media (max-width: 520px) {
  .guide-bindings { grid-template-columns: minmax(0,1fr); }
  .guide-mode { gap: .32rem; font-size: .8rem; }
  .guide-binding { padding: .68rem .78rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .guide-panel .panel-head { padding-block: .25rem; }
  .guide-panel .panel-head > div > small { display: none; }
  .guide-panel .panel-head h2 { margin: 0; font-size: 1.4rem; }
  .play-guide { gap: .85rem; }
  .guide-intro { display: grid; grid-template-columns: 1.35fr 1fr; column-gap: 1rem; padding: .65rem .8rem; }
  .guide-intro h3 { font-size: 1.5rem; }
  .guide-intro > p { font-size: .85rem; grid-column: 1; }
  .guide-orientation { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 0 0 0 .75rem; border: 0; border-inline-start: 1px solid #66878380; }
}

.journal-best-summary {
  display: grid;
  gap: .3rem;
  padding: .8rem 1rem;
  border: 1px solid #34494d;
  border-radius: .55rem;
  background: #152529;
}
.journal-best-summary .board-no-catch-note { margin: 0; }

/* Both lure controls keep a stable target as their labels change. */
.stage[data-phase="retrieve"] :is(#retrieve-pace, #lift-rod) {
  flex: none;
  inline-size: 7rem;
  padding-inline: 4px;
}
@media (max-width: 570px) {
  .stage[data-phase="retrieve"] :is(#retrieve-pace, #lift-rod) { inline-size: 5.625rem; }
}
#retrieve-pace {
  display: grid; place-content: center; gap: 0; text-align: center; line-height: 1.1;
}
#retrieve-pace small { color: #bad0ce; font-size: 10px; font-weight: 600; }
#retrieve-pace strong { margin-top: 2px; text-transform: capitalize; color: #fff2d5; }
#break-snag { color: #f4cbc0; }
.auction-view { display: grid; gap: 12px; container-type: inline-size; }
.auction-intro {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 16px; border: 1px solid #3e625f; border-radius: 9px; background: linear-gradient(115deg,#193a3d,#162a31 78%);
}
.auction-intro h3, .auction-view h4, .auction-view p { margin: 0; }
.auction-intro p, .auction-item p, .auction-order p { color: #b6ccca; font-size: .88rem; line-height: 1.45; }
.auction-intro h3 { color: #f9ecd5; font-size: 1.18rem; margin-bottom: 4px; }
.auction-wallet { display: grid; gap: 2px; }
.auction-wallet strong { color: #e4c98b; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.auction-wallet small, .auction-item small, .auction-facts dt { color: #adcbc6; font-size: .72rem; }
.auction-body, .auction-order { display: grid; gap: 10px; min-width: 0; }
.auction-tools, .auction-actions, .auction-form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.auction-tools { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.auction-tools h4 { grid-column: 2; text-align: center; }
.auction-tools button { grid-column: 3; justify-self: end; }
@container (max-width: 370px) {
  .auction-tools { grid-template-columns: minmax(0,1fr); gap: .35rem; }
  .auction-tools :is(h4,button) { grid-column: 1; justify-self: center; }
}
.auction-message, .auction-state { color: #a9dad1; font-size: .83rem; }
.auction-message:empty { display:none; }
.auction-lot, .auction-order { padding: 12px; border: 1px solid #384f55; border-radius: 8px; background: #14282e; }
.auction-lot { display: grid; min-width: 0; gap: .65rem; padding: .9rem; }
.auction-product { display: flex; align-items: center; justify-content: center; gap: .8rem; min-width: 0; }
.auction-product > .inventory-picture { flex: none; position: relative; inset: auto; margin: 0; width: 72px; height: 62px; border-radius: 6px; }
.auction-item { min-width: 0; }
.auction-item h4 { margin: .16rem 0 0; color: #f3ebd9; font: 700 1.25rem/1.1 "Barlow Condensed",sans-serif; overflow-wrap: anywhere; }
.auction-seller { display: grid; justify-items: center; align-content: center; min-width: 0; gap: .12rem; padding-top: .65rem; text-align: center; border-top: 1px solid #355055; }
.auction-seller > small { color: #adc7c1; font-size: .76rem; }
.auction-seller .board-angler { min-width: 0; justify-content: center; text-align: center; }
.auction-seller .board-angler::after { content: "›"; color: #9bc9bc; font-size: 1rem; }
.auction-facts { display: grid; grid-auto-columns: minmax(0,1fr); grid-auto-flow: column; margin: 0; padding: .7rem 0; border-block: 1px solid #355055; text-align: center; }
.auction-facts > div { min-width: 0; padding: 0 .25rem; }
.auction-facts > div + div { border-inline-start: 1px solid #355055; }
.auction-facts dd { margin: .15rem 0 0; color: #f3cf8d; font: 700 1.4rem/1.1 "Barlow Condensed",sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.auction-deadline { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .45rem; text-align: center; font-size: .8rem; }
.auction-deadline span { color: #a8bdb9; }
.auction-deadline time { color: #d9e4de; }
.auction-actions { justify-content: center; }
.auction-state { flex: 0 0 100%; text-align: center; }
.auction-actions button { flex: 1 1 0; max-width: 14rem; }
.auction-actions button, .auction-tools button, .auction-form-actions button, .auction-order > button { min-height: 44px; }
.auction-empty { color:#b9ccca; padding:16px; border:1px dashed #405d60; border-radius:8px; line-height:1.45; }
.auction-fields { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(min(132px,100%),1fr)); }
.auction-field { display:grid; gap:4px; color:#dce8e5; font-size:.83rem; }
.auction-field input, .auction-field select { background:#0d2026; color:#f2f4ef; border:1px solid #526e70; border-radius:5px; width:100%; min-width:0; min-height:42px; padding:7px 9px; font:inherit; font-size:16px; }
.auction-form-actions button.primary { flex:1; }
@media (orientation:landscape) and (max-height:480px) {
  .stage[data-phase="retrieve"] .fishing-actions:has(#retrieve-pace:not([hidden])) { flex-direction:row; flex-wrap:wrap; justify-content:flex-end; width:min(265px,42%); }
}

/* Community uses the same section tabs, angler profiles and support cards as the other pier menus. */
.community, .community-body, .community-editions, .community-feed, .community-messages {
  display: grid; align-content: start; min-width: 0; gap: .75rem;
}
.social-tabs { container-type: inline-size; }
@container (max-width: 400px) {
  .social-tabs button { white-space: normal; }
  .social-tabs svg { display: none; }
}
@media (max-width: 570px) {
  .community > .community-tabs button { flex-direction: column; }
}
@media (max-width: 380px) {
  .community > .community-tabs { gap: 2px; }
}
.pier-directory { list-style: none; margin: 0; padding: 0; }
.pier-directory-brand {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; column-gap: 1rem; padding: .3rem .25rem;
}
.pier-directory-brand > * { grid-column: 2; }
.pier-directory-brand::before, .pier-directory-brand::after {
  content: ""; grid-row: 1 / 3; width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, #536668);
}
.pier-directory-brand::before { grid-column: 1; }
.pier-directory-brand::after { grid-column: 3; transform: scaleX(-1); }
.pier-directory-brand img { width: clamp(90px, 16vw, 112px); }
.pier-directory-card {
  display: grid; grid-template-columns: 31% 1fr; align-items: center; overflow: hidden;
  border: 1px solid #395257; border-radius: 9px; background: #172a30;
}
.pier-directory-card img { width: 100%; height: 100%; min-height: 7rem; object-fit: cover; object-position: 70% 50%; }
.pier-directory-card > div { padding: .8rem 1rem; }
.pier-directory-current { color: var(--gold); font-size: .78rem; font-weight: 700; }
.pier-directory-card h3 { margin: .3rem 0; font: 700 1.45rem/1.1 "Barlow Condensed", sans-serif; }
.pier-directory-card p { margin: 0; color: #c6d8d2; font-size: .85rem; }
.upcoming-piers {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem;
  border: 1px dashed #526965; border-radius: 9px;
  background: linear-gradient(105deg, #203637, #14262b 80%);
}
.upcoming-piers-icon {
  display: grid; place-items: center; flex: none; width: 2.65rem; height: 2.65rem;
  border: 1px solid #4c6964; border-radius: 50%; color: #b8d2c8;
}
.upcoming-piers-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.upcoming-piers div > span { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.upcoming-piers h3 { margin: .2rem 0 0; color: #e6ede8; font: 700 1.35rem/1.1 "Barlow Condensed", sans-serif; }
.roadmap-card {
  --roadmap-inset: clamp(.85rem, 3.5%, 1.25rem);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #395257;
  border-radius: 9px;
  background: #172a30;
}
.roadmap-card > header {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem; align-items: center;
  margin: 1rem var(--roadmap-inset) .75rem;
}
.roadmap-icon {
  display: grid; place-items: center; width: 2.15rem; height: 2.15rem;
  color: #b4dfd4; background: #223d42; border-radius: 7px;
}
.roadmap-icon svg {
  width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.roadmap-card h3 { margin: 0; color: #f3f0df; font: 700 1.4rem/1.08 "Barlow Condensed", sans-serif; }
.roadmap-percent { color: var(--gold); font-weight: 650; font-variant-numeric: tabular-nums; }
.roadmap-card progress {
  display: block; appearance: none; height: .38rem; border: 0; border-radius: 8px;
  width: calc(100% - 2 * var(--roadmap-inset)); margin-inline: var(--roadmap-inset);
  background: #344e52; color: var(--accent); accent-color: var(--accent); overflow: hidden;
}
.roadmap-card progress::-webkit-progress-bar { background: #344e52; }
.roadmap-card progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.roadmap-card progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.roadmap-card .roadmap-description {
  margin: .75rem var(--roadmap-inset) .95rem; color: #d2deda;
  font-size: .91rem; line-height: 1.5; text-wrap: pretty;
}
.roadmap-card > footer {
  justify-content: space-between; padding: .2rem var(--roadmap-inset);
  border-top: 1px solid #344d50; background: #14262b;
}
.roadmap-votes { display: flex; align-items: center; gap: .25rem; }
.roadmap-votes button { min-width: 44px; min-height: 44px; font-variant-numeric: tabular-nums; touch-action: manipulation; }
.roadmap-votes button[aria-pressed="true"] { color: #c7e7dc; background: #29453f; border-color: #4f7870; }
.roadmap-votes button:last-child[aria-pressed="true"] { color: #f0c4b6; background: #433631; border-color: #79625a; }
.roadmap-status-tabs {
  display: flex; gap: .3rem; border-bottom: 1px solid #395257;
}
.roadmap-status-tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .35rem .8rem; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0;
  background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600;
}
.roadmap-status-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: currentColor; }
.roadmap-status-tabs button:is(:hover, :focus-visible) { background: #1c3238; }
.roadmap-status-tabs svg { width: 1rem; height: 1rem; flex: none; }
.community-feed-head:empty { display: none; }
.species-guide-panel { width: min(46rem, calc(100% - 1.5rem)); }
.target-index, .target-detail, .target-inspection { display: grid; align-content: start; min-width: 0; }
button.target-back { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; }
.target-back svg, .target-advice svg { width: 1rem; height: 1rem; flex: none; }
.target-filters {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(8.4rem, 1fr);
  gap: .85rem; padding: .95rem 1rem; border: 1px solid #3e585a; border-radius: 9px; background: #193036;
}
.target-filters label { display: grid; gap: .38rem; min-width: 0; color: #d9e7df; font-size: .82rem; font-weight: 600; }
.target-filters :is(input, select) {
  min-width: 0; width: 100%; min-height: 44px; padding: .45rem .7rem;
  border: 1px solid #567170; border-radius: 6px; background: #102328; color: var(--ink); font: inherit; font-size: 1rem;
}
.target-filters input::placeholder { color: #a9bfb9; font-weight: 400; }
.target-list-head, .target-species {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) .7rem;
  align-items: center; gap: .6rem; padding-inline: 1rem;
}
.target-list-head { padding-block: 1.15rem .5rem; color: #b1c8c3; font-size: .76rem; font-weight: 600; }
.target-list-head h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.target-list { list-style: none; margin: 0; padding: 0; border: 1px solid #395257; border-radius: 9px; overflow: hidden; }
.target-list li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid #334c50; }
.target-species, .target-lure {
  width: 100%; border: 0; background: #172c31; color: #edf2e8; text-align: start; cursor: pointer;
}
.target-species { min-height: 4rem; padding-block: .62rem; }
.target-species:is(:hover,:focus-visible), .target-lure:is(:hover,:focus-visible) { background: #244045; }
.target-species:focus-visible, .target-lure:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.target-species-name, .target-lure-copy { display: grid; min-width: 0; gap: .28rem; overflow-wrap: anywhere; }
.target-species-name strong { font: 700 1.17rem/1.12 "Barlow Condensed", sans-serif; }
.target-species-name small { color: #a9cac1; font-size: .77rem; }
.target-offering { display: flex; gap: .6rem; align-items: center; min-width: 0; color: #c9d9d3; font-size: .82rem; line-height: 1.35; }
.target-offering > span:last-child { overflow-wrap: anywhere; }
:is(.target-offering, .target-lure) > .inventory-picture { position: relative; inset: auto; flex: none; width: 2.6rem; height: auto; margin: 0; }
.target-chevron { color: #aad0c4; font-size: 1.25rem; text-align: end; }
.target-empty { padding: 1rem; border: 1px dashed #476367; border-radius: 8px; }
.target-detail, .target-inspection { gap: .85rem; }
.target-plan, .target-tackle {
  overflow: hidden; border: 1px solid #3c5658; border-radius: 9px; background: #172d32;
}
.target-advice { min-width: 0; padding: .85rem 1rem; }
.target-plan .target-advice + .target-advice { border-top: 1px solid #344f51; }
.target-advice h3, .target-tackle > h3 {
  display: flex; align-items: center; gap: .45rem; margin: 0;
  color: #f2efde; font: 700 1.22rem/1.15 "Barlow Condensed", sans-serif;
}
.target-advice svg { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.target-advice p { margin: .4rem 0 0; color: #d1dfd9; font-size: .9rem; line-height: 1.48; }
.target-detail > .target-advice, .target-inspection > .target-advice { padding-block: .3rem .65rem; border-inline-start: 2px solid #527672; }
.target-detail > .model-card, .target-inspection > .model-card { margin: 0; min-width: 0; }
.target-tackle > h3 { padding: .8rem 1rem; background: #1c353a; }
.target-lure {
  display: grid; grid-template-columns: 3.8rem minmax(0, 1fr) .7rem; gap: .8rem; align-items: center;
  min-height: 4rem; padding: .75rem 1rem; border-top: 1px solid #344f51;
}
.target-lure > .inventory-picture { width: 3.8rem; }
.target-lure-copy strong { font-size: .94rem; color: #eff3e9; }
.target-lure-copy > span { color: #bfd1ca; font-size: .85rem; line-height: 1.45; }
@media (min-width: 680px) {
  .target-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .target-detail > .target-tackle { grid-column: 1 / -1; }
  .target-detail .model-stage { height: clamp(9.5rem, 21vh, 12rem); }
}
@media (max-width: 600px) {
  .target-detail { grid-template-columns: minmax(0, 1fr); }
  .target-detail .model-stage { height: clamp(7rem, 18svh, 10rem); }
}
@media (max-width: 440px) {
  .target-filters { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: .75rem; }
  .target-list-head, .target-species { gap: .4rem; padding-inline: .65rem; }
  .target-offering { gap: .25rem; font-size: .75rem; }
  .target-offering > .inventory-picture { width: 1.85rem; }
  .target-lure { grid-template-columns: 2.8rem minmax(0, 1fr) .65rem; gap: .5rem; padding: .65rem .7rem; }
  .target-lure > .inventory-picture { width: 2.8rem; }
}
.community-body > button, .community-feed > button { justify-self: start; }
.community-update-day, .community-message, .community-composer, .community-gate {
  min-width: 0; border: 1px solid #395257; border-radius: 9px; background: #172a30;
}
.community-update-day { overflow: hidden; }
.community-update-day > summary {
  display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .65rem 1rem;
  background: #1c3439; color: #f2efde; list-style: none; cursor: pointer;
}
.community-update-day > summary::-webkit-details-marker { display: none; }
.community-update-day > summary time { flex: 1; font: 700 1.35rem/1.16 "Barlow Condensed", sans-serif; }
.update-day-count { color: #bfd2ce; font-size: .8rem; white-space: nowrap; }
.community-update-day > summary::after {
  content: ""; width: .5rem; height: .5rem; flex: none; margin-inline-end: .2rem;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.community-update-day[open] > summary { box-shadow: inset 3px 0 var(--gold); }
.community-update-day[open] > summary::after { transform: rotate(225deg); }
.community-update-day > summary:is(:hover,:focus-visible) { background: #254045; }
.community-update-day > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.community-edition { border-top: 1px solid #395257; }
.community-edition > h3 { margin: 0; padding: .95rem 1rem .2rem; color: #f2efde; font: 700 1.45rem/1.12 "Barlow Condensed", sans-serif; }
.community-edition > .release-category { padding-block: .65rem; border: 0; }
.community-edition .release-category li > strong { display: block; }
.community-message-tools summary::-webkit-details-marker { display: none; }
.community-author time, .community-removed time { color: #aec4c0; font-size: .74rem; }
.community-message-tools summary:is(:hover,:focus-visible) { background: #223b40; }
.community-actions, .community-confirm, .community-composer-actions, .community-author,
.community-feed-head, .community-reply-banner, .community-muted-list li {
  display: flex; align-items: center; gap: .35rem .7rem; flex-wrap: wrap; min-width: 0;
}
.community-update-day > footer { padding: .18rem .72rem; border-top: 1px solid #344d50; background: #14262b; }
.community-action, .community-message-tools summary {
  display: inline-flex; align-items: center; justify-content: center; gap: .38rem;
  min-height: 36px; padding: .3rem .45rem; border: 1px solid transparent; border-radius: 5px;
  background: transparent; color: #b1d3c8; font-family: inherit; line-height: 1.2;
  font-size: .82rem; font-weight: 600; cursor: pointer;
}
.community-action:is(:hover,:focus-visible), .community-action[aria-pressed=true] { background: #263e40; color: #f1d39b; }
.community-action[aria-pressed=true] { border-color: #806f4f; }
.community-action svg, .community-trophy > svg { width: 1rem; height: 1rem; flex: none; }
.community-author, .community-feed-head, .community-composer-actions, .community-muted-list li { justify-content: space-between; }
.community-body h3.community-thread-title, .community-feed-head h3 { margin: 0; font: 700 1.4rem/1.15 "Barlow Condensed", sans-serif; }
.community-composer, .community-gate, .community-moderation:not(:empty) { display: grid; gap: .55rem; padding: .8rem .9rem; }
.community-composer label { color: #dce8e1; font-size: .87rem; font-weight: 700; }
.community-composer textarea {
  display: block; width: 100%; min-height: 4.25rem; padding: .65rem .7rem; resize: vertical;
  border: 1px solid #49656a; border-radius: 6px; background: #0f2025; color: #f2f4e9;
  font: inherit; font-size: max(16px,.95rem); line-height: 1.45;
}
.community-composer textarea::placeholder { color: #a5bbb7; }
.community-composer-actions small { font-size: .74rem; color: #b4c6c0; font-variant-numeric: tabular-nums; }
.community-composer-actions .primary { min-height: 40px; }
.community-composer :disabled { opacity: .6; }
.community-gate button { justify-self: start; }
.community .community-status, .community .community-empty, .community-gate p,
.community .community-moderation p { margin: 0; font-size: .88rem; color: #c6d8d2; }
.community-status:empty, .community-moderation:empty, .community .community-reply-banner[hidden] { display: none; }
.community-reply-banner, .community-confirm {
  padding: .2rem .45rem; background: #233c3d; border-left: 2px solid #92c5b7;
  font-size: .8rem; border-radius: 4px; color: #d8e8de;
}
.community-reply-banner strong { flex: 1; overflow-wrap: anywhere; }
.community-messages { list-style: none; padding: 0; margin: 0; gap: .55rem; }
.community-message { display: grid; gap: .4rem; padding: .6rem .85rem .35rem; }
.community-message .board-angler { max-width: 100%; margin: 0; }
.community-author time { margin-left: auto; }
.community-byline { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .65rem; min-width: 0; }
.chat-pier { display: inline-flex; align-items: center; gap: .24rem; color: var(--gold); font-size: .74rem; line-height: 1.3; }
.chat-pier svg { width: .87rem; height: .87rem; }
.community-message .community-message-text, .community-message .community-quote {
  margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
}
.community .community-message-text { color: #e0ebe4; font-size: .92rem; line-height: 1.45; }
.community-quote { padding: .38rem .65rem; border-inline-start: 2px solid #7ea79e; background: #1c3338; border-radius: 3px; }
.community-quote > span { display: block; font-size: .8rem; line-height: 1.45; color: #bed4cc; }
.community-trophy { display: flex; align-items: center; gap: .8rem; padding: .6rem .75rem; border: 1px solid #766341; border-radius: 6px; background: #302f24; }
.community-trophy > svg {
  width: 1.55rem; height: 1.55rem; color: #edc585; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.community-trophy :is(small,strong,span) { display: block; }
.community-trophy small { color: #e9c890; font-size: .74rem; font-weight: 600; }
.community-trophy strong { font: 700 1.25rem/1.25 "Barlow Condensed", sans-serif; color: #fff1ce; }
.community-trophy span { margin-top: .15rem; color: #e0d5b9; font-size: .82rem; }
.community-removed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .65rem .85rem; }
.community .community-removed p { margin: 0; color: #b4c5c1; font-style: italic; }
.community-message-tools { margin-left: auto; text-align: right; }
.community-message-tools[open] { flex-basis: 100%; }
.community-message-tools .community-actions { justify-content: end; }
.community-message-tools summary { display: inline-flex; list-style: none; }
.community-confirm { justify-content: end; text-align: left; }
.community-confirm span { flex: 1 1 10rem; }
.community-moderation:not(:empty) { border: 1px solid #4c645f; border-radius: 7px; background: #1d3335; }
.community-moderation h4, .community-muted-list { margin: 0; padding: 0; list-style: none; }
.community-muted-list li + li { border-top: 1px solid #38514e; }
.community-help { overflow: hidden; }
@media (pointer: coarse) {
  .community-action, .community-message-tools summary, .community-composer-actions .primary { min-height: 44px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .community-composer textarea { min-height: 3rem; }
}

.lamp-specs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem 1rem; padding:.85rem 1rem; border:1px solid #3e5557; border-radius:.5rem; background:#16272c; }
.lamp-specs dt { font-size:.76rem; color:#c2d2ce; }
.lamp-specs dd { margin:.12rem 0 0; font-weight:700; font-variant-numeric:tabular-nums; }
.lamp-hud { position:absolute; left:max(15px,var(--safe-left)); bottom:calc(max(36px,var(--safe-bottom)) + 135px); z-index:2; pointer-events:none; }
#headlamp-toggle { display:flex; align-items:center; gap:7px; min-height:44px; padding:5px 10px; border:1px solid #88928b; border-radius:7px; background:#14232bee; color:#f1efe5; text-align:left; touch-action:manipulation; font-size:12px; line-height:1.2; }
#headlamp-toggle svg { width:21px; height:21px; flex:none; color:#dfd1a6; }
#headlamp-toggle small { display:block; margin-top:2px; color:#bacaBF; font-size:10px; font-variant-numeric:tabular-nums; }
#headlamp-toggle[aria-pressed="true"] { border-color:#eac277; }
#headlamp-toggle[aria-pressed="true"] svg { color:#ffd98e; }
#headlamp-toggle[hidden], #headlamp-notice:empty, .lamp-hud:has(button[hidden]) { display:none; }
#headlamp-notice { display:block; max-width:16rem; padding:4px 7px; background:#17252b; color:#f3dac0; font-size:12px; }
@media (pointer:fine) { .lamp-hud { bottom: max(32px, 9%); } }
@media (orientation:landscape) and (max-height:550px) and (pointer:coarse) {
  .lamp-hud { left:max(132px,calc(var(--safe-left) + 119px)); bottom:max(16px,var(--safe-bottom)); }
}

/* Tournament Center */
dialog.tournament-panel { width: min(48rem, calc(100% - var(--side-inset,12px) - var(--side-inset,12px))); }
.tournament-center {
  --tc-edge: #38545a; --tc-card: #14292f; --tc-soft: #b7c9c7;
  display: grid; gap: 1rem; min-width: 0; container-type: inline-size;
}
.tournament-center :is(h3,h4,p,ul,ol,dl,dd) { margin: 0; }
.tournament-center :is(button, a):focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tournament-center :is(button.primary,button.secondary) { min-height: 44px; }
.tournament-center .tc-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: inherit; }
.tournament-center .tc-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tc-tabs, .tc-sections { display: grid; gap: 3px; padding: 3px; border: 1px solid var(--tc-edge); border-radius: 8px; background: #0e2126; }
.tc-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tc-sections { grid-template-columns: repeat(4,minmax(0,1fr)); }
.tc-tab {
  display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-width: 0; min-height: 44px;
  background: transparent; color: var(--tc-soft); border: 1px solid transparent; border-radius: 5px;
  padding: .34rem .3rem; font: 600 .86rem/1.22 Inter,sans-serif; overflow-wrap: anywhere;
}
.tc-tab[aria-selected="true"] { color: #ffdf99; background: #2c3c39; border-color: #716447; }
.tc-tab:hover { color: var(--ink); background: #233b3f; }
.tc-body, .tc-event-pane, .tc-rankings, .tc-rule-list { min-width: 0; display: grid; gap: .8rem; }
.tc-notice { color: #b5e0d5; font-size: .88rem; line-height: 1.45; }
.tc-notice:empty { display: none; }
.tc-body > button, .tc-event-pane > button { justify-self: start; }
.tc-back { display: inline-flex; align-items: center; gap: .4rem; }
.tc-card {
  --tc-species: #8ec9ae;
  padding: .9rem 1rem; display: grid; gap: .85rem; min-width: 0;
  background: linear-gradient(116deg, #1c3538, var(--tc-card) 55%); border: 1px solid var(--tc-edge);
  border-inline-start: 3px solid var(--tc-species); border-radius: 8px;
}
.tc-card[data-species="bluefish"] { --tc-species: #7daec7; }
.tc-card[data-species="king"] { --tc-species: #d8b46f; }
.tc-card-head, .tc-card-foot, .tc-entry, .tc-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .7rem; }
.tc-card h3 { min-width: 0; overflow-wrap: anywhere; color: #f5efdf; font: 800 1.5rem/1.12 "Barlow Condensed",sans-serif; }
.tc-card-head { align-items: start; }
.tc-badge, .tc-you {
  display: inline-block; width: fit-content; padding: .18rem .48rem; white-space: nowrap;
  color: #c3d9e4; background: #223940; border: 1px solid #46646d; border-radius: 4px;
  font: 600 .74rem/1.25 Inter,sans-serif;
}
.tc-badge[data-status="soon"] { color: #ffe0a3; border-color: #776847; background: #3e392c; }
.tc-badge[data-status="active"], .tc-entered, .tc-you { color: #a6e5c6; }
.tc-badge[data-status="active"], .tc-you { background: #1b3b31; border-color: #467964; }
.tc-badge[data-status="finished"] { color: #dce0d8; background: #333d3d; border-color: #56625f; }
.tc-card :is(.tc-facts,.tc-prizes), .tc-review-funds { display: grid; gap: .6rem; min-width: 0; }
.tc-facts { grid-template-columns: 1.2fr 1fr 1fr; padding: .75rem 0; border-block: 1px solid var(--tc-edge); }
.tc-prizes, .tc-review-funds { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tc-card :is(.tc-facts,.tc-prizes,.tc-review-funds) dt, .tc-dates > div > span, .tc-clock > span { color: var(--tc-soft); font-size: .8rem; }
.tc-card :is(.tc-facts,.tc-prizes,.tc-review-funds) dd { margin-top: .22rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc-card .tc-facts dd { font: 800 1.5rem/1.05 "Barlow Condensed",sans-serif; font-variant-numeric: tabular-nums; }
.tc-card .tc-facts > div:first-child dd { color: #f6d394; }
.tc-front-runners { display: grid; gap: .4rem; padding: .6rem .7rem; background: #10242a; border-radius: 5px; }
.tc-front-runners > div { display: grid; grid-template-columns: minmax(5.5rem,.7fr) minmax(0,1.6fr); gap: .2rem .45rem; align-items: baseline; }
.tc-front-runners dt { grid-row: 1 / span 1; color: var(--tc-soft); font-size: .79rem; }
.tc-front-runners dd { grid-column: 2; font-size: .84rem; overflow-wrap: anywhere; }
.tc-prizes dd, .tc-review-funds dd { font-weight: 600; font-size: .96rem; }
.tc-dates { display: grid; gap: .27rem; }
.tc-dates > div { display: flex; align-items: baseline; gap: .3rem .65rem; flex-wrap: wrap; }
.tc-dates > div > span { min-width: 2.7rem; }
.tc-dates time, .tc-clock strong { font-size: .86rem; color: #e2e9e5; }
.tc-clock { display: flex; align-items: baseline; gap: .55rem; }
.tc-clock strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.tc-card-foot { padding-top: .6rem; border-top: 1px solid var(--tc-edge); }
.tc-card-foot:has(.tc-confirm) { align-items: start; }
.tc-card-foot:has(.tc-confirm) .tc-entry { flex: 1 1 100%; }
.tc-entry { justify-content: end; flex: 1 1 auto; }
.tc-expanded .tc-entry { justify-content: start; }
.tc-entered { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; }
.tc-shortfall, .tc-closed, .tc-transfer, .tc-muted, .tc-share { color: var(--tc-soft); font-size: .8rem; line-height: 1.4; }
.tc-transfer { color: #e6cc93; }
.tc-confirm { display: grid; width: 100%; gap: .7rem; padding: .8rem; border: 1px solid #786746; border-radius: 6px; background: #232f2e; }
.tc-confirm h4, .tc-event-pane h4 { font: 800 1.2rem/1.2 "Barlow Condensed",sans-serif; color: #f5efdf; }
.tc-confirm p, .tc-rule-list dd { color: #d7e1dc; font-size: .9rem; line-height: 1.5; }
.tc-actions { justify-content: start; }
.tc-model.model-card { margin: 0; }
.tc-model .model-stage { height: clamp(7.5rem,18svh,11rem); }
.tc-leaders { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.tc-leader, .tc-rule-list > div, .tc-ranking, .tc-roster, .tc-activity { min-width: 0; border: 1px solid var(--tc-edge); border-radius: 7px; padding: .8rem; background: var(--tc-card); }
.tc-leader { display:grid; align-content: start; gap: .33rem; }
.tc-leader h4 { display: flex; align-items: center; gap: .38rem; }
.tc-leader h4 .tc-icon { color: #edc478; }
.tc-leader .tc-share { margin-bottom: .18rem; }
.tc-leading-angler { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; padding-top: .35rem; border-top: 1px solid var(--tc-edge); overflow-wrap: anywhere; }
.tc-leading-angler strong { font-size: .9rem; }
.tc-leading-angler > span { color: #d6e2da; font-variant-numeric: tabular-nums; font-size: .86rem; }
.tc-leading-angler small { flex-basis: 100%; color: #f1d18e; }
.tc-empty { padding: .75rem; border: 1px dashed #435c61; border-radius: 6px; color: var(--tc-soft); font-size: .9rem; line-height: 1.4; }
.tc-ranking, .tc-roster, .tc-activity { display: grid; gap: .65rem; }
.tc-own-rank { color: #b9ddc8; font-size: .85rem; }
.tournament-center .board-angler { vertical-align: middle; min-width: 0; gap: .4rem; font-size: .88rem; }
.tournament-center .angler-avatar { width: 1.9rem; height: 1.9rem; flex-basis: 1.9rem; }
.tc-activity-message { min-width: 0; }
.tc-table { color: var(--ink); width: 100%; border-collapse: collapse; font-size: .85rem; text-align: start; font-variant-numeric: tabular-nums; }
.tc-table :is(td,th) { padding: .57rem .35rem; border-bottom: 1px solid #344d52; text-align: start; overflow-wrap: anywhere; vertical-align: middle; }
.tc-table th { color: var(--tc-soft); font-size: .78rem; font-weight: 600; }
.tc-table td:nth-child(2) { font-weight: 600; }
.tc-table td:nth-child(5), .tc-activity-list time, .tc-roster-list time { color: var(--tc-soft); font-size: .78rem; }
.tc-table .tc-mine { background: #203d36; }
.tc-you { padding: .08rem .35rem; font-size: .68rem; margin-inline-start: .35rem; }
.tc-roster-list, .tc-activity-list { list-style: none; padding: 0; }
.tc-roster-list li, .tc-activity-list li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem .7rem; padding: .58rem 0; border-top: 1px solid #344d52; font-size: .86rem; overflow-wrap: anywhere; }
.tc-rule-list dt { font-weight: 650; margin-bottom: .32rem; }
@container (max-width: 500px) {
  .tc-card { padding: .75rem; gap: .66rem; }
  .tc-facts { gap: .4rem; }
  .tc-card h3 { font-size: 1.38rem; }
  .tc-ranking { padding: .65rem; }
  .tc-table, .tc-table tbody { display: block; }
  .tc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tc-table tbody tr { display: grid; grid-template-columns: 2.3rem 1fr 1fr; gap: .22rem .4rem; align-items: baseline; padding: .52rem .25rem; border-top: 1px solid #344d52; }
  .tc-table td { padding: 0; border: 0; }
  .tc-table td:first-child { grid-row: span 3; color: #d8ba81; }
  .tc-table td:nth-child(2), .tc-table td:last-child { grid-column: span 2; }
  .tc-leading-angler { display: grid; }
}
@container (max-width: 330px) {
  .tc-sections { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tc-leaders { grid-template-columns: minmax(0,1fr); }
  .tc-card-head { align-items: start; }
  .tc-card-foot > button,.tc-entry > button { flex: 1 1 auto; }
}
