:root {
  color-scheme: dark;
  --paper: #f4eedc;
  --muted: #bac7b8;
  --brass: #f2d397;
  --line: #dfdfc941;
  --glass: #112b2cdb;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
  background: #13292b;
  color: var(--paper);
}
* { box-sizing: border-box }
html, body, #game, #scene { width: 100%; height: 100%; margin: 0; overflow: hidden }
#game { position: relative; isolation: isolate; user-select: none }
#scene { display: block; touch-action: none }
[hidden] { display: none !important }
button, input, select { font: inherit; color: inherit }
button { cursor: pointer; border: 1px solid var(--line); background: var(--glass); -webkit-tap-highlight-color: transparent }
button, select, summary { touch-action: manipulation }
button:disabled { cursor: default }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, #rod-stick:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px }
button:hover:not(:disabled) { border-color: var(--brass) }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#13262960, transparent 17%, transparent 82%, #16222536) }
.topbar { position: absolute; inset: max(24px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) auto max(32px,env(safe-area-inset-left)); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; pointer-events: none }
.location { display: flex; gap: 11px; align-items: center; text-shadow: 0 1px 6px #0a1d1e, 0 0 15px #112722aa; min-width: 0 }
.seal { border: 1px solid #eac991bb; border-radius: 3px; padding: 4px 6px; font: 23px/1.25 var(--serif); color: var(--brass); background: #152f2edd }
h1 { font: 500 22px/1.25 var(--serif); letter-spacing: .10em; margin: 0 }
.location p { margin: 5px 0 0; font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; color: #f0eddb }
.tools, .small-actions { display: flex; align-items: center; gap: 8px }
.tools { pointer-events: auto }
.tools button, .chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 22px; min-width: 40px; min-height: 40px; color: var(--paper); backdrop-filter: blur(7px) }
#basket-button { padding: 0 12px; font: 15px Georgia,serif }
#help-button { font: 21px Georgia, serif }
.off, #sound-button[aria-pressed=false] .on { display: none }
#sound-button[aria-pressed=false] .off { display: block }
.left-controls, .right-controls { position: absolute; bottom: max(30px,env(safe-area-inset-bottom)); }
.left-controls { left: max(36px,env(safe-area-inset-left)); display:grid; justify-items:start; gap:7px }
.right-controls { right: max(36px,env(safe-area-inset-right)); display: flex; align-items: flex-end; flex-direction: column; gap: 8px }
#rod-stick {
  width:100%; height:clamp(190px,24vh,232px); position:relative; overflow:hidden; touch-action:none;
  border:1px solid #d3c79e77; border-radius:18px; cursor:grab; user-select:none;
  background:radial-gradient(ellipse at center,#365750a6,#1b3733aa 72%);
}
#rod-stick.active {cursor:grabbing;border-color:#dec48d}
.stick-field {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.stick-field * {vector-effect:non-scaling-stroke;fill:none;stroke:#c8d2b940;stroke-width:1}
.stick-field .stick-guides {stroke-dasharray:2 5}
.stick-field .stick-ring {stroke:#c0d3be70}
.stick-field .inner {stroke-dasharray:2 4}
.stick-field .middle {stroke-dasharray:8 4}
#rod-stick[data-band="1"] .inner, #rod-stick[data-band="2"] .middle, #rod-stick[data-band="3"] .outer {
  stroke:#f5d8a1;stroke-width:1.5;fill:#e6d59c0a
}
.stick-levels {position:absolute;top:8px;left:10px;display:flex;gap:4px;pointer-events:none;font:11px var(--sans);color:#d5e1d1aa}
.stick-levels span {padding-bottom:1px;border-bottom:1px solid transparent}
#rod-stick[data-band="1"] .stick-levels span:nth-child(1), #rod-stick[data-band="2"] .stick-levels span:nth-child(2), #rod-stick[data-band="3"] .stick-levels span:nth-child(3) {
  color:#ffe1a8;border-color:currentColor
}
.stick-field #stick-vector {stroke:#f6d49c;stroke-width:2;stroke-linecap:round}
.cardinal {position:absolute;color:#e2e7cf;font:11px var(--sans);pointer-events:none;text-shadow:0 1px 2px #142725}
.north,.south {left:50%;transform:translateX(-50%)}
.north {top:7px}.south {bottom:7px}
.east,.west {top:50%;transform:translateY(-50%)}
.east {right:9px}.west {left:9px}
#stick-thumb {
  position:absolute;left:var(--thumb-x,50%);top:var(--thumb-y,50%);transform:translate(-50%,-50%);
  width:25px;height:25px;border:1px solid #e5cc9c;border-radius:50%;
  box-shadow:0 2px 5px #0f221f80,inset 0 1px 1px #ffeac899;
  background:radial-gradient(circle at 38% 30%,#e5d9bb,#aa9c7e);pointer-events:none
}
.chip { font-size: 12px; letter-spacing: .4px; padding: 0 13px }
.chip svg { width: 16px; height: 16px }
.chip[aria-pressed=true] { color: #ffe4a6; border-color: #d8ba7da3 }
.action { width: 174px; min-height: 55px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; border-radius: 6px; background: #ebcd91; color: #243a32; border: 1px solid #f3dba8; padding: 0 19px; font: 600 18px var(--serif); letter-spacing: .14em; touch-action: none; box-shadow: 0 2px 7px #18271c45 }
.action:disabled { background: #a19d88; color: #374839 }
#action-symbol { font: 21px var(--sans); color: #54634b }
#rig-summary { color: #eee5cc; font-size: 11px; text-shadow: 0 1px 4px #061d21,0 0 8px #061d21; font-variant-numeric: tabular-nums }
#catch-slip { min-width: 174px; color: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; display: grid; gap: 5px; background: var(--glass) }
#catch-slip strong { font: 20px var(--serif); letter-spacing: .12em }
#result-stats:empty {display:none}
#catch-slip span { font-size: 12px; color: var(--brass) }
.overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #142c2e; padding: 32px; text-align: center; transition: opacity .25s }
.overlay.done { opacity: 0; pointer-events: none }
.float-glyph { width: 5px; height: 49px; background: repeating-linear-gradient(to top,#dc6848 0 7px,#263a36 7px 9px,#e5cf82 9px 16px,#263a36 16px 18px); border-radius: 3px }
h2 { font: 500 26px/1.3 var(--serif); letter-spacing: .12em; margin: 0 }
#loading-track { width: min(230px,60vw); height: 3px; background: #72857c40 }
#loading-progress { display: block; height: 100%; background: var(--brass); transition: width .15s }
#loading-detail, .note, .credits { color: var(--muted); font-size: 12px; line-height: 1.6 }
dialog { padding: 0; width: min(410px,calc(100% - 28px)); max-height: calc(100dvh - 36px); border: 1px solid #d6c59b66; border-radius: 10px; color: var(--paper); background: #193133; box-shadow: 0 12px 55px #0a1919aa; overflow-y: auto; overscroll-behavior: contain }
dialog::backdrop { background: #0b191c75; backdrop-filter: blur(3px) }
.sheet { padding: 25px; position: relative }
.sheet h2 { margin-bottom: 21px }
.close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: none; border-radius: 50%; font: 25px var(--sans); color: var(--muted) }
fieldset { border: none; margin: 0; padding: 0; min-width: 0 }
legend, .sheet h3 { padding: 0; color: var(--brass); font: 600 12px var(--sans); letter-spacing: .13em; margin: 0 0 11px }
.sheet h3 { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px }
label, .instructions dd { font-size: 13px; color: #e1e6d6 }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.form-row select { min-width: 58% }
select { padding: 9px 12px; border: 1px solid var(--line); background: #102728; color: var(--paper); border-radius: 4px; font-size: 14px }
.form-pair { display: flex; gap: 12px; margin: 12px 0 }
.form-pair label { display: flex; justify-content: space-between; flex: 1; gap: 6px; align-items: center }
.form-pair select { min-width: 0; flex: 1 }
output { color: var(--brass); font-variant-numeric: tabular-nums }
.done { padding: 11px 20px; background: var(--brass); border: 0; border-radius: 4px; color: #21382b; font-size: 14px }
.sheet>.done { width: 100%; margin-top: 17px }
.note { margin: 12px 0 0 }.instructions { margin: 0 }
.instructions dt { font-size: 14px; color: var(--brass); margin-top: 17px }
.instructions dd { margin: 5px 0 0; line-height: 1.75 }
.credits { border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; margin: 18px 0 0 }
.credits a { color: var(--brass) }
.fish-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 13px 0 }
.fish-row strong { font: 17px var(--serif) }.fish-row small { color: var(--muted); font-size: 11px }
details { margin-top: 15px; color: var(--muted); font-size: 13px }
@media (max-width:600px) {
  .topbar { inset: max(14px,env(safe-area-inset-top)) max(13px,env(safe-area-inset-right)) auto max(15px,env(safe-area-inset-left)); gap: 6px }
  .location { gap: 7px; align-items: flex-start }.seal { font-size: 19px;padding: 4px }.location p { max-width: 200px; font-size: 10px; margin-top: 4px }
  h1 { font-size: 18px }.tools { gap: 3px }.tools button { min-width: 36px; min-height: 36px }#basket-button { padding: 0 8px }
  .left-controls { left: max(16px,env(safe-area-inset-left)); bottom: max(17px,env(safe-area-inset-bottom)) }
  .right-controls { right: max(16px,env(safe-area-inset-right)); bottom: max(17px,env(safe-area-inset-bottom)); gap: 6px }
  .action { width: 146px; min-height: 48px }.small-actions{gap:5px}.chip {min-height:38px;padding:0 10px} #rig-summary { font-size: 10px }
  #catch-slip { min-width:146px }
}
@media(max-height:480px) { .topbar { top: 10px }.left-controls,.right-controls { bottom: 12px } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important } }
#fish-list details { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line) }
#fish-list summary { color: var(--paper); font: 16px var(--serif); cursor: pointer }
#fish-list p { margin: 10px 0 0; font-size: 12px; line-height: 1.75 }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }
.location { position:relative; padding:3px 5px 5px 0 }
.location-hit { position:absolute; inset:0; width:100%; min-height:44px; pointer-events:auto; background:transparent; border:0; border-radius:4px }
.loc-menu { margin-left:6px; color:var(--brass); font:16px var(--sans) }
#scene { cursor:grab }
#scene.looking { cursor:grabbing }
#centre-view {width:36px; padding:0; min-width:36px}

/* The opening and the playable bank share the same riverbank artwork. */
#loading {
  isolation:isolate; overflow:hidden; color:#283f34;
  background:linear-gradient(180deg,#d8e3db 0%,#e7e7d8 44%,#b3c1a8 78%,#6a846c 100%);
}
#loading::before,#loading::after {
  content:""; position:absolute; z-index:-1; pointer-events:none; inset:auto 0 0;
  height:clamp(90px,30vh,280px); background:url('/assets/scenery/jiangnan-bank.webp') center bottom / cover no-repeat;
}
#loading::before {bottom:10%;opacity:.28;filter:blur(1.5px); transform:scaleX(-1)}
#loading h2 {font:600 clamp(34px,5vw,56px)/1.2 var(--serif);letter-spacing:.13em;text-indent:.13em}
#loading .float-glyph {background:repeating-linear-gradient(to top,#b34d32 0 7px,#43523f 7px 9px,#d0a851 9px 16px,#43523f 16px 18px);height:38px}
#loading-track {height:3px;background:#2645372e}
#loading-progress {background:#43634c}
#loading-detail {color:#415543}

#rod-station {
  --station-width:190px;
  width:var(--station-width); padding:6px; border:1px solid #d8c99e63; border-radius:13px;
  background:linear-gradient(150deg,#1b3835ed,#132d2ce8); box-shadow:0 3px 12px #10272640;
  display:grid; justify-items:center; gap:5px;
}
#rod-station[data-mode="cast"] { padding:0; border:0; box-shadow:none; background:none }
.cast-fan { position:relative; width:100%; color:var(--brass) }
.cast-cancel {display:none;position:absolute;right:calc(100% + 9px);bottom:calc(100% - 12px);width:76px;height:44px;align-items:center;justify-content:center;white-space:nowrap;border:1px dashed #e4d2af97;border-radius:22px;background:#203831e8;color:#f1e8ca;font:12px var(--sans);pointer-events:none}
.cast-fan.dragging .cast-cancel {display:flex}
.cast-cancel strong,.cast-fan.over-cancel .cast-cancel span {display:none}
.cast-fan.over-cancel .cast-cancel {background:#794d3f;border-style:solid}
.cast-fan.over-cancel .cast-cancel strong {display:inline}
.cast-fan.over-cancel .cast-map {opacity:.73}
#rod-station .cast-row { width:100%; display:flex; align-items:center; justify-content:flex-end; gap:5px }
#rod-station .cast-row:has(#action-button[hidden]):has(#retrieve-button[hidden]) {display:none}
#rod-station .action { flex:1; width:auto; min-width:0; min-height:43px; padding:0 12px; border-radius:7px; font-size:16px }
#rod-station #retrieve-button { flex:0 0 auto; min-height:43px; padding:0 10px; border-radius:7px }
#rod-station[data-mode="rod"] {
  width:clamp(270px,24vw,350px); padding:0; border:0; background:none; box-shadow:none;
}
#rod-station[data-mode="rod"] .action {font:600 13px var(--sans);letter-spacing:.03em; border-color:#e6d8ae88; background:#e4d6af}
#rod-station[data-mode="result"] #action-title {white-space:nowrap}
.cast-map {
  display:grid; justify-items:center; width:100%; padding:5px 9px 9px;
  border:1px solid #d8c69d9c; border-radius:50% 50% 16px 16px / 28% 28% 16px 16px;
  background:linear-gradient(155deg,#33554bed,#173530f2 75%); color:var(--brass);
  box-shadow:inset 0 1px 2px #e2d7a633,0 3px 12px #10272655; touch-action:none; cursor:grab;
}
.cast-map.gripped {cursor:grabbing;border-color:#f4cf86;background:linear-gradient(155deg,#446050f2,#1d3b32f2)}
.cast-map.gripped .fan-point {fill:#ffdfa1;stroke-width:2.25}
.cast-map:disabled {opacity:.82;cursor:default}
.cast-fan svg { pointer-events:none; display:block; width:100%; height:auto; aspect-ratio:190 / 114; cursor:crosshair; touch-action:none; overflow:visible }
.cast-fan .fan-water { fill:#45675f88; stroke:#d8c597b3; stroke-width:1.3 }
.cast-fan .fan-grid { stroke:#d0e1ce55; stroke-width:1; stroke-dasharray:3 4 }
.cast-fan .fan-ray { stroke:#dbce9c; stroke-width:1.5 }
.cast-fan .fan-point { fill:#f5d596; stroke:#273c32; stroke-width:1.5 }
.fan-caption { display:flex; justify-content:center; gap:9px; align-items:baseline; pointer-events:none; font:11px var(--sans); color:#f2e9d3 }
.fan-caption strong {font:600 16px var(--serif);letter-spacing:.08em;color:#fff1cc}
.fan-caption output { color:var(--brass); font-variant-numeric:tabular-nums }
#groundbait-controls { position:relative; display:flex; justify-content:flex-end; gap:5px; width:100% }
#groundbait-controls .chip { min-height:39px; padding:0 10px; font:500 13px var(--sans); gap:5px; white-space:nowrap; flex-shrink:0 }
#groundbait-button svg { width:19px; height:19px }
#groundbait-controls[data-armed="true"] #groundbait-button { border-color:#e1c18e; color:#f4dba8; background:#314239ef }
.feed-caret { color:var(--muted); font-size:13px }
#groundbait-button[aria-expanded=true] .feed-caret { transform:rotate(180deg) }
#groundbait-picker {
  position:absolute; right:0; bottom:calc(100% + 6px); z-index:3; width:min(194px,78vw);
  max-height:calc(100dvh - 205px); overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y;
  padding:4px; background:#19322ff7; border:1px solid #b5b69b94; border-radius:10px;
  box-shadow:0 4px 16px #10231f65;
}
#groundbait-picker button {
  display:flex; width:100%; align-items:center; gap:10px; min-height:47px;
  text-align:left; border:1px solid transparent; background:transparent; border-radius:6px; padding:6px 8px;
}
#groundbait-picker button:hover, #groundbait-picker button:focus-visible,
#groundbait-picker button[aria-pressed="true"] { background:#344e42; border-color:#bda47788 }
#groundbait-picker button:focus-visible {outline:2px solid var(--brass);outline-offset:-2px}
#groundbait-picker strong, #groundbait-picker small {display:block}
#groundbait-picker strong {font:600 15px var(--serif);letter-spacing:.06em;color:var(--paper)}
#groundbait-picker small {font:11px/1.65 var(--sans);color:#bfcbbe}
.feed-sample {
  flex:0 0 28px; width:28px; height:29px; border-radius:50%;
  background-color:#263c32; border:1px solid #a2a18060;
}
.feed-sample.rice {
  background-image:radial-gradient(ellipse 3.2px 1.5px at 32% 38%,#e8ce88 90%,transparent),
    radial-gradient(ellipse 3px 1.6px at 65% 46%,#ceaa68 90%,transparent),
    radial-gradient(ellipse 3.1px 1.5px at 44% 67%,#e3c17b 90%,transparent); transform:rotate(-22deg)
}
.feed-sample.corn {
  background-image:radial-gradient(ellipse 4px 3px at 36% 37%,#e3aa50 90%,transparent),
    radial-gradient(ellipse 3px 3.8px at 65% 52%,#cca04d 90%,transparent),
    radial-gradient(ellipse 3.7px 3px at 38% 68%,#e1ba67 90%,transparent); transform:rotate(12deg)
}
.feed-sample.powder {
  background-image:radial-gradient(ellipse 7px 6px at 51% 54%,#d1af80ab,transparent),
    radial-gradient(circle at 34% 33%,#e4cca5 4%,transparent 8%),
    radial-gradient(circle at 69% 40%,#d6bf95 4%,transparent 9%),
    radial-gradient(circle at 28% 64%,#ba9970 3%,transparent 9%),
    radial-gradient(circle at 65% 71%,#cfab7b 3%,transparent 7%)
}
#groundbait-picker #groundbait-recall {
  border-top:1px solid var(--line); border-radius:0 0 6px 6px; justify-content:center;
  min-height:40px; font:12px var(--sans); color:var(--brass);
}
.cast-fan[data-action=feed] .fan-point { fill:#f3b66b; stroke:#503e28 }
.cast-fan[data-action=feed] .cast-map { border-color:#d4ae77 }
@media(pointer:coarse) {
  #groundbait-controls .chip, #groundbait-picker #groundbait-recall { min-height:44px }
}
@media(max-height:520px) and (min-width:500px) {
  #groundbait-picker { right:calc(100% + 7px); bottom:0; max-height:min(205px,calc(100dvh - 140px)) }
  #rod-station[data-mode=rod] #groundbait-picker { top:0; bottom:auto; max-height:min(205px,calc(100dvh - 64px)) }
}
@media(max-width:600px) {
  #rod-station {--station-width:153px}
  #rod-station[data-mode="rod"] {width:clamp(176px,56vw,245px)}
  #rod-stick {height:clamp(159px,23svh,206px)}
  #game:has(#rod-station[data-mode="rod"]) .left-controls {max-width:calc(100% - clamp(176px,56vw,245px) - 42px)}
  #game:has(#rod-station[data-mode="rod"]) .small-actions {flex-wrap:wrap}
  .left-controls .small-actions {gap:4px}
  .left-controls .chip {padding:0 8px}
}
@media(max-width:360px) { .left-controls .small-actions {flex-wrap:wrap;max-width:140px} }
@media(max-height:480px) {
  #rod-station {--station-width:140px;gap:2px}
  #rod-station[data-mode="rod"] {width:min(270px,40vw)}
  #rod-stick {height:clamp(130px,34svh,165px)}
}

#float-window-layer {
  position:absolute; z-index:1; pointer-events:none;
  inset:max(7px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));
}
#float-window {
  position:absolute; left:0; top:0; display:flex; flex-direction:column;
  width:min(200px,100%); height:min(176px,100%); box-sizing:border-box;
  pointer-events:auto; touch-action:none; overflow:hidden; user-select:none; -webkit-user-select:none;
  border:1px solid #dfd0a7bf; border-radius:7px 7px 0 0; background:transparent;
  box-shadow:0 3px 12px #102e254d;
}
.float-window-bar { display:flex; flex:0 0 31px; color:#f3eedc; background:#163430; border-bottom:1px solid #ddca995c }
.float-window-bar button { display:flex; align-items:center; justify-content:center; padding:0; background:none; color:inherit; border:0; border-radius:0; touch-action:none }
.float-window-bar button:focus-visible { outline:2px solid var(--brass); outline-offset:-3px }
#float-window-handle { justify-content:flex-start; gap:6px; min-width:0; flex:1; padding-left:11px; cursor:grab; font:500 13px var(--serif); letter-spacing:.1em }
#float-window-handle.dragging { cursor:grabbing }
#float-window-handle svg { width:12px; height:15px; stroke:#d0bc8e; stroke-width:2.7 }
#float-window-scale {align-self:center;flex:0 0 auto;width:53px;height:26px;margin:0;padding:0 3px;color:#f3eedc;background:#213d38;border:1px solid #66867a;border-radius:4px;font:500 12px var(--sans);cursor:pointer}
#float-window-close { width:36px; align-self:stretch }
#float-window-close:hover { color:var(--brass);background:#e2d3ad10 }
#float-window-close svg { width:15px; height:15px }
#float-window-view { min-height:0; flex:1; background:transparent }
#float-window-toggle { min-height:35px }
@media(max-width:600px), (max-height:480px) {
  #float-window {width:min(152px,48vw,100%);height:min(135px,41vh,100%)}
  .float-window-bar { flex-basis:36px }
  #float-window-close {width:34px}
  #float-window-scale {height:32px}
  #float-window-toggle {min-height:36px}
}

#trial-button { padding:0 12px; white-space:nowrap; font-size:12px; }
#trial-button[data-active=true] { color:#ffe1a5; border-color:var(--brass); }
.trial-sheet h2 { margin-bottom:5px; }
.trial-note { margin:0 0 19px; color:var(--muted); font-size:12px; line-height:1.6; }
.trial-sheet fieldset { margin-bottom:12px; }
.trial-sheet legend { margin-bottom:6px; }
.trial-choices { display:flex; gap:3px; padding:3px; border-radius:6px; background:#122b2c; }
.trial-choices label { flex:1; position:relative; cursor:pointer; }
.trial-choices input { position:absolute; width:1px; height:1px; opacity:0; }
.trial-choices span { display:grid; min-height:34px; place-items:center; white-space:nowrap; border:1px solid transparent; border-radius:4px; }
.trial-choices input:checked+span { color:#f6dfae; background:#364b40; border-color:#b29d6b; }
.trial-choices input:focus-visible+span { outline:2px solid var(--brass); outline-offset:1px; }
.trial-environment { padding-bottom:16px; border-bottom:1px solid var(--line); }
.trial-environment button, #trial-exit, .trial-presets button { padding:8px 13px; border:1px solid var(--line); border-radius:5px; color:var(--paper); }
.trial-fish-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.trial-fish-row label, .trial-select { display:grid; gap:6px; color:var(--brass); font-size:12px; margin-bottom:13px; }
.trial-sheet select { width:100%; min-width:0; }
.trial-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.trial-footer .done { flex:1; }
.trial-presets {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.trial-presets button {min-height:42px;background:#203836}
#trial-blind {color:#edd7a5;border-color:#9d906a}
@media(max-width:480px) {
  #trial-button { padding:0 8px; font-size:11px; }
  .trial-sheet { padding:20px; }
  .trial-choices span { min-height:39px; }
}

@media (max-width:360px) {
  .location .seal {display:none}
  .location h1 {white-space:nowrap;letter-spacing:.03em;font-size:16px}
  .tools {gap:2px}
  .tools button {min-width:33px;min-height:36px}
  #trial-button {padding-inline:6px}
}
