/* Title is an entrance into the live sea, not another opaque modal card.
   These selectors never resize the scene, rod, reel, or another modal. */
#modal.title-modal{
  padding:0;
  align-items:stretch;
  overflow-x:hidden;
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(4,23,37,.48) 0%,rgba(6,26,39,.18) 29%,rgba(4,24,35,0) 44%,rgba(3,24,36,.05) 63%,rgba(4,24,35,.64) 82%,rgba(3,20,31,.96) 100%);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  color:#fff4d9;
  scrollbar-width:thin;
}
#modal.title-modal .modal{
  width:100%;
  max-width:none;
  height:100%;
  min-height:0;
  max-height:none;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  overflow:visible;
}
#modal.title-modal #modalBody{height:100%;min-height:0}
.title-screen{
  --title-serif:"Yu Mincho","YuMincho","Hiragino Mincho ProN","Hiragino Mincho Pro",Georgia,serif;
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:100%;
  padding:0 clamp(22px,7vw,40px);
  overflow:hidden;
  isolation:isolate;
  text-align:center;
  -webkit-user-select:none;
  user-select:none;
}
.title-identity{
  flex:none;
  padding-top:max(34px,calc(env(safe-area-inset-top) + 24px));
  color:#fff3d5;
  text-shadow:0 2px 16px #071b31a6,0 1px 2px #081b2a75;
}
.title-signature{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 0 25px;color:#f2d7a1}
.title-emblem{width:57px;height:25px;stroke:currentColor;stroke-width:1;stroke-linecap:round;opacity:.95}
.title-emblem-ray{opacity:.65}
.title-signature>span{font:500 11px/1.3 Georgia,"Times New Roman",serif;letter-spacing:.56em;padding-left:.56em}
.title-overline{margin:0 0 14px;font-size:10px;font-weight:500;line-height:1.8;letter-spacing:.16em;color:#fff1d9}
#modal.title-modal .title-wordmark{
  margin:0;
  font-family:var(--title-serif);
  font-size:clamp(34px,10.6vw,52px);
  font-weight:500;
  line-height:1.35;
  letter-spacing:.10em;
  padding-left:.10em;
  white-space:nowrap;
  text-wrap:nowrap;
  color:#fff5db;
}
.title-rule{display:flex;align-items:center;justify-content:center;gap:8px;margin:22px 0 17px;opacity:.85}
.title-rule i{width:40px;height:1px;background:linear-gradient(90deg,transparent,#eed39e)}
.title-rule i:last-child{transform:scaleX(-1)}
.title-rule b{display:block;width:3px;height:3px;background:#eed39e;transform:rotate(45deg)}
.title-poem{margin:0;font-family:var(--title-serif);font-size:12px;line-height:2.15;letter-spacing:.16em;color:#fff1d6}
.title-open-water{flex:1 1 auto;min-height:118px;pointer-events:none}
.title-arrival{flex:none;width:100%;max-width:376px;margin:0 auto;padding-bottom:max(15px,calc(env(safe-area-inset-bottom) + 10px))}
.title-place-line{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 14px;min-height:16px;font-size:10px;line-height:1.65;letter-spacing:.045em;color:#e3e8df;text-shadow:0 1px 7px #031722}
.title-place-line>svg{width:13px;height:13px;stroke:#e9ca90;stroke-width:1.2;flex:none}
.title-place-line>i{width:1px;height:10px;background:#d5d8c45c;margin:0 4px}
.title-earned{color:#cedbd6;font-variant-numeric:tabular-nums}
.title-start{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  width:100%;
  min-height:62px;
  padding:16px 42px;
  border:1px solid #ffe7b1;
  border-radius:9px;
  background:linear-gradient(120deg,#e4c689,#f4dfae 49%,#d7b474);
  box-shadow:0 1px 0 #fff3cd99 inset,0 -2px 0 #9e78354d inset,0 8px 26px #00121d5c;
  color:#16313c;
  font-family:var(--title-serif);
  font-size:17px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.13em;
  touch-action:manipulation;
  transition:filter .18s ease,transform .18s ease;
}
.title-start>svg{position:absolute;right:20px;width:20px;height:20px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.title-start:active{transform:translateY(1px);filter:brightness(.96)}
.title-start:focus-visible,.title-guide:focus-visible{outline:3px solid #c6f1ff;outline-offset:4px}
.title-guide{display:flex;align-items:center;justify-content:center;gap:5px;min-width:112px;min-height:46px;padding:8px 18px;margin:5px auto 0;border:0;border-radius:8px;background:transparent;color:#f3e8cb;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:.13em;touch-action:manipulation;text-shadow:0 1px 5px #031722}
.title-guide>svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.title-guide:active{background:#d9e7d00d}
.title-local-note{margin:2px 0 0;color:#b4c8cb;font-size:9px;font-weight:400;letter-spacing:.055em;line-height:1.5}
@media(min-height:740px){
  .title-identity{padding-top:max(52px,calc(env(safe-area-inset-top) + 36px))}
  .title-signature{margin-bottom:32px}
  .title-rule{margin-top:25px;margin-bottom:20px}
  .title-poem{font-size:13px}
  .title-arrival{padding-bottom:max(23px,calc(env(safe-area-inset-bottom) + 15px))}
}
@media(max-height:640px){
  .title-identity{padding-top:max(19px,calc(env(safe-area-inset-top) + 10px))}
  .title-signature{gap:4px;margin-bottom:14px}
  .title-emblem{width:45px;height:20px}
  .title-signature>span{font-size:9px}
  .title-overline{font-size:9px;margin-bottom:8px}
  #modal.title-modal .title-wordmark{font-size:clamp(32px,10.4vw,44px)}
  .title-rule{margin:13px 0 10px}
  .title-poem{font-size:11px;line-height:1.9}
  .title-open-water{min-height:90px}
  .title-place-line{font-size:9px;margin-bottom:10px}
  .title-start{min-height:56px;font-size:16px;padding-top:13px;padding-bottom:13px}
  .title-arrival{padding-bottom:max(12px,calc(env(safe-area-inset-bottom) + 8px))}
  .title-guide{margin-top:2px;min-height:44px}
  .title-local-note{font-size:8px;margin-top:0}
}
@media(max-width:350px){
  .title-screen{padding-left:21px;padding-right:21px}
  .title-place-line{gap:5px;letter-spacing:0}
  .title-place-line>i{margin:0 2px}
  .title-start{letter-spacing:.09em}
}
@media(prefers-reduced-motion:reduce){
  .title-screen *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .title-start:active{transform:none}
}
/* The title presents the live scene without playable HUD competing for attention.
   visibility also removes these controls from keyboard navigation while open. */
.game.title-active>.topbar,.game.title-active>.weather,.game.title-active>.status,
.game.title-active>.fish-cue,.game.title-active>.hook-window,.game.title-active>.fight-vitals,
.game.title-active>.cast-guide,.game.title-active>.bottom-ui,.game.title-active>#toast{
  visibility:hidden;pointer-events:none;
}

/* Explicit gesture entry: no misleading autoplay promise, 44px thumb target. */
.title-sound{display:block;margin:7px auto 0;min-width:128px;min-height:44px;padding:9px 18px;border:1px solid #cfb78470;border-radius:24px;color:#eeddbb;background:#082435a8;font:inherit;font-size:12px;letter-spacing:.08em}
.title-sound:focus-visible{outline:2px solid #f3d998;outline-offset:3px}
.title-sound-note{margin:0;text-align:center;color:#d0d9d6;font-size:10px;line-height:1.6;letter-spacing:.03em}
@media(max-height:640px){.title-sound{margin-top:3px}.title-open-water{min-height:55px}.title-sound-note{font-size:9px}}

.title-sound{touch-action:manipulation}
.title-save-warning{margin:9px 0 0;padding:8px 10px;border:1px solid #e1b97866;border-radius:7px;color:#f5dab3;background:#33291ed9;font-size:10px;line-height:1.65;overflow-wrap:anywhere}
