/* 深海3D探検：ゲーム画面 */
:root {
  --c: #5ce1ff;
  --c-d: rgba(92, 225, 255, 0.38);
  --c-f: rgba(92, 225, 255, 0.12);
  --gold: #ffd24a;
  --red: #ff5a6a;
  --ink: #eaf7ff;
  --dim: rgba(234, 247, 255, 0.64);
  --panel: rgba(3, 14, 26, 0.66);
  --num: "Chakra Petch", "Zen Kaku Gothic New", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
.tt-game { position: fixed; inset: 0; background: #02101c; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; font-family: var(--jp); color: var(--ink); }
#tt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: filter 0.4s; }
.tt-game.is-warp #tt-canvas { filter: brightness(0) blur(6px); }
.tt-hud { position: absolute; inset: 0; pointer-events: none; }
.tt-hud button, .tt-hud a, .tt-hud select, .tt-hud label { pointer-events: auto; }
.tt-hud button { font: inherit; color: inherit; }

/* ---------- 深さ */
.tt-depth { position: absolute; left: 18px; top: 14px; text-shadow: 0 0 12px rgba(0, 0, 0, 0.8); }
.tt-depth__label { font: 600 12px var(--num); letter-spacing: 0.3em; color: var(--c); opacity: 0.85; }
.tt-depth__num { font: 600 46px/1.05 var(--num); letter-spacing: 0.02em; color: #fff; text-shadow: 0 0 18px rgba(92, 225, 255, 0.55); font-variant-numeric: tabular-nums; }
.tt-depth__zone { margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--c); }
.tt-depth__env { margin-top: 2px; font-size: 12px; color: var(--dim); }
.tt-place__name { font-size: 26px; font-weight: 900; letter-spacing: 0.06em; color: #fff; text-shadow: 0 0 14px rgba(92, 225, 255, 0.5); }

/* ---------- 深度ゲージ */
.tt-gauge { position: absolute; right: 66px; top: 76px; bottom: 150px; width: 4px; background: rgba(255, 255, 255, 0.06); }
.tt-gauge__zone { position: absolute; left: 0; width: 4px; border-top: 1px solid var(--c-d); background: linear-gradient(var(--c-f), rgba(92, 225, 255, 0.03)); }
.tt-gauge__zone::before { content: ""; position: absolute; top: -1px; left: 0; width: 14px; border-top: 1px solid var(--c-d); }
.tt-gauge__name { position: absolute; left: 10px; top: 2px; white-space: nowrap; background: none; border: 0; padding: 2px 4px; font-size: 11px; color: var(--dim); cursor: pointer; }
.tt-gauge__name:hover:not(:disabled) { color: var(--c); }
.tt-gauge__name:disabled { opacity: 0.35; cursor: default; }
.tt-gauge__reach { position: absolute; left: 0; top: 0; width: 4px; background: linear-gradient(var(--c), rgba(92, 225, 255, 0.5)); box-shadow: 0 0 8px var(--c); }
.tt-gauge__me { position: absolute; left: -9px; width: 0; height: 0; transform: translateY(-50%); transition: top 0.1s linear; }
.tt-gauge__me::before { content: ""; position: absolute; left: -2px; top: -7px; border: 7px solid transparent; border-left: 10px solid #fff; filter: drop-shadow(0 0 4px var(--c)); }
.tt-gauge__me span { position: absolute; right: 12px; top: -10px; font: 600 13px var(--num); color: #fff; white-space: nowrap; }
.tt-gauge__limit { position: absolute; left: -16px; width: 36px; border-top: 2px dashed var(--red); }
.tt-gauge__limit span { position: absolute; right: 40px; top: -9px; font-size: 11px; color: var(--red); white-space: nowrap; }
.tt-gauge__lm { position: absolute; left: -2px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #02101c; border: 1px solid var(--gold); }
.tt-gauge__lm span { display: none; position: absolute; right: 16px; top: -6px; font-size: 10px; color: var(--gold); white-space: nowrap; }
.tt-gauge__lm.is-near span { display: block; }

/* ---------- 照準・スキャン */
.tt-reticle { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1px solid rgba(234, 247, 255, 0.55); border-radius: 50%; }
.tt-reticle::before, .tt-reticle::after { content: ""; position: absolute; background: rgba(234, 247, 255, 0.55); }
.tt-reticle::before { left: 10px; top: -8px; width: 1px; height: 6px; }
.tt-reticle::after { top: 10px; left: -8px; width: 6px; height: 1px; }
.tt-ring { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; opacity: 0; transition: opacity 0.15s; }
.tt-ring.is-on { opacity: 1; }
.tt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-ring circle { fill: none; stroke: rgba(92, 225, 255, 0.18); stroke-width: 4; }
.tt-ring .p { stroke: var(--c); stroke-dasharray: 276.5; stroke-dashoffset: 276.5; filter: drop-shadow(0 0 6px var(--c)); }
.tt-bracket { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.15s; }
.tt-bracket.is-on { opacity: 1; }
.tt-bracket i { position: absolute; width: 14px; height: 14px; border: 2px solid var(--c); filter: drop-shadow(0 0 4px var(--c)); }
.tt-bracket i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.tt-bracket i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.tt-bracket i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.tt-bracket i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.tt-bracket.is-known i { border-color: rgba(234, 247, 255, 0.7); filter: none; }
.tt-bracket__label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; white-space: nowrap; text-align: center; font-size: 12px; text-shadow: 0 0 6px #000; }
.tt-bracket__label b { display: block; font-size: 15px; }
.tt-bracket__label span { color: var(--gold); letter-spacing: 1px; }
.tt-bracket__label i { display: block; font-style: normal; font-size: 11px; color: var(--gold); }
.tt-bracket.is-mecha i { border-color: #ff4fd8; filter: drop-shadow(0 0 4px #ff4fd8); }
.tt-bracket__label em { font: 600 12px var(--num); font-style: normal; color: var(--c); margin-left: 6px; }

/* ---------- ソナー */
.tt-blip { position: absolute; transform: translate(-50%, -50%); font-size: 11px; text-align: center; color: var(--c); text-shadow: 0 0 6px #000; animation: tt-blip 1s ease-in-out infinite alternate; }
.tt-blip span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--c); border-radius: 12px; background: rgba(3, 14, 26, 0.6); font-weight: 700; }
.tt-blip em { display: block; font: 600 11px var(--num); font-style: normal; }
.tt-blip.is-known { color: rgba(234, 247, 255, 0.75); }
.tt-blip.is-known span { border-color: rgba(234, 247, 255, 0.5); }
.tt-blip.is-edge::before { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--a)) translateX(26px); font-size: 12px; }
@keyframes tt-blip { to { opacity: 0.55; } }
.tt-game.is-ping::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border: 2px solid var(--c); border-radius: 50%; pointer-events: none; animation: tt-ping 1.4s ease-out forwards; }
@keyframes tt-ping { to { transform: scale(40); opacity: 0; } }

/* ---------- 上のボタン・お知らせ */
.tt-top { position: absolute; right: 16px; top: 14px; display: flex; gap: 8px; align-items: center; }
.tt-daily { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--dim); margin-right: 6px; pointer-events: auto; }
.tt-daily b { color: var(--gold); font-size: 13px; }
.tt-daily em { font-style: normal; color: var(--c); }
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 14px; min-height: 40px; box-sizing: border-box; border: 1px solid var(--c-d); background: var(--panel); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); backdrop-filter: blur(6px); }
.tt-btn:hover { border-color: var(--c); background: rgba(10, 40, 60, 0.75); }
.tt-btn--main { background: var(--c); color: #021220; border-color: var(--c); }
.tt-btn--main:hover { background: #8aecff; }
.tt-btn--danger { border-color: rgba(255, 90, 106, 0.6); color: #ffb3bb; }
.tt-btn--icon { width: 40px; padding: 0; font-size: 20px; }
.tt-count { font: 600 14px var(--num); color: var(--c); }
.tt-toasts { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; }
.tt-toast { padding: 8px 16px; background: var(--panel); border: 1px solid var(--c-d); font-size: 14px; font-weight: 700; animation: tt-in 0.3s ease-out; transition: opacity 0.5s, transform 0.5s; }
.tt-toast.is-gold { border-color: var(--gold); color: var(--gold); }
.tt-toast.is-out { opacity: 0; transform: translateY(-8px); }
@keyframes tt-in { from { opacity: 0; transform: translateY(-8px); } }
.tt-banner { position: absolute; left: 0; right: 0; top: 24%; text-align: center; opacity: 0; text-shadow: 0 0 20px rgba(0, 0, 0, 0.9); }
.tt-banner.is-on { animation: tt-banner 4s ease-out forwards; }
.tt-banner small { display: block; font: 600 14px var(--num); letter-spacing: 0.3em; color: var(--c); }
.tt-banner b { display: block; font-size: clamp(34px, 7vw, 64px); font-weight: 900; letter-spacing: 0.2em; }
.tt-banner span { display: block; font: 600 13px var(--num); letter-spacing: 0.35em; color: var(--dim); }
@keyframes tt-banner { 0% { opacity: 0; letter-spacing: 0.6em; } 15% { opacity: 1; letter-spacing: 0.2em; } 75% { opacity: 1; } 100% { opacity: 0; } }
.tt-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 7px 14px; background: rgba(3, 14, 26, 0.55); font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.tt-hint.is-on { opacity: 1; }
.tt-warn { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); padding: 8px 16px; border: 1px solid var(--red); background: rgba(40, 0, 6, 0.6); color: #ffd0d4; font-size: 14px; font-weight: 700; text-align: center; opacity: 0; }
.tt-warn.is-on { opacity: 1; animation: tt-blink 0.6s steps(2) infinite; }
@keyframes tt-blink { 50% { border-color: transparent; } }
.tt-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55)); }
.tt-vignette.is-warn { background: radial-gradient(ellipse at center, transparent 45%, rgba(160, 0, 20, 0.45)); }

