:root {
  --wtf-red: #e84339;
  --wtf-black: #1d1d1b;
  --wtf-white: #ffffff;
  --wtf-gray: #808386;
  --water: #2f80c2;
  --water-dark: #173d59;
  --green: #64b85a;
  --yellow: #f4c542;
  --paper: #ffffff;
  --browser-viewport-width: 100vw;
  --browser-viewport-height: 100dvh;
  --telegram-viewport-height: var(--browser-viewport-height);
  --telegram-chrome-top: 0px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px), var(--telegram-chrome-top), 8px);
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px), 0px);
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px), 8px);
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px), 0px);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  color: var(--wtf-black);
  background: #0d2230;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.platform-telegram { --telegram-chrome-top: 92px; }

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: #0d2230; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

#app {
  --available-height: var(--browser-viewport-height);
  position: fixed;
  inset: 0 auto auto 0;
  width: var(--browser-viewport-width);
  height: var(--available-height);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.platform-telegram #app {
  --available-height: min(var(--browser-viewport-height), var(--telegram-viewport-height));
}

#game-shell {
  --scene-backdrop-image: none;
  --scene-backdrop-dim: .15;
  container-name: game-shell;
  container-type: size;
  position: relative;
  width: min(var(--browser-viewport-width), calc(var(--available-height) * 9 / 16));
  height: min(var(--available-height), calc(var(--browser-viewport-width) * 16 / 9));
  max-width: 720px;
  max-height: 1280px;
  aspect-ratio: 9 / 16;
  isolation: isolate;
  overflow: hidden;
  background: var(--water-dark);
  box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 22px 70px rgba(0,0,0,.48);
}

#scene-backdrop,
#game-container,
#ui-root,
#toast-root {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#scene-backdrop {
  z-index: 0;
  overflow: hidden;
  background: var(--water-dark);
  pointer-events: none;
}
#scene-backdrop::before,
#scene-backdrop::after,
#scene-backdrop-core {
  position: absolute;
  content: "";
}
#scene-backdrop::before {
  z-index: 0;
  inset: -14px;
  background-image: var(--scene-backdrop-image);
  background-position: center;
  background-size: 100% 100%;
  filter: blur(8px) saturate(.9);
  transform: scale(1.025);
}
#scene-backdrop-core {
  z-index: 1;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-image: var(--scene-backdrop-image);
  background-position: center;
  background-size: 100% 100%;
  transform: translateY(-50%);
}
#scene-backdrop::after {
  z-index: 2;
  inset: 0;
  background: rgb(0 0 0 / var(--scene-backdrop-dim));
}
#game-container {
  z-index: 1;
  overflow: hidden;
}
#game-container canvas { display: block; touch-action: none; }
#ui-root { z-index: 20; pointer-events: none; }
#toast-root { z-index: 60; pointer-events: none; display: flex; align-items: flex-start; justify-content: center; padding-top: calc(var(--safe-top) + 74px); }

@media (max-width: 720px) and (orientation: portrait) {
  #game-shell {
    width: var(--browser-viewport-width);
    height: var(--available-height);
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
  }
}

#loading {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 48px;
  background: var(--water-dark);
  color: white;
  text-align: center;
  --loading-progress: .08;
  contain: paint;
}
#loading.hidden {
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .24s;
}
#loading > .loading-brand {
  width: min(74%, 390px);
  max-height: 31%;
  object-fit: contain;
  filter: drop-shadow(8px 10px 0 rgba(0,0,0,.28));
}
#loading b {
  margin-top: 18px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(28px, 7vw, 52px);
  line-height: .95;
}
#loading > span {
  font-size: clamp(12px, 3vw, 20px);
  font-weight: 950;
  letter-spacing: .12em;
}
.loader {
  width: min(70%, 360px);
  height: 22px;
  margin-top: 12px;
  overflow: hidden;
  border: 4px solid var(--wtf-black);
  border-radius: 999px;
  background: white;
}
.loader i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--wtf-red));
  transform: scaleX(var(--loading-progress));
  transform-origin: left center;
  transition: transform .12s linear;
}
.loading-partner {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 16px);
  display: grid;
  width: min(38%, 180px);
  justify-items: center;
  gap: 6px;
  transform: translateX(-50%);
}
.loading-partner > span {
  color: rgba(255,255,255,.78);
  font-size: clamp(9px, 2.2vw, 12px);
  font-weight: 950;
  letter-spacing: .16em;
  line-height: 1;
}
.loading-partner-card {
  display: grid;
  width: 100%;
  place-items: center;
  padding: 7px 10px;
  border: 3px solid var(--wtf-black);
  border-radius: 14px;
  background: white;
  box-shadow: 0 5px 0 rgba(0,0,0,.28);
  transform: rotate(-1deg);
}
.loading-partner-card img {
  display: block;
  width: 100%;
  max-height: 76px;
  object-fit: contain;
}

@media (max-height: 640px) {
  #loading {
    gap: 7px;
    padding: 24px;
  }
  #loading > .loading-brand {
    width: min(66%, 320px);
    max-height: 26%;
  }
  #loading b {
    margin-top: 8px;
  }
  .loader {
    margin-top: 7px;
  }
  .loading-partner {
    bottom: calc(var(--safe-bottom) + 10px);
    width: min(34%, 132px);
    gap: 4px;
  }
  .loading-partner-card {
    padding: 5px 8px;
    border-width: 2px;
    border-radius: 10px;
    box-shadow: 0 3px 0 rgba(0,0,0,.28);
  }
  .loading-partner-card img {
    max-height: 54px;
  }
}

.ui-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 12px) calc(var(--safe-right) + 18px) calc(var(--safe-bottom) + 16px) calc(var(--safe-left) + 18px);
  pointer-events: auto;
  animation: screen-in .24s cubic-bezier(.2,.8,.2,1);
}
.ui-screen:not(.screen-clear) { min-height: 0; overflow: hidden; }
.ui-screen.screen-clear { pointer-events: none; }
.ui-screen.screen-clear .interactive { pointer-events: auto; }

@keyframes screen-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
}
.top-strip .chip-group { display: flex; gap: 8px; }
.top-strip .header-title {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-top-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.bar-top-strip .level-chip {
  grid-column: 2;
  justify-self: center;
}
.bar-top-strip .coin {
  grid-column: 3;
  justify-self: end;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 12px;
  border: 4px solid var(--wtf-black);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 0 rgba(29,29,27,.35);
  font-weight: 950;
  font-size: clamp(12px, 2.8vw, 20px);
  line-height: 1;
}
.chip.dark { background: rgba(29,29,27,.9); color: white; border-color: white; }
.level-chip { background: var(--yellow); white-space: nowrap; }
.icon-button, .wtf-button {
  border: 4px solid var(--wtf-black);
  box-shadow: 0 5px 0 rgba(29,29,27,.45);
  cursor: pointer;
  transform: translateY(0);
  transition: transform .08s ease, filter .12s ease;
  font-weight: 950;
  text-transform: uppercase;
  color: var(--wtf-black);
}
.icon-button:active, .wtf-button:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(29,29,27,.55); }
.icon-button:focus-visible,
.wtf-button:focus-visible,
.game-card:focus-visible,
.trip-lure:focus-visible,
.toggle:focus-visible,
.danger-zone summary:focus-visible { outline: 5px solid var(--yellow); outline-offset: 3px; }
.icon-button {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: white;
  font-size: 24px;
  display: grid;
  place-items: center;
  padding: 0;
}
.compact-text-button {
  width: auto;
  min-width: 64px;
  padding: 0 9px;
  font-size: 12px;
}
.back-button {
  display: inline-flex;
  min-width: 72px;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.back-button > span {
  display: inline-flex;
  width: 15px;
  height: 15px;
}
.wtf-button {
  min-height: 58px;
  border-radius: 16px;
  background: white;
  padding: 10px 18px;
  font-size: clamp(16px, 4vw, 28px);
  line-height: 1;
}
.wtf-button.red { background: var(--wtf-red); color: white; }
.wtf-button.green { background: var(--green); color: white; }
.wtf-button.yellow { background: var(--yellow); }
.wtf-button.blue { background: var(--water); color: white; }
.wtf-button.black { background: var(--wtf-black); color: white; border-color: white; }
.wtf-button.ghost { background: rgba(255,255,255,.82); }
.wtf-button[disabled] { filter: grayscale(1); opacity: .55; cursor: not-allowed; }
.wtf-button.with-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.action-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
}
.action-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3vh;
  filter: drop-shadow(0 8px 0 rgba(29,29,27,.4));
}
.logo-wrap img { width: min(78%, 430px); transform: rotate(-2deg); }

