html, body { margin: 0; height: 100%; overflow: hidden; background: #9fb8cc;
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff;
  -webkit-user-select: none; user-select: none; touch-action: none; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#hud { position: fixed; left: max(12px, env(safe-area-inset-left)); top: max(10px, env(safe-area-inset-top));
  text-shadow: 0 1px 3px #0008; pointer-events: none; }
#title { font-size: 20px; font-weight: 650; }
#title span { font-size: 13px; font-weight: 400; opacity: .85; margin-left: 6px; }
#stats { font: 12px ui-monospace, Consolas, monospace; opacity: .85; margin-top: 2px; }
#probe { margin-top: 8px; font-size: 15px; }
#bar { position: fixed; right: max(10px, env(safe-area-inset-right)); top: max(10px, env(safe-area-inset-top));
  display: flex; gap: 6px; }
#bar a { color: #fff; text-decoration: none; background: #0006; padding: 6px 10px; border-radius: 8px;
  backdrop-filter: blur(4px); font-size: 13px; }
#bar a.on { background: #fff3; outline: 1px solid #fff8; }
/* the loading screen (index.html; intro.js flies the lake behind it): the aerial photo under a dawn
   wash, then ('live') the game itself showing through, then ('landing') everything lifting away */
#loading { --p: 0.02; position: fixed; inset: 0; z-index: 20; overflow: hidden; color: #f8efe2; background: #0d1320;
  transition: opacity .9s, background-color 1.6s; pointer-events: auto; }
#loading.live { background-color: transparent; pointer-events: none; }
#loading .ld-photo { position: absolute; inset: -8%; opacity: 0; transition: opacity 2.2s ease; }
#loading.photo .ld-photo { opacity: 1; }
#loading.live .ld-photo { opacity: 0; transition-duration: 2.8s; }
#loading .ld-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.08) brightness(.86);
  animation: ld-drift 60s linear infinite alternate; transform-origin: 46% 52%; }
