#rod-station[data-mode="rod"] {
  width:clamp(286px,26vw,370px);
  grid-template-columns:auto minmax(0,1fr);
  align-items:end;
  gap:6px;
}
#rod-station[data-mode="rod"] #groundbait-controls {
  grid-area:1 / 2;
}
#rod-station[data-mode="rod"] #retrieve-button {
  grid-area:1 / 1;
  justify-self:start;
}
#rod-station #retrieve-button {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border-radius:24px;
  font:500 13px var(--sans);
}
#rod-station #retrieve-button svg {width:16px;height:16px}
#rod-stick {
  grid-area:2 / 1 / 3 / -1;
  height:clamp(205px,28svh,268px);
  border-radius:26px;
  border-color:#b8b99a42;
  background:radial-gradient(ellipse at 50% 52%,#1c36319e,#0f2321b5);
}
#stick-thumb {
  width:44px;
  height:44px;
  padding:0;
  min-height:0;
  border:0;
  background:transparent;
  box-shadow:none;
  pointer-events:auto;
  touch-action:none;
  cursor:inherit;
}
#stick-thumb::after {
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid #e6cf9c;
  border-radius:50%;
  background:radial-gradient(circle at 38% 30%,#e7dcbf,#aa9874);
  box-shadow:0 0 0 3px #c4cfb825,0 3px 6px #071c1c6b;
}
#stick-thumb:disabled {opacity:1;pointer-events:none}
#rig-target-note {margin-right:auto;color:var(--faint);font:12px/1.4 var(--sans)}
#rig-target-note:empty {display:none}
.rig-footer button {white-space:nowrap}
@media(max-width:600px) {
  #rod-station[data-mode="rod"] {width:clamp(180px,57vw,252px)}
  #rod-stick {height:clamp(169px,27svh,238px)}
  #game:has(#rod-station[data-mode="rod"]) .left-controls {max-width:calc(100% - clamp(180px,57vw,252px) - 32px)}
  .rig-footer {flex-wrap:wrap;gap:6px}
  #rig-target-note {flex:1 0 100%}
}
@media(max-height:500px) and (orientation:landscape) {
  #rod-station[data-mode="rod"] {width:clamp(216px,35vw,306px)}
  #rod-stick {height:clamp(139px,40svh,190px)}
}

/* Keep leader lengths on a single horizontal row and bait choices in an even two-column grid on every viewport. */
#rig-dialog #leader-length {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:5px}
#rig-dialog #leader-length button {min-height:41px;padding:6px 4px;white-space:nowrap;text-align:center}
#rig-dialog #bait-select {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#rig-dialog #bait-select button {min-height:46px;padding:6px 9px}

/* The tackle drawing is the working surface for lead and float adjustments.
   Give bait names and leader lengths the full sheet on a phone. */
@media(max-width:600px) {
  #rig-dialog #bait-select button {min-height:48px}
  #rig-dialog #leader-length button {min-height:44px}
}