/* ---------- 操作ボタン */
.tt-acts { position: absolute; right: 54px; bottom: 18px; display: grid; grid-template-columns: auto auto; grid-template-areas: ". up" "sonar scan" "photo scan" "turbo down"; gap: 8px 12px; align-items: center; justify-items: center; }
.tt-act { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--c-d); background: var(--panel); color: var(--ink); cursor: pointer; backdrop-filter: blur(6px); touch-action: none; }
.tt-act b { font: 600 18px/1 var(--num); }
.tt-act small { font-size: 9px; color: var(--dim); margin-top: -10px; }
.tt-act.is-on { border-color: var(--c); background: rgba(92, 225, 255, 0.25); box-shadow: 0 0 14px var(--c); }
.tt-act--scan { grid-area: scan; width: 92px; height: 92px; border: 2px solid var(--c); }
.tt-act--scan b { font-size: 20px; letter-spacing: 0.08em; color: var(--c); }
.tt-act--scan small { margin-top: -16px; }
.tt-act--up { grid-area: up; font-size: 18px; }
.tt-act--down { grid-area: down; font-size: 18px; }
.tt-act--a { grid-area: sonar; }
.tt-act--b { grid-area: photo; }
.tt-act--c { grid-area: turbo; }
.tt-keys { position: absolute; left: 18px; bottom: 16px; font-size: 12px; line-height: 1.8; color: var(--dim); text-shadow: 0 0 6px #000; }
.tt-keys b { display: inline-block; padding: 0 5px; border: 1px solid rgba(234, 247, 255, 0.3); font: 600 11px var(--num); color: var(--ink); }
.tt-touch .tt-keys { display: none; }
@media (pointer: coarse) { .tt-keys { display: none; } }
.tt-stick { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 1px solid var(--c-d); border-radius: 50%; background: rgba(92, 225, 255, 0.06); opacity: 0; }
.tt-stick.is-on { opacity: 1; }
.tt-stick i { position: absolute; left: 36px; top: 36px; width: 48px; height: 48px; border-radius: 50%; background: rgba(92, 225, 255, 0.35); border: 1px solid var(--c); }

/* ---------- 写真モード */
.tt-hud.is-photo > :not(.tt-photo):not(.tt-flash):not(.tt-modal) { display: none; }
.tt-photo { position: absolute; inset: 0; }
.tt-photo__frame { position: absolute; left: 50%; top: 50%; width: min(86vw, 150vh); aspect-ratio: 16 / 9; transform: translate(-50%, -54%); max-height: 78vh; }
.tt-photo__frame i { position: absolute; width: 34px; height: 34px; border: 3px solid #fff; }
.tt-photo__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.tt-photo__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.tt-photo__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.tt-photo__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.tt-photo__bar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 24px; }
.tt-shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, 0.25); cursor: pointer; pointer-events: auto; }
.tt-shutter:active { background: #fff; }
.tt-photo__tip { font-size: 13px; color: var(--dim); }
.tt-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.tt-flash.is-on { animation: tt-flash 0.5s ease-out; }
@keyframes tt-flash { from { opacity: 0.85; } to { opacity: 0; } }

/* ---------- モーダル・カード */
.tt-modal { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(0, 6, 12, 0.5); backdrop-filter: blur(3px); pointer-events: auto; }
.tt-modal[hidden] { display: none; }
.tt-card *, .tt-zukan * { box-sizing: border-box; }
.tt-card { position: relative; overflow-x: hidden; width: min(94vw, 460px); max-height: calc(100vh - 24px); overflow-y: auto; box-sizing: border-box; padding: 18px 18px 16px; background: linear-gradient(160deg, rgba(10, 34, 54, 0.96), rgba(3, 12, 22, 0.97)); border: 1px solid var(--c-d); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); animation: tt-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes tt-pop { from { opacity: 0; transform: scale(0.9); } }
.tt-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--c); letter-spacing: 0.1em; }
.tt-card__head b { font-size: 15px; }
.tt-stars { color: var(--gold); letter-spacing: 2px; }
.tt-card__img { margin: 10px -18px 0; aspect-ratio: 16 / 9; background: #061a2c; }
.tt-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-card--disc.r4 { border-color: var(--gold); }
.tt-card--disc.r5 { border-color: var(--gold); box-shadow: inset 0 0 40px rgba(255, 210, 74, 0.25); }
.tt-card__name { margin: 12px 0 0; font-size: 28px; font-weight: 900; letter-spacing: 0.04em; }
.tt-card__sci { margin: 2px 0 0; font-style: italic; color: var(--dim); font-size: 13px; }
.tt-card__meta { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--dim); }
.tt-card__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.75; }
.tt-card__count { margin: 10px 0 0; font: 600 14px var(--num); color: var(--c); }
.tt-card__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tt-card__btns > * { flex: 1 1 auto; }
.tt-card__shot { display: block; width: 100%; margin-top: 10px; border: 1px solid var(--c-d); }
.tt-score { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.tt-score span { font: 600 13px var(--num); letter-spacing: 0.2em; color: var(--dim); }
.tt-score b { font: 700 44px/1 var(--num); color: #fff; }
.tt-score em, .tt-zcell em { font: 700 24px var(--num); font-style: normal; }
.rank-S { color: var(--gold); text-shadow: 0 0 10px var(--gold); }
.rank-A { color: var(--c); }
.rank-B { color: #9ff0b8; }
.rank-C { color: var(--dim); }
.tt-menu { display: grid; gap: 8px; margin-top: 12px; }
.tt-menu__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.tt-select { font: inherit; background: #061a2c; color: var(--ink); border: 1px solid var(--c-d); padding: 6px; }
.tt-help { margin: 12px 0 0; padding-left: 1.3em; font-size: 14px; line-height: 1.8; }
.tt-help li { margin-bottom: 6px; }
.tt-help b { color: var(--c); }
.tt-help__note { font-size: 12px; color: var(--dim); }

/* ---------- 図鑑 */
.tt-zukan { width: min(96vw, 980px); max-height: calc(100vh - 24px); overflow: auto; box-sizing: border-box; padding: 16px; background: rgba(3, 12, 22, 0.97); border: 1px solid var(--c-d); }
.tt-zukan__head { position: sticky; top: -16px; z-index: 1; display: flex; align-items: center; gap: 12px; margin: -16px -16px 8px; padding: 12px 16px; background: rgba(3, 12, 22, 0.97); border-bottom: 1px solid var(--c-d); }
.tt-zukan__head h2 { margin: 0; font-size: 20px; }
.tt-zukan__head span { font: 600 15px var(--num); color: var(--c); flex: 1; }
.tt-zukan h3 { display: flex; justify-content: space-between; margin: 14px 0 8px; font-size: 14px; color: var(--c); }
.tt-zukan h3 small { font: 600 13px var(--num); }
.tt-zukan__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tt-zcell { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid rgba(92, 225, 255, 0.18); background: rgba(10, 30, 48, 0.6); cursor: pointer; font-size: 12px; }
.tt-zcell img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; filter: brightness(0) invert(0.32); opacity: 0.75; }
.tt-zcell.is-known img { filter: none; opacity: 1; }
.tt-zcell b { font-size: 13px; }
.tt-zcell span { color: var(--gold); font-size: 10px; }
.tt-zcell em { position: absolute; right: 6px; top: 4px; font-size: 14px; }
.tt-zcell.is-here { border-color: var(--c-d); }
.tt-zcell:hover { border-color: var(--c); }
.tt-zukan__detail { margin-top: 14px; padding: 12px; border: 1px solid var(--c-d); background: rgba(10, 30, 48, 0.6); }
.tt-zukan__empty { margin: 0; color: var(--dim); font-size: 13px; }
.tt-zukan__hint b { font-size: 20px; margin-right: 8px; }
.tt-zukan__hint p { margin: 8px 0 0; font-size: 14px; }
.tt-zukan__card { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 14px; align-items: start; }
.tt-zukan__card img { width: 100%; display: block; border: 1px solid var(--c-d); }
.tt-zukan__card b { font-size: 20px; margin-right: 8px; }
.tt-zukan__card p { margin: 6px 0; font-size: 14px; line-height: 1.7; }
.tt-zukan__ph { color: var(--c); font-size: 13px !important; }

/* ---------- スタート画面 */
.tt-start { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, rgba(2, 16, 28, 0.15), rgba(2, 10, 20, 0.88) 70%); transition: opacity 0.6s; overflow: auto; }
.tt-start.is-out { opacity: 0; pointer-events: none; }
.tt-start__inner { width: min(94vw, 520px); text-align: center; }
.tt-start__eyebrow { margin: 0; font: 600 13px var(--num); letter-spacing: 0.4em; color: var(--c); }
.tt-start h1 { margin: 6px 0 0; font-size: clamp(36px, 8vw, 56px); font-weight: 900; letter-spacing: 0.12em; text-shadow: 0 0 30px rgba(92, 225, 255, 0.45); }
.tt-start__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.8; color: var(--dim); }
.tt-start__progress { margin: 10px 0 0; font: 600 13px var(--num); color: var(--c); }
.tt-colors { display: flex; justify-content: center; gap: 12px; margin: 18px 0 0; }
.tt-colors button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); cursor: pointer; }
.tt-colors button.is-on { border-color: #fff; box-shadow: 0 0 0 3px var(--c); }
.tt-colors__label { margin: 14px 0 0; font-size: 12px; color: var(--dim); }
.tt-go { margin-top: 18px; width: 100%; padding: 16px; font: 900 20px var(--jp); letter-spacing: 0.3em; color: #021220; background: var(--c); border: 0; cursor: pointer; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); box-shadow: 0 0 30px rgba(92, 225, 255, 0.5); }
.tt-go:disabled { opacity: 0.5; cursor: wait; }
.tt-resume { display: block; margin-top: 12px; font-size: 14px; color: var(--dim); }
.tt-resume[hidden] { display: none; }
.tt-start__links { margin: 16px 0 0; font-size: 13px; }
.tt-start__links a { color: var(--dim); margin: 0 8px; }
.tt-start__nogl { display: none; margin-top: 14px; color: #ffd0d4; font-size: 14px; }

@media (max-width: 760px) {
  .tt-depth { left: 12px; top: 10px; }
  .tt-depth__num { font-size: 32px; }
  .tt-depth__zone { font-size: 13px; }
  .tt-depth__env { font-size: 10px; max-width: 58vw; }
  .tt-gauge { right: 56px; top: 100px; bottom: 300px; }
  .tt-gauge__name { font-size: 10px; left: 8px; padding: 2px 0; }
  .tt-gauge__me span { font-size: 11px; }
  .tt-top { top: 10px; right: 10px; }
  .tt-daily { display: none; }
  .tt-acts { right: 12px; bottom: 14px; gap: 8px 10px; }
  .tt-act { width: 50px; height: 50px; }
  .tt-act--scan { width: 86px; height: 86px; }
  .tt-hint { bottom: auto; top: 128px; font-size: 12px; white-space: normal; width: 80vw; text-align: center; }
  .tt-zukan__card { grid-template-columns: 1fr; }
  .tt-zukan__grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ---------- 水族館・メカ水族館 */
.tt-place__name { font-size: 28px; }
.tt-btn--mecha { border-color: rgba(255, 79, 216, 0.6); color: #ffd0f6; }
.tt-btn--mecha:hover { border-color: #ff4fd8; background: rgba(60, 10, 50, 0.8); }
.tt-btn.is-on { border-color: var(--c); background: rgba(92, 225, 255, 0.2); }
.tt-btn:disabled { opacity: 0.45; cursor: default; }
.tt-mecha { --c: #ff6ae0; --c-d: rgba(255, 106, 224, 0.4); --c-f: rgba(255, 106, 224, 0.12); }
.tt-mecha .tt-btn--mecha { border-color: var(--c); color: #fff; background: rgba(255, 79, 216, 0.25); }
.tt-game.is-glitch #tt-canvas { animation: tt-glitch 0.38s steps(4) forwards; }
@keyframes tt-glitch { 0% { filter: none; transform: none; } 25% { filter: hue-rotate(90deg) contrast(1.6); transform: translateX(6px) skewX(4deg); } 50% { filter: invert(0.2) hue-rotate(200deg); transform: translateX(-8px); } 75% { filter: brightness(2) saturate(3); transform: translateY(3px); } 100% { filter: brightness(0); } }
.tt-stats { display: grid; gap: 6px; margin: 12px 0 0; }
.tt-stat { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.tt-stat i { height: 8px; background: rgba(255, 255, 255, 0.08); position: relative; }
.tt-stat i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: linear-gradient(90deg, #ff4fd8, #5ce1ff); box-shadow: 0 0 8px #ff4fd8; }
.tt-card__mecha { margin: 10px 0 0; padding: 8px 10px; border: 1px solid rgba(255, 79, 216, 0.5); background: rgba(60, 10, 50, 0.4); font-size: 13px; color: #ffd0f6; }
.tt-card--disc.is-mecha { border-color: #ff4fd8; box-shadow: inset 0 0 40px rgba(255, 79, 216, 0.2); }
.tt-zcell.is-mecha.is-known img { filter: drop-shadow(0 0 6px rgba(255, 79, 216, 0.6)); }
.tt-zcell .tt-nodata { font: 600 9px var(--num); color: #ff8ae6; top: 6px; }
.tt-toast.is-warn { border-color: var(--red); color: #ffd0d4; }
.tt-zukan__head .tt-btn { min-height: 32px; padding: 4px 10px; font-size: 13px; }
@media (max-width: 760px) {
  .tt-place { top: 60px; }
  .tt-place__name { font-size: 20px; }
  .tt-top .tt-btn { min-height: 36px; padding: 6px 9px; font-size: 12px; }
  .tt-top .tt-btn--icon { width: 36px; padding: 0; font-size: 18px; }
}

/* ---- 宇宙 ---- */
.tt-card--map { width: min(94vw, 460px); }
.tt-orrery { margin: 10px auto 0; width: min(100%, 300px); }
.tt-orrery svg { display: block; width: 100%; height: auto; }
.tt-orrery text { font: 700 10px var(--jp, sans-serif); fill: #cfe6f5; }
.tt-card__note { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--c-d); background: var(--c-f); font-size: 13px; color: #d8f4ff; }
.tt-game--space .tt-start { background: linear-gradient(180deg, rgba(0, 2, 10, 0.1), rgba(0, 2, 10, 0.86) 72%); }

/* ---- 動物園（明るい屋外なので、文字のうしろを少し暗くして読みやすくする） ---- */
.tt-game--zoo { background: #cfe6f2; }
.tt-game--zoo .tt-vignette:not(.is-warn) { display: none; }
.tt-game--zoo .tt-keys, .tt-game--zoo .tt-depth { text-shadow: 0 1px 3px rgba(0, 12, 24, 0.9), 0 0 8px rgba(0, 12, 24, 0.6); }
.tt-game--zoo .tt-hud::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 84px; background: linear-gradient(180deg, rgba(2, 16, 28, 0.3), rgba(2, 16, 28, 0)); pointer-events: none; }
.tt-game--zoo .tt-hud::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(0deg, rgba(2, 16, 28, 0.28), rgba(2, 16, 28, 0)); pointer-events: none; }
.tt-game--zoo .tt-start { background: linear-gradient(180deg, rgba(2, 16, 28, 0.35), rgba(2, 10, 20, 0.9) 70%); }