.bar-menu {
  margin-top: auto;
  display: grid;
  gap: 12px;
  width: min(96%, 560px);
  align-self: center;
  padding: 15px;
  border: 4px solid var(--wtf-black);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 0 rgba(29,29,27,.55);
  backdrop-filter: blur(3px);
  min-height: 0;
  max-height: calc(100% - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.bar-menu .primary { min-height: 72px; font-size: clamp(22px, 5.5vw, 36px); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-button-label { font-size: clamp(14px, 3.5vw, 22px); }
.menu-soft {
  justify-content: flex-start;
  gap: 7px;
  padding-left: 14px;
  filter: saturate(.72);
  text-align: left;
}
.menu-soft > span { font-size: 1.05em; }
.settings-menu-button { grid-column: 1 / -1; }
.profile-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border: 3px solid var(--wtf-black);
  border-radius: 12px;
  background: var(--wtf-black);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(12px, 3vw, 19px);
}

.paper-panel {
  margin-top: 14px;
  min-height: 0;
  flex: 1;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  border: 4px solid var(--wtf-black);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 0 rgba(29,29,27,.48);
}

.tutorial-callout {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 4px solid var(--wtf-black);
  border-radius: 15px;
  background: #dff3ff;
  box-shadow: 0 4px 0 rgba(29,29,27,.25);
}
.tutorial-callout b {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(15px, 3.8vw, 22px);
}
.tutorial-callout span {
  font-weight: 850;
  font-size: clamp(11px, 2.8vw, 15px);
}

.settings-tutorial-button { width: 100%; margin-top: 14px; font-size: clamp(13px, 3vw, 18px); }

.gear-panel,
.reward-panel { display: flex; flex-direction: column; gap: 14px; }
.gear-hero,
.gear-next,
.gear-max {
  padding: 14px;
  border: 4px solid var(--wtf-black);
  border-radius: 18px;
  background: #dff3ff;
}
.gear-hero small,
.gear-next small,
.reward-ticket small {
  display: block;
  font-weight: 950;
  letter-spacing: .04em;
}
.gear-hero h1 { margin: 5px 0 8px; }
.gear-hero p,
.gear-next span,
.gear-max span { margin: 0; font-weight: 800; }
.gear-stat-list { display: grid; gap: 9px; }
.gear-stat-list > div,
.reward-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 3px solid var(--wtf-black);
  border-radius: 13px;
  background: white;
  font-weight: 900;
}
.gear-stat-list span { text-align: right; font-size: clamp(11px, 2.8vw, 15px); }
.gear-next { display: grid; gap: 5px; background: #fff1a8; }
.gear-upgrade { width: 100%; }
.gear-max { display: grid; gap: 5px; background: #ccefc5; text-align: center; }
.gear-tier-list { display: grid; gap: 11px; }
.gear-tier-card {
  padding: 12px;
  border: 3px solid var(--wtf-black);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(29,29,27,.2);
}
.gear-tier-card.current { background: #d7f3cd; border-width: 5px; }
.gear-tier-card.owned { background: #eef2f4; }
.gear-tier-card.locked { opacity: .68; }
.gear-tier-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  font-family: "Arial Black", Arial, sans-serif;
}
.gear-tier-card header span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 2px solid var(--wtf-black);
  border-radius: 8px;
  background: var(--yellow);
  font-size: 11px;
}
.gear-tier-card p { margin: 7px 0; font-weight: 800; }
.gear-tier-card dl { display: grid; gap: 5px; margin: 8px 0; }
.gear-tier-card dl > div {
  display: grid;
  grid-template-columns: minmax(76px, .65fr) 1.6fr;
  gap: 8px;
  padding-top: 5px;
  border-top: 2px solid rgba(29,29,27,.17);
}
.gear-tier-card dt { font-weight: 950; font-size: 11px; }
.gear-tier-card dd { margin: 0; font-weight: 850; text-align: right; }
.gear-tier-card small { display: block; font-weight: 900; color: #40505a; }
.gear-tier-action {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 7px 10px;
  font-size: 13px;
}
.gear-tier-current {
  display: block;
  margin-top: 10px;
  padding: 8px;
  border: 3px solid var(--wtf-black);
  border-radius: 10px;
  background: var(--green);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}
.fight-command {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 4px solid var(--wtf-black);
  border-radius: 14px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(14px, 3.8vw, 21px);
  text-align: center;
  background: var(--yellow);
  box-shadow: 0 4px 0 rgba(29,29,27,.25);
}
.fight-command.engaged { background: #ccefc5; }
.fight-command.release { background: var(--red); color: #fff; }

.reward-ticket {
  padding: 18px;
  border: 5px dashed var(--wtf-black);
  border-radius: 20px;
  background: #eceff1;
  text-align: center;
}
.reward-ticket.unlocked {
  background: var(--yellow);
  box-shadow: 0 7px 0 rgba(29,29,27,.35);
}
.reward-ticket h1 {
  margin: 8px 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(38px, 11vw, 64px);
  line-height: 1;
  letter-spacing: .02em;
}
.reward-ticket p { font-weight: 850; }
.reward-ticket .wtf-button { width: 100%; }
.reward-progress { display: grid; gap: 8px; }
.paper-panel h1, .paper-panel h2 { margin: 0 0 12px; font-family: "Arial Black", Arial, sans-serif; text-transform: uppercase; line-height: .95; }
.paper-panel h1 { font-size: clamp(25px, 6vw, 42px); }
.paper-panel h2 { font-size: clamp(18px, 4.5vw, 30px); }
.panel-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.panel-footer:has(> :only-child) { grid-template-columns: 1fr; }
.screen-footer { position: relative; z-index: 3; flex: 0 0 auto; margin-top: 10px; }

.trip-summary-screen {
  justify-content: center;
}
.trip-summary-shell {
  display: flex;
  min-height: 0;
  max-height: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
  border: 4px solid var(--wtf-black);
  border-radius: 24px;
  background: rgba(248,251,252,.97);
  box-shadow: 0 9px 0 rgba(29,29,27,.45);
}
.trip-summary-header {
  flex: 0 0 auto;
  text-align: center;
}
.trip-summary-header h1 {
  margin: 0 0 3px;
  font-family: var(--display);
  font-size: clamp(32px, 8vw, 52px);
  line-height: .9;
}
.trip-summary-header small {
  display: block;
  color: rgba(29,29,27,.68);
  font-weight: 950;
  text-transform: uppercase;
}
.trip-summary-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(29,29,27,.07);
  color: rgba(29,29,27,.7);
  font-size: clamp(10px, 2.5vw, 13px);
  font-weight: 950;
  line-height: 1;
}
.trip-summary-status.complete {
  background: #e3f3df;
  color: #285c2d;
}
.trip-photo-strip {
  display: flex;
  min-height: 0;
  gap: 10px;
  padding: 5px 3px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.trip-photo-strip.single { justify-content: center; }
.trip-photo-strip.empty { overflow: hidden; }
.trip-photo-card {
  display: grid;
  min-width: min(72%, 260px);
  grid-template-rows: minmax(88px, 1fr) auto;
  padding: 8px 8px 10px;
  border: 3px solid var(--wtf-black);
  border-radius: 4px;
  background: #fff8df;
  box-shadow: 0 5px 0 rgba(29,29,27,.24);
  scroll-snap-align: center;
  transform: rotate(var(--photo-tilt));
}
.trip-photo-image {
  display: grid;
  min-height: 88px;
  place-items: center;
  background: linear-gradient(#d8f2ff 0 52%, #68b8dc 52% 100%);
}
.trip-photo-image img {
  width: min(78%, 170px);
  max-height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(29,29,27,.16));
}
.trip-photo-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 7px 4px 0;
}
.trip-photo-copy b,
.trip-photo-copy strong {
  font-family: var(--display);
  font-size: clamp(15px, 4vw, 22px);
}
.trip-photo-copy span {
  grid-column: 1 / -1;
  color: rgba(29,29,27,.68);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.trip-empty-catch {
  display: grid;
  width: 100%;
  min-height: 120px;
  place-content: center;
  gap: 5px;
  border: 3px dashed rgba(29,29,27,.38);
  border-radius: 14px;
  text-align: center;
}
.trip-empty-catch b { font-family: var(--display); font-size: 22px; }
.trip-summary-totals {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.trip-summary-totals > div {
  display: grid;
  min-height: 58px;
  place-content: center;
  padding: 6px;
  border: 2px solid rgba(29,29,27,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  text-align: center;
}
.trip-summary-totals b { font-family: var(--display); font-size: clamp(20px, 5vw, 28px); }
.trip-summary-totals span { color: rgba(29,29,27,.62); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.trip-summary-counts {
  margin: -3px 0 0;
  color: rgba(29,29,27,.68);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}
.trip-summary-details {
  display: grid;
  min-height: 0;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.trip-mission-summary,
.trip-loss-summary {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(29,29,27,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.58);
}
.trip-mission-summary > div,
.trip-loss-summary > div,
.trip-unlocks > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.trip-detail-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(29,29,27,.08);
  color: rgba(29,29,27,.62);
  font-family: var(--display);
  font-size: 15px;
}
.trip-mission-summary.complete .trip-detail-icon,
.trip-loss-summary.clean .trip-detail-icon {
  background: #e3f3df;
  color: #285c2d;
}
.trip-loss-summary.lost .trip-detail-icon {
  background: #f6e2df;
  color: #8b3931;
}
.trip-mission-summary b,
.trip-loss-summary b,
.trip-unlocks b {
  font-family: var(--display);
  font-size: 12px;
}
.trip-mission-summary span:not(.trip-detail-icon),
.trip-loss-summary span:not(.trip-detail-icon),
.trip-unlocks span:not(.trip-detail-icon),
.trip-mission-summary small {
  color: rgba(29,29,27,.68);
  font-size: 10px;
  font-weight: 850;
}
.trip-mission-summary small {
  color: #285c2d;
}
.trip-unlocks {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(47,128,194,.22);
  border-radius: 10px;
  background: #edf6fc;
}
.trip-unlocks .trip-detail-icon {
  background: #d8ebf8;
  color: #286a9e;
}
.trip-summary-actions {
  flex: 0 0 auto;
  margin-top: auto;
}
.trip-summary-actions .wtf-button {
  width: 100%;
  min-height: 58px;
}

.card-list { display: grid; gap: 12px; }
.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 10px;
  border: 4px solid var(--wtf-black);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(29,29,27,.28);
  transition: background .1s ease, outline-color .1s ease, transform .1s ease;
}
.game-card.selected { background: #fff4bd; outline: 5px solid var(--green); outline-offset: -5px; }
.game-card.selection-feedback {
  z-index: 2;
  background: #fff4bd;
  outline: 5px solid var(--green);
  outline-offset: -5px;
  transform: scale(.985);
}
.game-card.selection-feedback::after {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #286a27;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  content: "✓";
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 2px 0 rgba(29,29,27,.2);
}
[data-selection-pending="true"] .game-card:not(.selection-feedback) {
  pointer-events: none;
}
.game-card.locked { filter: grayscale(.85); opacity: .65; cursor: not-allowed; }
.game-card > span { min-width: 0; text-align: left; }
.game-card img { width: 100px; height: 92px; object-fit: contain; }
.game-card .card-title {
  display: block;
  font-weight: 950;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1;
  overflow-wrap: anywhere;
}
.game-card .card-copy { display: block; margin-top: 6px; font-size: 14px; line-height: 1.18; }
.game-card .card-meta { font-weight: 950; font-size: 13px; line-height: 1.05; text-align: right; white-space: nowrap; }
.location-card { grid-template-columns: 126px minmax(0, 1fr); }
.location-card img { width: 122px; height: 88px; border-radius: 10px; object-fit: cover; border: 3px solid var(--wtf-black); }

.lure-card {
  grid-template-columns: 92px minmax(0, 1fr) 48px;
  align-items: start;
  min-height: 148px;
}
.lure-card > img { width: 88px; height: 88px; }
.lure-card-copy { display: grid; min-width: 0; gap: 5px; text-align: left; }
.lure-card .card-copy { margin-top: 0; }
.lure-card .card-copy b { font-weight: 950; }
.lure-technique { color: #173d59; }
.lure-fish { font-size: clamp(10px, 2.5vw, 15px) !important; opacity: .78; }
.lure-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border: 2px solid #286a27;
  border-radius: 8px;
  background: #dff3d8;
  color: #245c23;
  font-size: clamp(9px, 2.2vw, 12px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.shop-list { display: grid; gap: 12px; }
.shop-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 11px;
  min-height: 116px;
  padding: 10px;
  border: 4px solid var(--wtf-black);
  border-radius: 18px;
  background: white;
  box-shadow: 0 4px 0 rgba(29,29,27,.28);
}
.shop-card > img { width: 90px; height: 90px; object-fit: contain; }
.shop-card-copy { display: grid; gap: 5px; min-width: 0; }
.shop-card-copy b { font-size: 18px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.shop-card-copy span { font-size: 13px; line-height: 1.15; }
.shop-card-copy small { font-weight: 950; text-transform: uppercase; }
.shop-card-buy { display: grid; gap: 7px; text-align: center; }
.shop-card-buy strong { font-family: "Arial Black", Arial, sans-serif; font-size: 15px; line-height: 1; }
.shop-card-buy .wtf-button { min-height: 48px; padding: 7px 6px; font-size: 14px; }

.tackle-box-panel { gap: 12px; }
.tackle-box-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 4px solid var(--wtf-black);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 0 4px 0 rgba(29,29,27,.25);
  text-transform: uppercase;
}
.tackle-box-hero span { font-weight: 900; }
.tackle-box-hero b { font-family: "Arial Black", Arial, sans-serif; font-size: 18px; }
.tackle-box-list { display: grid; gap: 10px; }
.tackle-box-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 4px solid var(--wtf-black);
  border-radius: 15px;
  background: white;
  box-shadow: 0 4px 0 rgba(29,29,27,.2);
}
.tackle-box-card.selected { background: #fff4b8; }
.tackle-box-card > img { width: 88px; height: 88px; object-fit: contain; }
.tackle-box-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-transform: uppercase;
}
.tackle-box-card header b { font-size: 17px; line-height: 1; }
.tackle-box-card header strong {
  padding: 3px 7px;
  border: 3px solid var(--wtf-black);
  border-radius: 9px;
  background: var(--yellow);
  white-space: nowrap;
}
.tackle-box-card p { margin: 5px 0 8px; font-size: 12px; font-weight: 800; }
.tackle-box-card dl { display: grid; gap: 5px; margin: 0; }
.tackle-box-card dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 7px;
  padding-top: 5px;
  border-top: 2px solid rgba(29,29,27,.14);
}
.tackle-box-card dt { font-size: 10px; font-weight: 950; }
.tackle-box-card dd { margin: 0; font-size: 11px; font-weight: 800; line-height: 1.15; }
.tackle-box-card small {
  display: block;
  margin-top: 7px;
  color: #47616d;
  font-size: 10px;
  font-weight: 950;
}
.shop-rescue {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 4px solid var(--wtf-black);
  border-radius: 16px;
  background: #ccefc5;
  box-shadow: 0 4px 0 rgba(29,29,27,.25);
}
.shop-rescue b { font-family: "Arial Black", Arial, sans-serif; font-size: 20px; line-height: 1; text-transform: uppercase; }
.shop-rescue span { font-weight: 750; line-height: 1.2; }
.shop-rescue.compact { background: #fff1a8; }

.section-label {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 7px 13px;
  background: var(--wtf-black);
  color: white;
  border-radius: 9px;
  font-weight: 950;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.collection-heading { margin-top: 24px !important; }
.collection-card {
  min-height: 170px;
  padding: 10px;
  border: 4px solid var(--wtf-black);
  border-radius: 18px;
  background: white;
  text-align: center;
  box-shadow: 0 4px 0 rgba(29,29,27,.25);
}
.collection-card.locked { background: #e9eef1; opacity: .76; }
.collection-card.locked img { filter: grayscale(1) brightness(.2); opacity: .42; }
.collection-card img { width: 100%; height: 105px; object-fit: contain; }
.collection-card b { display: block; text-transform: uppercase; font-size: clamp(14px, 3vw, 20px); }
.collection-card small { display: block; margin-top: 4px; }

.daily-poster, .result-card {
  text-align: center;
  border: 5px solid var(--wtf-black);
  border-radius: 24px;
  padding: 18px;
  background: white;
  box-shadow: 0 7px 0 rgba(29,29,27,.35);
}
.daily-poster img, .result-card img { width: min(74%, 330px); max-height: 300px; object-fit: contain; }
.daily-poster .ribbon, .result-card .ribbon {
  display: block;
  margin: -4px auto 14px;
  padding: 9px 15px;
  width: fit-content;
  max-width: 100%;
  border: 4px solid var(--wtf-black);
  background: var(--wtf-red);
  color: white;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(17px, 4vw, 27px);
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.daily-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.daily-stats span {
  display: grid;
  align-content: center;
  min-height: 64px;
  padding: 8px;
  border: 3px solid var(--wtf-black);
  border-radius: 12px;
  background: white;
}
.daily-stats small { font-weight: 950; opacity: .62; }
.daily-stats b { margin-top: 3px; font-size: clamp(13px, 3vw, 18px); }
.challenge-code { margin: 10px 0; font-size: 13px; font-weight: 900; opacity: .7; }
.result-card.success { background: #fff1a8; }
.result-card.failure { background: #dcecf5; }
.result-card h1 { font-size: clamp(34px, 8vw, 58px); margin: 0 0 8px; }
.result-catch-summary {
  display: grid;
  grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.result-catch-summary > img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.result-catch-copy { min-width: 0; }
.result-catch-copy h2 { margin: 0; }
.result-catch-copy p { margin: 4px 0; }
.result-location {
  display: block;
  margin: -2px 0 8px;
  font-weight: 950;
  text-transform: uppercase;
  opacity: .68;
}
.result-weight { font-family: "Arial Black", Arial, sans-serif; font-size: clamp(32px, 8vw, 54px); }
.result-reward {
  width: fit-content;
  margin: 8px auto;
  padding: 7px 12px;
  border: 3px solid var(--wtf-black);
  border-radius: 11px;
  background: white;
  font-weight: 950;
  text-transform: uppercase;
}
.lure-loss-alert {
  display: grid;
  gap: 5px;
  margin: 8px 0 12px;
  padding: 11px 12px;
  border: 5px solid var(--wtf-black);
  border-radius: 14px;
  background: var(--wtf-red);
  color: white;
  box-shadow: 0 5px 0 rgba(29,29,27,.38);
  text-transform: uppercase;
}
.lure-loss-alert b {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(18px, 4.6vw, 28px);
  line-height: .98;
}
.lure-loss-alert span { font-weight: 950; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.result-stat {
  padding: 8px 4px;
  border: 2px solid rgba(29,29,27,.42);
  border-radius: 10px;
  background: rgba(255,255,255,.62);
}
.result-stat b { display: block; font-size: clamp(16px, 4vw, 27px); }
.result-stat small { font-weight: 900; text-transform: uppercase; }
.result-event-note {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 3px solid var(--wtf-black);
  border-radius: 12px;
  background: #dff3ff;
  text-align: left;
}
.result-event-note b { font-family: "Arial Black", Arial, sans-serif; }
.result-event-note span { font-size: 12px; font-weight: 750; line-height: 1.15; }
.result-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.result-panel .result-card { width: 100%; }
.trip-result-panel .result-card { padding: 12px; }
.trip-result-panel .result-card .ribbon {
  margin-bottom: 8px;
  padding: 7px 10px;
  font-size: clamp(14px, 3.5vw, 21px);
}
.trip-result-panel .result-card h1 {
  margin-bottom: 3px;
  font-size: clamp(28px, 6.6vw, 44px);
}
.trip-result-panel .result-card img {
  max-height: 110px;
}
.trip-result-panel .result-card h2 { margin: 2px 0; }
.trip-result-panel .result-weight { font-size: clamp(27px, 6.5vw, 44px); }
.trip-result-panel .result-card p { margin: 3px 0; }
.trip-result-panel .result-reward { margin: 4px auto; padding: 5px 9px; }
.result-actions {
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
}
.result-actions .secondary-action { min-height: 48px; font-size: clamp(13px, 3.1vw, 19px); }
.release-note {
  display: block;
  margin: 4px 0 8px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #2e6830;
  font-weight: 950;
  font-size: clamp(11px, 2.7vw, 16px);
  letter-spacing: .01em;
}

.mission-card {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 4px solid var(--wtf-black);
  border-radius: 16px;
  background: #dff3ff;
  box-shadow: 0 4px 0 rgba(29,29,27,.25);
}
.mission-card small,
.mission-card em { font-style: normal; font-weight: 950; text-transform: uppercase; }
.mission-card b { font-family: "Arial Black", Arial, sans-serif; font-size: clamp(18px, 4.5vw, 28px); line-height: 1; }
.mission-card span { font-weight: 750; }
.mission-card em { color: #286a27; font-size: clamp(11px, 2.8vw, 16px); }

.trip-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 64px 8px 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 4px solid var(--wtf-black);
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 0 rgba(29,29,27,.32);
  font-size: clamp(10px, 2.6vw, 16px);
  line-height: 1;
}
.trip-hud b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-hud span { flex: 0 0 auto; font-family: "Arial Black", Arial, sans-serif; font-size: 1.15em; }

.trip-status {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 9px 11px;
  border: 3px solid var(--wtf-black);
  border-radius: 12px;
  background: #dff3ff;
  font-size: clamp(11px, 2.6vw, 16px);
  text-transform: uppercase;
}
.trip-status.complete { background: #ccefc5; }
.trip-status b { line-height: 1.1; }
.trip-status span { font-weight: 900; opacity: .68; }
.trip-controls {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 10px;
  border: 4px solid var(--wtf-black);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 5px 0 rgba(29,29,27,.4);
}
.trip-lures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.trip-lure {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 56px;
  padding: 5px 7px;
  border: 3px solid var(--wtf-black);
  border-radius: 12px;
  background: white;
  box-shadow: 0 3px 0 rgba(29,29,27,.25);
  font-weight: 950;
  cursor: pointer;
}
.trip-lure.selected { background: #fff1a8; outline: 4px solid var(--green); outline-offset: -4px; }
.trip-lure:disabled { opacity: .42; filter: grayscale(1); cursor: default; }
.trip-lure img { width: 38px; height: 38px; object-fit: contain; }
.trip-lure span { overflow: hidden; padding-right: 17px; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(10px, 2.4vw, 14px); }
.trip-lure b { position: absolute; top: 4px; right: 5px; font-size: 11px; }
.trip-primary-wrap { display: grid; margin-top: 10px; }
.trip-complete-actions {
  display: grid;
  gap: 8px;
}
.trip-primary-action {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 72px;
  font-size: clamp(20px, 5vw, 31px);
  touch-action: manipulation;
}
.trip-complete-actions .trip-primary-action {
  min-height: 60px;
  font-size: clamp(16px, 4vw, 24px);
}
.trip-quiet-exit {
  width: 100%;
  margin-top: 8px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--wtf-black);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .66;
}
.trip-close-overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    calc(var(--safe-top) + 24px)
    calc(var(--safe-right) + 22px)
    calc(var(--safe-bottom) + 24px)
    calc(var(--safe-left) + 22px);
  background: rgba(8, 25, 36, .78);
  backdrop-filter: blur(4px);
  animation: trip-close-in .22s ease-out;
}
.trip-close-card {
  width: 100%;
  padding: clamp(26px, 7vw, 48px) 18px 18px;
  border: 5px solid var(--wtf-black);
  border-radius: 24px;
  background: #f7fbfd;
  box-shadow: 0 9px 0 rgba(0, 0, 0, .45);
  text-align: center;
}
.trip-close-card > small {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29,29,27,.08);
  color: rgba(29,29,27,.7);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(12px, 3.1vw, 18px);
}
.trip-close-card h2 {
  margin: 18px 0 12px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(40px, 11vw, 70px);
  line-height: .9;
}
.trip-close-card p {
  margin: 0;
  color: rgba(29,29,27,.62);
  font-size: clamp(15px, 4vw, 23px);
  font-weight: 950;
  text-transform: uppercase;
}
@keyframes trip-close-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.location-condition {
  display: block;
  margin-top: 6px;
  color: #315b70;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}
.location-difficulty {
  display: block;
  margin-top: 5px;
  color: #7b312c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.location-gear {
  display: block;
  margin-top: 4px;
  color: #4f4a40;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}
.location-unlock {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 7px;
  border: 2px solid currentColor;
  border-radius: 7px;
  background: rgba(255, 255, 255, .7);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}
.location-card.locked .location-unlock { color: #39454c; }

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 3px dashed rgba(29,29,27,.3);
  font-weight: 950;
  font-size: clamp(17px, 4vw, 26px);
  text-transform: uppercase;
}
.toggle {
  width: 72px;
  height: 42px;
  border: 4px solid var(--wtf-black);
  border-radius: 30px;
  background: var(--wtf-gray);
  padding: 3px;
  cursor: pointer;
}
.toggle::after { content: ""; display: block; width: 28px; height: 28px; border: 3px solid var(--wtf-black); border-radius: 50%; background: white; transition: transform .15s ease; }
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(29px); }
.settings-note {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 3px solid var(--wtf-black);
  border-radius: 14px;
  background: #dff3ff;
}
.settings-note b { font-size: 14px; }
.settings-note span { font-size: 13px; }
.danger-zone {
  margin-top: 16px;
  padding: 10px 12px;
  border: 3px dashed rgba(29,29,27,.35);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.danger-zone summary {
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
}
.danger-zone p { margin: 10px 0; line-height: 1.25; }
.danger-zone .wtf-button { width: 100%; font-size: clamp(14px, 3.4vw, 20px); }

.hud-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.hud-state-panel { flex: 1; min-width: 0; max-width: calc(100% - 60px); }
.hud-state-card,
.status-indicator,
.bite-signal {
  padding: 8px 10px;
  border: 4px solid var(--wtf-black);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 0 rgba(29,29,27,.35);
}
.hud-state-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.hud-state-heading b {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(10px, 2.55vw, 15px);
  line-height: 1;
}
.hud-state-heading span {
  flex: 0 0 auto;
  font-size: clamp(9px, 2.25vw, 13px);
  font-weight: 950;
}
.hud-state-card small {
  display: block;
  margin-top: 5px;
  font-weight: 850;
  font-size: clamp(9px, 2.25vw, 13px);
  line-height: 1.08;
}
.simple-meter {
  height: 14px;
  overflow: hidden;
  border: 3px solid var(--wtf-black);
  border-radius: 7px;
  background: #d8e5ea;
}
.simple-meter > i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--water);
  transition: width .08s linear, background-color .12s linear;
}
.aim-meter > i.accurate { background: var(--green); }
.retrieve-meter > i { background: #2f80c2; }
.retrieve-feedback {
  padding: 3px 6px;
  border-radius: 7px;
  background: #d8e5ea;
  color: #173d59;
}
.retrieve-feedback.warming { background: #fff1a8; color: #5e4b00; }
.retrieve-feedback.good { background: #ccefc5; color: #245c23; }
.retrieve-feedback.following { background: #dff3ff; color: #173d59; }
.retrieve-feedback.refused { background: #eceff1; color: #4c5358; }
.retrieve-feedback.short-strike { background: #ffe39b; color: #3f2d00; }
.retrieve-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wind-in-button {
  min-height: 28px;
  padding: 3px 10px;
  border-width: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--wtf-black);
  font-size: 12px;
  line-height: 1;
}
.wind-in-button[hidden] { display: none; }
.bite-signal {
  display: grid;
  gap: 2px;
  width: 100%;
  appearance: none;
  color: var(--wtf-black);
  cursor: default;
  background: #fff1a8;
  text-align: center;
}
.bite-signal:disabled { opacity: 1; }
.bite-signal b {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(19px, 4.8vw, 30px);
  line-height: .9;
}
.bite-signal span { font-weight: 950; font-size: clamp(10px, 2.5vw, 14px); }
.hook-timing {
  position: relative;
  display: block;
  height: 13px;
  margin-top: 4px;
  border: 3px solid var(--wtf-black);
  border-radius: 8px;
  background: #d8e5ea;
}
.hook-sweet-spot {
  position: absolute;
  inset: 0 auto 0 46%;
  width: 26%;
  background: var(--green);
}
.hook-timing-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 5px;
  margin-left: -2px;
  border: 1px solid white;
  border-radius: 3px;
  background: var(--wtf-black);
  transition: left .05s linear;
}
.bite-signal.hook-now {
  background: var(--wtf-red);
  color: white;
  cursor: pointer;
  animation: hook-signal .42s ease-in-out infinite alternate;
}
@keyframes hook-signal {
  to { box-shadow: 0 4px 0 rgba(29,29,27,.35), 0 0 0 6px rgba(232,67,57,.28); }
}
.hook-action-button {
  min-height: 76px !important;
  font-size: clamp(20px, 5.2vw, 32px) !important;
}
.fight-indicators { display: grid; gap: 6px; }
.status-indicator { padding: 6px 8px; }
.status-indicator .hud-state-heading { margin-bottom: 3px; }
.tension-indicator .simple-meter > i.safe { background: var(--water); }
.tension-indicator .simple-meter > i.high { background: var(--yellow); }
.tension-indicator .simple-meter > i.critical { background: var(--wtf-red); }
.distance-indicator .simple-meter > i { background: var(--green); }
.grip-indicator .simple-meter > i.safe { background: var(--green); }
.grip-indicator .simple-meter > i.high { background: var(--yellow); }
.grip-indicator .simple-meter > i.critical { background: var(--wtf-red); }
.snag-meter > i { background: var(--yellow); }
.attempts-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: clamp(10px, 2.5vw, 15px);
  font-weight: 950;
}
.attempts-indicator span {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 1.2em;
}

.hud-bottom {
  margin-top: auto;
  display: grid;
  gap: 9px;
  pointer-events: none;
}
[data-screen="fishing"].ui-screen {
  padding-bottom: calc(var(--safe-bottom) + 4px);
}
.hud-message {
  padding: 12px 14px;
  border: 3px solid rgba(29,29,27,.82);
  border-radius: 17px;
  background: rgba(29,29,27,.76);
  color: white;
  text-align: center;
  box-shadow: 0 4px 0 rgba(0,0,0,.24);
  backdrop-filter: blur(2px);
}
.hud-message strong { display: block; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(18px, 4.8vw, 31px); line-height: 1; text-transform: uppercase; }
.hud-message small { display: block; margin-top: 5px; font-weight: 700; font-size: clamp(11px, 2.8vw, 17px); }
.hud-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; pointer-events: auto; }
.hud-actions.one { grid-template-columns: 1fr; }
.hud-actions .wtf-button { min-height: 64px; padding: 8px 5px; }
.fight-thumb-guide {
  position: absolute;
  z-index: 4;
  right: calc(var(--safe-right) + 14px);
  bottom: calc(var(--safe-bottom) + 18px);
  display: grid;
  place-items: center;
  width: clamp(112px, 31vw, 156px);
  aspect-ratio: 1;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(23,61,89,.76);
  color: white;
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
  text-align: center;
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.fight-thumb-guide[hidden] { display: none; }
.fight-thumb-guide b {
  z-index: 2;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(19px, 5vw, 29px);
  line-height: .9;
}
.fight-thumb-guide span {
  z-index: 2;
  margin-top: -24px;
  font-size: clamp(9px, 2.2vw, 12px);
  font-weight: 950;
}
.fight-thumb-guide i {
  position: absolute;
  inset: 14%;
  border: 3px dashed rgba(255,255,255,.55);
  border-radius: 50%;
}
.fight-thumb-guide.release {
  background: rgba(232,67,57,.92);
  animation: fight-release-pulse .42s ease-in-out infinite alternate;
}
.fight-thumb-guide.danger { background: rgba(126,49,44,.92); }
@keyframes fight-release-pulse {
  to {
    transform: scale(1.06);
    box-shadow: 0 6px 0 rgba(0,0,0,.35), 0 0 0 8px rgba(232,67,57,.24);
  }
}
[data-screen="fishing"][data-hud-mode="fight"] .hud-bottom { display: none; }
.hook-grip-warning {
  padding: 7px 9px;
  border: 3px solid var(--wtf-black);
  border-radius: 10px;
  background: var(--yellow);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(11px, 2.8vw, 16px);
  line-height: 1;
  text-align: center;
}
.hook-grip-warning[hidden] { display: none; }
.hook-grip-warning.critical {
  background: var(--wtf-red);
  color: white;
  animation: hook-signal .42s ease-in-out infinite alternate;
}
.pause-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(10,29,41,.82);
  pointer-events: auto;
}
.pause-box { width: 100%; max-width: 430px; padding: 22px; border: 5px solid white; border-radius: 24px; background: var(--wtf-black); color: white; text-align: center; box-shadow: 0 8px 0 rgba(0,0,0,.5); }
.pause-box h2 { font-size: clamp(30px, 8vw, 54px); margin: 0 0 18px; }
.pause-box .wtf-button { width: 100%; margin-top: 12px; }

.toast {
  max-width: 90%;
  padding: 11px 16px;
  border: 4px solid var(--wtf-black);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 5px 0 rgba(29,29,27,.4);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  animation: toast-in .25s ease, toast-out .25s ease 2.4s forwards;
}
.toast.success { background: #bfe9b5; }
.toast.danger { background: #ffc1ba; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-18px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-16px); } }

.debug-badge { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: white; font: 11px monospace; pointer-events: none; }

/* Bar wall: the WTFish mark belongs to the room; the game logo is a small sign.
   MFC integration is intentionally disabled and no second frame is rendered. */
[data-screen="bar"] .top-strip,
[data-screen="bar"] .bar-menu { position: relative; z-index: 3; }
[data-screen="bar"] .bar-wall-art {
  position: absolute;
  z-index: 1;
  top: calc(var(--safe-top) + 66px);
  left: 50%;
  display: grid;
  grid-template-columns: clamp(132px, 25.2vw, 185px);
  width: auto;
  transform: translateX(-50%);
  pointer-events: none;
}
[data-screen="bar"] .bar-wall-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 5px solid #282521;
  border-radius: 3px;
  background: #f7f4e8;
  box-shadow:
    inset 0 0 0 2px rgba(128,112,88,.28),
    0 5px 0 rgba(29,29,27,.32);
}
[data-screen="bar"] button.bar-wall-frame {
  appearance: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: filter .16s ease, transform .16s ease;
}
[data-screen="bar"] .bar-wall-frame { transform: rotate(.65deg); }
[data-screen="bar"] .store-wall-link:hover,
[data-screen="bar"] .store-wall-link:focus-visible {
  filter: brightness(1.04);
  transform: rotate(.65deg) translateY(-2px);
}
[data-screen="bar"] .bar-wall-frame img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 92%;
  object-fit: contain;
}
[data-screen="bar"] .wtf-frame { background: #f5f6f7; }
[data-screen="bar"] .bar-game-logo {
  position: absolute;
  z-index: 2;
  top: calc(var(--safe-top) + 184px);
  right: calc(var(--safe-right) + 13px);
  display: flex;
  width: clamp(62px, 19vw, 104px);
  min-height: 0;
  margin: 0;
  justify-content: flex-end;
  filter: drop-shadow(0 5px 0 rgba(29,29,27,.38));
  pointer-events: none;
}
[data-screen="bar"] .bar-game-logo img {
  width: 100%;
  max-height: 86px;
  object-fit: contain;
  transform: rotate(3deg);
}

@media (max-height: 740px) {
  [data-screen="bar"] .bar-wall-art {
    top: calc(var(--safe-top) + 57px);
    grid-template-columns: 120px;
    width: auto;
  }
  [data-screen="bar"] .bar-wall-frame {
    width: 100%;
    height: auto;
    padding: 4px;
    border-width: 4px;
  }
  [data-screen="bar"] .bar-game-logo {
    top: calc(var(--safe-top) + 132px);
    width: 58px;
  }
}

@container game-shell (max-height: 740px) {
  [data-screen="bar"] .bar-wall-art {
    top: calc(var(--safe-top) + 57px);
    grid-template-columns: 120px;
    width: auto;
  }
  [data-screen="bar"] .bar-wall-frame {
    width: 100%;
    height: auto;
    padding: 4px;
    border-width: 4px;
  }
  [data-screen="bar"] .bar-game-logo {
    top: calc(var(--safe-top) + 132px);
    width: 58px;
  }
}

@container game-shell (max-height: 640px) {
  [data-screen="bar"] .bar-wall-art {
    top: calc(var(--safe-top) + 50px);
    grid-template-columns: 98px;
    width: auto;
  }
  [data-screen="bar"] .bar-wall-frame {
    width: 100%;
    height: auto;
  }
  [data-screen="bar"] .bar-game-logo {
    top: calc(var(--safe-top) + 112px);
    width: 52px;
  }
}

.store-bridge {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(70px, 104px) 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 2px solid rgba(40,37,33,.42);
  border-radius: 12px;
  background: rgba(247,244,232,.78);
  color: #282521;
  box-shadow: 0 3px 0 rgba(29,29,27,.18);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.store-bridge:hover,
.store-bridge:focus-visible {
  border-color: rgba(40,37,33,.72);
  background: rgba(255,255,255,.94);
  transform: translateY(-1px);
}
.store-bridge img {
  display: block;
  width: 100%;
  max-height: 30px;
  object-fit: contain;
}
.store-bridge span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.store-bridge b {
  font-size: clamp(12px, 2.5vw, 16px);
  line-height: 1.05;
}
.store-bridge small {
  color: rgba(40,37,33,.68);
  font-size: clamp(9px, 1.9vw, 12px);
  font-weight: 750;
  line-height: 1.15;
}
.store-bridge i {
  color: rgba(40,37,33,.65);
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
}
.store-bridge.compact {
  grid-template-columns: minmax(64px, 88px) 1fr auto;
  margin-top: 8px;
  padding-block: 8px;
}

.intro-screen {
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(180deg, rgba(13,34,48,.06), rgba(13,34,48,.58));
}
.intro-logo {
  position: absolute;
  top: calc(var(--safe-top) + 6px);
  left: 50%;
  width: min(66%, 420px);
  transform: translateX(-50%) rotate(-2deg);
  filter: drop-shadow(0 8px 0 rgba(29,29,27,.38));
}
.intro-logo img { width: 100%; display: block; }
.intro-card {
  position: relative;
  width: min(100%, 560px);
  align-self: center;
  padding: 14px;
  border: 5px solid var(--wtf-black);
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 9px 0 rgba(29,29,27,.55);
}
.intro-stage { position: relative; height: clamp(190px, 34vh, 330px); overflow: hidden; border: 4px solid var(--wtf-black); border-radius: 18px; background: linear-gradient(#244b5c, #172d37); }
.intro-barmaid { position: absolute; left: -8%; bottom: -23%; width: 58%; height: 122%; object-fit: contain; object-position: bottom; filter: drop-shadow(5px 7px 0 rgba(0,0,0,.35)); }
.speech-bubble { position: absolute; right: 4%; top: 12%; width: 56%; padding: 16px 12px; border: 4px solid var(--wtf-black); border-radius: 18px; background: white; font-family: "Arial Black", Arial, sans-serif; font-size: clamp(18px, 5vw, 34px); line-height: .98; text-align: center; transform: rotate(1deg); }
.speech-bubble::after { content: ""; position: absolute; left: -24px; bottom: 18px; width: 30px; height: 30px; background: white; border-left: 4px solid var(--wtf-black); border-bottom: 4px solid var(--wtf-black); transform: rotate(36deg); }
.intro-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.intro-rules span { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 6px; min-width: 0; padding: 7px; border: 3px solid var(--wtf-black); border-radius: 12px; background: white; font-weight: 950; font-size: clamp(10px, 2.6vw, 15px); line-height: 1.05; }
.intro-rules b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wtf-red); color: white; }
.intro-card .primary { width: 100%; min-height: 66px; }
.intro-exit-tutorial {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: rgba(29,29,27,.72);
  font: 950 clamp(10px, 2.7vw, 13px)/1.1 Arial, sans-serif;
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intro-note { display: block; margin-top: 10px; text-align: center; font-weight: 900; text-transform: uppercase; opacity: .72; }

@media (max-width: 430px) {
  .ui-screen { padding-left: calc(var(--safe-left) + 12px); padding-right: calc(var(--safe-right) + 12px); }
  .top-strip { gap: 6px; }
  .top-strip .chip { padding-left: 9px; padding-right: 9px; }
  .top-strip .header-title { font-size: 12px; }
  .icon-button { width: 48px; height: 48px; border-radius: 14px; }
  .compact-text-button { width: auto; min-width: 58px; padding: 0 7px; font-size: 10px; }
  .back-button { min-width: 64px; }
  .game-card { grid-template-columns: 82px minmax(0, 1fr) 52px; min-height: 98px; gap: 8px; }
  .game-card img { width: 78px; height: 78px; }
  .game-card .card-title { font-size: 16px; }
  .game-card .card-copy { font-size: 12px; }
  .game-card .card-meta { font-size: 11px; }
  .lure-card { grid-template-columns: 72px minmax(0, 1fr) 38px; min-height: 145px; }
  .lure-card > img { width: 70px; height: 72px; }
  .lure-card .card-title { font-size: 15px; }
  .lure-card .card-copy { font-size: 11px; }
  .lure-badge { font-size: 9px; }
  .location-card { grid-template-columns: 92px minmax(0, 1fr); }
  .location-card img { width: 88px; height: 72px; }
  .shop-card { grid-template-columns: 70px minmax(0, 1fr) 82px; gap: 7px; padding: 8px; }
  .shop-card > img { width: 68px; height: 72px; }
  .shop-card-copy b { font-size: 14px; }
  .shop-card-copy span { font-size: 11px; }
  .shop-card-copy small { font-size: 10px; }
  .shop-card-buy strong { font-size: 12px; }
  .shop-card-buy .wtf-button { min-height: 42px; font-size: 11px; }
  .tackle-box-card { grid-template-columns: 66px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .tackle-box-card > img { width: 66px; height: 70px; }
  .tackle-box-card header b { font-size: 14px; }
  .tackle-box-card p { font-size: 10px; }
  .tackle-box-card dl > div { grid-template-columns: 58px minmax(0, 1fr); }
  .tackle-box-card dd { font-size: 10px; }
  .paper-panel { padding: 12px; }
  .screen-footer .wtf-button { padding-left: 8px; padding-right: 8px; font-size: 15px; }
  .daily-stats { grid-template-columns: 1fr; }
  .result-stats { gap: 5px; }
  .result-stat small { font-size: 9px; line-height: 1.05; }
  .trip-controls { padding: 8px; }
  .trip-lures { gap: 5px; }
  .trip-lure { grid-template-columns: 32px minmax(0, 1fr); padding: 4px; }
  .trip-lure img { width: 32px; height: 34px; }
  .trip-lure span { font-size: 10px; }
  .hud-actions .wtf-button { font-size: 15px; }
}

@media (max-height: 740px) {
  .logo-wrap { margin-top: 1vh; }
  .bar-menu { gap: 8px; padding: 11px; }
  .bar-menu .primary { min-height: 62px; }
  .intro-logo { top: calc(var(--safe-top) + 16px); width: min(62%, 360px); }
  .intro-card { padding: 10px; }
  .intro-stage { height: 165px; }
  .intro-rules { margin: 8px 0; }
  .intro-rules span { grid-template-columns: 24px 1fr; padding: 5px; font-size: 10px; }
  .intro-rules b { width: 24px; height: 24px; }
  .intro-card .primary { min-height: 58px; }
  .intro-note { margin-top: 7px; font-size: 10px; }
  .ui-screen { padding-top: calc(var(--safe-top) + 8px); padding-bottom: calc(var(--safe-bottom) + 10px); }
  .screen-footer { margin-top: 7px; }
  .hud-message { padding: 9px 11px; }
  .hud-actions .wtf-button { min-height: 54px; }
  [data-screen="bar"] .logo-wrap {
    flex: 0 1 86px;
    min-height: 0;
    margin-top: 0;
  }
  [data-screen="bar"] .logo-wrap img {
    width: min(58%, 280px);
    max-height: 86px;
    object-fit: contain;
  }
  [data-screen="bar"] .bar-menu {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    margin-top: 7px;
    overflow-y: auto;
  }
  .screen-footer { flex-shrink: 0; }
}

@media (max-height: 640px) {
  [data-screen="bar"] .logo-wrap { display: none; }
  [data-screen="bar"] .bar-menu { margin-top: 7px; }
  [data-screen="bar"] .wtf-button { min-height: 48px; }
  [data-screen="bar"] .bar-menu .primary { min-height: 56px; }
  .trip-controls { margin-top: 6px; padding: 7px; }
  .trip-status { gap: 4px; padding: 6px 8px; }
  .trip-lures { margin-top: 6px; }
  .trip-lure { min-height: 46px; grid-template-columns: 30px minmax(0, 1fr); }
  .trip-lure img { width: 30px; height: 30px; }
  .trip-footer .wtf-button { min-height: 46px; }
  .trip-result-panel .result-card { padding: 10px; }
  .trip-result-panel .result-card .ribbon {
    margin-bottom: 7px;
    padding: 6px 9px;
    font-size: 14px;
  }
  .trip-result-panel .result-card h1 { font-size: 25px; }
  .trip-result-panel .result-card img { max-height: 76px; }
  .trip-result-panel .result-card h2 { font-size: 20px; }
  .trip-result-panel .result-weight { font-size: 27px; }
}

/*
 * The playable 9:16 shell can be shorter than the browser viewport when a
 * narrow phone is letterboxed vertically. Viewport media queries do not see
 * that reduced height, so the bar used the tall layout and clipped its last
 * row. Container queries size the menus against the actual game shell.
 */
@container game-shell (max-height: 740px) {
  .logo-wrap { margin-top: 1vh; }
  .bar-menu { gap: 8px; padding: 11px; }
  .bar-menu .primary { min-height: 62px; }
  .intro-logo { top: calc(var(--safe-top) + 16px); width: min(62%, 360px); }
  .intro-card { padding: 10px; }
  .intro-stage { height: 165px; }
  .intro-rules { margin: 8px 0; }
  .intro-rules span { grid-template-columns: 24px 1fr; padding: 5px; font-size: 10px; }
  .intro-rules b { width: 24px; height: 24px; }
  .intro-card .primary { min-height: 58px; }
  .intro-note { margin-top: 7px; font-size: 10px; }
  .ui-screen { padding-top: calc(var(--safe-top) + 8px); padding-bottom: calc(var(--safe-bottom) + 10px); }
  .screen-footer { margin-top: 7px; }
  .hud-message { padding: 9px 11px; }
  .hud-actions .wtf-button { min-height: 54px; }
  [data-screen="bar"] .logo-wrap {
    flex: 0 1 86px;
    min-height: 0;
    margin-top: 0;
  }
  [data-screen="bar"] .logo-wrap img {
    width: min(58%, 280px);
    max-height: 86px;
    object-fit: contain;
  }
  [data-screen="bar"] .bar-menu {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    margin-top: 7px;
    overflow-y: auto;
  }
  .screen-footer { flex-shrink: 0; }
}

@container game-shell (max-height: 640px) {
  [data-screen="bar"] .logo-wrap { display: none; }
  [data-screen="bar"] .bar-menu { margin-top: 7px; }
  [data-screen="bar"] .wtf-button { min-height: 48px; }
  [data-screen="bar"] .bar-menu .primary { min-height: 56px; }
  .trip-controls { margin-top: 6px; padding: 7px; }
  .trip-status { gap: 4px; padding: 6px 8px; }
  .trip-lures { margin-top: 6px; }
  .trip-lure { min-height: 46px; grid-template-columns: 30px minmax(0, 1fr); }
  .trip-lure img { width: 30px; height: 30px; }
  .trip-footer .wtf-button { min-height: 46px; }
  .trip-result-panel .result-card { padding: 10px; }
  .trip-result-panel .result-card .ribbon {
    margin-bottom: 7px;
    padding: 6px 9px;
    font-size: 14px;
  }
  .trip-result-panel .result-card h1 { font-size: 25px; }
  .trip-result-panel .result-card img { max-height: 76px; }
  .trip-result-panel .result-card h2 { font-size: 20px; }
  .trip-result-panel .result-weight { font-size: 27px; }
}

/*
 * Android browsers and Telegram WebView often leave only a 9:16 shell around
 * 640–700 CSS pixels high after their own chrome. Compact the whole UI against
 * the shell rather than relying on user-agent or physical-pixel detection.
 */
@container game-shell (max-height: 720px) {
  .ui-screen {
    padding:
      calc(var(--safe-top) + 2px)
      calc(var(--safe-right) + 9px)
      calc(var(--safe-bottom) + 4px)
      calc(var(--safe-left) + 9px);
  }
  .top-strip { min-height: 44px; gap: 6px; }
  .chip {
    min-height: 36px;
    padding: 5px 8px;
    border-width: 3px;
    border-radius: 11px;
    box-shadow: 0 3px 0 rgba(29,29,27,.32);
    font-size: 12px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
    border-width: 3px;
    border-radius: 13px;
    box-shadow: 0 3px 0 rgba(29,29,27,.38);
    font-size: 20px;
  }
  .compact-text-button { width: auto; min-width: 56px; padding-inline: 6px; font-size: 9px; }
  .back-button { min-width: 60px; }
  .wtf-button {
    min-height: 47px;
    padding: 8px 10px;
    border-width: 3px;
    border-radius: 13px;
    box-shadow: 0 4px 0 rgba(29,29,27,.4);
    font-size: 15px;
  }
  .bar-menu {
    gap: 7px;
    width: 100%;
    padding: 9px;
    border-width: 3px;
    border-radius: 18px;
    box-shadow: 0 5px 0 rgba(29,29,27,.45);
  }
  .bar-menu .primary { min-height: 54px; font-size: 22px; }
  .menu-grid { gap: 7px; }
  .menu-button-label,
  .menu-soft { font-size: 13px; }
  .paper-panel {
    margin-top: 8px;
    padding: 10px;
    border-width: 3px;
    border-radius: 17px;
    box-shadow: 0 5px 0 rgba(29,29,27,.4);
  }
  .paper-panel h1 { font-size: 28px; }
  .paper-panel h2 { font-size: 20px; }
  .panel-footer { gap: 7px; margin-top: 7px; }
  .screen-footer .wtf-button { min-height: 48px; font-size: 15px; }
  .card-list,
  .shop-list,
  .tackle-box-list,
  .gear-tier-list { gap: 8px; }
  .game-card,
  .shop-card,
  .tackle-box-card,
  .gear-tier-card {
    border-width: 3px;
    border-radius: 13px;
    box-shadow: 0 3px 0 rgba(29,29,27,.22);
  }
  .setting-row { padding: 10px 0; font-size: 17px; }
  .toggle { width: 62px; height: 36px; border-width: 3px; }
  .toggle::after { width: 24px; height: 24px; border-width: 2px; }
  .toggle.on::after { transform: translateX(25px); }
  .trip-hud {
    min-height: 34px;
    margin-right: 54px;
    padding: 5px 8px;
    border-width: 3px;
    font-size: 11px;
  }
  .hud-state-card,
  .status-indicator,
  .bite-signal { border-width: 3px; }
  .fight-indicators { gap: 5px; }
  .simple-meter { height: 12px; border-width: 2px; }
  .fight-thumb-guide {
    right: calc(var(--safe-right) + 10px);
    bottom: calc(var(--safe-bottom) + 12px);
    width: 112px;
    border-width: 3px;
  }
}

/*
 * Compact portrait UI for real in-app browsers. On an iPhone 12 mini the
 * Telegram chrome leaves a roughly 390 × 690 CSS-pixel game shell. The regular
 * 9:16 composition still fits, but poster-sized cards consume the whole play
 * field. This mode preserves touch targets while reducing decoration, copy and
 * vertical padding.
 */
@container game-shell (max-width: 430px) and (max-height: 780px) {
  .ui-screen {
    padding:
      calc(var(--safe-top) + 5px)
      calc(var(--safe-right) + 8px)
      calc(var(--safe-bottom) + 7px)
      calc(var(--safe-left) + 8px);
  }

  #toast-root {
    padding-top: calc(var(--safe-top) + 54px);
  }
  .toast {
    max-width: 84%;
    padding: 7px 10px;
    border-width: 3px;
    border-radius: 11px;
    box-shadow: 0 3px 0 rgba(29,29,27,.34);
    font-size: 10px;
    line-height: 1.12;
  }

  .top-strip { min-height: 38px; }
  .chip {
    min-height: 32px;
    padding: 4px 7px;
    font-size: 10px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 18px;
  }
  .compact-text-button { min-width: 50px; font-size: 8px; }
  .back-button { min-width: 54px; }
  .wtf-button {
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 11px;
    font-size: 13px;
  }

  [data-screen="bar"] .bar-menu {
    flex: 0 1 auto;
    width: 90%;
    max-height: calc(100% - 48px);
    gap: 5px;
    align-content: start;
    margin: auto auto 5px;
    padding: 7px;
    overflow-y: auto;
    border-radius: 15px;
  }
  [data-screen="bar"] .bar-menu .primary {
    min-height: 46px;
    font-size: 19px;
  }
  [data-screen="bar"] .menu-grid {
    grid-auto-rows: minmax(44px, auto);
    align-content: start;
    gap: 5px;
  }
  [data-screen="bar"] .menu-grid .wtf-button {
    min-height: 44px;
    padding: 5px 7px;
    font-size: 10px;
  }
  [data-screen="bar"] .menu-soft { gap: 4px; padding-left: 9px; }
  [data-screen="bar"] .menu-soft > span { font-size: 12px; }

  .paper-panel {
    margin-top: 6px;
    padding: 8px;
    border-radius: 14px;
  }
  .paper-panel h1 { margin-bottom: 7px; font-size: 23px; }
  .paper-panel h2 { margin-bottom: 6px; font-size: 17px; }
  .panel-footer,
  .screen-footer { gap: 6px; margin-top: 6px; }
  .screen-footer .wtf-button { min-height: 44px; font-size: 13px; }

  .trip-summary-screen { padding-block: calc(var(--safe-top) + 7px) calc(var(--safe-bottom) + 8px); }
  .trip-summary-shell {
    gap: 6px;
    padding: 9px;
    border-width: 3px;
    border-radius: 17px;
    box-shadow: 0 5px 0 rgba(29,29,27,.4);
  }
  .trip-summary-header h1 { font-size: 27px; }
  .trip-summary-header small { font-size: 9px; }
  .trip-summary-status { min-height: 20px; margin-top: 4px; padding: 3px 7px; font-size: 8px; }
  .trip-photo-strip { gap: 7px; padding: 2px 2px 6px; }
  .trip-photo-card {
    min-width: min(68%, 215px);
    grid-template-rows: 72px auto;
    padding: 6px 6px 7px;
    border-width: 2px;
  }
  .trip-photo-image { min-height: 72px; }
  .trip-photo-image img { max-height: 70px; }
  .trip-photo-copy { padding-top: 4px; }
  .trip-photo-copy b,
  .trip-photo-copy strong { font-size: 13px; }
  .trip-photo-copy span { font-size: 8px; }
  .trip-empty-catch { min-height: 88px; }
  .trip-empty-catch b { font-size: 17px; }
  .trip-summary-totals { gap: 4px; }
  .trip-summary-totals > div {
    min-height: 44px;
    padding: 4px 2px;
    border-radius: 8px;
  }
  .trip-summary-totals b { font-size: 16px; }
  .trip-summary-totals span { font-size: 7px; }
  .trip-summary-counts { font-size: 8px; }
  .trip-summary-details { gap: 4px; }
  .trip-mission-summary,
  .trip-loss-summary,
  .trip-unlocks {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 7px;
    border-radius: 8px;
  }
  .trip-detail-icon { width: 22px; height: 22px; font-size: 12px; }
  .trip-mission-summary b,
  .trip-loss-summary b,
  .trip-unlocks b { font-size: 9px; }
  .trip-mission-summary span:not(.trip-detail-icon),
  .trip-loss-summary span:not(.trip-detail-icon),
  .trip-unlocks span:not(.trip-detail-icon),
  .trip-mission-summary small { font-size: 7px; }
  .trip-summary-actions .wtf-button { min-height: 46px; font-size: 12px; }
  .section-label {
    margin: 3px 0 7px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 10px;
  }
  [data-screen="loadout"] .loadout-choice-note { display: none; }
  [data-screen="loadout"] .screen-footer { grid-template-columns: 1fr; }

  .tutorial-callout,
  .mission-card,
  .shop-rescue,
  .result-event-note {
    margin-bottom: 7px;
    padding: 7px 9px;
    border-width: 3px;
    border-radius: 11px;
  }
  .tutorial-callout b,
  .mission-card b,
  .shop-rescue b { font-size: 13px; }
  .tutorial-callout span,
  .mission-card span,
  .shop-rescue span { font-size: 10px; line-height: 1.12; }

  .card-list,
  .shop-list,
  .tackle-box-list,
  .gear-tier-list { gap: 6px; }
  .game-card {
    grid-template-columns: 58px minmax(0, 1fr) 32px;
    min-height: 78px;
    gap: 6px;
    padding: 6px;
  }
  .location-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .location-card img {
    width: 54px;
    height: 54px;
  }
  .game-card img { width: 56px; height: 58px; }
  .game-card .card-title { font-size: 13px; }
  .game-card .card-copy {
    display: -webkit-box;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .game-card .card-meta { font-size: 9px; }
  .lure-card {
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    min-height: 88px;
    align-items: center;
  }
  .lure-card > img { width: 54px; height: 54px; }
  .lure-card-copy { gap: 2px; }
  .lure-card .card-title { font-size: 13px; }
  .lure-card .card-copy { font-size: 9px; -webkit-line-clamp: 2; }
  .lure-fish {
    overflow: hidden;
    font-size: 9px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lure-badge { padding: 3px 5px; font-size: 8px; }

  .tackle-box-panel { gap: 6px; }
  .tackle-box-hero {
    gap: 7px;
    padding: 7px 9px;
    border-width: 3px;
    border-radius: 11px;
    font-size: 10px;
  }
  .tackle-box-hero b { font-size: 13px; }
  .tackle-box-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }
  .tackle-box-card > img { width: 48px; height: 50px; }
  .tackle-box-card header { gap: 5px; }
  .tackle-box-card header b { font-size: 11px; }
  .tackle-box-card header strong {
    padding: 2px 5px;
    border-width: 2px;
    border-radius: 7px;
    font-size: 10px;
  }
  .tackle-box-card p,
  .tackle-box-card small { display: none; }
  .tackle-box-card dl { gap: 2px; }
  .tackle-box-card dl > div {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 4px;
    padding-top: 3px;
  }
  .tackle-box-card dt,
  .tackle-box-card dd { font-size: 8px; line-height: 1.08; }

  .shop-card {
    grid-template-columns: 50px minmax(0, 1fr) 66px;
    min-height: 76px;
    gap: 6px;
    padding: 6px;
  }
  .shop-card > img { width: 48px; height: 52px; }
  .shop-card-copy { gap: 2px; }
  .shop-card-copy b { font-size: 11px; }
  .shop-card-copy span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .shop-card-copy small,
  .shop-card-buy strong { font-size: 9px; }
  .shop-card-buy .wtf-button { min-height: 44px; font-size: 9px; }

  .setting-row { padding: 8px 0; font-size: 14px; }
  .toggle { width: 60px; height: 44px; }
  .toggle::after { width: 21px; height: 21px; }
  .toggle.on::after { transform: translateX(27px); }
  .settings-note { padding: 8px 9px; }
  .settings-note b { font-size: 11px; }
  .settings-note span { font-size: 10px; }
  .settings-tutorial-button { margin-top: 8px; }
  .danger-zone { margin-top: 9px; padding: 7px 9px; font-size: 11px; }
  [data-screen="settings"] [data-action="fullscreen"] {
    display: none;
  }
  [data-screen="settings"] .screen-footer {
    grid-template-columns: 1fr;
  }

  .daily-poster {
    padding: 9px;
    border-width: 3px;
    border-radius: 15px;
  }
  .daily-poster > img {
    width: 58%;
    max-height: 120px;
  }
  .daily-poster .ribbon {
    margin-bottom: 6px;
    padding: 5px 7px;
    border-width: 3px;
    font-size: 12px;
  }
  .daily-poster h1 {
    margin: 4px 0;
    font-size: 22px;
  }
  .daily-stats {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 7px 0;
  }
  .daily-stats span {
    min-height: 48px;
    padding: 5px;
    border-width: 2px;
  }
  .daily-stats b { font-size: 11px; }
  .daily-stats small { font-size: 9px; }
  .challenge-code { margin: 5px 0; font-size: 9px; }

  [data-screen="result"] .top-strip { min-height: 34px; }
  [data-screen="result"] .result-panel {
    flex: 1 1 auto;
    margin-top: 5px;
    overflow-y: auto;
  }
  [data-screen="result"] .result-card {
    padding: 8px;
    border-width: 3px;
    border-radius: 15px;
    box-shadow: 0 4px 0 rgba(29,29,27,.3);
  }
  [data-screen="result"] .result-card .ribbon {
    margin: 0 auto 5px;
    padding: 5px 7px;
    border-width: 3px;
    font-size: 12px;
  }
  [data-screen="result"] .result-card h1 {
    margin-bottom: 3px;
    font-size: 25px;
  }
  [data-screen="result"] .result-location {
    margin: 0 0 5px;
    font-size: 9px;
    line-height: 1.08;
  }
  [data-screen="result"] .result-catch-summary {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 7px;
    margin-top: 3px;
  }
  [data-screen="result"] .result-catch-summary > img {
    width: 78px;
    max-height: 76px;
  }
  [data-screen="result"] .result-card h2 { margin: 2px 0; font-size: 17px; }
  [data-screen="result"] .result-weight { font-size: 25px; }
  [data-screen="result"] .result-reward {
    margin: 3px auto;
    padding: 4px 7px;
    border-width: 2px;
    font-size: 10px;
  }
  [data-screen="result"] .release-note,
  [data-screen="result"] .result-catch-copy p { margin: 2px 0; font-size: 9px; }
  [data-screen="result"] .result-stats {
    gap: 4px;
    margin: 6px 0 0;
  }
  [data-screen="result"] .result-stat { padding: 4px 2px; }
  [data-screen="result"] .result-stat b { font-size: 14px; }
  [data-screen="result"] .result-stat small { font-size: 9px; }
  [data-screen="result"] .store-bridge { display: none; }
  [data-screen="result"] .result-actions {
    gap: 5px;
    margin-top: 5px;
  }
  [data-screen="result"] .result-actions .wtf-button {
    min-height: 44px;
    font-size: 11px;
  }
  [data-screen="result"] .result-actions .result-primary {
    font-size: 12px;
  }
  .trip-result-panel {
    flex: 1 1 auto;
    margin-top: 5px;
    overflow-y: auto;
  }
  .trip-result-panel .result-card {
    padding: 7px;
    border-width: 3px;
    border-radius: 15px;
    box-shadow: 0 4px 0 rgba(29,29,27,.3);
  }
  .trip-result-panel .result-card .ribbon {
    margin: 0 auto 5px;
    padding: 5px 7px;
    border-width: 3px;
    font-size: 11px;
  }
  .trip-result-panel .result-card h1 {
    margin-bottom: 2px;
    font-size: 21px;
  }
  .trip-result-panel .result-location {
    margin: 0 0 4px;
    font-size: 8px;
    line-height: 1.05;
  }
  .trip-result-panel .result-catch-summary {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 6px;
    margin-top: 2px;
  }
  .trip-result-panel .result-catch-summary > img {
    width: 66px;
    max-height: 62px;
  }
  .trip-result-panel .result-card h2 { font-size: 15px; }
  .trip-result-panel .result-weight { font-size: 23px; }
  .trip-result-panel .result-reward {
    margin: 2px auto;
    padding: 3px 6px;
    border-width: 2px;
    border-radius: 7px;
    font-size: 10px;
  }
  .trip-result-panel .release-note { margin: 2px 0; font-size: 8px; }
  .trip-result-panel .result-catch-copy p { margin: 2px 0; font-size: 9px; }
  .trip-result-panel .result-stats {
    gap: 4px;
    margin: 5px 0 0;
  }
  .trip-result-panel .result-stat { padding: 3px 2px; border-radius: 7px; }
  .trip-result-panel .result-stat b { font-size: 13px; }
  .trip-result-panel .result-stat small { font-size: 7px; }
  .trip-result-panel .lure-loss-alert {
    gap: 2px;
    margin: 4px 0 6px;
    padding: 6px 7px;
    border-width: 3px;
    font-size: 9px;
  }
  .trip-result-panel .lure-loss-alert b { font-size: 14px; }
  .trip-result-panel .store-bridge { display: none; }

  .trip-controls {
    margin-top: 5px;
    padding: 6px;
    border-width: 3px;
    border-radius: 14px;
  }
  .trip-status {
    gap: 3px;
    padding: 5px 7px;
    border-width: 2px;
    border-radius: 9px;
    font-size: 9px;
  }
  .trip-lures { gap: 4px; margin-top: 5px; }
  .trip-lure {
    grid-template-columns: 25px minmax(0, 1fr);
    min-height: 44px;
    gap: 3px;
    padding: 3px;
    border-width: 2px;
    border-radius: 8px;
  }
  .trip-lure img { width: 24px; height: 25px; }
  .trip-lure span { padding-right: 12px; font-size: 8px; }
  .trip-lure b { top: 2px; right: 3px; font-size: 8px; }
  .trip-primary-wrap { margin-top: 5px; }
  .trip-primary-action,
  .trip-complete-actions .trip-primary-action {
    min-height: 48px;
    font-size: 13px;
  }
  .trip-complete-actions { gap: 5px; }
  .trip-quiet-exit {
    min-height: 44px;
    margin-top: 4px;
    padding: 9px 3px;
    font-size: 8px;
  }

  .trip-hud {
    min-height: 29px;
    margin: 0 47px 4px 0;
    padding: 4px 7px;
    border-width: 3px;
    border-radius: 9px;
    font-size: 9px;
  }
  .hud-top { gap: 5px; }
  .hud-top > .icon-button {
    position: absolute;
    z-index: 6;
    top: calc(var(--safe-top) + 2px);
    right: calc(var(--safe-right) + 9px);
  }
  .hud-state-panel { max-width: 100%; }
  .hud-state-card,
  .status-indicator,
  .bite-signal {
    padding: 5px 7px;
    border-width: 3px;
    border-radius: 10px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 3px 0 rgba(29,29,27,.28);
    backdrop-filter: blur(2px);
  }
  .hud-state-heading { gap: 4px; margin-bottom: 3px; }
  .hud-state-heading b { font-size: 9px; }
  .hud-state-heading span { font-size: 8px; }
  .hud-state-card small { display: none; }
  .simple-meter { height: 9px; border-width: 2px; }
  .fight-indicators { gap: 3px; }
  .status-indicator { padding: 4px 6px; }
  .status-indicator .hud-state-heading { margin-bottom: 2px; }
  .bite-signal b { font-size: 17px; }
  .bite-signal span { font-size: 8px; }
  .hook-timing { height: 10px; margin-top: 2px; border-width: 2px; }
  .hud-bottom {
    gap: 4px;
    margin-bottom: -2px;
  }
  .hud-message {
    width: fit-content;
    max-width: 88%;
    justify-self: center;
    padding: 6px 10px;
    border-radius: 12px;
  }
  .hud-message strong { font-size: 15px; }
  .hud-message small { display: none; }
  .hud-actions .wtf-button { min-height: 46px; font-size: 13px; }
  .hook-action-button { min-height: 52px !important; font-size: 17px !important; }
  .fight-thumb-guide {
    width: 96px;
    right: calc(var(--safe-right) + 8px);
    bottom: calc(var(--safe-bottom) + 8px);
  }
  .fight-thumb-guide b { font-size: 17px; }
  .fight-thumb-guide span { font-size: 8px; }
}

/*
 * iPhone 12 mini and similarly short Telegram WebViews need one final,
 * screen-scoped pass. Keep this narrower than the general compact mode so the
 * regular phone and desktop compositions retain their spacing.
 */
@container game-shell (max-width: 390px) and (max-height: 700px) {
  [data-screen="bar"] .bar-menu {
    scroll-padding-block: 7px;
  }
  [data-screen="bar"] .menu-grid .wtf-button {
    font-size: 11px;
    line-height: 1.04;
  }
  [data-screen="bar"] .settings-menu-button {
    font-size: 10px;
  }

  [data-screen="box"] .tackle-box-panel,
  [data-screen="loadout"] .paper-panel,
  [data-screen="settings"] .settings-panel,
  [data-screen="result"] .result-panel {
    min-height: 0;
    scroll-padding-block: 6px;
  }

  [data-screen="box"] .tackle-box-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }
  [data-screen="box"] .tackle-box-card > img {
    width: 52px;
    height: 54px;
  }
  [data-screen="box"] .tackle-box-card header b {
    font-size: 12px;
  }
  [data-screen="box"] .tackle-box-card dt {
    font-size: 8px;
  }
  [data-screen="box"] .tackle-box-card dd {
    font-size: 9px;
    line-height: 1.14;
  }
  [data-screen="box"] .store-bridge {
    grid-template-columns: 62px minmax(0, 1fr) 18px;
    gap: 6px;
    padding: 7px 8px;
  }
  [data-screen="box"] .store-bridge b {
    font-size: 10px;
  }
  [data-screen="box"] .store-bridge small {
    font-size: 9px;
  }
  [data-screen="box"] .store-bridge i {
    font-size: 18px;
  }

  [data-screen="loadout"] .lure-card {
    grid-template-columns: 50px minmax(0, 1fr) 28px;
    gap: 6px;
    padding: 6px;
  }
  [data-screen="loadout"] .lure-card > img {
    width: 48px;
    height: 50px;
  }
  [data-screen="loadout"] .lure-card .card-copy {
    font-size: 9.5px;
    line-height: 1.14;
  }
  [data-screen="loadout"] .lure-fish {
    font-size: 8.5px !important;
  }

  [data-screen="settings"] .setting-row {
    min-height: 54px;
    padding-block: 5px;
  }
  [data-screen="settings"] .settings-note {
    margin-top: 10px;
  }
  [data-screen="settings"] .danger-zone summary {
    display: flex;
    min-height: 32px;
    align-items: center;
  }

  [data-screen="result"] .result-card > img {
    width: min(46%, 132px);
    max-height: 92px;
    margin-inline: auto;
  }
  [data-screen="result"] .result-card.failure h2 {
    font-size: 16px;
    line-height: 1.06;
  }
  [data-screen="result"] .lure-loss-alert {
    gap: 2px;
    margin: 4px 0 6px;
    padding: 6px 7px;
    border-width: 3px;
    font-size: 9px;
  }
  [data-screen="result"] .lure-loss-alert b {
    font-size: 14px;
  }
  [data-screen="result"] .result-event-note {
    gap: 2px;
    margin-top: 5px;
    padding: 6px 7px;
    border-width: 2px;
  }
  [data-screen="result"] .result-event-note b {
    font-size: 11px;
    line-height: 1.05;
  }
  [data-screen="result"] .result-event-note span {
    font-size: 9px;
    line-height: 1.1;
  }
  [data-screen="result"] .trip-lure span {
    font-size: 9px;
  }
}

.loadout-choice-note {
  display: grid;
  min-height: 47px;
  place-items: center;
  padding: 8px 10px;
  border: 3px dashed rgba(29,29,27,.42);
  border-radius: 13px;
  color: rgba(29,29,27,.68);
  background: rgba(255,255,255,.55);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.loadout-gear-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 2px solid rgba(34, 75, 98, .4);
  border-radius: 13px;
  background: rgba(244, 240, 225, .94);
  color: #1d3645;
  box-shadow: 0 3px 0 rgba(22, 52, 68, .14);
  text-align: left;
}

.loadout-gear-strip > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.loadout-gear-strip > span:last-child {
  justify-items: end;
  text-align: right;
}

.loadout-gear-strip small {
  overflow: hidden;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.loadout-gear-strip b {
  font-family: var(--display);
  font-size: 12px;
  line-height: 1;
}

.loadout-gear-strip.casting {
  border-color: #c58a27;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .74), transparent),
    #f8dfa0;
}

.result-gear-note {
  margin: 6px 0 0;
  color: rgba(29, 29, 27, .68);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .05em;
  text-align: center;
}

/* Main menu: the bar remains the world, while the controls read as a calm
   mobile-game shelf instead of a stack of equally loud web-form buttons. */
[data-screen="bar"] .bar-menu {
  width: min(calc(100% - 24px), 520px);
  max-height: none;
  gap: 8px;
  margin: auto auto max(10px, var(--safe-bottom));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

[data-screen="bar"] .bar-play-button {
  display: grid;
  min-height: 74px;
  place-content: center;
  gap: 4px;
  border: 2px solid rgba(51, 24, 20, .72);
  border-radius: 18px;
  box-shadow:
    0 5px 0 rgba(65, 24, 19, .42),
    0 13px 24px rgba(10, 30, 45, .18);
  letter-spacing: .02em;
}

[data-screen="bar"] .bar-play-button b {
  font-size: clamp(27px, 7vw, 38px);
  line-height: .95;
}

[data-screen="bar"] .bar-play-button small {
  font-family: var(--body);
  font-size: clamp(8px, 2.15vw, 11px);
  font-weight: 850;
  letter-spacing: .08em;
  opacity: .82;
}

[data-screen="bar"] .bar-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  border: 1px solid rgba(119, 161, 185, .5);
  border-radius: 18px;
  background: rgba(116, 159, 184, .5);
  box-shadow: 0 7px 18px rgba(7, 27, 42, .25);
}

[data-screen="bar"] .bar-main-actions .wtf-button {
  display: grid;
  min-height: 58px;
  align-content: center;
  justify-content: start;
  gap: 3px;
  padding: 9px 13px;
  border: 0;
  border-radius: 0;
  background: rgba(10, 38, 59, .93);
  color: #f8f1df;
  box-shadow: none;
  filter: none;
  text-align: left;
}

[data-screen="bar"] .bar-main-actions .wtf-button:active {
  background: rgba(20, 57, 82, .96);
  transform: translateY(1px);
}

[data-screen="bar"] .bar-main-actions b {
  font-size: clamp(14px, 3.8vw, 19px);
  line-height: 1;
  letter-spacing: .025em;
}

[data-screen="bar"] .bar-main-actions small {
  font-family: var(--body);
  font-size: clamp(7px, 2vw, 10px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  opacity: .62;
}

[data-screen="bar"] .bar-extra-actions {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-inline: 4px;
}

[data-screen="bar"] .bar-text-action,
[data-screen="bar"] .bar-settings-action {
  min-width: 0;
  min-height: 28px;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(10, 38, 59, .74);
  color: rgba(255, 249, 233, .82);
  box-shadow: none;
  font: 850 clamp(8px, 2.1vw, 10px)/1 var(--body);
  letter-spacing: .04em;
  text-decoration: none;
}

[data-screen="bar"] .bar-text-action.is-hot {
  color: #fff4ba;
}

[data-screen="bar"] .bar-text-action[disabled] {
  opacity: .34;
}

[data-screen="bar"] .bar-settings-action {
  background: rgba(10, 38, 59, .12);
  color: rgba(10, 38, 59, .88);
}

@container game-shell (max-width: 390px) and (max-height: 700px) {
  [data-screen="bar"] .bar-menu {
    width: calc(100% - 18px);
    gap: 6px;
    margin-bottom: max(6px, var(--safe-bottom));
    padding: 0;
    overflow: visible;
    border-radius: 0;
  }
  [data-screen="bar"] .bar-play-button {
    min-height: 52px;
    border-radius: 14px;
  }
  [data-screen="bar"] .bar-play-button b {
    font-size: 23px;
  }
  [data-screen="bar"] .bar-play-button small {
    font-size: 7px;
  }
  [data-screen="bar"] .bar-main-actions {
    grid-auto-rows: minmax(44px, auto);
    gap: 1px;
    border-radius: 14px;
  }
  [data-screen="bar"] .bar-main-actions .wtf-button {
    min-height: 44px;
    padding: 6px 9px;
  }
  [data-screen="bar"] .bar-main-actions b {
    font-size: 12px;
  }
  [data-screen="bar"] .bar-main-actions small {
    font-size: 7px;
  }
  [data-screen="bar"] .bar-extra-actions {
    min-height: 36px;
  }
  [data-screen="bar"] .bar-text-action,
  [data-screen="bar"] .bar-settings-action {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 8.5px;
  }
}

@media (min-width: 800px) {
  #game-shell { border-radius: 24px; }
}


/*
 * WTFish UI refresh
 * -----------------
 * Shared visual language for the HTML screens. Gameplay overlays keep their
 * own high-contrast treatment; menus and cards use calmer ink, thinner
 * keylines and layered paper shadows.
 */

:root {
  --ui-ink: #152632;
  --ui-ink-soft: #345160;
  --ui-paper: #f7f2e7;
  --ui-paper-cool: #edf5f6;
  --ui-paper-warm: #fff2bf;
  --ui-line: rgba(21, 38, 50, .82);
  --ui-line-soft: rgba(21, 38, 50, .2);
  --ui-navy: #102f43;
  --ui-navy-light: #1f536a;
  --ui-red: #ef4338;
  --ui-red-dark: #b92725;
  --ui-gold: #f5c644;
  --ui-green: #63b85a;
  --ui-blue: #3287bd;
  --ui-shadow:
    0 3px 0 rgba(21, 38, 50, .24),
    0 11px 24px rgba(8, 29, 41, .18);
  --ui-shadow-soft:
    0 2px 0 rgba(21, 38, 50, .14),
    0 7px 16px rgba(8, 29, 41, .12);
}

/* App chrome */
.ui-screen:not(.screen-clear) .chip,
.ui-screen:not(.screen-clear) .icon-button,
.ui-screen:not(.screen-clear) .wtf-button {
  border-width: 2px;
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow-soft);
}

.ui-screen:not(.screen-clear) .chip {
  min-height: 40px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(241, 245, 244, .98));
  color: var(--ui-ink);
}

.ui-screen:not(.screen-clear) .chip.dark {
  border-color: rgba(255, 255, 255, .7);
  background:
    linear-gradient(180deg, rgba(22, 51, 65, .97), rgba(12, 35, 48, .97));
  color: #fffaf0;
}

.ui-screen:not(.screen-clear) .level-chip {
  background:
    linear-gradient(180deg, #ffe27a 0%, var(--ui-gold) 68%, #e8ad2f 100%);
}

.ui-screen:not(.screen-clear) .icon-button,
.ui-screen:not(.screen-clear) .wtf-button {
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff 0%, #eef2f1 100%);
  color: var(--ui-ink);
  letter-spacing: .015em;
}

.ui-screen:not(.screen-clear) .wtf-button.red {
  border-color: rgba(94, 24, 24, .72);
  background:
    linear-gradient(180deg, #f65b4e 0%, var(--ui-red) 66%, #d82f2d 100%);
  color: #fff;
}

.ui-screen:not(.screen-clear) .wtf-button.green {
  border-color: rgba(28, 92, 50, .66);
  background:
    linear-gradient(180deg, #7bd36f 0%, var(--ui-green) 68%, #48a24c 100%);
  color: #fff;
}

.ui-screen:not(.screen-clear) .wtf-button.yellow {
  border-color: rgba(98, 68, 14, .58);
  background:
    linear-gradient(180deg, #ffe17a 0%, var(--ui-gold) 70%, #e9ae2e 100%);
}

.ui-screen:not(.screen-clear) .wtf-button.blue {
  border-color: rgba(17, 73, 107, .62);
  background:
    linear-gradient(180deg, #55a8d5 0%, var(--ui-blue) 72%, #2672a4 100%);
  color: #fff;
}

.ui-screen:not(.screen-clear) .wtf-button.black {
  border-color: rgba(255, 255, 255, .34);
  background:
    linear-gradient(180deg, #1d3e4f 0%, #102b3b 72%, #0a202e 100%);
  color: #fff;
}

.ui-screen:not(.screen-clear) .wtf-button:active,
.ui-screen:not(.screen-clear) .icon-button:active {
  box-shadow: 0 1px 0 rgba(21, 38, 50, .22);
  transform: translateY(2px);
}

.ui-screen:not(.screen-clear) .paper-panel {
  border-width: 2px;
  border-color: var(--ui-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .985), rgba(246, 241, 230, .975));
  box-shadow: var(--ui-shadow);
}

.ui-screen:not(.screen-clear) .panel-footer {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 18px;
  background: rgba(246, 244, 237, .82);
  box-shadow: 0 7px 18px rgba(8, 29, 41, .14);
  backdrop-filter: blur(7px);
}

/* Cards and repeated information surfaces */
.game-card,
.location-card,
.lure-card,
.collection-card,
.gear-tier-card,
.daily-poster,
.result-card,
.reward-ticket,
.reward-progress > div,
.settings-note,
.tutorial-callout,
.store-bridge {
  border-width: 2px;
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow-soft);
}

.game-card,
.location-card,
.lure-card,
.gear-tier-card,
.collection-card {
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 245, 244, .98));
}

.game-card.selected,
.location-card.selected,
.lure-card.selected {
  outline: 3px solid rgba(99, 184, 90, .88);
  outline-offset: -3px;
  background:
    linear-gradient(145deg, #fff6c9, #fff0a8);
}

.game-card.selection-feedback,
.location-card.selection-feedback,
.lure-card.selection-feedback {
  outline: 3px solid rgba(99, 184, 90, .96);
  outline-offset: -3px;
  background:
    linear-gradient(145deg, #fff6c9, #ffe98a);
}

.game-card.locked,
.location-card.locked,
.lure-card.locked {
  opacity: .72;
  filter: grayscale(.78) saturate(.58);
}

.location-card img,
.game-card img {
  border-width: 1px;
  border-color: rgba(21, 38, 50, .48);
  box-shadow: 0 3px 8px rgba(8, 29, 41, .14);
}

.section-label {
  color: var(--ui-ink-soft);
  letter-spacing: .08em;
}

.store-bridge {
  border-color: rgba(21, 38, 50, .34);
  background:
    linear-gradient(90deg, rgba(242, 239, 229, .96), rgba(255, 252, 242, .98));
}

/* Locations: read as an illustrated travel list, not a form. */
[data-screen="location"] .paper-panel {
  padding: 13px;
}

[data-screen="location"] .card-list {
  gap: 9px;
}

[data-screen="location"] .location-card {
  min-height: 94px;
  padding: 9px;
}

[data-screen="location"] .location-difficulty,
[data-screen="location"] .location-condition,
[data-screen="location"] .location-unlock {
  letter-spacing: .035em;
}

/* Loadout: visually prioritise the lure itself and reduce instructional walls. */
[data-screen="loadout"] .paper-panel {
  padding: 13px;
}

[data-screen="loadout"] .tutorial-callout {
  margin-bottom: 9px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8f6fb, #dceff4);
}

[data-screen="location"] .tutorial-callout {
  margin-bottom: 9px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8f6fb, #dceff4);
}

.tutorial-exit-button,
.tutorial-replay-button {
  min-width: 0;
  font-size: clamp(11px, 2.8vw, 15px);
}

[data-screen="loadout"] .lure-card {
  padding: 10px;
}

[data-screen="loadout"] .loadout-choice-note {
  border-width: 1px;
  border-color: rgba(21, 38, 50, .32);
  background: rgba(238, 246, 247, .72);
}

/* Compact pre-game navigation: Telegram owns the top edge, the game owns the
   safe bottom edge. */
[data-screen="location"] .paper-panel,
[data-screen="loadout"] .paper-panel,
[data-screen="daily"] .paper-panel,
[data-screen="collection"] .paper-panel,
[data-screen="settings"] .paper-panel,
[data-screen="rewards"] .paper-panel {
  margin-top: 0;
}

.screen-content-title,
.paper-panel .screen-content-title {
  margin: 0 0 12px;
  color: var(--ui-ink);
  font-size: clamp(22px, 5.2vw, 34px);
  line-height: 1;
}

.compact-footer {
  grid-template-columns: minmax(104px, .34fr) minmax(0, 1fr);
}

.compact-footer.back-only-footer {
  grid-template-columns: minmax(104px, 34%);
  justify-content: start;
}

.compact-back-button {
  min-width: 104px;
  min-height: 48px;
  padding-inline: 10px;
  font-size: clamp(12px, 3vw, 15px);
}

.compact-back-button .action-icon {
  width: 18px;
  height: 18px;
}

.intro-tutorial-note {
  display: block;
  margin: 2px 0 8px;
  color: rgba(29, 29, 27, .68);
  font-size: clamp(9px, 2.4vw, 12px);
  font-weight: 950;
  letter-spacing: .08em;
  text-align: center;
}

[data-screen="location"] .location-card {
  grid-template-columns: 112px minmax(0, 1fr);
}

.location-card-copy {
  display: grid;
  gap: 6px;
}

.location-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

[data-screen="location"] .location-card-heading .card-title {
  min-width: 0;
  font-size: clamp(14px, 3.8vw, 20px);
}

[data-screen="location"] .location-difficulty {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 8px;
  background: #e2eef3;
  color: #24536e;
  font-size: clamp(8px, 2.1vw, 10px);
  font-weight: 950;
  line-height: 1;
}

[data-screen="location"] .location-record,
[data-screen="location"] .location-unlock {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(29, 29, 27, .38);
  border-radius: 8px;
  color: var(--ui-ink-soft);
  font-size: clamp(8px, 2.2vw, 11px);
  font-weight: 950;
}

.mission-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 2px solid var(--ui-line);
  border-radius: 15px;
  background: #e5f3f8;
  box-shadow: var(--ui-shadow-soft);
}

.mission-brief b {
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(13px, 3.4vw, 18px);
  line-height: 1.05;
}

.mission-brief span {
  flex: 0 0 auto;
  color: #2e6d38;
  font-size: clamp(9px, 2.4vw, 12px);
  font-weight: 950;
  white-space: nowrap;
}

[data-screen="loadout"] .lure-card {
  min-height: 108px;
}

[data-screen="loadout"] .lure-badge {
  font-size: clamp(8px, 2.1vw, 10px);
}

[data-screen="loadout"] .lure-technique {
  font-size: clamp(11px, 2.8vw, 14px);
}

@container game-shell (max-width: 430px) and (max-height: 720px) {
  .compact-footer {
    grid-template-columns: minmax(92px, .32fr) minmax(0, 1fr);
  }

  .compact-footer.back-only-footer {
    grid-template-columns: minmax(92px, 32%);
  }

  .compact-back-button {
    min-width: 92px;
    min-height: 44px;
  }

  .mission-brief {
    padding: 8px 9px;
  }

  [data-screen="settings"] .compact-footer {
    grid-template-columns: minmax(92px, 32%);
    justify-content: start;
  }
}

/* Daily challenge and rewards */
[data-screen="daily"] .daily-poster,
[data-screen="rewards"] .reward-ticket {
  border-radius: 21px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .99), rgba(244, 240, 229, .98));
}

[data-screen="daily"] .daily-poster .ribbon,
[data-screen="result"] .result-card .ribbon {
  border-width: 2px;
  border-color: rgba(100, 25, 23, .75);
  box-shadow: 0 3px 0 rgba(88, 27, 24, .25);
}

[data-screen="rewards"] .reward-ticket.unlocked {
  background:
    linear-gradient(155deg, #ffe47f, #f4c542 72%, #e9ac2d);
}

/* Settings: light system sheet, not a wall of thick dividers. */
[data-screen="settings"] .settings-panel {
  padding-inline: 17px;
}

[data-screen="settings"] .setting-row {
  border-bottom: 1px solid var(--ui-line-soft);
}

[data-screen="settings"] .toggle {
  border-width: 2px;
  box-shadow: inset 0 1px 4px rgba(9, 30, 42, .16);
}

[data-screen="settings"] .danger-zone {
  border-width: 1px;
  border-color: rgba(21, 38, 50, .28);
  border-radius: 15px;
}

/* Results should feel like a collectible photo, while keeping decisions low. */
[data-screen="result"] .result-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 2px;
}

[data-screen="result"] .result-card {
  border-radius: 23px;
  box-shadow:
    0 4px 0 rgba(21, 38, 50, .22),
    0 16px 34px rgba(8, 29, 41, .24);
}

[data-screen="result"] .result-card.success {
  background:
    linear-gradient(160deg, #fff8cf, #ffeda4 75%, #f6dc82);
}

[data-screen="result"] .result-card.failure {
  background:
    linear-gradient(160deg, #eef7f8, #d9ebf0 75%, #c7e0e9);
}

[data-screen="result"] .result-stat {
  border-width: 1px;
  border-color: rgba(21, 38, 50, .36);
  background: rgba(255, 255, 255, .58);
}

[data-screen="result"] .result-event-note,
[data-screen="result"] .lure-loss-alert {
  border-width: 1px;
  border-color: rgba(21, 38, 50, .42);
}

/* Trophy wall */
[data-screen="collection"] .collection-grid {
  gap: 10px;
}

[data-screen="collection"] .collection-card {
  padding: 10px;
}

[data-screen="collection"] .collection-card:not(.locked) {
  background:
    linear-gradient(155deg, #fffdf6, #f3ead8);
}

[data-screen="collection"] .collection-reward-panel {
  gap: 10px;
}

[data-screen="collection"] .collection-reward-panel .store-bridge {
  margin-top: 0;
}

/* Mobile-first compaction for Telegram, iPhone mini and smaller Androids. */
@container game-shell (max-width: 430px) {
  .ui-screen:not(.screen-clear) {
    padding-inline: calc(var(--safe-left) + 10px) calc(var(--safe-right) + 10px);
  }

  .ui-screen:not(.screen-clear) .top-strip {
    min-height: 44px;
    gap: 6px;
  }

  .ui-screen:not(.screen-clear) .chip {
    min-height: 36px;
    padding: 6px 9px;
    border-radius: 11px;
  }

  .ui-screen:not(.screen-clear) .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .ui-screen:not(.screen-clear) .compact-text-button {
    width: auto;
    min-width: 58px;
  }

  .ui-screen:not(.screen-clear) .wtf-button {
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 13px;
  }

  .ui-screen:not(.screen-clear) .paper-panel {
    margin-top: 8px;
    padding: 11px;
    border-radius: 18px;
  }

  .ui-screen:not(.screen-clear) .panel-footer {
    gap: 6px;
    margin-top: 7px;
    padding: 3px;
    border-radius: 15px;
  }

  [data-screen="location"] .location-card {
    min-height: 82px;
  }

  [data-screen="result"] .result-card {
    border-radius: 19px;
  }
}

/*
 * Compact fishing flow
 * --------------------
 * One persistent progress strip, one contextual command and short-lived
 * feedback over the playfield. Only real actions keep the heavy comic-button
 * treatment.
 */
[data-screen="fishing"] .gameplay-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(62px, auto) auto 42px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(21, 38, 50, .72);
  border-radius: 12px;
  background: rgba(251, 251, 247, .88);
  box-shadow: 0 3px 10px rgba(8, 29, 41, .18);
  color: var(--ui-ink);
  backdrop-filter: blur(5px);
}

[data-screen="fishing"] .gameplay-hud > b {
  overflow: hidden;
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(10px, 2.6vw, 14px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-screen="fishing"] .gameplay-hud-metric,
[data-screen="fishing"] [data-trip-hud-time] {
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(10px, 2.55vw, 14px);
  line-height: 1;
  white-space: nowrap;
}

[data-screen="fishing"] .gameplay-hud-metric {
  min-width: 0;
  overflow: hidden;
  color: #285c70;
  text-align: center;
  text-overflow: ellipsis;
}

[data-screen="fishing"] .gameplay-pause-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(21, 38, 50, .78);
  border-radius: 10px;
  background: #fff;
  color: var(--ui-ink);
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 0 rgba(21, 38, 50, .2);
}

[data-screen="fishing"] .gameplay-pause-button:active {
  box-shadow: none;
  transform: translateY(1px);
}

[data-screen="fishing"] .gameplay-hud-meter {
  position: relative;
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 38, 50, .14);
}

[data-screen="fishing"] .gameplay-hud-meter[hidden] {
  display: none;
}

[data-screen="fishing"] .gameplay-fish-status {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

[data-screen="fishing"] .gameplay-fish-status[hidden] {
  display: none;
}

[data-screen="fishing"] .gameplay-fish-status > span {
  overflow: hidden;
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(8px, 2.15vw, 11px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-screen="fishing"] .gameplay-fish-status > i {
  position: relative;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(21, 38, 50, .14);
}

[data-screen="fishing"] .gameplay-fish-status > i > b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: var(--ui-blue);
  transition: width .12s linear, background-color .16s linear;
}

[data-screen="fishing"] .gameplay-fish-status.tiring > i > b {
  background: var(--ui-gold);
}

[data-screen="fishing"] .gameplay-fish-status.tired > i > b {
  background: var(--ui-green);
}

[data-screen="fishing"] .gameplay-hud-meter > [data-hud-meter-fill] {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: var(--ui-blue);
  transition: width .08s linear, background-color .12s linear;
}

[data-screen="fishing"] .gameplay-hud-meter.aim > [data-hud-meter-fill] {
  background: var(--ui-gold);
}

[data-screen="fishing"] .gameplay-hud-meter.aim > [data-hud-meter-fill].accurate,
[data-screen="fishing"] .gameplay-hud-meter.retrieve > [data-hud-meter-fill],
[data-screen="fishing"] .gameplay-hud-meter.tension > [data-hud-meter-fill].safe {
  background: var(--ui-green);
}

[data-screen="fishing"] .gameplay-hud-meter.tension > [data-hud-meter-fill].high {
  background: var(--ui-gold);
}

[data-screen="fishing"] .gameplay-hud-meter.tension > [data-hud-meter-fill].critical {
  background: var(--ui-red);
}

[data-screen="fishing"] .gameplay-hud-meter.snag > [data-hud-meter-fill] {
  background: var(--ui-gold);
}

[data-screen="fishing"] .gameplay-hud-meter.hook {
  overflow: visible;
  border: 1px solid rgba(21, 38, 50, .48);
  background: rgba(21, 38, 50, .12);
}

[data-screen="fishing"] .gameplay-hook-zone {
  position: absolute;
  inset: 0 auto 0 46%;
  width: 26%;
  border-radius: inherit;
  background: var(--ui-green);
}

[data-screen="fishing"] .gameplay-hook-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ui-ink);
}

[data-screen="fishing"] .field-feedback {
  position: absolute;
  z-index: 5;
  top: 56%;
  left: 50%;
  width: fit-content;
  max-width: 78%;
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: rgba(20, 45, 58, .82);
  color: #fff;
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(11px, 2.9vw, 16px);
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

[data-screen="fishing"] .field-feedback.success {
  background: rgba(42, 104, 55, .86);
}

[data-screen="fishing"] .field-feedback.danger {
  background: rgba(187, 44, 39, .9);
}

[data-screen="fishing"] .field-feedback[hidden] {
  display: none;
}

[data-screen="fishing"] .hud-bottom {
  gap: 6px;
}

[data-screen="fishing"] .hud-message {
  width: fit-content;
  max-width: 92%;
  justify-self: center;
  padding: 9px 15px;
  border: 0;
  border-radius: 13px;
  background: rgba(21, 38, 50, .78);
  box-shadow: none;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

[data-screen="fishing"] .hud-message[hidden] {
  display: none;
}

[data-screen="fishing"] .hud-message strong {
  font-size: clamp(17px, 4.6vw, 27px);
  letter-spacing: .015em;
}

[data-screen="fishing"] .hud-message small {
  display: none;
  max-width: 310px;
  margin-top: 4px;
  font-size: clamp(10px, 2.5vw, 13px);
  line-height: 1.15;
}

[data-screen="fishing"][data-tutorial="true"] .hud-message small:not(:empty) {
  display: block;
}

[data-screen="fishing"] .hud-wind-action,
[data-screen="result"] .trip-secondary-continue {
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 11px;
  background: rgba(21, 38, 50, .72);
  color: #fff;
  font: 900 11px/1 Arial, sans-serif;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

[data-screen="fishing"] .hook-action-button {
  min-height: 62px !important;
  border-width: 4px;
  font-size: clamp(21px, 5.4vw, 32px) !important;
}

/*
 * One-cast result
 * ---------------
 * The catch remains celebratory; failures become short explanations. Progress,
 * lure choice and the next cast no longer repeat the mission description.
 */
[data-screen="result"] .result-progress-strip {
  display: flex;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  background: rgba(16, 47, 67, .88);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 29, 41, .18);
  backdrop-filter: blur(5px);
}

[data-screen="result"] .result-progress-strip b,
[data-screen="result"] .result-progress-strip span {
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(11px, 2.8vw, 15px);
  line-height: 1;
}

[data-screen="result"] .result-panel,
[data-screen="result"] .trip-result-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 7px;
  overflow-y: auto;
}

[data-screen="result"] .result-card {
  padding: 13px;
  border: 2px solid rgba(21, 38, 50, .78);
  border-radius: 19px;
  box-shadow: 0 5px 15px rgba(8, 29, 41, .2);
}

[data-screen="result"] .result-card h1,
[data-screen="result"] .trip-result-panel .result-card h1 {
  margin: 0 0 5px;
  font-size: clamp(25px, 6.6vw, 39px);
  line-height: .95;
}

[data-screen="result"] .result-catch-summary,
[data-screen="result"] .trip-result-panel .result-catch-summary {
  grid-template-columns: minmax(76px, .72fr) minmax(0, 1.28fr);
  gap: 8px;
  margin-top: 2px;
}

[data-screen="result"] .result-catch-summary > img,
[data-screen="result"] .trip-result-panel .result-catch-summary > img {
  width: 100%;
  max-height: 104px;
}

[data-screen="result"] .result-weight,
[data-screen="result"] .trip-result-panel .result-weight {
  font-size: clamp(26px, 6.8vw, 39px);
  line-height: 1;
}

[data-screen="result"] .result-reward,
[data-screen="result"] .trip-result-panel .result-reward {
  margin: 4px auto;
  padding: 5px 9px;
  border: 1px solid rgba(21, 38, 50, .45);
  border-radius: 8px;
  box-shadow: none;
}

[data-screen="result"] .result-details {
  margin-top: 8px;
}

[data-screen="result"] .result-details summary {
  width: fit-content;
  margin: 0 auto;
  padding: 4px 8px;
  border: 0;
  color: rgba(21, 38, 50, .68);
  font-size: clamp(9px, 2.4vw, 12px);
  font-weight: 950;
  letter-spacing: .04em;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

[data-screen="result"] .result-details summary::-webkit-details-marker {
  display: none;
}

[data-screen="result"] .result-details .result-stats {
  margin: 7px 0 0;
}

[data-screen="result"] .result-card.compact-failure {
  display: grid;
  align-content: center;
  min-height: 168px;
  padding: 18px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-screen="result"] .result-failure-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
}

[data-screen="result"] .result-failure-copy > img {
  width: min(34%, 110px);
  max-height: 82px;
  object-fit: contain;
}

[data-screen="result"] .result-reason,
[data-screen="result"] .result-advice {
  margin: 0;
  text-align: center;
}

[data-screen="result"] .result-reason {
  font-size: clamp(16px, 4.1vw, 22px);
  font-weight: 950;
  line-height: 1.05;
}

[data-screen="result"] .result-advice {
  color: rgba(21, 38, 50, .7);
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 750;
  line-height: 1.15;
}

[data-screen="result"] .result-inventory-note {
  color: rgba(21, 38, 50, .66);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

[data-screen="result"] .trip-controls {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid rgba(21, 38, 50, .5);
  border-radius: 15px;
  background: rgba(250, 250, 246, .94);
  box-shadow: 0 5px 15px rgba(8, 29, 41, .16);
  backdrop-filter: blur(5px);
}

[data-screen="result"] .trip-complete-note {
  width: fit-content;
  margin: 0 auto 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e3f3df;
  color: #285c2d;
  font-size: 10px;
  font-weight: 950;
}

[data-screen="result"] .trip-lures {
  gap: 5px;
  margin-top: 0;
}

[data-screen="result"] .trip-lure {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 48px;
  gap: 4px;
  padding: 4px 5px;
  border: 1px solid rgba(21, 38, 50, .34);
  border-radius: 9px;
  background: rgba(255, 255, 255, .76);
  box-shadow: none;
}

[data-screen="result"] .trip-lure.selected {
  border: 2px solid var(--ui-green);
  outline: 0;
  background: #f8edb7;
}

[data-screen="result"] .trip-lure img {
  width: 28px;
  height: 30px;
}

[data-screen="result"] .trip-lure span {
  overflow: visible;
  padding-right: 0;
  font-size: clamp(8px, 2.2vw, 11px);
  line-height: 1;
  text-overflow: clip;
  white-space: normal;
}

[data-screen="result"] .trip-lure > b {
  top: 2px;
  right: 4px;
  font-size: 8px;
}

[data-screen="result"] .trip-lure-check {
  position: absolute;
  right: 3px;
  bottom: 2px;
  display: none;
  color: #347b37;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

[data-screen="result"] .trip-lure.selected .trip-lure-check {
  display: block;
}

[data-screen="result"] .trip-lure-dialog-layer {
  position: absolute;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    calc(var(--safe-top) + 18px)
    calc(var(--safe-right) + 18px)
    calc(var(--safe-bottom) + 18px)
    calc(var(--safe-left) + 18px);
}

[data-screen="result"] .trip-lure-dialog-layer[hidden] {
  display: none;
}

[data-screen="result"] .trip-lure-dialog-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(7, 24, 34, .68);
  backdrop-filter: blur(4px);
}

[data-screen="result"] .trip-lure-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 370px);
  max-height: 100%;
  overflow-y: auto;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(21, 38, 50, .42);
  border-radius: 20px;
  background: linear-gradient(160deg, #fffdf6, #f3ead8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .38);
  color: var(--ui-ink);
  outline: 0;
}

[data-screen="result"] .trip-lure-dialog-close {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid rgba(21, 38, 50, .46);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ui-ink);
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: 21px;
  line-height: 1;
}

[data-screen="result"] .trip-lure-dialog-header {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-right: 25px;
}

[data-screen="result"] .trip-lure-dialog-image {
  display: grid;
  width: 112px;
  height: 92px;
  place-items: center;
  border-radius: 15px;
  background: rgba(221, 238, 240, .78);
}

[data-screen="result"] .trip-lure-dialog-image img {
  width: 92%;
  height: 82%;
  object-fit: contain;
}

[data-screen="result"] .trip-lure-dialog-heading {
  min-width: 0;
}

[data-screen="result"] .trip-lure-dialog-heading > small {
  display: block;
  margin-bottom: 5px;
  color: #347b37;
  font-size: 9px;
  font-weight: 950;
  line-height: 1.1;
}

[data-screen="result"] .trip-lure-dialog-heading h2 {
  margin: 0;
  font-size: clamp(17px, 4.7vw, 23px);
  line-height: .98;
}

[data-screen="result"] .trip-lure-dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

[data-screen="result"] .trip-lure-dialog-tags span {
  padding: 4px 6px;
  border-radius: 999px;
  background: #deebef;
  color: #285c70;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
}

[data-screen="result"] .trip-lure-dialog-description {
  margin: 0;
  color: rgba(21, 38, 50, .76);
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 750;
  line-height: 1.2;
}

[data-screen="result"] .trip-lure-dialog-facts {
  display: grid;
  gap: 7px;
}

[data-screen="result"] .trip-lure-dialog-facts > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(21, 38, 50, .18);
}

[data-screen="result"] .trip-lure-dialog-facts b {
  color: #285c70;
  font-size: 9px;
  line-height: 1.15;
}

[data-screen="result"] .trip-lure-dialog-facts span {
  font-size: clamp(10px, 2.6vw, 13px);
  font-weight: 800;
  line-height: 1.18;
}

[data-screen="result"] .trip-primary-wrap {
  margin-top: 6px;
}

[data-screen="result"] .trip-primary-action,
[data-screen="result"] .trip-complete-actions .trip-primary-action {
  min-height: 50px;
  font-size: clamp(14px, 3.8vw, 20px);
}

[data-screen="result"] .trip-complete-actions {
  gap: 4px;
}

[data-screen="result"] .trip-secondary-continue {
  width: 100%;
  border-color: rgba(21, 38, 50, .24);
  background: transparent;
  color: rgba(21, 38, 50, .72);
  backdrop-filter: none;
}

[data-screen="result"] .trip-quiet-exit {
  min-height: 34px;
  margin-top: 2px;
  padding: 5px;
  color: rgba(21, 38, 50, .62);
  font-size: 10px;
}

@container game-shell (max-width: 430px) and (max-height: 760px) {
  [data-screen="fishing"] .gameplay-hud {
    grid-template-columns: minmax(0, 1fr) minmax(52px, auto) auto 38px;
    gap: 5px;
    min-height: 38px;
    padding: 4px 5px 4px 8px;
  }

  [data-screen="fishing"] .gameplay-pause-button {
    width: 34px;
    height: 34px;
    border-width: 1px;
    font-size: 16px;
  }

  [data-screen="fishing"] .gameplay-hud-meter {
    height: 5px;
  }

  [data-screen="fishing"] .hud-message {
    padding: 7px 12px;
  }

  [data-screen="result"] .result-panel,
  [data-screen="result"] .trip-result-panel {
    margin-top: 5px;
  }

  [data-screen="result"] .result-card {
    padding: 9px;
  }

  [data-screen="result"] .result-card.compact-failure {
    min-height: 132px;
    padding: 12px 6px;
  }

  [data-screen="result"] .trip-controls {
    margin-top: 4px;
    padding: 5px;
  }

  [data-screen="result"] .trip-lure {
    min-height: 44px;
  }

  [data-screen="result"] .trip-lure-dialog {
    gap: 8px;
    padding: 13px;
  }

  [data-screen="result"] .trip-lure-dialog-header {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  [data-screen="result"] .trip-lure-dialog-image {
    width: 88px;
    height: 72px;
  }

  [data-screen="result"] .trip-primary-action,
  [data-screen="result"] .trip-complete-actions .trip-primary-action {
    min-height: 46px;
  }
}

@container game-shell (max-width: 390px) and (max-height: 760px) {
  .ui-screen:not(.screen-clear) {
    padding-top: calc(var(--safe-top) + 5px);
    padding-bottom: calc(var(--safe-bottom) + 6px);
  }

  .ui-screen:not(.screen-clear) .top-strip {
    min-height: 38px;
  }

  .ui-screen:not(.screen-clear) .chip {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .ui-screen:not(.screen-clear) .icon-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 16px;
  }

  .ui-screen:not(.screen-clear) .compact-text-button {
    width: auto;
    min-width: 52px;
    font-size: 9px;
  }

  .ui-screen:not(.screen-clear) .wtf-button {
    min-height: 42px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .ui-screen:not(.screen-clear) .paper-panel {
    margin-top: 6px;
    padding: 9px;
  }

  [data-screen="location"] .card-list,
  [data-screen="loadout"] .card-list,
  [data-screen="collection"] .collection-grid {
    gap: 7px;
  }

  [data-screen="location"] .location-card {
    min-height: 72px;
    padding: 7px;
  }

  [data-screen="settings"] .setting-row {
    min-height: 45px;
    padding-block: 6px;
  }

  [data-screen="result"] .result-actions {
    gap: 6px;
  }
}

/*
 * Interaction hierarchy pass
 * Information is flat; selections are outlined; only actions retain depth.
 */
:is(
  [data-screen="location"],
  [data-screen="loadout"],
  [data-screen="daily"],
  [data-screen="collection"],
  [data-screen="settings"],
  [data-screen="rewards"],
  [data-screen="box"],
  [data-screen="shop"],
  [data-screen="gear"]
) .panel-footer.screen-footer {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

:is(
  [data-screen="location"],
  [data-screen="loadout"],
  [data-screen="daily"],
  [data-screen="collection"],
  [data-screen="settings"],
  [data-screen="rewards"],
  [data-screen="box"],
  [data-screen="shop"],
  [data-screen="gear"]
) .panel-footer.screen-footer .wtf-button {
  border-width: 1px;
  border-style: solid;
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
  box-shadow: 0 3px 0 #284654;
  overflow: hidden;
}

:is(
  [data-screen="location"],
  [data-screen="loadout"],
  [data-screen="daily"],
  [data-screen="collection"],
  [data-screen="settings"],
  [data-screen="rewards"],
  [data-screen="box"],
  [data-screen="shop"],
  [data-screen="gear"]
) .panel-footer.screen-footer .wtf-button.ghost {
  border-color: #496674;
  background: linear-gradient(180deg, #fff 0%, #f1f4f3 100%);
}

:is(
  [data-screen="location"],
  [data-screen="loadout"],
  [data-screen="daily"],
  [data-screen="collection"],
  [data-screen="settings"],
  [data-screen="rewards"],
  [data-screen="box"],
  [data-screen="shop"],
  [data-screen="gear"]
) .panel-footer.screen-footer .wtf-button.red {
  border-color: #962f2d;
}

[data-screen="location"] .paper-panel {
  padding-top: 9px;
}

[data-screen="location"] .screen-content-title {
  margin-bottom: 9px;
}

[data-screen="location"] .location-card-copy {
  align-content: start;
}

[data-screen="location"] .location-card-heading {
  align-items: flex-start;
}

[data-screen="location"] .location-card-heading .card-title {
  padding-top: 1px;
  line-height: 1.05;
}

[data-screen="location"] .location-difficulty {
  min-width: 64px;
  padding: 1px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #35647a;
  font-family: Arial, sans-serif;
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .03em;
  text-align: right;
}

[data-screen="location"] .location-record,
[data-screen="location"] .location-unlock {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(21, 38, 50, .62);
  font-size: clamp(9px, 2.35vw, 11px);
  font-weight: 850;
}

[data-screen="location"] article.location-card.locked {
  cursor: default;
  box-shadow: none;
}

[data-screen="location"] article.location-card.locked:active {
  transform: none;
}

.mission-brief {
  align-items: baseline;
  margin: 0 0 10px;
  padding: 1px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(21, 38, 50, .24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mission-brief span {
  color: #3b7150;
}

[data-screen="loadout"] .lure-badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-ink-soft);
}

[data-screen="settings"] .settings-note {
  margin-top: 12px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-screen="collection"] .collection-card {
  min-height: 160px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .3);
  box-shadow: none;
}

[data-screen="collection"] .collection-card:not(.locked) {
  background: rgba(255, 246, 204, .38);
}

[data-screen="collection"] .collection-card.locked {
  background: rgba(226, 232, 234, .42);
}

:is([data-screen="collection"], [data-screen="rewards"]) .reward-progress {
  gap: 0;
}

:is([data-screen="collection"], [data-screen="rewards"]) .reward-progress > div {
  min-height: 42px;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid rgba(21, 38, 50, .2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-screen="daily"] .daily-poster {
  padding: 4px 2px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-screen="daily"] .daily-stats {
  gap: 0;
  margin: 7px 0;
}

[data-screen="daily"] .daily-stats span {
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

[data-screen="daily"] .daily-stats span + span {
  border-left: 1px solid rgba(21, 38, 50, .22);
}

[data-screen="daily"] .result-event-note {
  gap: 2px;
  padding: 8px 2px 0;
  border: 0;
  border-top: 1px solid rgba(21, 38, 50, .22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@container game-shell (max-width: 430px) {
  [data-screen="location"] .location-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  [data-screen="daily"] .daily-poster > img {
    max-height: 190px;
  }
}


/*
 * WTFish home screen
 * ------------------
 * A flat, tactile mobile-game menu built on the existing illustrated bar.
 * It deliberately avoids the thick black web-button treatment used by older
 * screens; illustration outlines remain part of the art, while controls use a
 * thinner navy keyline, restrained shadows and a strict action hierarchy.
 */

[data-screen="bar"].home-screen {
  --home-ink: #15374d;
  --home-ink-deep: #0b2739;
  --home-line: rgba(21, 55, 77, .4);
  --home-paper: #f8f2e5;
  --home-paper-muted: #e5eef1;
  --home-red: #e94a3d;
  --home-red-deep: #a5322d;
  --home-gold: #f3c74f;
  --home-blue: #23698f;
  --home-shadow: rgba(7, 29, 44, .28);
  --home-display: "Arial Black", Arial, sans-serif;
  --home-body: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  padding:
    calc(var(--safe-top) + 10px)
    calc(var(--safe-right) + 12px)
    calc(var(--safe-bottom) + 10px)
    calc(var(--safe-left) + 12px);
  isolation: isolate;
}

[data-screen="bar"].home-screen button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

[data-screen="bar"].home-screen button:focus-visible {
  outline: 3px solid var(--home-gold);
  outline-offset: 3px;
}

/* The compact status capsules match the selected mock without becoming part
   of the large menu surface. */
[data-screen="bar"].home-screen .bar-top-strip {
  z-index: 8;
  min-height: 46px;
}

[data-screen="bar"].home-screen .chip {
  min-height: 39px;
  padding: 7px 13px;
  border: 2px solid var(--home-ink);
  border-radius: 13px;
  background: rgba(248, 242, 229, .96);
  color: var(--home-ink-deep);
  box-shadow: 0 4px 0 rgba(11, 39, 57, .22), 0 9px 20px rgba(9, 35, 52, .12);
  font-family: var(--home-display);
  font-size: clamp(13px, 3.4vw, 18px);
  letter-spacing: .015em;
}

[data-screen="bar"].home-screen .score-chip {
  background: var(--home-gold);
}

[data-screen="bar"].home-screen .bar-top-strip button.chip {
  cursor: pointer;
}

[data-screen="bar"].home-screen .bar-top-strip button.chip:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(11, 39, 57, .22), 0 5px 12px rgba(9, 35, 52, .1);
}

[data-screen="bar"].home-screen .home-score-popover {
  position: absolute;
  z-index: 10;
  top: calc(var(--safe-top) + 62px);
  left: 50%;
  display: grid;
  gap: 6px;
  width: min(78%, 300px);
  padding: 13px 15px 14px;
  border: 2px solid var(--home-ink);
  border-radius: 15px;
  background: rgba(248, 242, 229, .985);
  color: var(--home-ink-deep);
  box-shadow: 0 6px 0 rgba(11, 39, 57, .2), 0 16px 30px rgba(7, 29, 44, .24);
  text-align: center;
  transform: translateX(-50%);
}

[data-screen="bar"].home-screen .home-score-popover[hidden] {
  display: none;
}

[data-screen="bar"].home-screen .home-score-popover::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--home-ink);
  border-left: 2px solid var(--home-ink);
  background: #f8f2e5;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

[data-screen="bar"].home-screen .home-score-popover small,
[data-screen="bar"].home-screen .home-score-popover span {
  font-family: var(--home-body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
}

[data-screen="bar"].home-screen .home-score-popover > b {
  font-family: var(--home-display);
  font-size: 24px;
  line-height: 1;
}

[data-screen="bar"].home-screen .home-score-popover p {
  margin: 1px 0 0;
  font-family: var(--home-body);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

[data-screen="bar"].home-screen .home-score-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

[data-screen="bar"].home-screen .home-score-stats span {
  display: grid;
  gap: 1px;
  padding: 6px 5px;
  border: 1px solid rgba(11, 39, 57, .34);
  border-radius: 8px;
  background: #e6eff0;
}

[data-screen="bar"].home-screen .home-score-stats small {
  font-size: 7px;
  opacity: .68;
}

[data-screen="bar"].home-screen .home-score-stats strong {
  font-family: var(--home-display);
  font-size: 14px;
  line-height: 1;
}

[data-screen="bar"].home-screen .home-score-close {
  position: absolute;
  top: 5px;
  right: 7px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(11, 39, 57, .62);
  font: 900 21px/1 Arial, sans-serif;
}

/* The menu sits low, like a compact counter console, leaving the character and
   bar illustration visible above it. */
[data-screen="bar"].home-screen .home-menu {
  position: relative;
  z-index: 7;
  width: min(100%, 510px);
  max-height: none;
  gap: 7px;
  margin: auto auto 0;
  padding: 9px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 22px;
  background: rgba(241, 238, 226, .92);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .65) inset,
    0 10px 28px rgba(7, 31, 48, .26);
  backdrop-filter: blur(8px);
}

[data-screen="bar"].home-screen .home-play-button,
[data-screen="bar"].home-screen .home-tackle-button,
[data-screen="bar"].home-screen .home-gear-shortcut,
[data-screen="bar"].home-screen .home-secondary-actions button,
[data-screen="bar"].home-screen .home-boss-shortcut,
[data-screen="bar"].home-screen .home-service-dock button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

[data-screen="bar"].home-screen .home-play-button {
  display: grid;
  grid-template-columns: 32px auto;
  min-height: 74px;
  align-items: center;
  place-content: center;
  gap: 9px;
  width: 100%;
  border: 2px solid var(--home-red-deep);
  border-radius: 16px;
  background: var(--home-red);
  color: #fffdf6;
  box-shadow: 0 5px 0 rgba(132, 39, 35, .42), 0 11px 22px rgba(69, 33, 31, .2);
  text-align: center;
  transition: transform .1s ease, filter .15s ease, box-shadow .1s ease;
}

[data-screen="bar"].home-screen .home-play-icon {
  display: block;
  width: 32px;
  height: 32px;
}

[data-screen="bar"].home-screen .home-play-button span {
  font-family: var(--home-display);
  font-size: clamp(27px, 7vw, 38px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: .035em;
}

[data-screen="bar"].home-screen .home-play-button small {
  font-family: var(--home-body);
  font-size: clamp(8px, 2vw, 10px);
  font-weight: 900;
  letter-spacing: .12em;
  opacity: .8;
}

[data-screen="bar"].home-screen .home-play-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(132, 39, 35, .5), 0 5px 12px rgba(69, 33, 31, .16);
}

[data-screen="bar"].home-screen .home-tackle-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 29%);
  gap: 7px;
}

[data-screen="bar"].home-screen .home-tackle-button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 64px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 9px;
  border: 2px solid var(--home-ink);
  border-radius: 15px;
  background: #f6d26a;
  color: var(--home-ink-deep);
  box-shadow: 0 4px 0 rgba(30, 61, 78, .22);
  text-align: left;
  transition: transform .1s ease, background .15s ease, box-shadow .1s ease;
}

[data-screen="bar"].home-screen .home-tackle-button img {
  display: block;
  width: 54px;
  height: 50px;
  object-fit: contain;
}

[data-screen="bar"].home-screen .home-tackle-button span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

[data-screen="bar"].home-screen .home-tackle-button b {
  font-family: var(--home-display);
  font-size: clamp(19px, 5vw, 25px);
  line-height: 1;
  letter-spacing: .02em;
}

[data-screen="bar"].home-screen .home-tackle-button small {
  overflow: hidden;
  font-family: var(--home-body);
  font-size: clamp(8px, 2.15vw, 10px);
  font-weight: 900;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .7;
}

[data-screen="bar"].home-screen .home-gear-shortcut {
  display: grid;
  min-height: 64px;
  place-content: center;
  gap: 2px;
  padding: 7px 6px;
  border: 1px solid var(--home-line);
  border-radius: 15px;
  background: var(--home-paper-muted);
  color: var(--home-ink);
  box-shadow: 0 4px 0 rgba(29, 59, 75, .18);
  text-align: center;
  transition: transform .1s ease, background .15s ease, box-shadow .1s ease;
}

[data-screen="bar"].home-screen .home-gear-shortcut small,
[data-screen="bar"].home-screen .home-gear-shortcut span {
  font-family: var(--home-body);
  font-size: clamp(7px, 1.85vw, 9px);
  font-weight: 900;
  letter-spacing: .07em;
  opacity: .62;
}

[data-screen="bar"].home-screen .home-gear-shortcut b {
  font-family: var(--home-display);
  font-size: clamp(16px, 4.2vw, 21px);
  line-height: 1;
}

[data-screen="bar"].home-screen .home-gear-shortcut.special-active {
  border-color: #c68d29;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .72), transparent),
    #f7dc8a;
  box-shadow:
    inset 3px 0 0 #d99029,
    0 4px 0 rgba(93, 60, 17, .2);
}

[data-screen="bar"].home-screen .home-gear-shortcut.special-active b {
  max-width: 96px;
  font-size: clamp(11px, 2.9vw, 15px);
  line-height: .94;
}

[data-screen="bar"].home-screen .home-tackle-button:active,
[data-screen="bar"].home-screen .home-gear-shortcut:active,
[data-screen="bar"].home-screen .home-secondary-actions button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(29, 59, 75, .2);
}

[data-screen="bar"].home-screen .home-secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

[data-screen="bar"].home-screen .home-secondary-actions button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 50px;
  align-items: center;
  justify-items: center;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--home-line);
  border-radius: 13px;
  background: rgba(248, 242, 229, .94);
  color: var(--home-ink-deep);
  box-shadow: 0 3px 0 rgba(24, 55, 73, .16);
  text-align: center;
  transition: transform .1s ease, background .15s ease, box-shadow .1s ease;
}

[data-screen="bar"].home-screen .home-secondary-actions img {
  display: block;
  width: 29px;
  height: 29px;
  object-fit: contain;
}

[data-screen="bar"].home-screen .home-settings-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: rgba(11, 39, 57, .72);
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-style: normal;
  line-height: 1;
}

[data-screen="bar"].home-screen .home-secondary-actions span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

[data-screen="bar"].home-screen .home-secondary-actions b {
  font-family: var(--home-display);
  font-size: clamp(10px, 2.8vw, 14px);
  line-height: 1;
}

[data-screen="bar"].home-screen .home-secondary-actions small {
  font-family: var(--home-body);
  font-size: clamp(6px, 1.5vw, 8px);
  font-weight: 850;
  letter-spacing: .06em;
  opacity: .58;
}

[data-screen="bar"].home-screen .home-boss-shortcut {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  justify-items: start;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(237, 187, 82, .45);
  border-radius: 12px;
  background: var(--home-ink-deep);
  color: #fff2ca;
  box-shadow: 0 3px 0 rgba(5, 23, 34, .25);
  font-family: var(--home-display);
  font-size: clamp(11px, 3vw, 15px);
  letter-spacing: .035em;
}

[data-screen="bar"].home-screen .home-boss-shortcut i {
  display: block;
  width: 36px;
  height: 32px;
}

[data-screen="bar"].home-screen .home-service-dock {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(21, 55, 77, .24);
  border-radius: 11px;
  background: rgba(21, 55, 77, .18);
}

[data-screen="bar"].home-screen .home-service-dock button {
  min-width: 0;
  min-height: 31px;
  padding: 6px 3px;
  overflow: hidden;
  background: rgba(229, 238, 241, .9);
  color: rgba(11, 39, 57, .78);
  font-family: var(--home-body);
  font-size: clamp(7px, 2.05vw, 9px);
  font-weight: 900;
  letter-spacing: .045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-screen="bar"].home-screen .home-service-dock button:active {
  background: #cfdee3;
}

@media (hover: hover) {
  [data-screen="bar"].home-screen .home-play-button:hover,
  [data-screen="bar"].home-screen .home-tackle-button:hover,
  [data-screen="bar"].home-screen .home-gear-shortcut:hover,
  [data-screen="bar"].home-screen .home-secondary-actions button:hover,
  [data-screen="bar"].home-screen .home-boss-shortcut:hover {
    filter: brightness(1.035);
  }
}

@container game-shell (max-width: 430px) and (max-height: 780px) {
  [data-screen="bar"].home-screen {
    padding:
      calc(var(--safe-top) + 5px)
      calc(var(--safe-right) + 8px)
      calc(var(--safe-bottom) + 6px)
      calc(var(--safe-left) + 8px);
  }

  [data-screen="bar"].home-screen .bar-top-strip {
    min-height: 38px;
  }

  [data-screen="bar"].home-screen .chip {
    min-height: 33px;
    padding: 5px 9px;
    border-radius: 11px;
    font-size: 11px;
  }

  [data-screen="bar"].home-screen .home-menu {
    width: min(96%, 390px);
    gap: 5px;
    padding: 7px;
    border-radius: 17px;
  }

  [data-screen="bar"].home-screen .home-play-button {
    min-height: 57px;
    border-radius: 13px;
  }

  [data-screen="bar"].home-screen .home-play-button span {
    font-size: 25px;
  }

  [data-screen="bar"].home-screen .home-play-button small {
    font-size: 7px;
  }

  [data-screen="bar"].home-screen .home-tackle-group {
    grid-template-columns: minmax(0, 1fr) minmax(76px, 28%);
    gap: 5px;
  }

  [data-screen="bar"].home-screen .home-tackle-button {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 53px;
    gap: 6px;
    padding: 5px 9px 5px 6px;
    border-radius: 12px;
  }

  [data-screen="bar"].home-screen .home-tackle-button img {
    width: 42px;
    height: 40px;
  }

  [data-screen="bar"].home-screen .home-tackle-button b {
    font-size: 18px;
  }

  [data-screen="bar"].home-screen .home-tackle-button small {
    font-size: 7px;
  }

  [data-screen="bar"].home-screen .home-gear-shortcut {
    min-height: 53px;
    padding: 5px 4px;
    border-radius: 12px;
  }

  [data-screen="bar"].home-screen .home-gear-shortcut b {
    font-size: 15px;
  }

  [data-screen="bar"].home-screen .home-secondary-actions {
    gap: 5px;
  }

  [data-screen="bar"].home-screen .home-secondary-actions button {
    grid-template-columns: minmax(0, 1fr);
    min-height: 43px;
    gap: 2px;
    padding: 4px;
    border-radius: 11px;
  }

  [data-screen="bar"].home-screen .home-secondary-actions img,
  [data-screen="bar"].home-screen .home-settings-icon {
    width: 25px;
    height: 25px;
  }

  [data-screen="bar"].home-screen .home-settings-icon {
    font-size: 23px;
  }

  [data-screen="bar"].home-screen .home-secondary-actions b {
    font-size: 10px;
  }

  [data-screen="bar"].home-screen .home-secondary-actions small {
    font-size: 5.8px;
  }

  [data-screen="bar"].home-screen .home-boss-shortcut {
    min-height: 34px;
    grid-template-columns: 29px minmax(0, 1fr);
    padding-block: 2px;
    font-size: 10px;
  }

  [data-screen="bar"].home-screen .home-boss-shortcut img {
    width: 28px;
    height: 25px;
  }

  [data-screen="bar"].home-screen .home-service-dock button {
    min-height: 29px;
    font-size: 7px;
  }
}

@container game-shell (max-width: 390px) and (max-height: 700px) {
  [data-screen="bar"].home-screen .home-menu {
    width: 98%;
    gap: 4px;
    padding: 6px;
  }

  [data-screen="bar"].home-screen .home-play-button {
    min-height: 49px;
  }

  [data-screen="bar"].home-screen .home-play-button span {
    font-size: 22px;
  }

  [data-screen="bar"].home-screen .home-play-button small,
  [data-screen="bar"].home-screen .home-secondary-actions small,
  [data-screen="bar"].home-screen .home-gear-shortcut span {
    display: none;
  }

  [data-screen="bar"].home-screen .home-tackle-button,
  [data-screen="bar"].home-screen .home-gear-shortcut {
    min-height: 47px;
  }

  [data-screen="bar"].home-screen .home-secondary-actions button {
    min-height: 38px;
  }

  [data-screen="bar"].home-screen .home-service-dock button {
    min-height: 27px;
    padding-block: 5px;
  }
}

/* Secondary equipment navigation stays calm beside the primary Play action. */
[data-screen="bar"].home-screen .home-tackle-button,
[data-screen="bar"].home-screen .home-gear-shortcut {
  border: 1px solid rgba(29, 59, 75, .32);
  background: rgba(244, 241, 232, .96);
  box-shadow: 0 2px 0 rgba(29, 59, 75, .14);
}

[data-screen="bar"].home-screen .home-tackle-button:hover,
[data-screen="bar"].home-screen .home-gear-shortcut:hover {
  background: #f8f6ef;
}

[data-screen="bar"].home-screen .home-tackle-button:active,
[data-screen="bar"].home-screen .home-gear-shortcut:active {
  transform: translateY(2px);
  box-shadow: none;
}


/*
 * Unified tackle hub.
 *
 * This file intentionally sits after the legacy stylesheet through the
 * UiController import. It only scopes the new visual language to the box,
 * lure shop and gear screens, so the wider UI refresh can move screen by
 * screen without destabilising fishing.
 */

.tackle-hub-screen {
  --tackle-ink: #183347;
  --tackle-ink-soft: #496579;
  --tackle-line: rgba(38, 73, 96, .26);
  --tackle-paper: rgba(249, 247, 239, .985);
  --tackle-paper-blue: #eaf6fb;
  --tackle-blue: #226d99;
  --tackle-blue-dark: #174f74;
  --tackle-yellow: #f5c850;
  --tackle-green: #69a866;
  --tackle-red: #e7493d;
}

.tackle-hub-screen .top-strip {
  position: relative;
  z-index: 4;
}

.tackle-hub-screen .top-strip .chip,
.tackle-hub-screen .top-strip .icon-button {
  border: 2px solid rgba(25, 54, 74, .78);
  box-shadow:
    0 3px 0 rgba(14, 43, 62, .3),
    0 7px 16px rgba(8, 31, 48, .12);
}

.tackle-hub-screen .top-strip .header-title {
  background: linear-gradient(180deg, #274d65 0%, #19394f 100%);
  color: #fffdf4;
  letter-spacing: .045em;
}

.tackle-hub-screen .paper-panel.tackle-hub-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 0;
  padding: 12px;
  border: 2px solid rgba(26, 58, 79, .82);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .76), transparent 110px),
    var(--tackle-paper);
  box-shadow:
    0 5px 0 rgba(18, 53, 73, .23),
    0 16px 34px rgba(8, 31, 48, .16);
}

.tackle-hub-tabs {
  position: sticky;
  z-index: 5;
  top: -12px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 4px;
  margin: -12px -12px 0;
  padding: 9px 10px 8px;
  border-bottom: 1px solid var(--tackle-line);
  background: rgba(242, 246, 246, .96);
  backdrop-filter: blur(10px);
}

.tackle-hub-tabs button {
  display: inline-flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(32, 67, 90, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
  color: var(--tackle-ink-soft);
  box-shadow: none;
  font: 950 clamp(12px, 3.3vw, 17px)/1 var(--display, "Arial Black", Arial, sans-serif);
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
}

.tackle-hub-tabs button small {
  font: 850 .72em/1 var(--body, Arial, sans-serif);
  opacity: .64;
}

.tackle-hub-tabs button.active {
  border-color: var(--tackle-blue-dark);
  background: linear-gradient(180deg, #2c7eaa 0%, #1f668f 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 3px 0 rgba(19, 67, 94, .2);
}

.tackle-hub-gear-summary {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(36, 78, 105, .24);
  border-radius: 13px;
  background: linear-gradient(135deg, #edf7fb, #daeef7);
  color: var(--tackle-ink);
  box-shadow: 0 3px 8px rgba(25, 62, 85, .09);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tackle-hub-gear-summary span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tackle-hub-gear-summary small {
  color: var(--tackle-ink-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.tackle-hub-gear-summary b {
  overflow: hidden;
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(12px, 3.1vw, 16px);
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tackle-hub-gear-summary strong {
  flex: 0 0 auto;
  color: var(--tackle-blue-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
}

.tackle-hub-gear-summary strong::after {
  content: "›";
  margin-left: 5px;
  font-size: 16px;
  vertical-align: -1px;
}

.tackle-hub-box-summary {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(36, 78, 105, .24);
  border-radius: 13px;
  background: rgba(234, 246, 251, .72);
  color: var(--tackle-ink);
  box-shadow: none;
}

.tackle-hub-box-summary span {
  display: grid;
  gap: 3px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .07em;
}

.tackle-hub-box-summary small {
  color: var(--tackle-ink-soft);
  font-size: 8px;
  font-weight: 950;
}

.tackle-hub-box-summary b {
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: clamp(12px, 3.2vw, 16px);
}

.tackle-hub-box-summary .tackle-hub-balance {
  flex: 0 0 auto;
  text-align: right;
}

.tackle-hub-section {
  display: grid;
  gap: 7px;
}

.tackle-hub-section > h2,
.tackle-hub-panel .tackle-hub-section > h2 {
  margin: 3px 3px 0;
  color: var(--tackle-ink-soft);
  font-family: var(--body, Arial, sans-serif);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .1em;
  line-height: 1;
}

.tackle-hub-market {
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--tackle-line);
}

.tackle-hub-lure-list {
  display: grid;
  gap: 7px;
}

.tackle-hub-lure-model-card {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(30, 65, 89, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 3px 9px rgba(16, 48, 68, .08);
}

.tackle-hub-lure-model-card.available {
  background: rgba(244, 247, 247, .86);
}

.tackle-model-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.tackle-model-heading > img,
.tackle-model-family-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  object-fit: contain;
  border-radius: 11px;
  background: #e4f1f6;
  color: var(--tackle-blue-dark);
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .03em;
  text-align: center;
}

.tackle-model-heading > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tackle-model-heading small {
  color: var(--tackle-blue-dark);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tackle-model-heading b {
  color: var(--tackle-ink);
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.tackle-model-heading em {
  display: -webkit-box;
  overflow: hidden;
  color: #526975;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tackle-model-heading > strong {
  padding: 3px 6px;
  border-radius: 7px;
  background: #dbeef7;
  color: var(--tackle-blue-dark);
  font-size: 10px;
}

.tackle-model-runtime-note {
  margin: 0;
  padding: 5px 7px;
  border-radius: 7px;
  background: #fff0c9;
  color: #785016;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .045em;
}

.tackle-variant-list {
  display: grid;
  gap: 4px;
}

.tackle-variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 64px;
  min-height: 43px;
  align-items: center;
  gap: 5px;
  padding: 5px 5px 5px 8px;
  border: 1px solid rgba(30, 65, 89, .17);
  border-radius: 10px;
  background: rgba(234, 246, 251, .48);
}

.tackle-variant-row.selected {
  border-color: rgba(70, 133, 67, .55);
  box-shadow: inset 3px 0 0 var(--tackle-green);
}

.tackle-variant-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tackle-variant-copy > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.tackle-variant-copy b {
  overflow: hidden;
  color: var(--tackle-ink);
  font-size: 9px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tackle-variant-copy i {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 5px;
  background: #dbeef7;
  color: var(--tackle-blue-dark);
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
}

.tackle-variant-copy small {
  overflow: hidden;
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tackle-variant-copy small.compatible {
  color: #39743b;
}

.tackle-variant-copy small.incompatible {
  color: #a34536;
}

.tackle-variant-real-store {
  padding: 5px 4px;
  border: 1px solid rgba(34, 109, 153, .3);
  border-radius: 7px;
  background: transparent;
  color: var(--tackle-blue-dark);
  font: 950 6px/1 var(--body, Arial, sans-serif);
  cursor: pointer;
}

.tackle-variant-buy {
  display: grid;
  width: 64px;
  min-height: 32px;
  place-content: center;
  gap: 1px;
  padding: 4px;
  border: 1px solid rgba(126, 86, 14, .45);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffdf79, #efbd3e);
  color: #382b12;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.tackle-variant-buy span {
  font-size: 6px;
  font-weight: 950;
}

.tackle-variant-buy b {
  font-size: 8px;
  line-height: 1;
}

.tackle-variant-buy.unavailable,
.tackle-variant-buy:disabled {
  border-color: rgba(40, 60, 72, .18);
  background: #e8ecec;
  color: #71818a;
  cursor: not-allowed;
}

.loadout-model-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(31, 61, 80, .28);
  border-radius: 13px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 3px 8px rgba(18, 48, 66, .08);
}

.loadout-model-card > header {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.loadout-model-card > header img,
.loadout-model-placeholder {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  object-fit: contain;
  border-radius: 10px;
  background: #e4f1f6;
  color: #226d99;
  font-size: 20px;
}

.loadout-model-card > header > span {
  display: grid;
  gap: 3px;
}

.loadout-model-card > header b {
  color: #183347;
  font-size: 11px;
  line-height: 1.05;
}

.loadout-model-card > header small {
  color: #496579;
  font-size: 7px;
  font-weight: 900;
}

.loadout-variant-list {
  display: grid;
  gap: 4px;
}

.loadout-variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, .8fr);
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(34, 109, 153, .26);
  border-radius: 9px;
  background: #edf7fb;
  color: #183347;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.loadout-variant > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.loadout-variant b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loadout-variant small {
  color: #496579;
  font-size: 7px;
  font-weight: 850;
}

.loadout-variant em {
  color: #39743b;
  font-size: 6.5px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.1;
  text-align: right;
}

.loadout-variant.selected {
  border-color: #69a866;
  background: #e7f3e2;
  box-shadow: inset 3px 0 0 #69a866;
}

.loadout-variant.blocked {
  background: #eef0f0;
  color: #74828a;
  cursor: not-allowed;
}

.loadout-variant.blocked em {
  color: #a34536;
}

@media (max-width: 390px) {
  .tackle-variant-row {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .tackle-variant-real-store {
    grid-column: 1;
    justify-self: start;
  }

  .tackle-variant-buy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.tackle-hub-lure-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 65px;
  min-height: 86px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(30, 65, 89, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 3px 9px rgba(16, 48, 68, .08);
}

.tackle-hub-lure-card.selected {
  border-color: rgba(70, 133, 67, .62);
  background: linear-gradient(135deg, #f7f8e6, #eef6e8);
  box-shadow:
    inset 4px 0 0 var(--tackle-green),
    0 3px 9px rgba(16, 48, 68, .08);
}

.tackle-hub-lure-card.available {
  background: rgba(244, 247, 247, .82);
}

.tackle-hub-lure-card > img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(23, 51, 70, .12));
}

.tackle-hub-lure-card.available > img {
  opacity: .74;
  filter: saturate(.76) drop-shadow(0 3px 3px rgba(23, 51, 70, .1));
}

.tackle-hub-lure-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.tackle-hub-lure-copy header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.tackle-hub-lure-copy header b {
  color: var(--tackle-ink);
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 950;
  line-height: 1.03;
  text-transform: uppercase;
}

.tackle-hub-count {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 7px;
  background: #dbeef7;
  color: var(--tackle-blue-dark);
  font-size: 10px;
  font-weight: 950;
}

.tackle-hub-lure-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #405765;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.17;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tackle-hub-lure-copy small {
  overflow: hidden;
  color: var(--tackle-blue-dark);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tackle-hub-buy-more {
  display: grid;
  width: 65px;
  min-height: 48px;
  place-content: center;
  gap: 3px;
  padding: 6px 4px;
  border: 1px solid rgba(126, 86, 14, .45);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffdf79, #efbd3e);
  color: #382b12;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 3px 0 rgba(114, 76, 10, .2);
  font: inherit;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}

.tackle-hub-buy-more span {
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .06em;
}

.tackle-hub-buy-more b {
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: 11px;
  line-height: 1;
}

.tackle-hub-buy-more.unavailable,
.tackle-hub-buy-more:disabled {
  border-color: rgba(40, 60, 72, .22);
  background: #e8ecec;
  color: #71818a;
  box-shadow: none;
  cursor: not-allowed;
}

.tackle-hub-buy-more:active,
.tackle-hub-tabs button:active,
.tackle-hub-gear-summary:active {
  transform: translateY(1px);
}

.tackle-hub-empty {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(58, 124, 61, .38);
  border-radius: 13px;
  background: #e3f2df;
  color: #285b2b;
}

.tackle-hub-empty b {
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: 15px;
}

.tackle-hub-empty span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.tackle-hub-panel .store-bridge {
  margin-top: 4px;
  border: 1px solid rgba(30, 65, 89, .28);
  border-radius: 12px;
  background: rgba(234, 246, 251, .72);
  box-shadow: none;
}

.tackle-hub-screen .screen-footer {
  gap: 7px;
}

.tackle-hub-screen .screen-footer .wtf-button {
  min-height: 48px;
  border-width: 2px;
  border-color: rgba(27, 57, 77, .72);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(17, 50, 70, .24);
}

/* Current gear view */

.tackle-hub-current-kit {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(36, 78, 105, .3);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .5), transparent),
    var(--tackle-paper-blue);
  box-shadow: 0 3px 9px rgba(16, 48, 68, .08);
}

.tackle-hub-kit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tackle-hub-kit-heading > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.tackle-hub-kit-heading small {
  color: var(--tackle-ink-soft);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .06em;
}

.tackle-hub-kit-heading h1,
.tackle-hub-panel .tackle-hub-kit-heading h1 {
  margin: 0;
  color: var(--tackle-ink);
  font-size: clamp(18px, 4.7vw, 28px);
}

.tackle-hub-kit-heading > b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--tackle-green);
  color: white;
  font-size: 9px;
  letter-spacing: .05em;
}

.tackle-hub-current-kit > p {
  margin: 0;
  color: #405765;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.tackle-hub-current-kit dl {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
}

.tackle-hub-current-kit dl > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid rgba(33, 73, 98, .16);
}

.tackle-hub-current-kit dt {
  color: var(--tackle-ink-soft);
  font-size: 8px;
  font-weight: 950;
}

.tackle-hub-current-kit dd {
  margin: 0;
  color: var(--tackle-ink);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.12;
  text-align: right;
}

.tackle-hub-kit-bonuses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.tackle-hub-kit-bonuses span {
  display: grid;
  gap: 3px;
  padding: 8px 5px;
  border: 1px solid rgba(30, 65, 89, .22);
  border-radius: 11px;
  background: white;
  color: var(--tackle-ink);
  text-align: center;
}

.tackle-hub-kit-bonuses small {
  color: var(--tackle-ink-soft);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .05em;
}

.tackle-hub-kit-bonuses b {
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: 13px;
}

.tackle-hub-kit-section .gear-tier-list {
  gap: 7px;
}

.tackle-hub-gear-panel .gear-tier-card {
  padding: 9px 10px;
  border: 1px solid rgba(30, 65, 89, .27);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 3px 9px rgba(16, 48, 68, .08);
}

.tackle-hub-gear-panel .gear-tier-card.current:not(.special) {
  border-color: rgba(70, 133, 67, .58);
  border-width: 1px;
  background: #e8f4e3;
  box-shadow:
    inset 4px 0 0 var(--tackle-green),
    0 3px 9px rgba(16, 48, 68, .08);
}

.tackle-hub-gear-panel .gear-tier-card.owned {
  background: #f1f5f6;
}

.tackle-hub-gear-panel .gear-tier-card.special {
  border-color: rgba(171, 100, 18, .5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), transparent),
    #fff0c9;
  box-shadow:
    inset 4px 0 0 #d98b28,
    0 3px 9px rgba(16, 48, 68, .08);
}

.tackle-hub-gear-panel .gear-tier-card.special .gear-tier-status {
  background: #f5c850;
  color: #4a310c;
}

.tackle-hub-gear-panel .gear-tier-card.premium {
  border-color: #d9a73b;
  background:
    radial-gradient(circle at 82% 8%, rgba(245, 200, 80, .18), transparent 38%),
    linear-gradient(145deg, #273747, #17232d);
  box-shadow:
    inset 4px 0 0 #f5c850,
    0 4px 12px rgba(15, 30, 40, .24);
}

.tackle-hub-gear-panel .gear-tier-card.premium .gear-tier-title > b,
.tackle-hub-gear-panel .gear-tier-card.premium p,
.tackle-hub-gear-panel .gear-tier-card.premium dd {
  color: #fff8e4;
}

.tackle-hub-gear-panel .gear-tier-card.premium dt,
.tackle-hub-gear-panel .gear-tier-card.premium > small {
  color: #f5c850;
}

.tackle-hub-gear-panel .gear-tier-card.premium dl > div {
  border-top-color: rgba(245, 200, 80, .24);
}

.tackle-hub-gear-panel .gear-tier-card.locked {
  opacity: .64;
}

.tackle-hub-gear-panel .gear-tier-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: normal;
  gap: 7px;
  color: var(--tackle-ink);
  font-family: var(--body, Arial, sans-serif);
  font-size: 11px;
}

.tackle-hub-gear-panel .gear-tier-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.tackle-hub-gear-panel .gear-tier-title > b {
  font-weight: 950;
  line-height: 1.08;
}

.tackle-hub-gear-panel .gear-tier-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
}

.tackle-hub-gear-panel .gear-tier-card header .gear-type-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 3px;
  padding: 2px 5px 2px 4px;
  border: 1px solid rgba(30, 65, 89, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: var(--tackle-ink-soft);
  font-size: 6px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .055em;
}

.tackle-hub-gear-panel .gear-tier-card header .gear-type-badge > span {
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.tackle-hub-gear-panel .gear-type-badge svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tackle-hub-gear-panel .gear-type-badge.casting {
  border-color: rgba(171, 100, 18, .28);
  color: #895514;
}

.tackle-hub-gear-panel .gear-tier-card.premium .gear-type-badge {
  border-color: rgba(245, 200, 80, .36);
  background: rgba(255, 255, 255, .07);
  color: #f5c850;
}

.tackle-hub-gear-panel .gear-tier-card header .gear-tier-status,
.tackle-hub-gear-panel .gear-tier-card header .gear-limited-badge {
  padding: 3px 6px;
  border: 0;
  border-radius: 7px;
  background: #dbeef7;
  color: var(--tackle-blue-dark);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.tackle-hub-gear-panel .gear-tier-card header .gear-limited-badge {
  border: 1px solid rgba(245, 200, 80, .44);
  background: transparent;
  color: #f5c850;
  letter-spacing: .06em;
}

.tackle-hub-gear-panel .gear-tier-card p {
  margin: 5px 0;
  color: #405765;
  font-size: 9px;
  line-height: 1.16;
}

.tackle-hub-gear-panel .gear-tier-card > small {
  color: var(--tackle-blue-dark);
  font-size: 8px;
  line-height: 1.15;
}

.tackle-hub-gear-panel .gear-tier-details {
  margin-top: 6px;
}

.tackle-hub-gear-panel .gear-tier-details summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(30, 65, 89, .2);
  border-radius: 8px;
  background: rgba(219, 238, 247, .56);
  color: var(--tackle-blue-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  cursor: pointer;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .055em;
  list-style: none;
}

.tackle-hub-gear-panel .gear-tier-details summary::-webkit-details-marker {
  display: none;
}

.tackle-hub-gear-panel .gear-details-label {
  color: inherit;
}

.tackle-hub-gear-panel .gear-details-label-open {
  display: none;
}

.tackle-hub-gear-panel .gear-tier-details[open] .gear-details-label-closed {
  display: none;
}

.tackle-hub-gear-panel .gear-tier-details[open] .gear-details-label-open {
  display: inline;
}

.tackle-hub-gear-panel .gear-tier-details summary::after {
  content: "⌄";
  color: var(--tackle-blue-dark);
  font-size: 15px;
  line-height: 1;
  text-align: right;
  transform: translateY(-2px);
}

.tackle-hub-gear-panel .gear-tier-details[open] summary::after {
  content: "⌃";
  transform: translateY(2px);
}

.tackle-hub-gear-panel .gear-tier-card dl {
  gap: 3px;
  margin: 1px 0 6px;
}

.tackle-hub-gear-panel .gear-tier-card dl > div {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(30, 65, 89, .13);
}

.tackle-hub-gear-panel .gear-tier-card dt {
  color: var(--tackle-ink-soft);
  font-size: 8px;
}

.tackle-hub-gear-panel .gear-tier-card dd {
  color: var(--tackle-ink);
  font-size: 9px;
  line-height: 1.1;
}

.tackle-hub-gear-panel .gear-tier-card.premium .gear-tier-details {
  border-top-color: rgba(245, 200, 80, .24);
}

.tackle-hub-gear-panel .gear-tier-card.premium .gear-tier-details summary,
.tackle-hub-gear-panel .gear-tier-card.premium .gear-tier-details summary small,
.tackle-hub-gear-panel .gear-tier-card.premium .gear-tier-details summary::after {
  color: #f5c850;
}

.tackle-hub-gear-panel .gear-tier-card.special .gear-tier-details summary {
  border-color: rgba(171, 100, 18, .25);
  background: rgba(255, 255, 255, .46);
}

.tackle-hub-gear-panel .gear-tier-card.premium .gear-tier-details summary {
  border-color: rgba(245, 200, 80, .38);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.tackle-hub-gear-panel .gear-tier-card .gear-price-meta {
  margin: 3px 0 1px;
  padding-top: 5px;
  border-top: 1px solid rgba(30, 65, 89, .13);
  color: var(--tackle-ink-soft);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .035em;
}

.tackle-hub-gear-panel .gear-tier-card.premium .gear-price-meta {
  border-top-color: rgba(245, 200, 80, .24);
  color: #f5c850;
}

.tackle-hub-gear-panel .gear-play-style {
  margin-top: 6px;
  padding: 5px 7px;
  border: 1px solid rgba(171, 100, 18, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .42);
  color: #71450e;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .035em;
}

.tackle-hub-gear-panel .gear-premium-price {
  margin: 6px 0 0;
  color: #fff8e4;
  font-family: var(--display, "Arial Black", Arial, sans-serif);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
}

.tackle-hub-gear-panel .gear-tier-card.premium .gear-play-style {
  border-color: rgba(245, 200, 80, .34);
  background: rgba(255, 255, 255, .07);
  color: #f5c850;
}

.tackle-hub-gear-panel .gear-tier-action,
.tackle-hub-gear-panel .gear-tier-current {
  min-height: 38px;
  margin-top: 7px;
  padding: 6px 8px;
  border-width: 1px;
  border-color: rgba(30, 65, 89, .4);
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(17, 50, 70, .17);
  font-size: 10px;
}

@container game-shell (max-width: 430px) {
  .tackle-hub-screen {
    padding-right: calc(var(--safe-right) + 8px);
    padding-left: calc(var(--safe-left) + 8px);
  }

  .tackle-hub-screen .paper-panel.tackle-hub-panel {
    gap: 8px;
    margin-top: 7px;
    padding: 9px;
    border-radius: 17px;
  }

  .tackle-hub-tabs {
    top: -9px;
    margin: -9px -9px 0;
    padding: 7px 8px 6px;
  }

  .tackle-hub-tabs button {
    min-height: 39px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 11px;
  }

  .tackle-hub-gear-summary {
    min-height: 48px;
    padding: 7px 9px;
  }

  .tackle-hub-lure-card {
    grid-template-columns: 50px minmax(0, 1fr) 58px;
    min-height: 73px;
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
  }

  .tackle-hub-lure-card > img {
    width: 48px;
    height: 48px;
  }

  .tackle-hub-lure-copy header b {
    font-size: 10px;
  }

  .tackle-hub-lure-copy p {
    font-size: 8px;
  }

  .tackle-hub-lure-copy small {
    font-size: 7px;
  }

  .tackle-hub-buy-more {
    width: 58px;
    min-height: 44px;
    border-radius: 10px;
  }

  .tackle-hub-buy-more b {
    font-size: 10px;
  }
}

@container game-shell (max-width: 430px) and (max-height: 720px) {
  .tackle-hub-screen .paper-panel.tackle-hub-panel {
    gap: 6px;
    margin-top: 5px;
    padding: 7px;
  }

  .tackle-hub-tabs {
    top: -7px;
    margin: -7px -7px 0;
    padding: 5px 6px;
  }

  .tackle-hub-tabs button {
    min-height: 35px;
  }

  .tackle-hub-gear-summary {
    min-height: 42px;
    padding-block: 5px;
  }

  .tackle-hub-box-summary {
    min-height: 38px;
    padding-block: 5px;
  }

  .tackle-hub-lure-list,
  .tackle-hub-kit-section .gear-tier-list {
    gap: 5px;
  }

  .tackle-hub-lure-card {
    min-height: 66px;
  }

  .tackle-hub-lure-copy p {
    -webkit-line-clamp: 1;
  }

  .tackle-hub-current-kit {
    gap: 5px;
    padding: 9px;
  }

  .tackle-hub-current-kit > p {
    display: none;
  }

  .tackle-hub-screen .screen-footer .wtf-button {
    min-height: 44px;
    font-size: 12px;
  }
}

/* Explicit section navigation replaces button-like tabs. */
.tackle-section-heading {
  position: sticky;
  z-index: 5;
  top: -12px;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -12px -12px 0;
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--tackle-line);
  background: rgba(247, 248, 244, .96);
  backdrop-filter: blur(10px);
}

.tackle-section-heading h1 {
  margin: 0;
  color: var(--tackle-ink);
  font: 950 clamp(20px, 5vw, 28px)/1 var(--display, "Arial Black", Arial, sans-serif);
}

.tackle-section-link {
  min-height: 44px;
  padding: 6px 2px 6px 10px;
  border: 0;
  background: transparent;
  color: var(--tackle-blue-dark);
  box-shadow: none;
  font: 950 clamp(10px, 2.7vw, 13px)/1 var(--body, Arial, sans-serif);
  letter-spacing: .035em;
  cursor: pointer;
}

.tackle-section-link:active {
  color: var(--tackle-blue);
  transform: translateY(1px);
}

.tackle-section-button {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #b6c3c9;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  background-clip: padding-box;
  box-shadow: 0 1px 0 rgba(17, 50, 70, .12);
  overflow: hidden;
}

.tackle-section-button:active {
  box-shadow: none;
}

.tackle-section-button-compact {
  min-height: 36px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: clamp(9px, 2.45vw, 12px);
}

.gear-section-heading {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
}

.gear-section-heading .tackle-section-link {
  justify-self: start;
  text-align: left;
}

.gear-section-heading .gear-back-button {
  display: grid;
  min-width: 88px;
  min-height: 42px;
  align-content: center;
  gap: 1px;
  padding: 5px 8px;
  line-height: 1;
}

.gear-back-button small {
  color: var(--tackle-ink-soft);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
}

.gear-section-heading h1 {
  justify-self: center;
}

.tackle-section-balance {
  display: grid;
  justify-self: end;
  color: var(--tackle-ink-soft);
  font-size: 7px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: .06em;
  text-align: right;
}

.tackle-section-balance b {
  color: var(--tackle-ink);
  font-size: 12px;
}

.tackle-hub-gear-panel .gear-tier-card.owned:not(.current):not(.special) {
  background: #f1f5f6;
}

.tackle-hub-gear-panel .gear-tier-card.current:not(.special) {
  background: #e8f4e3;
}

.tackle-hub-gear-panel .gear-tier-card.current .gear-tier-status {
  background: var(--tackle-green);
  color: white;
}

.tackle-hub-gear-panel .gear-tier-unavailable {
  margin: 7px 0 0;
  padding: 5px 0 0;
  border-top: 1px solid rgba(30, 65, 89, .16);
  color: var(--tackle-ink-soft);
  font-size: 8px;
  font-weight: 950;
  text-align: center;
}

.tackle-hub-screen .panel-footer.screen-footer {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@container game-shell (max-width: 430px) {
  .tackle-section-heading {
    top: -9px;
    margin: -9px -9px 0;
    padding: 6px 9px 5px;
  }

  .gear-section-heading {
    grid-template-columns: minmax(82px, 1fr) auto minmax(68px, 1fr);
  }

  .gear-section-heading .tackle-section-link {
    max-width: 106px;
    font-size: 8px;
  }
}