@keyframes ld-drift { from { transform: scale(1.12) rotate(-2deg) translate(0, 0); } to { transform: scale(1.42) rotate(3deg) translate(-2%, 1.5%); } }
/* dawn over it: deep blue above, a warm band low, and the corners falling away */
#loading .ld-wash { position: absolute; inset: 0; pointer-events: none; transition: opacity 2.4s;
  background: radial-gradient(ellipse 120% 85% at 62% 108%, #ff9a4a66, #ff7a3a22 38%, transparent 62%),
    linear-gradient(#0b1430e6, #2a2a5299 34%, #9a556044 62%, #f0924d33 82%, #0b0d1866),
    radial-gradient(ellipse at 50% 50%, transparent 52%, #04060ccc 100%);
  mix-blend-mode: normal; }
#loading.live .ld-wash { opacity: .55; }
/* the sun's glow, rising as it loads, off to the right */
#loading .ld-sunglow { position: absolute; left: 58%; top: calc(78% - var(--p) * 22%); width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
  background: radial-gradient(circle, #ffd9a0aa, #ffb0602e 22%, transparent 55%); mix-blend-mode: screen; pointer-events: none; transition: top 1.2s ease, opacity 2s; }
#loading.live .ld-sunglow { opacity: .35; }
/* mist banks drifting over it all */
#loading .ld-mist { position: absolute; inset: 0; pointer-events: none; transition: opacity 3s; }
#loading .ld-mist i { position: absolute; left: -40%; width: 180%; height: 26%; border-radius: 50%; filter: blur(30px);
  background: radial-gradient(ellipse at 50% 50%, #f4e6dc55, transparent 70%); animation: ld-mist 38s linear infinite; }
#loading .ld-mist i:nth-child(1) { top: 52%; }
#loading .ld-mist i:nth-child(2) { top: 66%; animation-duration: 52s; animation-direction: reverse; opacity: .7; }
#loading .ld-mist i:nth-child(3) { top: 40%; animation-duration: 70s; opacity: .45; }
@keyframes ld-mist { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
#loading.live .ld-mist { opacity: .35; }
/* film bars, top and bottom: they slide away as you land */
#loading .ld-bars::before, #loading .ld-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 7vh; background: #05070c; transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); z-index: 2; }
#loading .ld-bars::before { top: 0; } #loading .ld-bars::after { bottom: 0; }
#loading.landing .ld-bars::before { transform: translateY(-100%); } #loading.landing .ld-bars::after { transform: translateY(100%); }
#loading.landing .ld-sunglow, #loading.landing .ld-wash, #loading.landing .ld-mist { opacity: 0; }
/* the card: a title over the lake, low on the left, the line under it */
#loading .ld-card { position: absolute; left: max(6vw, env(safe-area-inset-left)); bottom: calc(7vh + clamp(18px, 6vh, 64px)); width: min(520px, 86vw); z-index: 3;
  text-shadow: 0 2px 18px #000c, 0 1px 3px #000a; transition: opacity 1s, transform 1.2s; pointer-events: auto; }
#loading.landing .ld-card { opacity: 0; transform: translateY(16px); }
#loading .ld-kicker { margin: 0; font: 600 clamp(11px, 1.6vmin, 13px) system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: #ffb86b; }
#loading .ld-name { margin: 6px 0 0; font: 700 clamp(34px, 7.4vmin, 76px)/1.02 Georgia, 'Times New Roman', serif; letter-spacing: -.01em;
  animation: ld-in 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ld-in { from { opacity: 0; transform: translateY(14px); letter-spacing: .04em; } }
#loading .ld-lake { margin: 8px 0 clamp(16px, 3.4vh, 28px); font-size: clamp(12px, 1.9vmin, 15px); letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
/* the line: reel at the left, line paid out to the bobber, slack beyond it */
#loading .ld-line { position: relative; height: 22px; margin-left: 18px; }
#loading .ld-line::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: linear-gradient(90deg, #ffffff40, #ffffff14); }
#loading .ld-spool { position: absolute; left: 0; top: 10px; height: 3px; width: calc(var(--p) * 100%); transition: width .7s cubic-bezier(.3, .7, .3, 1); }
#loading .ld-spool div { height: 1.5px; margin-top: .5px; background: linear-gradient(90deg, #fff7e0aa, #fff4dc); box-shadow: 0 0 6px #ffd9a088; }
#loading .ld-reel { position: absolute; left: -18px; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e9dcc6; box-sizing: border-box;
  background: radial-gradient(circle, #e9dcc6 0 2px, transparent 3px); animation: ld-spin 1.4s linear infinite; }
#loading .ld-reel::after { content: ''; position: absolute; left: 50%; top: -6px; width: 2px; height: 7px; background: #e9dcc6; border-radius: 1px; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
#loading.bite .ld-reel { animation-duration: .35s; }
#loading .ld-float { position: absolute; top: 11px; left: calc(var(--p) * 100%); transition: left .7s cubic-bezier(.3, .7, .3, 1); }
#loading .ld-float b { position: absolute; left: -7px; top: -12px; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(#e2372b 0 52%, #f6f0e4 52%); box-shadow: 0 0 14px #ffcf8a88, 0 2px 4px #000a; animation: ld-bob 2.2s ease-in-out infinite; }
#loading .ld-float b::before { content: ''; position: absolute; left: 6px; top: -6px; width: 2px; height: 7px; background: #f6f0e4; border-radius: 1px; }
@keyframes ld-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(2px) rotate(5deg); } }
#loading .ld-r { position: absolute; left: -16px; top: -3px; width: 32px; height: 8px; border: 1.5px solid #fff7; border-radius: 50%; opacity: 0;
  animation: ld-ring 2.6s ease-out infinite; }
#loading .ld-r + .ld-r { animation-delay: 1.3s; }
@keyframes ld-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
/* at 100%: a bite. The bobber goes under, the rings burst out */
#loading.bite .ld-float b { animation: ld-under .9s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes ld-under { 0% { transform: translateY(0); } 25% { transform: translateY(-3px); } 100% { transform: translateY(16px) scale(.7); opacity: 0; } }
#loading.bite .ld-r { animation: ld-ring .9s ease-out 3; border-color: #fffc; }
#loading .ld-stage { margin: 16px 0 0; font: 600 clamp(12px, 1.8vmin, 14px) system-ui, sans-serif; letter-spacing: .06em; opacity: .9; }
#loading.bite .ld-stage { color: #ffd27a; }
#loading .ld-tip { margin: 8px 0 0; font-size: clamp(12px, 1.9vmin, 15px); line-height: 1.45; font-style: italic; opacity: 1; transition: opacity .4s; max-width: 440px; color: #f1e6d4d9; }
/* everything else waits until you're down */
body.intro > *:not(#loading):not(#view):not(script) { opacity: 0 !important; pointer-events: none !important; transition: opacity .6s; }
@media (max-width: 600px) { #loading .ld-card { left: 6vw; bottom: calc(7vh + 18px); } #loading .ld-bars::before, #loading .ld-bars::after { height: 5vh; } }
@media (prefers-reduced-motion: reduce) { #loading *, #loading *::before, #loading *::after { animation: none !important; } }
#credits { position: fixed; left: 8px; bottom: max(6px, env(safe-area-inset-bottom)); font-size: 10px;
  opacity: .7; text-shadow: 0 1px 2px #000a; pointer-events: none; }
#fishhud { display: none; position: fixed; inset: 0; pointer-events: none; text-shadow: 0 1px 3px #000a; }
#fh-prompt { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-size: 17px; white-space: nowrap; }
#fh-prompt.big { font-size: 30px; font-weight: 700; color: #ffe27a; }
#fh-meter { display: none; position: absolute; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(60vw, 360px); height: 16px; background: #0007; border-radius: 9px; overflow: hidden; outline: 1px solid #fff5; }
#fh-steer { display: none; position: absolute; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(60vw, 360px); height: 26px; border-bottom: 2px solid #fff6; pointer-events: none; }
#fh-steer .rod { position: absolute; bottom: 0; width: 6px; margin-left: -3px; background: #f2e3b0; border-radius: 3px 3px 0 0; box-shadow: 0 0 4px #000a; }
#fh-steer .run { position: absolute; bottom: 4px; width: 0; height: 0; border: 9px solid transparent; animation: fhrun .5s infinite alternate; }
#fh-steer .run.r { right: -22px; border-left: 14px solid #e0533d; }
#fh-steer .run.l { left: -22px; border-right: 14px solid #e0533d; }
#fh-steer.good .run.r { border-left-color: #7cc46a; } #fh-steer.good .run.l { border-right-color: #7cc46a; }
#fh-steer span { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px #000; color: #fff; }
@keyframes fhrun { to { opacity: .35; } }
#fh-fill { height: 100%; width: 0; background: #e8d26a; transition: background .2s; }
#fh-label { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 16px; }
#fh-info { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: calc(26px + env(safe-area-inset-bottom)); font-size: 12px; opacity: .9; }
#fh-motion { pointer-events: auto; position: absolute; right: max(10px, env(safe-area-inset-right)); top: 52px; }
#fishhud button, #fh-card button { font: inherit; font-size: 13px; color: #fff; background: #0006; border: 0; padding: 6px 10px; border-radius: 8px;
  backdrop-filter: blur(4px); cursor: pointer; }
#fh-card { display: none; pointer-events: auto; position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #0b141bcc; padding: 12px 18px 14px; border-radius: 12px; text-align: center; min-width: 240px; backdrop-filter: blur(6px); }
#fh-card h2 { margin: 0 0 4px; font-size: 22px; }
#fh-card p { margin: 2px 0; }
#fh-card .pb { color: #ffe27a; }
#fh-card .st { letter-spacing: 2px; color: #d9dde2; font-size: 15px; }
#fh-card .st.gold { color: #ffcf3a; text-shadow: 0 0 8px #ffb30088; }
#fh-card .tro { display: inline-block; margin: 0 0 4px; padding: 2px 10px; border-radius: 99px; background: linear-gradient(#ffd75a, #e09a12); color: #3a2400; font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
#fh-card .tro[hidden] { display: none; }
#fh-card.legend { outline: 2px solid #ffd75a; box-shadow: 0 0 30px #ffb02e88; }
#fh-card.legend h2 { color: #ffd75a; letter-spacing: .5px; }
#fh-card.morph h2 { background: linear-gradient(90deg, #ffe58a, #8fd3ff, #e8eef5); -webkit-background-clip: text; background-clip: text; color: transparent; }
#fh-card .xp { font-size: 12px; opacity: .75; }
/* what a catch earned: top middle, a moment */
#fh-xp { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -12px); opacity: 0; pointer-events: none; z-index: 30;
  background: #0b141bd9; color: #fff; padding: 9px 16px 10px; border-radius: 12px; text-align: center; min-width: 220px; backdrop-filter: blur(6px);
  transition: opacity .35s, transform .35s; font-size: 13px; }
#fh-xp.on { opacity: 1; transform: translate(-50%, 0); }
#fh-xp .up { display: block; font-size: 22px; color: #ffcf3a; margin-bottom: 2px; text-shadow: 0 0 12px #ffb30099; }
#fh-xp.up { box-shadow: 0 0 0 2px #ffcf3a88, 0 0 30px #ffb30055; }
#fh-xp .bar { height: 6px; border-radius: 3px; background: #ffffff22; margin: 7px 0 4px; overflow: hidden; }
#fh-xp .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6fd38a, #c8f07a); transition: width 1.1s cubic-bezier(.2,.8,.2,1) .25s; }
#fh-xp small { opacity: .7; font-size: 11px; }
#fh-card div { margin-top: 10px; display: flex; gap: 8px; justify-content: center; }
#fh-card button { background: #fff2; padding: 8px 16px; }

/* angler chip, creator and bag */
#angler-chip { margin-top: 4px; font-size: 13px; opacity: .95; }
.panel { display: none; position: fixed; z-index: 5; background: #0b141bdd; backdrop-filter: blur(8px); border-radius: 14px;
  padding: 14px 18px 16px; text-shadow: none; max-height: calc(100% - 80px); overflow: auto; }
.panel h2 { margin: 0 0 10px; font-size: 20px; }
.panel h3 { margin: 14px 0 6px; font-size: 14px; opacity: .85; font-weight: 600; }
.panel button { font: inherit; color: #fff; background: #fff2; border: 0; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.panel button.go { background: #e8d26a; color: #1b1a10; font-weight: 650; }
.panel .btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.panel .err { color: #ff9b8a; margin: 6px 0 0; min-height: 1em; font-size: 13px; }
#creator { right: max(16px, env(safe-area-inset-right)); top: 56px; width: min(320px, calc(100% - 32px)); }
#creator .row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
#creator .row > span { width: 64px; font-size: 13px; opacity: .85; flex: none; }
#creator input { flex: 1; font: inherit; font-size: 16px; padding: 7px 9px; border-radius: 8px; border: 1px solid #fff4; background: #0006; color: #fff; user-select: text; }
#creator .sw { display: flex; flex-wrap: wrap; gap: 6px; }
#creator .sw button { width: 30px; height: 30px; padding: 0; border-radius: 50%; outline: 2px solid transparent; outline-offset: 2px; }
#creator .sw button.on { outline-color: #fff; }
#bag { left: 50%; top: 56px; transform: translateX(-50%); width: min(380px, calc(100% - 32px)); }
#bag .money { float: right; color: #ffe27a; font-size: 18px; }
#bag .sub { font-weight: 400; font-size: 12px; opacity: .8; margin-left: 6px; }
:is(#bag, #shop) .item { padding: 6px 0; border-top: 1px solid #fff1; display: flex; align-items: center; gap: 10px; }
:is(#bag, #shop) .item img { width: 52px; height: 52px; flex: none; background: radial-gradient(#ffffff22, #ffffff08 70%); border-radius: 10px; }
:is(#bag, #shop) .item img.fish { width: 84px; height: 52px; }
:is(#bag, #shop) .item i { opacity: .8; } :is(#bag, #shop) .item em { color: #9fe39a; font-style: normal; font-size: 12px; margin-left: 4px; }
:is(#bag, #shop) .item small { display: block; opacity: .65; font-size: 12px; }
:is(#bag, #shop) .empty { opacity: .6; font-size: 13px; }
#shop .tabs { display: flex; gap: 6px; margin: 4px 0 8px; flex-wrap: wrap; }
#shop .tabs button { flex: 1; padding: 7px 10px; border-radius: 9px; border: 1px solid #fff3; background: #ffffff10; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
#shop .tabs button.on { background: #f3c06e33; border-color: #f3c06e99; }

.panel .acct { margin-top: 14px; padding-top: 12px; border-top: 1px solid #fff2; min-height: 44px; }
.panel .acct .msg { font-size: 12px; opacity: .7; margin: 6px 0 0; }
.panel .acct .ok { color: #9fe39a; font-size: 13px; margin-right: 8px; }
.panel .acct button { padding: 5px 12px; font-size: 13px; }

#creator { width: min(360px, calc(100% - 32px)); }
#creator .sw button { width: 24px; height: 24px; }
#creator .sw button.chip { width: auto; height: auto; border-radius: 14px; padding: 4px 10px; font-size: 12px; background: #fff1; outline: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
#creator .sw button.chip.on { background: #fff3; outline-color: #fff8; }
#creator .sw button.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* phone: thumbstick, the Fish/Walk button, a top bar that fits, the creator docked at the bottom */
.stick-zone { display: none; position: fixed; bottom: 0; width: 46vw; height: 42vh; z-index: 3; touch-action: none; }
.stick-zone.left { left: 0; } .stick-zone.right { right: 0; }
.stick-base { position: absolute; top: calc(100% - 62px - max(26px, env(safe-area-inset-bottom)));
  width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: #0004; outline: 2px solid #fff5;
  backdrop-filter: blur(3px); opacity: .55; transition: opacity .15s; }
.stick-zone.left .stick-base { left: calc(max(16px, env(safe-area-inset-left)) + 62px); }
.stick-zone.right .stick-base { left: calc(100% - max(16px, env(safe-area-inset-right)) - 62px); }
.stick-base.on { opacity: .9; }
.stick-knob { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; border-radius: 50%; background: #fffc;
  transform: translate(-50%, -50%); box-shadow: 0 2px 8px #0006; }
.stick-label { position: absolute; right: calc(max(16px, env(safe-area-inset-right)) + 62px); bottom: calc(max(26px, env(safe-area-inset-bottom)) + 124px);
  transform: translateX(50%); font: 600 11px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .6; pointer-events: none; text-shadow: 0 1px 2px #000a; }
#cast-btn { display: none; position: fixed; z-index: 4; right: max(22px, env(safe-area-inset-right)); bottom: calc(42vh + 8px);   /* (right, over the look stick: the left stick walks and drives) */
  width: 96px; height: 96px; border-radius: 50%; border: 0; font: 700 18px system-ui, sans-serif; color: #1b1a10; background: #e8d26a;
  outline: 3px solid #fff9; box-shadow: 0 6px 20px #0007; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#cast-btn.on { transform: scale(.93); background: #f3e08a; }
#cast-btn.bite { background: #e0533d; color: #fff; animation: cast-pulse .5s ease-in-out infinite alternate; }
@keyframes cast-pulse { to { transform: scale(1.08); } }
#act-btn { display: none; position: fixed; z-index: 4; right: max(18px, env(safe-area-inset-right)); bottom: calc(42vh + 8px);
  width: 84px; height: 84px; border-radius: 50%; border: 0; font: 650 16px system-ui, sans-serif; color: #fff;
  background: #0b141bb0; outline: 2px solid #fff6; backdrop-filter: blur(4px); touch-action: manipulation; }
#boat-btn { display: none; position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px));
  padding: 10px 18px; border-radius: 22px; border: 0; background: #2f4a5c; color: #fff; font: 600 15px system-ui, sans-serif; box-shadow: 0 3px 12px #0006; }
#chat-btn { display: none; position: fixed; z-index: 4; right: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 82px); padding: 6px 14px; border-radius: 14px; border: 0;
  background: #f2efe6; color: #1b2a33; font: 700 13px system-ui, sans-serif; box-shadow: 0 2px 8px #0005; }
#voice-btn { display: none; position: fixed; z-index: 4; right: 74px; top: calc(max(10px, env(safe-area-inset-top)) + 82px); padding: 6px 14px; border-radius: 14px; border: 0;
  background: #f2efe6; color: #1b2a33; font: 700 13px system-ui, sans-serif; box-shadow: 0 2px 8px #0005; }
#voice-btn.on { background: #3e8f52; color: #fff; }
#finder-btn { display: none; position: fixed; z-index: 4; right: 160px; top: calc(max(10px, env(safe-area-inset-top)) + 82px); padding: 6px 14px; border-radius: 14px; border: 0;
  background: #f2efe6; color: #1b2a33; font: 700 13px system-ui, sans-serif; box-shadow: 0 2px 8px #0005; }
body.touch #finder-btn { top: calc(max(10px, env(safe-area-inset-top)) + 60px); right: 140px; padding: 4px 11px; font-size: 12px; }
#voice-btn.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b8f5c4; margin-right: 6px; vertical-align: 1px; animation: vpulse 1.6s ease-in-out infinite; }
@keyframes vpulse { 50% { opacity: 0.35; } }
#chat-menu { display: none; position: fixed; z-index: 6; right: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 116px); grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px;
  border-radius: 12px; background: #0c1a22e6; max-width: 330px; }
#chat-menu button { padding: 8px 10px; border-radius: 9px; border: 0; background: #f2efe6; color: #1b2a33; font: 600 13px system-ui, sans-serif; text-align: left; }
#chat-menu button:hover { background: #e8d26a; }
#finder { display: none; position: fixed; z-index: 3; left: 12px; bottom: 120px; width: 380px; padding: 5px; border-radius: 10px;
  background: #1c2126; box-shadow: 0 3px 14px #0007; pointer-events: none; }
#finder canvas { display: block; width: 100%; border-radius: 6px; }
body.touch #finder { left: 8px; top: 64px; bottom: auto; width: min(150px, 30vw); padding: 3px; border-radius: 7px; }
#pov-btn { display: none; position: fixed; z-index: 4; right: max(18px, env(safe-area-inset-right)); bottom: calc(42vh + 66px);
  padding: 8px 12px; border-radius: 18px; border: 0; background: #0009; color: #fff; font: 600 13px system-ui, sans-serif; }
#act-btn.fish { background: #e8d26a; color: #1b1a10; outline-color: #fff9; }
/* while the big Cast button is up: Walk sits to its left and the view switch above it, none on top of another */
#act-btn.beside { right: calc(max(22px, env(safe-area-inset-right)) + 110px); bottom: calc(42vh + 14px); }
body.casting #pov-btn { right: max(22px, env(safe-area-inset-right)); bottom: calc(42vh + 118px); }
body.touch #bar a[href^="?q="], body.touch #bar a[href="motion.html"], body.touch #bar a[data-mode="fp"] { display: none; }
body.touch #bar { flex-wrap: wrap; justify-content: flex-end; max-width: 62vw; }
body.touch #bar a { padding: 8px 12px; font-size: 14px; }
body.touch #probe { font-size: 13px; max-width: 46vw; }
@media (max-width: 700px), (max-height: 500px) {
  #creator { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 50vh; overflow-y: auto;
    border-radius: 16px 16px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  #bag { left: 0; right: 0; top: auto; bottom: 0; width: auto; transform: none; max-height: 70vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
}
body.touch #bar a[data-mode="iso"] { display: none; }
body.touch #title { font-size: 16px; max-width: 52vw; }
body.touch #credits { display: none; }   /* (shown in the bag instead, out of the thumbstick's way) */
.panel .cred { font-size: 10px; opacity: .6; margin: 12px 0 0; }

/* the bait shop */
#shop { left: 50%; top: 56px; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); max-height: calc(100% - 80px); overflow-y: auto; }
#shop .money { float: right; color: #ffe27a; font-size: 18px; }
#shop .keeper { margin: 0 0 4px; font-style: italic; opacity: .85; font-size: 14px; }
#shop .board { margin: 8px 0 2px; padding: 6px 10px; border-radius: 8px; background: #3a2a1499; outline: 1px solid #c9a86a66; font-size: 13px; }
#shop .board p { margin: 3px 0; } #shop .board b { color: #ffd98a; } #shop .board i { opacity: .8; }
#shop .board .jobs { list-style: none; margin: 2px 0 4px; padding: 0 0 0 4px; } #shop .board .jobs li { margin: 2px 0; } #shop .board .jobs li.done { opacity: .6; } #shop .board small { opacity: .75; margin-left: 4px; }
.item i.rare, .item i.legend { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; background: linear-gradient(90deg, #ffe58a, #8fd3ff); color: #1b2430; }
.item i.legend { background: linear-gradient(#ffd75a, #e09a12); color: #3a2400; }
#shop .have { font-size: 12px; opacity: .65; font-style: normal; }
.panel .item button.buy, .panel .item button.use { margin-left: auto; align-self: center; padding: 6px 14px; flex: none; }
.panel .item button.buy { background: #e8d26a; color: #1b1a10; font-weight: 650; }
.panel .item button:disabled { background: #fff1; color: #fff6; cursor: default; }
#shop-btn { display: none; position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 4; font: 600 16px system-ui, sans-serif;
  color: #1b1a10; background: #e8d26a; border: 0; border-radius: 22px; padding: 10px 22px; box-shadow: 0 4px 16px #0006; cursor: pointer; }
@media (max-width:700px),(max-height:500px) { #shop { top: auto; bottom: 0; transform: none; left: 0; width: 100%; border-radius: 14px 14px 0 0; max-height: 72vh; box-sizing: border-box; } }

/* the Tune test panel */
#tune { right: 12px; top: 56px; width: 300px; max-height: calc(100% - 80px); overflow-y: auto; font-size: 13px; }
#tune .lvl { float: right; font-size: 12px; font-weight: 400; opacity: .7; }
#tune label { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
#tune label span { width: 110px; flex: none; opacity: .9; }
#tune input[type=range] { flex: 1; min-width: 0; accent-color: #e8d26a; }
#tune output { width: 34px; text-align: right; opacity: .7; font-variant-numeric: tabular-nums; }
#tune select { flex: 1; font: inherit; background: #fff2; color: #fff; border: 0; border-radius: 6px; padding: 4px; }
#tune select option { color: #000; }
#tune .note { font-size: 11px; opacity: .6; margin: 8px 0 0; }
@media (max-width:700px),(max-height:500px) { #tune { right: 0; left: 0; top: auto; bottom: 0; width: auto; border-radius: 14px 14px 0 0; max-height: 60vh; } }

/* phone fishing: the words up top and out of the way, the catch card at the top, so the fish shows */
@media (max-width: 700px), (max-height: 500px) {
  #fh-prompt { top: 150px; white-space: normal; width: 88vw; text-align: center; font-size: 15px; }
  #fh-prompt.big { font-size: 22px; }
  #fh-card { top: 60px; bottom: auto; padding: 8px 14px 10px; min-width: 0; width: min(86vw, 320px); }
  #fh-card h2 { font-size: 18px; }
  #fh-meter { bottom: calc(190px + env(safe-area-inset-bottom)); }
  #fh-steer { bottom: calc(212px + env(safe-area-inset-bottom)); }
  body.touch #fh-info { left: 50%; transform: translateX(-50%); bottom: calc(160px + env(safe-area-inset-bottom)); text-align: center; width: 60vw; }
  body.touch #fh-motion { top: auto; bottom: calc(42vh + 100px); }
}
/* a phone on its side: the fish fills the middle, so the card's a slim strip along the bottom,
   between the sticks, and the bait count goes up top */
@media (max-height: 500px) and (orientation: landscape) {
  #fh-card { top: auto; bottom: calc(8px + env(safe-area-inset-bottom)); width: min(46vw, 440px); padding: 6px 12px 8px; }
  #fh-card h2 { display: inline; font-size: 15px; margin-right: 6px; }
  #fh-card p { display: inline; font-size: 12px; }
  #fh-card .pb { display: block; font-size: 11px; }
  #fh-card div { margin-top: 5px; }
  #fh-card button { padding: 5px 14px; }
}

/* multiplayer: who's on the lake, and what they caught */
#net-pill { position: fixed; z-index: 3; right: 12px; top: 52px; padding: 4px 10px; border-radius: 12px; background: #0008; color: #e8f0e0;
  font: 600 12px system-ui, sans-serif; pointer-events: none; }
#net-pill::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7cc46a; margin-right: 6px; vertical-align: 1px; }
#net-pill.off::before { background: #999; }
#net-toasts { position: fixed; z-index: 3; right: 12px; top: 116px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.net-toast { padding: 6px 12px; border-radius: 10px; background: #000a; color: #fff; font: 500 13px system-ui, sans-serif; transition: opacity .6s; }
.net-toast.out { opacity: 0; }

#ld-start { display: block; margin: 18px 0 4px; padding: 14px 34px; border: 0; border-radius: 28px; background: #e8d26a; color: #1b1a10;
  font: 700 18px system-ui, sans-serif; box-shadow: 0 4px 16px #0005; animation: cast-pulse .9s ease-in-out infinite alternate; }
#ld-start:disabled { opacity: .6; animation: none; }

/* what's new (news.js): a card over the morning, the updates you haven't seen */
:is(#news, #a2hs) { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #0b141b55, #0b141bcc);
  opacity: 0; transition: opacity .35s; padding: 16px; }
:is(#news, #a2hs).in { opacity: 1; } :is(#news, #a2hs).out { opacity: 0; }
:is(#news, #a2hs) .nw-card { box-sizing: border-box; width: min(560px, 100%); max-height: min(80vh, 720px); overflow: auto; background: linear-gradient(#1a2430f2, #0e171ff2); color: #f4efe6;
  border-radius: 16px; padding: 20px 24px 18px; box-shadow: 0 20px 60px #0009, inset 0 1px 0 #ffffff1a; text-shadow: none;
  transform: translateY(12px); transition: transform .35s; }
:is(#news, #a2hs).in .nw-card { transform: none; }
:is(#news, #a2hs) .nw-kicker { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #ffb36b; }
:is(#news, #a2hs) section + section { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ffffff1c; }
:is(#news, #a2hs) h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.2; }
:is(#news, #a2hs) .nw-date { margin: 2px 0 10px; font-size: 13px; opacity: .6; }
:is(#news, #a2hs) ul { margin: 0; padding: 0; list-style: none; }
:is(#news, #a2hs) li { position: relative; padding-left: 18px; margin: 0 0 9px; font-size: 14.5px; line-height: 1.45; opacity: .92; }
:is(#news, #a2hs) li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #e0533f; box-shadow: 0 0 0 2px #f2ece0; }
:is(#news, #a2hs) li b { color: #fff; }
:is(#news, #a2hs) .nw-ok { display: block; margin: 16px auto 2px; font: inherit; font-weight: 600; color: #1a1208; background: linear-gradient(#ffc177, #f08a3c); border: 0;
  padding: 10px 26px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px #f08a3c55; }
@media (max-width: 600px) { :is(#news, #a2hs) .nw-card { padding: 16px 16px 14px; } :is(#news, #a2hs) h2 { font-size: 19px; } :is(#news, #a2hs) li { font-size: 13.5px; } }

/* phones: less on screen, smaller buttons. The fps line and the how-to-play line go (the sticks are
   labeled), Tune and What's new leave the top bar (What's new is in the bag), and the buttons shrink
   so more of the lake shows */
body.touch #stats, body.touch #probe { display: none; }
body.touch #bar a[data-a="news"] { display: none; }
body.touch #bar { gap: 4px; }
body.touch #bar a { padding: 5px 9px; font-size: 12px; border-radius: 7px; }
body.touch #net-pill { top: calc(max(10px, env(safe-area-inset-top)) + 32px); font-size: 11px; padding: 3px 8px; }
body.touch #chat-btn { top: calc(max(10px, env(safe-area-inset-top)) + 60px); padding: 4px 11px; font-size: 12px; }
body.touch #voice-btn { top: calc(max(10px, env(safe-area-inset-top)) + 60px); right: 64px; padding: 4px 11px; font-size: 12px; }
body.touch #chat-menu { top: calc(max(10px, env(safe-area-inset-top)) + 90px); }
body.touch #angler-chip { font-size: 12px; }
body.touch .stick-base { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
body.touch .stick-knob { width: 42px; height: 42px; }
body.touch .stick-label { bottom: calc(max(26px, env(safe-area-inset-bottom)) + 108px); font-size: 10px; }
body.touch #cast-btn { width: 72px; height: 72px; font-size: 15px; outline-width: 2px; }
body.touch #act-btn { width: 60px; height: 60px; font-size: 13px; }
body.touch #act-btn.beside { right: calc(max(22px, env(safe-area-inset-right)) + 84px); bottom: calc(42vh + 6px); }
body.touch #pov-btn { padding: 5px 9px; font-size: 11px; bottom: calc(42vh + 70px); }
body.touch.casting #pov-btn { bottom: calc(42vh + 84px); }
body.touch #boat-btn, body.touch #shop-btn { padding: 7px 14px; font-size: 13px; border-radius: 18px; bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px)); }
body.touch #fh-info { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 70vw; bottom: calc(156px + env(safe-area-inset-bottom)); }
body.touch #fh-motion { top: auto; right: auto; left: max(12px, env(safe-area-inset-left)); bottom: calc(42vh + 8px); padding: 4px 9px; font-size: 11px; }
body.touch #fh-prompt { font-size: 13px; top: 120px; }
body.touch #fh-prompt.big { font-size: 19px; }
/* (a phone on its side: what to do and your bait along the bottom, between the sticks, off the
   middle where the fish and your float are; out of the way of the catch card while it's up) */
@media (max-height: 500px) and (orientation: landscape) {
  body.touch #fh-info { top: auto; bottom: calc(6px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); text-align: center; width: auto; max-width: 46vw; }
  body.touch #fh-prompt { top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); width: 46vw; }
  body.touch #fh-meter { bottom: calc(70px + env(safe-area-inset-bottom)); width: 40vw; }
  body.touch #fh-steer { bottom: calc(92px + env(safe-area-inset-bottom)); width: 40vw; }
  #fishhud:has(#fh-card[style*="block"]) :is(#fh-prompt, #fh-info) { visibility: hidden; }
}
/* add to home screen: the steps, numbered, with the browser's own icons drawn in */
#a2hs ol { margin: 10px 0 0; padding-left: 22px; }
#a2hs ol li { padding-left: 4px; }
#a2hs ol li::before { display: none; }
#a2hs .ico { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; margin: 0 2px; }
#a2hs .why { margin: 8px 0 0; font-size: 14px; line-height: 1.45; opacity: .85; }
#a2hs .later { display: block; margin: 6px auto 0; font: inherit; font-size: 13px; color: #f4efe6; background: none; border: 0; opacity: .7; cursor: pointer; }
