:root {
  --ink: #344a35;
  --muted: #8b957b;
  --paper: #f1edda;
  --line: #d3d8bf;
  --wood: #65503a;
  --wood-light: #b79866;
  --mono: 'Courier New', monospace;
  --sans: Arial, Helvetica, sans-serif;
}
/* Friends and chat stay above the world while pointer input reaches the lake. */
.friends-toggle { padding:0 12px; font-size:12px; color:#f0e1b4; }
.title-friends { margin-top:18px; border:1px solid #bed09a66; padding:10px 20px; border-radius:5px; background:#22453abf; color:#e2e8c8; }
.friends-dialog { width:min(430px,calc(100% - 28px)); max-height:90dvh; overflow:auto; }
.friends-dialog label { display:block; margin:16px 0 8px; font-size:12px; }
.friends-dialog input { display:block; width:100%; margin:7px 0; padding:10px 12px; border:1px solid #8e9a74; border-radius:4px; font:16px var(--sans); background:#fcf3d9; color:#344a35; }
.friends-dialog p { font-size:12px; line-height:1.65; }
.friends-dialog > button:not(.dialog-close), #copy-invite { padding:9px 14px; border:1px solid #879264; border-radius:4px; color:#344a35; background:#d3dfb4; }
#invite-code, #invite-value { font-family:var(--mono); letter-spacing:.15em; text-transform:uppercase; }
#session-state { min-height:38px; }
.chat-heading { width:205px; gap:8px; }
#chat-form { display:flex; gap:4px; margin-top:7px; }
#chat-input { flex:1; min-width:0; width:100%; border:1px solid #b1c29599; border-radius:4px; background:#163b32f2; color:#f0edd1; font:16px var(--sans); padding:9px; outline-offset:1px; }
#chat-form button { border:1px solid #b1c29599; border-radius:4px; background:#31523f; color:#e2e8c8; padding:7px; font-size:11px; }
.chat-player { color:#f6edd2; }
.chat-player .chat-speaker { color:#d8c88f; }
#speech-layer { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:2; }
.speech-label { position:absolute; transform:translate(-50%,-100%); display:flex; align-items:center; flex-direction:column; gap:4px; }
.speech-bubble { position:relative; max-width:225px; min-width:40px; padding:9px 12px; border:1px solid #8b9c74; border-radius:12px; background:#f4eed6f5; color:#30483b; font:13px/1.5 var(--sans); overflow-wrap:anywhere; box-shadow:0 3px 12px #12352d40; text-shadow:none; }
.speech-bubble:after { content:''; position:absolute; bottom:-5px; left:calc(50% - 4px); width:8px; height:8px; background:#f4eed6; transform:rotate(45deg); border-right:1px solid #8b9c74; border-bottom:1px solid #8b9c74; }
.friend-name { color:#e7efd0; background:#163b32ba; border-radius:4px; padding:2px 6px; font:10px var(--sans); white-space:nowrap; }
.friend-name:empty { display:none; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #294b40; color: var(--ink); font: 14px var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #efcf8d; outline-offset: 3px; }
[hidden] { display: none !important; }
.game-shell, .game-layout, .world { position: absolute; inset: 0; overflow: hidden; }
.game-shell { width: 100%; height: 100dvh; isolation: isolate; }
#lake { position: relative; display: block; width: 100%; height: 100%; image-rendering: pixelated; outline: none; cursor: crosshair; touch-action: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 95px 15px #122b2938; }
kbd { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border: 1px solid currentColor; font: 9px var(--mono); opacity: .65; }
/* The lake stays behind every HUD element, across the entire viewport. */
.topbar { position: absolute; z-index: 3; top: 21px; left: 24px; width: 205px; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.brand { display: flex; gap: 10px; align-items: center; color: #f1ebc8; text-decoration: none; font: 900 22px var(--mono); letter-spacing: -1px; line-height: 1.05; text-shadow: 2px 2px #20382e; white-space: nowrap; }
.brand-mark { font-size: 35px; color: #c3d49a; }
.brand small { display: block; margin-top: 6px; color: #c0cba7; font: 7px var(--sans); letter-spacing: 1.4px; text-shadow: 1px 1px #23382d; }
.location-tag { position: absolute; left: 26px; top: 73px; display: flex; align-items: center; gap: 7px; color: #c9d3ae; font: bold 9px var(--mono); letter-spacing: 1px; text-shadow: 1px 1px #213d30; pointer-events: none; }
.location-dot { width: 5px; height: 5px; background: #c0d58e; box-shadow: 0 0 0 2px #c6d69e18; }
.tag-divider { opacity: .45; margin: 0 3px; }
.weather { font-size: 17px; color: #e4cf91; margin-left: 2px; }
.lake-health { margin-top: 46px; padding: 10px 11px 9px; width: 205px; background: #1e3d31da; border: 2px solid #8d8058; box-shadow: 2px 2px 0 #1c3229a6, inset 0 0 0 1px #bdc18a1a; }
.health-label { display: flex; align-items: center; gap: 5px; color: #c5d1a8; font: bold 9px var(--mono); letter-spacing: .5px; white-space: nowrap; }
.health-label strong { margin-left: auto; color: #ecedc7; font-size: 12px; letter-spacing: 0; }
.sprout { font-size: 17px; color: #adca80; line-height: 14px; }
.health-track { position: relative; overflow: hidden; height: 5px; margin-top: 7px; background: #102c25; }
.health-track > span { display: block; width: 0; height: 100%; background: #b3c780; transition: width .4s; }
.health-track i { position: absolute; top: 0; left: 25%; width: 2px; height: 100%; background: #284638; }
.health-track i:nth-of-type(2) { left: 50%; }
.health-track i:nth-of-type(3) { left: 75%; }
.wallet { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 7px 11px; min-width: 111px; background: #213c30e6; border: 2px solid #958158; box-shadow: 2px 2px 0 #1a31278c; color: #e7d398; }
.wallet strong { font: bold 19px var(--mono); }
.wallet > span:last-child { font-size: 10px; color: #becc9f; }
.coin { display: grid; place-items: center; width: 21px; height: 21px; border: 2px solid #c4a159; border-radius: 50%; background: #e4c579; color: #967036; font-size: 12px; box-shadow: 1px 1px #675537; }
.world-toolbar { position: absolute; z-index: 6; top: 22px; right: 24px; display: flex; align-items: center; gap: 8px; }
.world-toolbar button, .popup-close { display: flex; justify-content: center; align-items: center; height: 37px; border: 2px solid #a58b5e; border-bottom-color: #64543b; background: #354c37f2; box-shadow: 2px 2px 0 #183126a8, inset 0 1px #8c9f6b55; color: #e6dfb4; }
.world-toolbar button:hover { background: #486044; }
.workshop-toggle { gap: 9px; padding: 0 11px; font-size: 12px; font-weight: bold; }
.workshop-toggle > span:first-child { font-size: 21px; color: #c4c995; line-height: 1; }
.workshop-toggle[aria-expanded=true] { background: #8b784e; border-color: #d2bb7d; color: #fff0c4; }
.workshop-toggle kbd { margin-left: 7px; font-size: 9px; }
.icon-button { position: relative; width: 36px; padding: 0; font: bold 19px var(--mono); }
.sound-slash { position: absolute; top: 0; left: 14px; font-size: 27px; font-weight: normal; }
.eyebrow { font: bold 9px var(--mono); letter-spacing: 1.2px; color: #98a17f; }
/* Status messages are an unobtrusive, scrollable game chat. */
.lake-chat { position: absolute; z-index: 2; left: 24px; bottom: 25px; width: 345px; color: #dce5c8; text-shadow: 1px 1px 2px #142c23; }
.chat-heading { display: flex; justify-content: space-between; align-items: center; width: 112px; margin-bottom: 7px; color: #afc394; font: bold 9px var(--mono); letter-spacing: 1px; }
.chat-heading button { border: 0; background: #1c3a2ba8; color: #c4d2a6; min-width: 21px; height: 19px; padding: 0 4px; font: 13px var(--mono); }
.chat-heading button:hover { background: #3b563c; }
.chat-log { max-height: min(149px, 24dvh); overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 6px 8px; border-left: 1px solid #aac68a55; background: linear-gradient(90deg, #1636298c, #16362935 90%, transparent); scrollbar-width: thin; scrollbar-color: #aec18a66 transparent; }
.chat-message { position: relative; margin: 5px 0; padding-left: 34px; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-message time { position: absolute; top: 2px; left: 0; color: #a7b799; font: 8px/1.8 var(--mono); opacity: .7; }
.chat-speaker { color: #bdcf9b; font-weight: 600; }
.chat-action { color: #c6d4b8; }
.chat-action .chat-speaker { color: #97c6b3; }
.chat-error { color: #edc394; }
.chat-error .chat-speaker { color: #e5b67d; }
.chat-milestone { color: #eadea3; }
.chat-milestone .chat-speaker { color: #efce83; }
.lake-chat.collapsed .chat-heading { margin: 0; }
.controls-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); color: #cad5b1; font-size: 8px; white-space: nowrap; text-shadow: 1px 1px #20382c; opacity: .72; pointer-events: none; }
.controls-hint kbd { height: auto; border: 0; padding: 0; font-size: 8px; opacity: 1; }
.controls-hint > span { margin: 0 6px; opacity: .5; }
.survival-hud { position: absolute; right: 24px; bottom: 26px; width: 188px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.resource-block { padding: 9px 11px; border: 2px solid #9a875c; border-bottom-color: #6d6045; box-shadow: 2px 2px 0 #152f26a6; background: #233f31e8; }
.resource-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #bfcda6; font: bold 9px var(--mono); white-space: nowrap; }
.resource-heading > span { display: flex; align-items: center; gap: 4px; }
.resource-heading strong { color: #e6e4bd; font-size: 10px; }
.stamina-icon { color: #d3b778; font-size: 18px; line-height: 12px; }
.bag-icon { color: #c7b386; font-size: 15px; line-height: 12px; }
.resource-track { height: 6px; margin-top: 7px; overflow: hidden; background: #142e24; border: 1px solid #1c3427; }
.resource-track > span { display: block; height: 100%; width: 100%; transition: width .15s; }
.stamina-track > span { background: #9fbd71; box-shadow: inset 0 1px #bbd68e; }
.bag-track > span { width: 0; background: #d0aa68; box-shadow: inset 0 1px #e0c086; }
.resource-foot { display: none; }
.cast-readout { display: none; position: absolute; z-index: 1; pointer-events: none; padding: 6px 9px; color: #eee6bf; background: #244632e8; border: 1px solid #b6bd83aa; box-shadow: 2px 2px #14312666; font-size: 10px; white-space: nowrap; }
.touch-controls { display: none; position: absolute; right: 27px; bottom: 148px; grid-template-columns: 31px 31px 31px; grid-template-rows: 31px 31px 31px; gap: 3px; touch-action: none; }
.touch-controls button { border: 1px solid #afa377; background: #304a35e0; color: #d4deb8; box-shadow: 1px 1px #1631268c; padding: 0; font: bold 11px var(--mono); touch-action: none; }
.touch-controls button:active { background: #82915d; }
.touch-controls button:first-child { grid-column: 2; grid-row: 1; }
.touch-controls button:nth-child(2) { grid-column: 1; grid-row: 2; }
.touch-controls button:nth-child(4) { grid-column: 3; grid-row: 2; }
.touch-controls button:last-child { grid-column: 2; grid-row: 3; }
.touch-controls > span { grid-column: 2; grid-row: 2; display: grid; place-items: center; color: #bacb93; font-size: 17px; pointer-events: none; }
/* The workshop is a small, non-modal game window, hidden until requested. */
.workshop { position: absolute; z-index: 5; top: 75px; right: 24px; width: 354px; max-height: calc(100dvh - 100px); display: flex; flex-direction: column; background: var(--paper); border: 3px solid #b49866; outline: 2px solid #4b4b32; box-shadow: 5px 6px 0 #142d2480; }
.workshop-heading { position: relative; flex-shrink: 0; padding: 20px 19px 17px; background: #40553c; border-bottom: 3px solid #b7a06b; color: #eee8c5; }
.workshop-heading .eyebrow { color: #b9c49c; font-size: 8px; }
.workshop-heading h2 { margin: 9px 0 0; font: bold 23px var(--mono); letter-spacing: -1.2px; }
.popup-close { position: absolute; right: 12px; top: 17px; width: 28px; height: 28px; padding: 0 0 2px; font-size: 23px; }
.popup-close:hover { background: #66744c; }
.sidebar-tabs { display: flex; flex-shrink: 0; gap: 25px; padding: 16px 20px 0; border-bottom: 1px solid var(--line); }
.sidebar-tabs button { position: relative; bottom: -1px; padding: 0 0 13px; border: 0; border-bottom: 2px solid transparent; background: none; color: #8a947a; font-size: 12px; }
.sidebar-tabs button.active { color: #49613e; border-color: #819a5f; font-weight: bold; }
.tab-dot { display: inline-block; height: 4px; width: 4px; margin-left: 5px; vertical-align: middle; background: #b7a569; }
.sidebar-content { padding: 0 20px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bbc8a0 transparent; }
.equipment-row { display: grid; grid-template-columns: 40px 1fr auto; column-gap: 10px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.equipment-icon { width: 39px; height: 42px; display: grid; place-items: center; background: #e2e7d0; border: 1px solid #ccd6b7; }
.equipment-icon canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.equipment-name { margin-bottom: 6px; font-size: 13px; font-weight: bold; }
.level { font: 8px var(--mono); color: #929f7d; margin-left: 5px; white-space: nowrap; }
.equipment-info p { color: #879275; font-size: 11px; line-height: 1.4; margin: 0; }
.upgrade-button { display: flex; justify-content: center; align-items: center; gap: 5px; min-width: 51px; padding: 8px; color: #425b34; background: #dfe7cb; border: 1px solid #acbc8f; font: bold 12px var(--mono); }
.upgrade-button:disabled { color: #a2aa92; background: #e8e9db; border-color: #d6ddc7; }
.upgrade-button:hover:not(:disabled) { background: #cdddb0; }
.small-coin { color: #b29a56; font-size: 11px; }
.boat-card { margin: 21px 0; padding: 16px; background: #e5e9d5; border: 1px solid #c8d3b3; }
.boat-card-heading { display: flex; justify-content: space-between; align-items: center; }
.boat-card .eyebrow { color: #8c9878; font-size: 8px; letter-spacing: 1px; }
.lock-icon { font-size: 20px; line-height: 16px; color: #8c9979; }
#boat-art { display: block; width: 100%; height: 70px; margin-bottom: 6px; image-rendering: pixelated; }
.boat-card h3 { font: bold 19px var(--mono); letter-spacing: -.6px; margin: 0 0 10px; }
.boat-card p { margin: 0 0 16px; color: #83916e; font-size: 12px; line-height: 1.6; }
.boat-requirement { display: flex; justify-content: space-between; color: #82936b; font-size: 10px; }
.boat-requirement strong { font: bold 10px var(--mono); }
.boat-track { height: 5px; margin: 8px 0 15px; background: #d1dbbe; }
.boat-track > span { display: block; width: 0; height: 100%; background: #8da465; transition: width .3s; }
.boat-card button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px; border: 1px solid #70894e; color: #f5eed4; background: #829a5d; font-size: 12px; font-weight: bold; }
.boat-card button:disabled { background: #d5dec3; border-color: #becbab; color: #99a589; }
.boat-card button:hover:not(:disabled) { background: #718c50; }
.price { display: flex; gap: 5px; font: bold 12px var(--mono); }
.sidebar-footer { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 18px; border-top: 1px solid var(--line); }
.sidebar-footer > span { display: flex; align-items: center; gap: 5px; color: #96a086; font-size: 9px; }
.save-dot { height: 4px; width: 4px; background: #8da96a; }
.sidebar-footer button { padding: 0; border: 0; background: none; color: #8c997c; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.journal-intro { padding-top: 24px; }
.journal-intro h3 { margin: 12px 0; font: bold 22px var(--mono); letter-spacing: -.8px; }
.journal-intro p { font-size: 13px; color: #869477; line-height: 1.7; }
.journal-stats { margin: 23px 0; }
.journal-stats > div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.journal-stats dt { color: #889676; }
.journal-stats dd { margin: 0; font: bold 13px var(--mono); }
.notes-heading { font: bold 10px var(--mono); letter-spacing: 1px; color: #8b9879; margin: 25px 0 17px; }
.milestone-row { display: flex; align-items: center; gap: 10px; margin: 17px 0; color: #9ca78e; font-size: 12px; line-height: 1.5; }
.milestone-row > span:first-child { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border: 1px solid #ccd7b9; color: #a9b795; }
.milestone-row.done { color: #5a7743; }
.milestone-row.done > span:first-child { background: #dbe6c4; border-color: #b0c18e; color: #708c4d; }
.field-note { display: flex; gap: 10px; padding-top: 12px; margin-top: 25px; border-top: 1px solid var(--line); color: #919f80; }
.field-note > span { font-size: 28px; margin-top: 7px; }
.field-note p { font-size: 12px; line-height: 1.7; }
dialog { max-width: min(480px, calc(100vw - 30px)); max-height: calc(100dvh - 32px); padding: 32px; color: var(--ink); background: var(--paper); border: 3px solid #b79c6c; box-shadow: 5px 6px #152f2780; }
dialog::backdrop { background: #153c31a6; backdrop-filter: blur(2px); }
dialog h2 { margin: 12px 0; font: bold 25px var(--mono); letter-spacing: -1px; }
dialog > p { color: #869376; font-size: 14px; line-height: 1.7; }
.dialog-close { position: absolute; top: 10px; right: 13px; padding: 0; border: 0; background: none; color: #839572; font-size: 27px; }
.how-to { padding: 8px 0; margin: 0; list-style: none; }
.how-to li { display: flex; gap: 14px; margin: 19px 0; }
.how-to li > span { color: #ae975f; font: 13px var(--mono); padding-top: 1px; }
.how-to strong { font-size: 14px; }
.how-to p { margin: 5px 0 0; color: #869575; font-size: 13px; line-height: 1.6; }
.help-note { padding: 15px 0; border-top: 1px solid var(--line); color: #8a9779; font-size: 12px; line-height: 1.7; }
.dialog-primary { padding: 12px 18px; border: 1px solid #667c4b; background: #849b61; color: #fff7db; font-size: 13px; font-weight: bold; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.dialog-actions > button:not(.dialog-primary) { padding: 12px 16px; border: 1px solid #c3d0af; background: none; color: #7c9067; }
@media (max-width: 1050px) {
  .lake-chat { bottom: 120px; width: 305px; }
  .survival-hud { width: 171px; }
}
@media (max-width: 680px) {
  .topbar { top: 15px; left: 14px; width: 169px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand-mark { font-size: 30px; }
  .brand small { font-size: 6px; letter-spacing: 1px; }
  .location-tag { top: 62px; left: 16px; font-size: 8px; gap: 5px; letter-spacing: .5px; }
  .weather { font-size: 15px; }
  .lake-health { width: 169px; margin-top: 43px; padding: 8px 9px; }
  .health-label { font-size: 8px; letter-spacing: 0; }
  .health-label strong { font-size: 10px; }
  .wallet { padding: 6px 9px; gap: 7px; min-width: 96px; }
  .wallet strong { font-size: 17px; }
  .coin { width: 19px; height: 19px; font-size: 11px; }
  .world-toolbar { top: 16px; right: 14px; gap: 6px; }
  .world-toolbar button { height: 33px; }
  .workshop-toggle { gap: 6px; padding: 0 8px; font-size: 11px; }
  .workshop-toggle kbd { display: none; }
  .icon-button { width: 31px; font-size: 17px; }
  .sound-slash { left: 12px; font-size: 24px; }
  .lake-chat { left: 14px; bottom: 119px; width: calc(100% - 190px); min-width: 165px; max-width: 310px; }
  .chat-log { max-height: 118px; padding-right: 5px; }
  .chat-message { font-size: 11px; line-height: 1.5; padding-left: 29px; }
  .chat-message time { font-size: 7px; top: 2px; }
  .chat-heading { font-size: 8px; width: 105px; }
  .survival-hud { right: 14px; bottom: 119px; width: 150px; gap: 7px; }
  .resource-block { padding: 8px; }
  .resource-heading { font-size: 8px; gap: 4px; }
  .resource-heading strong { font-size: 9px; }
  .resource-track { height: 6px; margin-top: 6px; }
  .controls-hint { bottom: 7px; font-size: 8px; }
  .controls-hint > span { margin: 0 4px; }
  .controls-hint kbd { display: none; }
  .touch-controls { right: 18px; bottom: 230px; grid-template-columns: 30px 30px 30px; grid-template-rows: 30px 30px 30px; }
  .workshop { top: 65px; right: 14px; width: min(354px, calc(100% - 28px)); max-height: calc(100dvh - 82px); }
  .workshop-heading { padding: 17px; }
  .workshop-heading h2 { font-size: 21px; }
  .sidebar-content { padding: 0 16px; }
  .sidebar-tabs { padding: 14px 16px 0; }
  .equipment-row { padding: 14px 0; column-gap: 9px; }
}
@media (max-width: 480px) {
  .workshop-toggle .tool-label { display: none; }
  .workshop-toggle { width: 34px; padding: 0; }
  .workshop-toggle > span:first-child { font-size: 22px; }
  .world-toolbar { gap: 5px; }
  .equipment-row { grid-template-columns: 35px 1fr auto; gap: 8px; }
  .equipment-icon { width: 34px; height: 38px; }
  .equipment-name { font-size: 12px; }
  .equipment-info p { font-size: 10px; }
  .level { font-size: 7px; margin-left: 4px; }
  .sidebar-footer { padding: 13px; }
  .sidebar-footer > span { font-size: 8px; }
  dialog { padding: 25px; }
  dialog h2 { font-size: 22px; }
}
@media (max-height: 520px) and (min-width: 681px) {
  .topbar { top: 14px; left: 17px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
  .brand-mark { font-size: 27px; }
  .location-tag { top: 54px; left: 19px; }
  .lake-health { margin-top: 37px; padding: 7px 9px; }
  .wallet { margin-top: 7px; padding: 5px 9px; }
  .chat-log { max-height: 80px; }
  .lake-chat { bottom: 24px; width: 280px; }
  .chat-message { font-size: 10px; }
  .survival-hud { width: 160px; gap: 5px; }
  .resource-block { padding: 7px 9px; }
  .workshop { top: 66px; max-height: calc(100dvh - 80px); }
}
@media (pointer: coarse) { .touch-controls { display: grid; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 390px) {
  .topbar { left: 12px; width: 143px; }
  .brand { font-size: 18px; gap: 5px; }
  .brand-mark { font-size: 28px; }
  .brand small { font-size: 5px; }
  .lake-health { width: 143px; padding: 8px; }
  .health-label { font-size: 7px; gap: 3px; }
  .health-label strong { font-size: 9px; }
  .sprout { font-size: 14px; }
  .survival-hud { width: 138px; right: 12px; }
  .resource-heading { font-size: 7px; }
  .resource-heading strong { font-size: 8px; }
  .lake-chat { width: calc(100% - 170px); min-width: 140px; }
}
/* Camera controls change only the view, never equipment reach or simulation. */
.camera-controls { position: absolute; z-index: 4; left: 24px; top: 211px; display: flex; align-items: center; gap: 3px; }
.camera-controls button { display: grid; place-items: center; height: 30px; min-width: 30px; padding: 0 5px; border: 1px solid #a28e62; background: #2c4634e8; color: #e3dfb8; box-shadow: 1px 2px #19312799; font: 18px var(--mono); }
.camera-controls button:hover:not(:disabled) { background: #57694a; }
.camera-controls button:disabled { color: #8a997b; border-color: #6b7655; opacity: .6; }
.camera-controls #zoom-reset { min-width: 49px; font-size: 10px; }
/* A quiet opening, with the lake still visible behind the verse. */
.title-screen { position: absolute; z-index: 20; inset: 0; display: grid; place-items: center; padding: 35px 24px; overflow-y: auto; background: radial-gradient(ellipse at center, #112d2577, #102720e8 90%); color: #eee7c5; text-align: center; }
.title-content { width: min(740px, 100%); padding: 18px 0 25px; }
.title-emblem { color: #ccd6a7; font-size: 69px; line-height: 1; text-shadow: 0 0 36px #c5db992d; }
.title-name { margin: 21px 0 35px; color: #c7d1ac; font: bold 12px var(--mono); letter-spacing: 5px; }
.title-screen h1 { margin: 0; font: normal clamp(13px, 2.4vw, 28px)/1.9 var(--mono); letter-spacing: -.45px; text-shadow: 2px 3px #12291e; }
.title-screen h1 > span { display: block; white-space: nowrap; }
.title-rule { display: flex; justify-content: center; align-items: center; gap: 13px; margin: 25px 0 30px; color: #b8c68e; font-size: 12px; }
.title-rule > span { width: 55px; height: 1px; background: linear-gradient(90deg, transparent, #aaba7d77); }
.title-rule > span:last-child { transform: rotate(180deg); }
.title-actions { display: flex; justify-content: center; gap: 14px; }
.title-actions button { width: 184px; padding: 15px 16px 13px; border: 2px solid #9d9368; border-bottom-color: #5d6243; background: #3f5339e8; box-shadow: 2px 3px #10251d88, inset 0 1px #c6cc9626; color: #ece7c4; font: bold 15px var(--mono); }
.title-actions button:hover:not(:disabled) { background: #64734a; border-color: #ccbf88; }
.title-actions button:disabled { color: #9bA58b; border-color: #667253; background: #273f2ccc; opacity: .65; }
.title-actions button > span { display: block; margin-top: 8px; color: #b7c4a0; font: 10px var(--sans); }
.title-caption { margin: 27px 0 0; color: #b0bd9c; font-size: 12px; letter-spacing: .3px; }
.title-footnote { position: absolute; bottom: 22px; left: 0; right: 0; margin: 0; color: #a9bb9177; font: 8px var(--mono); letter-spacing: 2px; }
.title-open .topbar, .title-open .world-toolbar, .title-open .camera-controls,
.title-open .world > :not(#lake):not(#water-layer):not(.scene-vignette) { visibility: hidden; }
@media (max-width: 680px) { .camera-controls { left: 14px; top: 202px; } }
@media (max-width: 500px) {
  .title-screen { padding: 26px 16px; }
  .title-emblem { font-size: 55px; }
  .title-name { font-size: 10px; letter-spacing: 4px; margin: 19px 0 29px; }
  .title-actions { flex-direction: column; align-items: center; gap: 11px; }
  .title-actions button { width: 233px; padding: 13px 15px; font-size: 14px; }
  .title-caption { font-size: 11px; }
  .title-rule { margin: 22px 0 25px; }
}
@media (max-height: 550px) {
  .title-screen { padding: 14px 20px; }
  .title-content { padding: 8px 0; }
  .title-emblem, .title-caption, .title-footnote { display: none; }
  .title-name { margin: 0 0 17px; }
  .title-screen h1 { font-size: clamp(13px, 2vw, 20px); line-height: 1.6; }
  .title-rule { margin: 15px 0 19px; }
  .title-actions { flex-direction: row; gap: 10px; }
  .title-actions button { width: 156px; padding: 10px; font-size: 13px; }
  .camera-controls { top: 185px; }
}

#lake-chat .chat-heading { width:180px; gap:6px; }
#open-chat { white-space:nowrap; min-width:60px; flex-shrink:0; }
@media(max-width:680px) { #friends-button { width:58px; padding:0 3px; } #friends-button span { display:none; } #friends-button:after { content:"Friends"; font-size:10px; } }
