/* The lake is the main surface; navigation lives in Explore. */
.topbar { inset: 24px 30px auto; z-index: 4; }
.brand { gap: 10px; }
.brand-mark { font-size: 36px; letter-spacing: -4px; }
.brand h1 { font: 550 15px/1.2 'DM Sans',sans-serif; letter-spacing: -.2px; margin: 0; }
.explore-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #fff9eb80; border-radius: 24px; min-height: 44px; padding: 10px 17px; background: #fff9eb9c; color: #244c43; font-size: 14px; font-weight: 500; }
.explore-button svg { width: 19px; height: 19px; }
.explore-button:hover { background: #fff9eb; }
.vignette { background: linear-gradient(180deg,#f4fce324,transparent 17%,transparent 87%,#7ec8c520); }
.fishing-controls, .is-playing .fishing-controls { left: 50%; right: auto; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: 190px; max-width: none; }
.cast-button { min-height: 50px; border: 1px solid #fff9eb8c; border-radius: 28px; background: #fff9ebe8; color: #284d41; gap: 9px; padding: 10px 16px; box-shadow: 0 3px 18px #244e4210; }
/* Holding a game control must not open Safari's selection or callout UI. */
.cast-button, .cast-button *, .direction-pad button, .direction-pad button * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.cast-button > * { pointer-events: none; }
.cast-button > span:first-of-type { font-size: 14px; font-weight: 550; }
.cast-button svg { display: block; width: 20px; height: 20px; color: #a34e34; }
.cast-button .key-cap { display: none; }
.cast-button:hover { transform: none; box-shadow: 0 3px 18px #244e4220; background: #fff9eb; }
.cast-button:active, .cast-button.holding { transform: none; box-shadow: none; background: #f1eddc; }
.cast-button:disabled { background: #fff9ebe0; color: #486254; border-color: #fff9eb8c; box-shadow: none; opacity: 1; }
body:not(.can-fish) .cast-button { visibility: hidden; pointer-events: none; }
.game-status, .meter-caption { position: absolute!important; width: 1px!important; height: 1px!important; min-height: 0!important; margin: -1px!important; padding: 0!important; border: 0!important; overflow: hidden!important; clip-path: inset(50%); white-space: nowrap; }
.bite-bubble { display: none!important; }
.reel-meter { position: absolute; left: 25px; right: 25px; bottom: 7px; width: auto; max-width: none; margin: 0; pointer-events: none; }
.reel-meter[hidden] { display: none; }
.meter-track { height: 3px; background: #d4ddcc; border: 0; }
.is-playing .cast-button { padding-bottom: 14px; }
.control-hint { display: block; position: absolute; left: 50%; bottom: calc(99px + env(safe-area-inset-bottom)); width: calc(100% - 40px); transform: translateX(-50%); margin: 0; font-size: 13px; line-height: 1.5; color: #335b50; text-align: center; pointer-events: none; }
.knows-controls .control-hint, .has-caught .control-hint, .is-playing .control-hint, .is-touring .control-hint { display: none; }
.navigation-controls { display: none; left: 26px; bottom: calc(24px + env(safe-area-inset-bottom)); gap: 0; }
.show-boat-controls .navigation-controls { display: block; }
.direction-pad { gap: 2px; grid-template-columns: repeat(3,44px); grid-template-rows: repeat(2,44px); }
.direction-pad button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff9eb45; color: #2c5548; box-shadow: none; font-size: 22px; }
.direction-pad button:hover, .direction-pad button.pressed, .direction-pad button:active { background: #fff9ebc9; color: #9d482d; transform: none; }
.lake-label { position: absolute; top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); left: 50%; right: auto; transform: translateX(-50%); opacity: 1; max-width: calc(100% - 40px); }
.lake-label[hidden] { display: none!important; }
.compass-button { border: 0; background: #fff9ebd4; box-shadow: none; padding: 8px 14px; border-radius: 22px; min-height: 44px; gap: 8px; letter-spacing: 0; white-space: nowrap; }
.compass-button > span:nth-child(2) { display: flex; align-items: center; gap: 9px; }
.compass-button strong { font-size: 13px; font-weight: 500; }
.compass-button #spot-distance { font-size: 12px; color: #506859; }
.compass-button #compass-arrow { font-size: 23px; width: 21px; }
.compass-button > span:last-child { display: flex; margin: 0; color: inherit; }
.lake-toast { top: auto; bottom: calc(105px + env(safe-area-inset-bottom)); padding: 9px 17px; font-size: 14px; border: 0; box-shadow: none; background: #fff9ebdf; max-width: min(410px,calc(100% - 40px)); }
.tour-return { bottom: calc(30px + env(safe-area-inset-bottom)); font-size: 14px; padding: 12px 19px; min-height: 48px; }
.is-touring .navigation-controls { display: none; }
.is-touring .lake-label { visibility: hidden; }
.is-sunset .brand, .is-sunset .control-hint { color: #fff4db; }
.is-sunset .direction-pad button { color: #fff4db; background: #fff9eb1c; }
.is-sunset .direction-pad button:hover, .is-sunset .direction-pad button.pressed { color: #284d41; background: #fff9ebca; }
dialog.is-menu { max-width: 480px; }
.is-menu #dialog-content { padding: 36px; }
.is-menu .dialog-title { font-size: 38px; }
.is-menu .dialog-lead { font-size: 15px; line-height: 1.65; margin: 15px 0 25px; }
.explore-links { display: grid; }
.explore-links button { display: flex; width: 100%; align-items: center; justify-content: space-between; text-align: left; padding: 17px 0; border: 0; border-top: 1px solid #2a4c3d20; background: none; font: 500 25px/1.2 'Playfair Display',serif; }
.explore-links small { display: block; font: 400 13px/1.6 'DM Sans',sans-serif; color: #61735f; margin-top: 5px; }
.explore-links button > span:last-child { font: 400 21px 'DM Sans',sans-serif; color: #6e8068; margin-left: 16px; }
.explore-links button:hover { color: #a44e32; }
.menu-contact { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0 20px; border-bottom: 1px solid #2a4c3d20; }
.menu-contact a, .menu-contact button, .menu-bottom button { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; border: 0; padding: 0; background: none; }
.menu-contact a, .menu-contact button { color: #9a482e; }
.menu-settings { display: grid; margin: 16px 0; }
.menu-preferences { padding: 10px 0; }
.menu-preferences summary { font-size: 14px; min-height: 44px; padding: 12px 0; cursor: pointer; color: #61735f; }
.menu-preferences summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.menu-preferences .menu-settings { margin: 0 0 12px; }
.menu-settings label, .menu-settings button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 400; border: 0; background: none; color: #45614e; }
.menu-settings input { width: 18px; height: 18px; accent-color: #4b7055; margin: 0 2px; }
.menu-settings [data-sound-value] { min-width: 35px; color: #64765e; font-size: 13px; text-align: right; }
.menu-settings [aria-pressed=true] [data-sound-value] { color: #9a482e; }
.menu-bottom { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid #2a4c3d20; padding-top: 12px; }
.menu-bottom button { color: #61735f; font-size: 13px; }
@media(max-width:700px){
  .topbar { inset: 18px 20px auto; }
  .brand { gap: 9px; }
  .brand-mark { font-size: 33px; }
  .brand h1 { font-size: 14px; letter-spacing: -.3px; }
  .explore-button { padding: 9px 13px; gap: 7px; font-size: 13px; min-height: 44px; }
  .fishing-controls, .is-playing .fishing-controls { left: 50%; right: auto; bottom: calc(27px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: 174px; }
  .show-boat-controls .fishing-controls, .show-boat-controls.is-playing .fishing-controls { left: auto; right: 20px; transform: none; width: calc(100% - 187px); max-width: 190px; }
  .cast-button { min-height: 50px; padding: 10px 12px; }
  .cast-button svg { display: none; }
  .cast-button > span:first-of-type { font-size: 14px; }
  .navigation-controls { left: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); }
  .control-hint { bottom: calc(127px + env(safe-area-inset-bottom)); font-size: 12px; }
  .reel-meter { position: absolute; left: 18px; right: 18px; bottom: 6px; width: auto; margin: 0; }
  .lake-label { top: auto; right: auto; bottom: calc(132px + env(safe-area-inset-bottom)); max-width: calc(100% - 40px); }
  .compass-button { min-height: 44px; padding: 7px 12px; }
  .compass-button > span:last-child { display: flex; }
  .lake-toast { top: auto; bottom: calc(137px + env(safe-area-inset-bottom)); font-size: 13px; width: max-content; }
  .tour-return { bottom: calc(30px + env(safe-area-inset-bottom)); }
  .is-menu #dialog-content { padding: 32px 25px 22px; }
  .is-menu .dialog-title { font-size: 34px; }
  .is-menu .dialog-lead { font-size: 14px; }
}
@media(max-height:520px) and (min-width:600px){
  .topbar { inset: 12px 20px auto; }
  .fishing-controls, .is-playing .fishing-controls { bottom: 22px; right: 20px; left: auto; transform: none; width: 175px; }
  .control-hint { bottom: 88px; width: 240px; left: auto; right: 20px; transform: none; }
  .navigation-controls { bottom: 18px; }
  .lake-label { bottom: 83px; left: auto; right: 20px; transform: none; }
  .lake-toast { top: auto; bottom: 95px; }
  .tour-return { bottom: 22px; }
}
