:root { --orange: #b94325; --muted: #405e54; }
#experience { height: 100svh; min-height: 0; }
#world canvas { touch-action: none; }
.topbar { z-index: 4; }
.topbar nav { gap: 22px; }
.nav-link { text-decoration: none; min-height: 44px; gap: 6px; }
.intro { max-width: 430px; }
.intro p { color: #244b43; font-size: 16px; line-height: 1.65; }
.has-navigated .intro, .has-caught .intro { opacity: 0; transform: translateY(-10px); }
.has-caught .scene-note { opacity: 0; }
.lake-label { opacity: 1; z-index: 3; gap: 10px; letter-spacing: 1.4px; }
.lake-label > #region-name { font-size: 12px; font-weight: 650; color: #345c53; }
.compass-button { display: flex; align-items: center; gap: 13px; padding: 13px 17px; border: 1px solid #fff9eb99; background: #fff9ebdf; border-radius: 16px; text-align: left; box-shadow: 0 8px 24px #315a4a0c; }
.compass-button > span:nth-child(2) { display: grid; gap: 4px; }
.compass-button strong { font-size: 14px; font-weight: 650; }
.compass-button #spot-distance { font-size: 12px; font-weight: 450; letter-spacing: 0; color: #476357; }
#compass-arrow { display: inline-block; font-size: 29px; width: 24px; text-align: center; color: var(--orange); transform-origin: center; }
.compass-button > span:last-child { font-size: 23px; color: #587261; margin-left: 6px; }
.spot-label { color: #214d40; font-size: 13px; }
.spot-label > span:first-child { color: var(--orange); }
.game-status { line-height: 1.45; color: #214b43; }
.control-hint { font-size: 13px; color: #28564c; }
.cast-button:disabled { background: #456d62; opacity: 1; }
.direction-pad button { min-width: 44px; min-height: 44px; }
.direction-pad { grid-template-columns: repeat(3,44px); grid-template-rows: repeat(2,44px); }
.navigation-controls > span { font-size: 13px; }
.how-button { font-size: 14px; min-height: 44px; }
.collection-button > span:last-child { font-size: 13px; }
.collection-icons > span { font-size: 19px; color: #476357; }
.collection-icons > span.caught { background: var(--orange); border-color: var(--orange); }
.primary-small { background: var(--orange); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 44px; }
.primary-small:hover { background: #9b371f; }
.secondary-small { min-height: 44px; }
.plain-button { background: none; border: 0; border-bottom: 1px solid #9bac95; cursor: pointer; }
.meta { color: #665b45!important; font-size: 13px!important; }
.chapter-card p, .dialog-lead { color: #435d50; }
.chapter-number, .dialog-eyebrow { color: #914028; font-size: 12px; line-height: 1.6; }
.metric span { color: #4b604e; font-size: 13px; }
.text-link { min-height: 36px; display: inline-flex; align-items: center; }
.project-feature { margin: 0 0 34px; }
.project-visual { display: block; position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 1.7; isolation: isolate; color: white; text-decoration: none; }
.project-visual::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,#162f3933,#18382999); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; transition: transform .5s; }
.project-visual:hover img { transform: scale(1.035); }
.project-wordmark { display: grid; gap: 8px; position: absolute; left: 28px; top: 28px; font: 500 47px/1 'Playfair Display',serif; letter-spacing: -1px; text-shadow: 0 2px 14px #193628; }
.project-wordmark > span { font: 450 15px/1.5 'DM Sans',sans-serif; letter-spacing: 0; }
.project-visit { position: absolute; bottom: 22px; right: 24px; font-size: 14px; background: #fff9eb; color: #244b3e; padding: 12px 16px; border-radius: 24px; }
.project-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; font-size: 13px; color: #496151; }
.project-status { background: #e0e8d6; padding: 6px 10px; color: #355641; border-radius: 6px; font-size: 12px; font-weight: 650; letter-spacing: 1px; }
.project-feature h3 { font: 500 30px/1.2 'Playfair Display',serif; margin: 22px 0 14px; }
.project-feature p { font-size: 16px; line-height: 1.7; color: #435d50; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0 0; }
.project-facts > div { border-left: 2px solid #b9c9ae; padding-left: 16px; }
.project-facts span { font-size: 12px; letter-spacing: 1px; font-weight: 650; }
.project-facts p { margin: 8px 0; }
.project-stage { background: #f0ead9; padding: 15px 18px; border-radius: 10px; }
.project-link { margin-top: 6px; }
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.journal-card { display: grid; justify-items: start; gap: 9px; border: 1px dashed #9cae96; background: #f3efe1; padding: 22px; border-radius: 12px; text-align: left; min-height: 180px; }
.journal-card.discovered { background: #e7ecda; border: 1px solid #bdcdb2; }
.journal-object { font: 48px/1.15 'DM Sans',sans-serif; color: #8c492d; }
.journal-card:not(.discovered) .journal-object { color: #667c64; }
.journal-caption { font-size: 12px; color: #4b6150; }
.journal-card strong { font: 500 23px/1.25 'Playfair Display',serif; }
.journal-card > span:last-child { font-size: 14px; margin-top: 5px; }
.journal-postcard { margin: 28px 0; background: #f3e7cc; padding: 12px 12px 20px; border: 1px solid #daceb6; border-radius: 5px; }
.journal-postcard img { width: 100%; height: auto; display: block; border-radius: 2px; }
.journal-postcard figcaption { font: 17px/1.6 'Playfair Display',serif; margin: 17px 10px 0; }
.journal-postcard figcaption span { font-style: italic; }
.storage-note { color: #4c6655; font-size: 13px; line-height: 1.65; margin-top: 24px; }
.guide-list { display: grid; gap: 12px; }
.guide-place { background: #f1ebdb; border: 1px solid #d5d9c4; border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 20px; text-align: left; }
.guide-symbol { font-size: 32px; width: 42px; text-align: center; color: var(--orange); }
.guide-place > span:nth-child(2) { display: grid; gap: 7px; }
.guide-place strong { font: 500 23px/1.25 'Playfair Display',serif; }
.guide-place > span:nth-child(2) > span { font-size: 14px; color: #49624e; }
.guide-place > span:last-child { margin-left: auto; white-space: nowrap; font-size: 14px; text-align: right; line-height: 1.5; }
.bottle-letter { padding: 22px 28px; margin: 25px 0; border-left: 2px solid #c98d58; background: #f2e7cb; border-radius: 0 12px 12px 0; }
.bottle-letter p { color: #40513c; font: 17px/1.8 'DM Sans',sans-serif; }
.bottle-letter .letter-greeting { font: 500 27px/1.4 'Playfair Display',serif; margin-top: 0; }
.bottle-letter .letter-signature { font: italic 30px/1.3 'Playfair Display',serif; color: #874729; margin-bottom: 0; }
.message-reply { margin: 30px 0 35px; }
.message-reply h3 { font: 500 28px/1.25 'Playfair Display',serif; }
.message-reply label { display: block; margin: 0 0 9px; font-size: 14px; font-weight: 600; }
.message-reply textarea { display: block; width: 100%; resize: vertical; min-height: 112px; max-height: 300px; border: 1px solid #9caf9a; border-radius: 10px; background: #fffcf4; padding: 14px; font: 16px/1.6 'DM Sans',sans-serif; color: #214848; }
.message-reply textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 16px; }
.reply-hint { color: #4c6655; font-size: 13px; line-height: 1.5; }
.email-fallback { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; }
.copy-email { background: transparent; border: 1px solid #b7c3aa; border-radius: 8px; padding: 10px 12px; min-height: 44px; }
#copy-status { font-size: 13px; }
@media (max-width: 1050px) and (min-width: 701px) {
  .topbar { left: 28px; right: 28px; }
  .topbar nav { gap: 16px; }
  .brand-name > span { display: none; }
  .intro p { max-width: 330px; }
  .compass-button { padding: 10px 12px; gap: 8px; }
}
@media (max-width: 700px) {
  #experience { min-height: 0; }
  .topbar { inset: 14px 16px auto; }
  .topbar nav { gap: 12px; }
  .topbar .nav-link { font-size: 13px; padding: 6px 0; }
  #portfolio-button > span { display: none; }
  .brand { gap: 8px; }
  .round-button { width: 38px; height: 38px; }
  .brand-mark { font-size: 37px; }
  .intro { left: 20px; top: 116px; max-width: calc(100% - 40px); }
  .intro h1 { font-size: 35px; line-height: 1.05; margin: 10px 0 12px; }
  .intro .eyebrow { font-size: 11px; }
  .intro p { font-size: 14px; line-height: 1.5; max-width: 320px; }
  .lake-label { display: grid; top: 71px; right: 16px; gap: 5px; max-width: none; }
  .lake-label > #region-name { display: none; }
  .compass-button { padding: 9px 12px; gap: 10px; border-radius: 12px; min-height: 57px; }
  .compass-button > span:last-child { display: none; }
  .compass-button strong { font-size: 13px; }
  .compass-button #spot-distance { font-size: 12px; }
  #compass-arrow { font-size: 25px; }
  .navigation-controls { left: 16px; bottom: calc(83px + env(safe-area-inset-bottom)); gap: 0; }
  .direction-pad { gap: 4px; }
  .fishing-controls, .is-playing .fishing-controls { left: auto; right: 16px; transform: none; bottom: calc(83px + env(safe-area-inset-bottom)); width: calc(100% - 177px); max-width: none; }
  .cast-button { min-height: 58px; padding: 9px 12px; }
  .cast-button > span:first-of-type { font-size: 14px; line-height: 1.3; }
  .cast-button svg, .control-hint { display: none; }
  .game-status { position: absolute; bottom: 100px; right: 0; width: calc(100vw - 32px); font-size: 14px; min-height: 0; margin: 0; padding: 0 6px; }
  .is-playing .game-status { bottom: 120px; }
  .reel-meter { position: absolute; right: 0; bottom: 70px; width: 100%; margin: 0; }
  .meter-caption { font-size: 11px; }
  .bottom-bar { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .how-button { font-size: 13px; }
  .collection-button { min-height: 48px; padding: 8px 12px; }
  .collection-button > span:last-child { font-size: 12px; }
  .collection-button b { font-size: 14px; }
  .spot-label { font-size: 12px; max-width: calc(100% - 24px); padding: 6px 10px; }
  .bite-bubble { top: 46%; left: 58%; font-size: 19px; z-index: 2; }
  dialog { width: calc(100% - 20px); max-height: 94svh; border-radius: 18px; }
  #dialog-content { padding: 35px 22px 28px; }
  .dialog-title { font-size: 34px; }
  .chapter-grid, .journal-grid { grid-template-columns: 1fr; }
  .chapter-card { padding: 20px; }
  .chapter-card p { font-size: 16px; }
  .journal-card { min-height: 0; grid-template-columns: 48px 1fr; align-items: center; column-gap: 18px; padding: 19px; }
  .journal-object { grid-row: 1 / 4; font-size: 42px; }
  .journal-card > span:last-child { grid-column: 2; }
  .journal-card strong { font-size: 22px; }
  .metrics { flex-direction: column; gap: 20px; }
  .metric strong { font-size: 30px; }
  .metric span { font-size: 14px; }
  .project-visual { aspect-ratio: 1.25; }
  .project-wordmark { left: 20px; top: 22px; font-size: 40px; }
  .project-wordmark > span { font-size: 14px; }
  .project-visit { font-size: 13px; right: 14px; bottom: 16px; padding: 10px 12px; }
  .project-facts { grid-template-columns: 1fr; gap: 18px; }
  .guide-place { gap: 12px; padding: 14px; }
  .guide-symbol { width: 30px; font-size: 28px; }
  .guide-place strong { font-size: 22px; }
  .guide-place > span:nth-child(2) > span { font-size: 13px; }
  .bottle-letter { padding: 19px; }
  .bottle-letter p { font-size: 16px; }
}
@media (max-width: 480px) { .brand-name { display: none; } }
@media (max-width: 700px) and (max-height: 620px) {
  .intro { top: 125px; }
  .intro .eyebrow { display: none; }
  .intro h1 { font-size: 31px; margin-bottom: 8px; }
  .intro p { font-size: 14px; line-height: 1.4; }
}
@media (max-height: 520px) and (min-width: 600px) {
  #experience { min-height: 0; }
  .intro, .scene-note { display: none; }
  .topbar { inset: 12px 20px auto; }
  .brand-name { display: none; }
  .lake-label { top: 77px; right: 20px; }
  .lake-label > #region-name { display: none; }
  .navigation-controls { bottom: 78px; left: 20px; }
  .fishing-controls, .is-playing .fishing-controls { bottom: 78px; left: auto; right: 20px; width: 230px; transform: none; }
  .game-status { position: static; width: auto; margin-bottom: 12px; }
  .reel-meter { position: static; width: 100%; margin: 0 auto 12px; }
  .control-hint, .navigation-controls > span { display: none; }
  .bottom-bar { bottom: 12px; left: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-visual:hover img { transform: none; }
}
