/* 지구본 낚시 여행의 바다 테마와 모바일 낚시 조작 화면 */
:root {
  --deep: #092a38;
  --deeper: #061f2b;
  --panel: #103747;
  --border: #2a5360;
  --paper: #f5f0df;
  --muted: #a3bcc1;
  --teal: #63d5c2;
  --gold: #f0c876;
  --coral: #f19682;
  --sky: #83b5c6;
  --sky-night: #193b59;
  --water: #277b91;
  --water-light: #74becc;
  --water-dark: #13536a;
  --land: #79b7a4;
  --land-line: #a4ccad;
  --mountain: #456f79;
  --slate: #577584;
  --silver: #b4d1d4;
  --lime: #add18b;
  --olive: #8c9e72;
  --transparent: transparent;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-family: var(--font-sans);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--deep); color: var(--paper); }
button, a { -webkit-tap-highlight-color: var(--transparent); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.header { display: flex; align-items: center; gap: 20px; max-width: 1280px; padding: 24px 32px; margin: auto; border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--paper); text-decoration: none; font-weight: 850; letter-spacing: -.04em; font-size: 22px; }
.brand span { color: var(--teal); font-size: 27px; }
.header-note { font-size: 12px; color: var(--muted); }
.journal-link { margin-left: auto; text-decoration: none; color: var(--paper); font-size: 12px; }
.journal-link span { padding: 4px 7px; margin-left: 4px; background: var(--panel); border-radius: 5px; color: var(--gold); }
main { max-width: 1160px; margin: 28px auto 35px; padding: 0 28px; }
.expedition { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.eyebrow { color: var(--teal); font-size: 11px; margin: 0 0 14px; }
h1 { margin: 0; font-size: clamp(35px, 4.8vw, 62px); font-weight: 840; letter-spacing: -.05em; line-height: 1.02; }
.planet-panel { position: relative; min-width: 0; }
.globe-wrap { position: relative; margin: -8px -12px 0; }
#globe { width: 100%; height: auto; display: block; touch-action: none; cursor: grab; }
#globe:active { cursor: grabbing; }
.globe-hint { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--muted); font-size: 10px; pointer-events: none; }
.route-summary { display: flex; justify-content: space-between; padding-top: 14px; color: var(--muted); font-size: 11px; }
.destination-panel { padding: 24px; border: 1px solid var(--border); background: var(--panel); border-radius: 18px 18px 5px 18px; }
.destination-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; margin-bottom: 24px; }
.route-label { color: var(--muted); }
.state-label { color: var(--teal); }
.country { margin: 0 0 4px; color: var(--gold); font-size: 13px; }
.destination-panel h2 { font-size: 38px; line-height: 1.08; letter-spacing: -.04em; margin: 0; }
.description { font-size: 12px; line-height: 1.6; color: var(--muted); min-height: 38px; }
.weather-panel { padding: 12px 14px; margin: 17px 0 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--deep); }
.weather-top { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--teal); }
.weather-top button { min-height: 28px; min-width: 30px; padding: 0; font-size: 20px; border: 0; background: var(--transparent); color: var(--muted); }
.weather-main { display: flex; align-items: center; gap: 9px; margin: 4px 0 11px; }
.weather-main > span:first-child { color: var(--gold); font-size: 29px; }
.weather-main strong { font-size: 28px; font-weight: 650; }
.weather-main > span:last-child { color: var(--muted); font-size: 11px; margin-left: auto; }
.weather-details { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 10px; }
.weather-time { font-size: 9px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.targets-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.targets-heading h3 { font-size: 12px; margin: 0; font-weight: 600; }
.targets-heading > span { font-size: 11px; color: var(--teal); }
.targets { display: grid; gap: 7px; margin-bottom: 18px; }
.target-button { display: grid; grid-template-columns: 67px 1fr 20px; align-items: center; gap: 10px; min-height: 62px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--deep); color: var(--paper); text-align: left; }
.target-button[aria-pressed="true"] { border-color: var(--teal); }
.target-button strong { display: block; font-size: 12px; font-weight: 600; }
.target-button small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.target-button canvas { width: 67px; height: 36px; }
.target-status { color: var(--teal); font-size: 15px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; width: 100%; padding: 12px 16px; border: 0; border-radius: 7px; background: var(--teal); color: var(--deeper); font-weight: 800; font-size: 14px; touch-action: manipulation; }
.primary:active { transform: translateY(1px); }
.destination-tip { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 11px 0 0; }
.destinations { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 28px 0 45px; }
.destination-button { display: grid; gap: 8px; min-height: 95px; padding: 14px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--transparent); color: var(--paper); text-align: left; }
.destination-button[aria-pressed="true"] { background: var(--panel); border-color: var(--teal); }
.destination-button > span { font-size: 9px; color: var(--muted); }
.destination-button strong { font-size: 13px; font-weight: 650; }
.destination-button small { color: var(--teal); font-size: 10px; }
.journal { border-top: 1px solid var(--border); padding-top: 26px; }
.journal-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.journal-heading .eyebrow { margin-bottom: 6px; }
.journal-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.subtle-button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--transparent); color: var(--paper); font-size: 11px; }
.journal-content { margin: 22px 0; }
.empty-journal { padding: 32px 20px; text-align: center; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); font-size: 12px; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.record { padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.record canvas { width: 100%; height: 65px; }
.record h3 { font-size: 13px; margin: 4px 0; }
.record p { font-size: 10px; line-height: 1.7; color: var(--muted); margin: 4px 0; }
.record strong { color: var(--gold); font-size: 17px; }
.record a { color: var(--teal); font-size: 9px; }
.catch-history { margin-top: 22px; font-size: 12px; }
.catch-history summary { cursor: pointer; color: var(--teal); padding: 10px 0; }
.catch-history p { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 11px; line-height: 1.8; }
.catch-history span { color: var(--muted); font-size: 10px; }
.prototype-note { color: var(--muted); font-size: 9px; line-height: 1.7; margin-top: 26px; }
.prototype-note a { color: var(--muted); }
.fishing-dialog { width: min(750px, calc(100% - 18px)); max-height: 96dvh; overflow-y: auto; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: var(--deep); color: var(--paper); }
.fishing-dialog::backdrop { background: var(--deeper); opacity: .94; }
.fishing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.fishing-header .eyebrow { display: block; margin-bottom: 5px; }
.fishing-header h2 { font-size: 23px; letter-spacing: -.04em; margin: 0; }
.close-button { min-width: 39px; min-height: 39px; border: 0; border-radius: 50%; background: var(--panel); color: var(--paper); font-size: 25px; }
.water-scene { position: relative; border-radius: 8px; overflow: hidden; }
#fishing-scene { display: block; width: 100%; height: auto; }
.scene-weather { position: absolute; top: 12px; left: 12px; color: var(--paper); font-size: 10px; text-shadow: 0 1px 3px var(--deeper); }
.pause-fishing { position: absolute; right: 12px; top: 12px; min-height: 32px; min-width: 32px; border: 1px solid var(--border); border-radius: 50%; background: var(--deep); color: var(--paper); }
.fight-message { font-size: 14px; font-weight: 650; min-height: 23px; margin: 14px 0; color: var(--gold); }
.fight-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.fight-meters label { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.fight-meters label strong { color: var(--paper); }
.tension-track { position: relative; background: var(--panel); border-radius: 5px; height: 12px; overflow: hidden; }
.safe-band { position: absolute; left: 18%; width: 62%; inset-block: 0; background: var(--teal); opacity: .15; }
#tension { display: block; appearance: none; width: 100%; height: 12px; position: relative; z-index: 1; }
#tension::-webkit-meter-bar { background: var(--transparent); border: 0; }
#tension::-webkit-meter-optimum-value { background: var(--gold); border-right: 3px solid var(--paper); }
#landing { width: 100%; height: 12px; border: 0; border-radius: 5px; accent-color: var(--teal); overflow: hidden; }
#landing::-webkit-progress-bar { background: var(--panel); }
#landing::-webkit-progress-value { background: var(--teal); }
.rod-action { touch-action: none; user-select: none; -webkit-user-select: none; min-height: 58px; }
.rod-action[aria-pressed="true"] { background: var(--gold); }
.rod-tip { font-size: 10px; line-height: 1.5; color: var(--muted); text-align: center; }
.catch-result { text-align: center; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
#catch-art { width: min(100%, 400px); height: auto; }
.catch-result h3 { font-size: 26px; margin: 0; letter-spacing: -.04em; }
.catch-result p { font-size: 12px; color: var(--muted); }
#catch-measurement { color: var(--gold); font-size: 21px; font-weight: 750; }
#unlock-message { color: var(--teal); }
.catch-actions { display: flex; justify-content: center; gap: 10px; }
.catch-actions .primary { width: auto; }
@media (max-width: 800px) { .expedition { gap: 20px; } .destination-panel { padding: 18px; } .destinations { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .header { padding: 14px 16px; } .header-note { display: none; } .brand { font-size: 20px; }
  main { padding: 0 15px; margin-top: 22px; }
  .expedition { grid-template-columns: 1fr; gap: 23px; }
  .planet-panel .eyebrow { margin-bottom: 9px; font-size: 10px; }
  h1 { font-size: 40px; } .globe-wrap { margin: -24px 0 -8px; }
  .route-summary { font-size: 10px; } .destination-heading { margin-bottom: 15px; }
  .destination-panel h2 { font-size: 33px; }
  .destinations { margin: 19px 0 28px; gap: 7px; } .destination-button { min-height: 83px; padding: 11px 9px; }
  .journal-heading h2 { font-size: 25px; } .journal-grid { grid-template-columns: 1fr 1fr; }
  .fishing-dialog { padding: 14px; } .fight-meters { gap: 12px; }
  .fishing-header h2 { font-size: 20px; } .fight-message { font-size: 12px; }
  .catch-result h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
