:root {
  --panel: rgba(250, 248, 243, 0.95);
  --panel2: #f1eee6;
  --ink: #1b222a;
  --sub: #5f6873;
  --faint: #8b929a;
  --line: #ddd7ca;
  --accent: #1d6f8e;
  --accent2: #2a8fb3;
  --warm: #e0892c;
  --good: #2e8a57;
  --bad: #c2453a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  --num: 'Barlow Condensed', 'Zen Kaku Gothic New', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #05070d; color: var(--ink);
  font-family: 'Zen Kaku Gothic New', 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic', sans-serif; -webkit-font-smoothing: antialiased; }
canvas#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui .pass { pointer-events: none; }
#ui .pass > * { pointer-events: auto; }
#labels { position: fixed; inset: 0; pointer-events: none; }
button { font-family: inherit; cursor: pointer; }
.num { font-family: var(--num); letter-spacing: 0.01em; }

/* ---------- パネル ---------- */
.panel { background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.6); }
.panel h3 { margin: 0 0 8px; font-size: 13px; color: var(--sub); font-weight: 700; letter-spacing: 0.08em; }
.btn { border: none; border-radius: 9px; padding: 10px 18px; font-size: 15px; font-weight: 700; color: #fff; background: var(--accent);
  box-shadow: 0 3px 0 #11506a, 0 6px 14px rgba(0, 0, 0, 0.25); transition: transform 0.06s, filter 0.15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #11506a; }
.btn.warm { background: var(--warm); box-shadow: 0 3px 0 #a55f15, 0 6px 14px rgba(0, 0, 0, 0.25); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 2px 0 #cfc8b8, 0 4px 10px rgba(0, 0, 0, 0.12); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.big { padding: 14px 34px; font-size: 18px; }
.btn:disabled { filter: grayscale(1) opacity(0.5); cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { color: inherit; opacity: 0.7; font-size: 11px; }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 5px; background: #fff; border: 1px solid #c9c2b2; border-bottom-width: 2px;
  font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; }

/* ---------- タイトル ---------- */
.title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(5, 8, 16, 0) 0%, rgba(5, 8, 16, 0.55) 75%); }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7); margin-bottom: 40px; }
.logo .en { font-family: var(--num); letter-spacing: 0.5em; font-size: 15px; opacity: 0.85; margin-bottom: 10px; padding-left: 0.5em; }
.logo .ja { font-size: 64px; font-weight: 900; letter-spacing: 0.12em; line-height: 1.1; }
.logo .ja span { color: #ffcf8a; }
.logo .sub { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 7px; letter-spacing: 0.06em; }
.logo .sub b { font-size: 18px; font-weight: 900; }
.logo .sub small { font-size: 12.5px; opacity: 0.85; }
.logo .mlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 0 12px; }
.logo .mlist i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); text-shadow: none; }
.logo { margin-bottom: 22px; }
.tlogo { display: block; width: min(680px, 92vw); height: auto; margin: 0 auto; }
.tlogo .lg-ja { font-family: 'Yuji Syuku', 'Zen Kaku Gothic New', serif; }
.tlogo .lg-pop { font-family: 'Mochiy Pop One', 'Zen Kaku Gothic New', sans-serif; }
.tlogo .lg-en { font-family: var(--num); font-weight: 600; }
.title .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 16px; }
.title .menu .btn { white-space: nowrap; }
@media (max-width: 760px) and (max-height: 820px) { .title .foot { display: none; } }
.title .foot { position: absolute; bottom: 18px; color: rgba(255, 255, 255, 0.5); font-size: 12px; }

/* ---------- 準備画面 ---------- */
.prep { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 8, 16, 0.45); }
.prep .panel { width: min(1060px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; }
.prep h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; }
.prep .lead { color: var(--sub); font-size: 13px; margin-bottom: 16px; }
.prep .grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.prep .row { margin-bottom: 16px; }
.prep .row > label { display: block; font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: 0.08em; margin-bottom: 7px; }
.prep .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.datebox { display: flex; align-items: center; gap: 8px; }
.datebox input { font-family: var(--num); font-size: 18px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
/* 釣り場を選ぶ地図 */
.mapbox { width: min(100%, calc(100vh - 300px), 620px); min-width: 280px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 18px rgba(20,40,50,.16); line-height: 0; }
.baymap { width: 100%; height: auto; display: block; font-family: inherit; user-select: none; }
.m-land { fill: #e9e0c6; }
.m-town { fill: #d9cdb0; opacity: .75; }
.m-hill { fill: none; stroke: #a99c78; stroke-width: 1.1; stroke-linejoin: round; opacity: .75; }
.m-road { fill: none; stroke: #fff8e4; stroke-width: 3; opacity: .85; }
.m-rail { fill: none; stroke: #8c8068; stroke-width: 1.3; stroke-dasharray: 7 4; opacity: .7; }
.m-river { fill: none; stroke: #8fc4cb; stroke-linecap: round; stroke-linejoin: round; }
.m-canal { fill: none; stroke: #8fc4cb; stroke-width: 2.6; stroke-linejoin: round; }
.m-shoal { fill: none; stroke: #c9e4dd; stroke-width: 11; stroke-linejoin: round; }
.m-depth { fill: none; stroke: #fff; stroke-width: 1; }
.m-depth.d1 { opacity: .5; } .m-depth.d2 { opacity: .36; } .m-depth.d3 { opacity: .25; }
.m-lane { fill: none; stroke: #3b7d92; stroke-width: 1.1; stroke-dasharray: 10 7; opacity: .55; }
.m-sound { fill: #2f6f85; font-size: 9.5px; text-anchor: middle; opacity: .7; }
.m-fill { fill: #d4cfc1; stroke: #8f8a78; stroke-width: 1; }
.m-stack { fill: #7c7566; } .m-tank { fill: #9d9786; }
.m-bridge { fill: none; stroke: #6e6a5e; stroke-width: 2.2; opacity: .75; }
.m-beach { fill: #f5e6ae; stroke: #cfbc7c; stroke-width: .8; }
.m-pierline { fill: none; stroke: #5d584c; stroke-width: 2.4; stroke-linecap: round; }
.m-rocks { fill: none; stroke: #5d584c; stroke-width: 1.3; stroke-linecap: round; }
.m-sea-name { fill: #1f6178; font-size: 25px; font-weight: 900; text-anchor: middle; letter-spacing: 3px; opacity: .72; }
.m-ocean { fill: #18536d; font-size: 14px; font-weight: 700; text-anchor: middle; opacity: .75; }
.m-place { fill: #6a6250; font-size: 13px; font-weight: 700; text-anchor: middle; }
.m-river-name { fill: #2f7388; font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #e9e0c6; stroke-width: 3px; }
.m-compass circle { fill: rgba(255,255,255,.72); stroke: #55636a; stroke-width: 1; }
.m-compass path { fill: #55636a; } .m-compass path.n { fill: #c3512c; }
.m-compass text { fill: #33474f; font-size: 11px; font-weight: 700; text-anchor: middle; }
.m-scale path { fill: none; stroke: #33474f; stroke-width: 1.5; }
.m-scale text { fill: #33474f; font-size: 10px; text-anchor: middle; }
.m-border { fill: none; stroke: #6e6a5e; stroke-width: 1.5; }
.m-note { fill: #5d584c; font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #e9e0c6; stroke-width: 3px; }
.m-pin { cursor: pointer; outline: none; }
.m-pin .hit { fill: transparent; }
.m-pin .mark { fill: #1d6f8e; stroke: #fff; stroke-width: 2; transition: transform .15s; transform-origin: 0 0; }
.m-pin .dot { fill: #fff; }
.m-pin .lbl rect { fill: rgba(255,255,255,.94); stroke: #1d6f8e; stroke-width: 1; }
.m-pin .lbl text { fill: #123f50; font-size: 13px; font-weight: 700; text-anchor: middle; }
.m-pin:hover .mark, .m-pin:focus-visible .mark { transform: scale(1.18); }
.m-pin:focus-visible .lbl rect { stroke-width: 2.5; stroke: #123f50; }
.m-pin.on .mark { fill: #e07a2a; transform: scale(1.25); }
.m-pin.on .lbl rect { fill: #e07a2a; stroke: #fff; }
.m-pin.on .lbl text { fill: #fff; }
.m-pin .ring { fill: none; stroke: #e07a2a; stroke-width: 2.5; animation: m-ring 1.8s ease-out infinite; transform-origin: 0 0; }
@keyframes m-ring { from { transform: scale(.6); opacity: .95; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-pin .ring { animation: none; opacity: .6; } }
.m-pin.lock { cursor: default; opacity: .62; }
.m-pin.lock .mark { fill: #8a8a80; stroke-width: 1.5; }
.m-pin.lock .locktxt { fill: #55524a; font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #e9e0c6; stroke-width: 3px; }
.mapinfo { margin-top: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.mapinfo b { display: block; font-size: 16px; }
.mapinfo .t { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.mapinfo p { margin: 3px 0 7px; font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.mapinfo .mths { display: flex; flex-wrap: wrap; gap: 4px; }
.mapinfo .mths span { padding: 2px 8px; border-radius: 99px; background: #e7f1f4; color: #1a5a70; font-size: 11.5px; font-weight: 700; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.area-card { text-align: left; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; }
.area-card b { display: block; font-size: 15px; }
.area-card .t { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.area-card p { margin: 4px 0 0; font-size: 12px; color: var(--sub); line-height: 1.5; }
.area-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 111, 142, 0.18); }
.area-card.lock { opacity: 0.45; cursor: default; }
.daycard { background: var(--panel2); border-radius: 10px; padding: 12px 14px; }
.daycard .big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.daycard .big b { font-size: 26px; font-weight: 900; }
.daycard .kv { display: grid; grid-template-columns: 74px 1fr; gap: 4px 8px; font-size: 13px; }
.daycard .kv span:nth-child(odd) { color: var(--sub); }
canvas.tidechart { width: 100%; height: 170px; display: block; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.prep .go { position: sticky; bottom: -22px; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; margin: 14px -26px -22px; padding: 12px 26px; align-items: center; background: var(--panel, #f4f2ec); border-top: 1px solid var(--line); }
.prep .go .note { color: var(--sub); font-size: 12px; margin-right: auto; }

/* ---------- 散策・釣りの表示 ---------- */
.hud-tl { position: absolute; left: 16px; top: 16px; width: 272px; padding: 12px 14px; }
.clock { display: flex; align-items: baseline; gap: 10px; }
.clock .t { font-family: var(--num); font-size: 40px; font-weight: 700; line-height: 0.9; }
.clock .d { font-size: 12px; color: var(--sub); line-height: 1.4; }
.tidebar { margin-top: 8px; }
canvas.minitide { width: 100%; height: 54px; display: block; }
.tideinfo { display: flex; justify-content: space-between; font-size: 12px; margin-top: 3px; }
.tideinfo b { font-family: var(--num); font-size: 16px; }
.tideinfo { flex-wrap: wrap; }
.lureitem small { display: block; }
.lureitem small.when { margin-top: 3px; color: #1d6f8e; }
.lureitem small.when span { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: rgba(42,143,179,0.12); font-weight: 700; }
.weightdesc { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--sub); }
.weightdesc p { margin: 4px 0; padding: 4px 8px; border-radius: 8px; }
.weightdesc p.on { background: rgba(224,137,44,0.12); color: inherit; }
.onbottom { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 6px; background: #e0892c; color: #fff; font-size: 12px; }
.tideinfo .flow { width: 100%; margin-top: 3px; padding: 2px 8px; border-radius: 8px; background: rgba(42,143,179,0.12); color: #1d6f8e; font-weight: 700; }
.tideinfo .flow .arrow { font-size: 18px; color: #1d6f8e; }
.up { color: var(--accent); font-weight: 700; }
.down { color: var(--warm); font-weight: 700; }
.hud-tr { position: absolute; right: 16px; top: 16px; padding: 10px 14px; font-size: 13px; min-width: 200px; }
.hud-tr .wx { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.hud-tr .wx span:nth-child(odd) { color: var(--sub); }
.hud-tc { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 16px; }
.hud-tc .an { font-weight: 900; font-size: 15px; }
.hud-tc .rest { font-size: 12px; color: var(--sub); }
.hud-bl { position: absolute; left: 16px; bottom: 16px; width: 360px; padding: 12px 14px; }
.methods { display: flex; gap: 6px; margin-bottom: 10px; }
.methods .chip { flex: 1; justify-content: center; font-weight: 700; white-space: nowrap; padding: 7px 8px; }
.lurebox { display: flex; align-items: center; gap: 10px; }
.lureicon { width: 46px; height: 46px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.lurebox .nm { font-weight: 700; font-size: 14px; }
.lurebox .cl { font-size: 12px; color: var(--sub); }
.hints { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 14px; padding: 8px 14px; font-size: 12px; color: var(--sub); white-space: nowrap; }
.hints span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 1180px) { body:not(.touch) .hints { display: none; } }
body.touch .hints { left: auto; right: 10px; bottom: 10px; transform: none; gap: 10px; padding: 6px 10px; font-size: 11px; }
.spotpanel { position: absolute; right: 16px; top: 120px; width: 340px; padding: 14px 16px; }
.spotpanel .nm { font-size: 18px; font-weight: 900; margin-bottom: 2px; }
.spotpanel .ds { font-size: 12px; color: var(--sub); margin-bottom: 10px; line-height: 1.5; }
.obs { display: grid; grid-template-columns: 48px 1fr; gap: 6px 8px; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.obs .k { font-size: 11px; font-weight: 700; color: #fff; background: #6c7680; border-radius: 5px; text-align: center; padding: 1px 0; height: fit-content; margin-top: 2px; }
.obs .k.bait { background: var(--accent); }
.obs .k.sign { background: var(--warm); }
.spotpanel .meth { font-size: 12px; color: var(--sub); margin-bottom: 10px; }
.spotpanel .taken { color: var(--bad); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.label3d { position: absolute; transform: translate(-50%, -100%); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; padding: 3px 8px; border-radius: 6px;
  background: rgba(10, 20, 30, 0.6); border: 1px solid rgba(127, 224, 255, 0.5); text-shadow: 0 1px 2px #000; }
.label3d.taken { border-color: rgba(255, 138, 106, 0.6); }
.komase { font-family: var(--num); letter-spacing: 1px; color: #b07a20; }
.hooked { color: var(--good); }
/* 釣果カード：持ち帰る */
.catch .albinoTag { display: inline-block; background: linear-gradient(90deg, #d84a78, #f0b040); color: #fff; font-size: 12px; font-weight: 900; padding: 2px 10px; border-radius: 6px; letter-spacing: .1em; margin-bottom: 4px; }
.catch .btns { display: flex; gap: 8px; }
.catch .btns .btn { flex: 1; padding-left: 8px; padding-right: 8px; }
.catch .keepone { margin-left: 4px; font-size: 11px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.catch .keepone:disabled { opacity: .55; cursor: default; }
.catch .prompt { margin: 0 0 12px; padding: 10px; border-radius: 8px; background: var(--panel2); font-size: 13px; }
.catch .prompt .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.catch .prompt button { font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
/* 図鑑のアルビノ */
.ztally { margin-bottom: 10px; font-size: 13px; color: var(--sub); }
.zalb { display: grid; grid-template-columns: 76px 1fr; gap: 8px; margin-top: 8px; padding: 6px; border-radius: 8px; background: linear-gradient(90deg, #fbeef2, #fdf5e4); border: 1px solid #efc9a8; font-size: 12px; }
.zalb .zimg { margin: 0; background: #2a3a48; }
.zalb b { display: block; font-size: 12px; color: #c0395f; }
.zalb .num { font-size: 15px; font-weight: 700; }
.zalb small { display: block; font-size: 10px; color: var(--sub); }
/* 水槽 */
.tankhud { position: absolute; inset: 0; pointer-events: none; }
.tankhud > * { pointer-events: auto; }
.tanktitle { position: absolute; left: 18px; top: 16px; padding: 10px 16px; }
.tanktitle b { font-size: 18px; font-weight: 900; display: block; }
.tanktitle small { color: var(--sub); font-size: 12px; }
.tanklist { position: absolute; right: 16px; top: 16px; width: 260px; display: flex; flex-direction: column; gap: 8px; }
.tankslot { padding: 8px 10px; display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; cursor: pointer; }
.tankslot.on { outline: 2px solid var(--accent); }
.tankslot.empty { cursor: default; grid-template-columns: 1fr; color: var(--faint); font-size: 12px; text-align: center; padding: 16px 10px; }
.tankslot img { width: 74px; aspect-ratio: 2 / 1; object-fit: contain; border-radius: 6px; background: #1b3a48; }
.tankslot b { font-size: 14px; display: block; }
.tankslot .al { color: #c0395f; font-size: 11px; font-weight: 900; }
.tankslot small { display: block; font-size: 10.5px; color: var(--sub); line-height: 1.45; }
.tankslot .rel { margin-top: 3px; font-size: 11px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.tankback { position: absolute; left: 18px; bottom: 16px; }
@media (max-width: 720px) { .tanklist { left: 16px; right: 16px; top: auto; bottom: 66px; width: auto; flex-direction: row; overflow-x: auto; } .tankslot { min-width: 220px; } }
.catch .multi { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 12px; font-size: 13px; }
.catch .multi b { font-size: 18px; }
.catch .multi i { font-style: normal; font-size: 11px; color: #fff; background: #e0892c; border-radius: 4px; padding: 0 4px; }

/* タックル選択 */
.drawer { position: absolute; left: 16px; bottom: 150px; width: 430px; max-height: calc(100% - 300px); overflow: auto; padding: 14px; }
.lurelist { display: grid; gap: 6px; }
.lureitem { display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.lureitem.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(29, 111, 142, 0.2); }
.lureitem b { font-size: 13px; display: block; }
.lureitem small { font-size: 11px; color: var(--sub); }
.colors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 釣り人との会話 */
.talkprompt { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; font-size: 13px; }
.talkprompt .who, .talkbox .who { font-weight: 900; }
.talkbox { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); padding: 14px 18px; }
.talkbox .who { font-size: 15px; margin-bottom: 6px; }
.talkbox .who small { font-weight: 500; color: var(--sub); margin-left: 8px; font-size: 12px; }
.talkbox p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; padding-left: 12px; border-left: 3px solid var(--line); }
.talkbox .ttag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 18px; vertical-align: 1px; background: #1f4f78; color: #fff; }
.talkbox .ttag.gen { background: #e6e2d8; color: #4a4640; }
.talkbox p.angry { color: #b3261e; font-weight: 800; border-left-color: #b3261e; }
/* ガイド */
.guide { margin-top: 8px; background: var(--panel2); border-radius: 8px; padding: 6px 8px; }
.guide .gh { font-size: 11px; font-weight: 700; color: var(--sub); letter-spacing: 0.08em; margin-bottom: 2px; }
.guide .gr { display: grid; grid-template-columns: 44px 18px 1fr; gap: 4px; align-items: baseline; font-size: 12px; line-height: 1.5; }
.guide .gk { color: var(--sub); font-size: 11px; }
.guide b { font-size: 14px; text-align: center; }
.guide .g4 { color: var(--good); } .guide .g3 { color: var(--accent); } .guide .g2 { color: var(--warm); } .guide .g1 { color: var(--bad); }

/* 釣り中 */
.fishhud-l { position: absolute; left: 16px; bottom: 16px; width: 290px; padding: 12px 14px; font-size: 13px; }
.speed { display: flex; gap: 4px; margin-top: 6px; }
.speed button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 0; font-family: var(--num); font-size: 16px; font-weight: 700; }
.speed button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
#f-depth { flex-wrap: wrap; }
.meter { height: 8px; border-radius: 4px; background: #e4dfd3; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); }
.fishkeys { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; }
.fkey { min-width: 104px; padding: 10px 14px; border-radius: 12px; border: none; background: rgba(250, 248, 243, 0.93); box-shadow: var(--shadow); text-align: center;
  font-size: 14px; font-weight: 900; color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; }
.fkey small { display: block; font-size: 11px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.fkey.hot { background: var(--warm); color: #fff; }
.fkey.hot small { color: rgba(255, 255, 255, 0.85); }
.fkey.active { background: var(--accent); color: #fff; }
.fkey.active small { color: rgba(255, 255, 255, 0.85); }
.inset { position: absolute; border-radius: 14px; border: 3px solid rgba(250, 248, 243, 0.95); box-shadow: var(--shadow); pointer-events: none; }
.inset span { position: absolute; left: 8px; top: 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; letter-spacing: 0.08em; }
.castgauge { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: 300px; padding: 8px 12px; }
.castgauge .meter { height: 12px; }
.castgauge .meter > i { background: linear-gradient(90deg, #2a8fb3, #e0892c); }
.status { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); padding: 7px 16px; font-size: 14px; font-weight: 700; }
.fight { position: absolute; left: 50%; top: 72px; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); padding: 10px 12px; pointer-events: auto; }
.fight .fstate { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 54px; }
.fight .fstate b { font-size: 17px; font-weight: 900; }
.fight .fstate small { font-size: 12px; color: var(--sub); }
.fight .fstate.turn b { color: var(--warm); }
.fight .fstate.bad b { color: var(--bad); }
.fight .fstate.tired b { color: var(--good, #2f8f5b); }
.fight .fbar { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; }
.fight .fbar > span:first-child { flex: none; }
.fight .fbar .meter, .fight .fbar .tension { flex: 1; margin: 0; }
.fight .fbar .meter i { background: var(--warm); }
.fight .pips { flex: none; width: 52px; text-align: right; font-weight: 700; }
.fight .fdrag { flex: none; white-space: nowrap; }
.fight .fdrag small { color: var(--sub); }
.fight .fbar .warn { margin: 0; font-size: 13px; min-height: 0; }
.fight.easy { width: min(260px, calc(100vw - 32px)); }
.fight.easy .fbar:not(:nth-child(4)) { display: none; }
.fight.easy .fbar .meter { display: none; }
.fight .fbar .meter.line i { background: #2a8fb3; }
.fight .fdragrow { justify-content: space-between; }
.tension > u { position: absolute; top: 0; bottom: 0; right: 0; background: #c2453a; }
.fight.easy .fstate { min-height: 30px; }
.infight .fishkeys .fkey:not(#k-main) { display: none; }
.tension { position: relative; height: 18px; border-radius: 9px; background: #e4dfd3; overflow: hidden; margin: 6px 0 2px; }
.tension > i { position: absolute; top: 0; bottom: 0; width: 4px; background: var(--ink); border-radius: 2px; }
.tension > s { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.fight .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); }
.fight .warn { margin-top: 8px; font-weight: 900; color: var(--bad); font-size: 14px; min-height: 20px; }

/* 釣果 */
.catch { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 360px; padding: 20px 22px; }
.catch .sp { font-size: 30px; font-weight: 900; }
.catch .main { display: flex; gap: 16px; align-items: baseline; margin: 6px 0 12px; }
.catch .main b { font-family: var(--num); font-size: 44px; line-height: 1; }
.catch .main small { font-size: 16px; color: var(--sub); margin-left: 2px; }
.catch .rec { display: inline-block; background: var(--warm); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.catch .kv { display: grid; grid-template-columns: 70px 1fr; gap: 4px 8px; font-size: 13px; margin-bottom: 16px; }
.catch .kv span:nth-child(odd) { color: var(--sub); }

/* まとめ・記録 */
.sheet { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 8, 16, 0.55); }
.sheet .panel { width: min(900px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; }
.sheet h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; color: var(--sub); font-weight: 700; padding: 6px 8px; border-bottom: 2px solid var(--line); }
.table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.table td.n { font-family: var(--num); font-size: 16px; font-weight: 600; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.zcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.zcard b { font-size: 16px; }
.zcard .n { font-family: var(--num); font-size: 22px; font-weight: 700; }
.zcard.unk { color: var(--faint); background: var(--panel2); }
.zimg { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: contain; margin-bottom: 6px; border-radius: 8px; background: linear-gradient(180deg, #eaf1f4, #d5e2e8); }
.zcard.unk .zimg { filter: brightness(0) opacity(0.28); background: none; }
.answer { background: var(--panel2); border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.75; margin: 12px 0; }
.answer b { color: var(--accent); }
.stat { display: flex; gap: 24px; margin-bottom: 8px; }
.stat div { font-size: 12px; color: var(--sub); }
.stat b { display: block; font-family: var(--num); font-size: 34px; color: var(--ink); }

#toast { position: fixed; left: 50%; top: 36%; transform: translate(-50%, -50%); pointer-events: none; text-align: center; }
#toast .t { display: inline-block; padding: 10px 22px; border-radius: 12px; background: rgba(15, 22, 30, 0.82); color: #fff; font-size: 18px; font-weight: 900;
  letter-spacing: 0.04em; animation: pop 1.6s forwards; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
#toast .t.good { background: rgba(224, 137, 44, 0.95); }
#toast .t.bad { background: rgba(160, 50, 40, 0.92); }
@keyframes pop { 0% { opacity: 0; transform: translateY(8px) scale(0.96); } 10% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
#fade { position: fixed; inset: 0; background: #05070d; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
#fade.on { opacity: 1; }

@media (max-width: 760px) and (min-height: 521px) {
  .prep .grid { grid-template-columns: 1fr; }
  .logo .ja { font-size: 40px; }
  .hud-tl { width: 220px; }
  .hud-tr, .hints { display: none; }
  .spotpanel { left: 16px; right: 16px; width: auto; top: auto; bottom: 170px; }
  .hud-bl { width: auto; right: 16px; }
  .catch { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; transform: none; }
}

/* 遊び方の切りかえ */
.title .modes { display: flex; gap: 10px; margin: 0 0 16px; }
.title .mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 210px; padding: 10px 16px; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); background: rgba(10,20,30,.45); color: #fff; text-align: left; cursor: pointer; }
.title .mode b { font-size: 16px; }
.title .mode small { font-size: 12px; opacity: .8; }
.title .mode.on { background: rgba(255,255,255,.95); color: var(--ink); border-color: #fff; }
.title .mode:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
.pm { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 99px; background: #e7f1f4; color: #1a5a70; font-size: 12px; font-weight: 700; vertical-align: middle; }
.stars { display: flex; flex-wrap: wrap; gap: 5px; }
.stars span { padding: 3px 10px; border-radius: 99px; background: #fbeedd; color: #8a4a12; font-size: 12.5px; font-weight: 700; }
@media (max-width: 640px) { .title .modes { flex-direction: column; } .title .mode { min-width: 0; width: min(320px, 86vw); } }

/* レア個体の色分け */
.vname { font-size: .8em; color: #c0395f; }
.vname.v-melanic, .al.v-melanic { color: #2a2c33; }
.vname.v-golden, .al.v-golden { color: #b07a10; }
.vname.v-scarred, .al.v-scarred { color: #7a4a32; }
.catch .albinoTag.v-melanic { background: linear-gradient(90deg, #1c1e24, #5a5e6a); }
.catch .albinoTag.v-golden { background: linear-gradient(90deg, #b8860b, #f4cf5a); color: #3a2800; }
.catch .albinoTag.v-scarred { background: linear-gradient(90deg, #6a3e2a, #b08060); }
.zalb.v-melanic { background: linear-gradient(90deg, #e8e9ee, #f4f4f6); border-color: #9a9ca8; }
.zalb.v-melanic b { color: #2a2c33; }
.zalb.v-golden { background: linear-gradient(90deg, #fbf1d6, #fdf8e8); border-color: #e4c070; }
.zalb.v-golden b { color: #a06c08; }
.zalb.v-scarred { background: linear-gradient(90deg, #f4ebe4, #faf4ef); border-color: #d0a888; }
.zalb.v-scarred b { color: #7a4a32; }

/* ファイト中に見えてきた魚と、逃した魚 */
.fight .fid { font-size: 13px; font-weight: 700; text-align: center; padding: 4px 8px; border-radius: 8px; background: #eef2f4; color: #33474f; }
.fight .fid.s1 { background: #e3eef2; color: #1d5a70; }
.fight .fid.s2 { background: #fbeedd; color: #8a4a12; }
.lostcard { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 340px; padding: 18px 20px; text-align: center; }
.lostcard .lk { font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--bad); }
.lostcard .limg { height: 120px; margin: 8px 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(#2a4a5a, #183040); overflow: hidden; }
.lostcard .limg img { max-width: 92%; max-height: 110px; }
.lostcard .limg.s1 img { filter: brightness(0) opacity(.75); }
.lostcard .limg span { font-size: 56px; font-weight: 900; color: rgba(255,255,255,.55); }
.lostcard .sp { font-size: 20px; font-weight: 900; }
.lostcard .lline { margin-top: 4px; font-size: 13px; color: var(--ink); }
.lostcard .lmsg { margin-top: 4px; font-size: 12px; color: var(--sub); }
.lostcard .btns { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.lostcard .btn small { display: block; font-size: 10px; font-weight: 400; }
@media (max-width: 640px) { .lostcard { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; transform: none; } }

/* ステータスと称号 */
.statuspanel h3 { font-size: 13px; margin: 14px 0 6px; color: var(--sub); }
.shead .sclose { margin-left: auto; align-self: flex-start; flex: none; }
.shead { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.shead small { color: var(--sub); font-size: 12px; font-weight: 700; }
.shead h2 { margin: 2px 0; font-size: 24px; font-weight: 900; }
.shead p { margin: 0; color: var(--sub); font-size: 13px; }
.shead .tnote { margin-top: 4px; font-size: 11.5px; color: var(--faint); }
.shead .tcount { margin-left: auto; font-size: 13px; color: var(--sub); }
.shead .tcount b { font-size: 22px; color: var(--ink); }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.sk { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.sk span { font-size: 11px; color: var(--sub); }
.sk .sv { font-size: 12px; }
.sk b { font-size: 18px; margin-right: 2px; }
.scols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sbars { display: flex; flex-direction: column; gap: 4px; }
.sbar { display: grid; grid-template-columns: 7.5em 1fr 3.5em; align-items: center; gap: 6px; font-size: 12px; }
.sbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbar span small { display: block; font-size: 10px; color: var(--sub); }
.sbar i { display: block; height: 8px; border-radius: 4px; background: var(--accent); min-width: 2px; }
.sbar b { text-align: right; font-size: 13px; }
.snone { color: var(--sub); font-size: 12px; margin: 2px 0; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ttl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: #f3f2ee; text-align: left; color: var(--faint); font: inherit; }
.ttl.got { background: #fff; color: var(--ink); cursor: pointer; }
.ttl.got:hover, .ttl.got:focus-visible { border-color: var(--accent); }
.ttl.pin { border: 2px solid var(--warm); }
.ttl b { display: block; font-size: 14px; }
.ttl small { display: block; font-size: 11px; color: var(--sub); line-height: 1.4; }
.ttl .tprog { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #e2e0d8; overflow: hidden; }
.ttl .tprog i { display: block; height: 100%; background: #b8b4a6; }
.tmark { flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.newtitles { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 860px) { .sgrid { grid-template-columns: repeat(2, 1fr); } .scols, .tgrid { grid-template-columns: 1fr; } }

/* 水の中の断面図 */
.depthfig { margin-top: 8px; }
.depthfig:empty { display: none; }
.depthfig svg { display: block; width: 100%; height: auto; border-radius: 8px; background: #eef1f0; font-family: var(--num), sans-serif; }
#f-hud.infight .depthfig { display: none; }

/* 音のオン・オフ */
.sndbtn.off { opacity: 0.6; text-decoration: line-through; }
.title .tsnd { position: absolute; top: 14px; right: 16px; }

/* ---------- スマホ（指の操作・横向き） ---------- */
canvas#gl { touch-action: none; }
body.touch { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.touch kbd { display: none; }
#ui { left: env(safe-area-inset-left); right: env(safe-area-inset-right); }
.dragset { display: inline-flex; align-items: center; gap: 6px; }
.dragset button { width: 30px; height: 26px; padding: 0; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; font-weight: 900; line-height: 1; touch-action: manipulation; }
.dragset button:active { background: var(--accent); color: #fff; }
.dragset b { min-width: 14px; text-align: center; font-size: 17px; }
.only-compact { display: none; }
/* 縦向きのときは「横にしてください」 */
#rotate { display: none; }
@media (orientation: portrait) {
  body.touch #rotate { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #0b1420; color: #fff; }
}
#rotate .ph { width: 58px; height: 96px; margin: 0 auto 22px; border: 4px solid #fff; border-radius: 12px; animation: tilt 2.4s ease-in-out infinite; }
#rotate b { display: block; font-size: 18px; }
#rotate small { display: block; margin-top: 6px; font-size: 13px; opacity: .75; }
@keyframes tilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
/* 釣りのボタン：右手の親指で押す位置にまとめる */
.tkeys { left: auto; right: 14px; bottom: 12px; transform: none; display: grid; grid-template-columns: auto auto; grid-template-areas: "walk walk" "pick main" "hook main"; gap: 10px; align-items: end; justify-items: center; }
.tkeys .walk { grid-area: walk; display: flex; gap: 10px; justify-self: end; }
.tkeys .walk .fkey { min-width: 0; width: 62px; height: 46px; padding: 0; font-size: 18px; }
.tkeys #k-pick { grid-area: pick; min-width: 0; width: 76px; padding: 8px 0; border-radius: 99px; font-size: 13px; }
.tkeys #k-hook { grid-area: hook; min-width: 0; width: 82px; height: 82px; padding: 0; border-radius: 50%; font-size: 14px; line-height: 1.25; }
.tkeys #k-main { grid-area: main; min-width: 0; width: 116px; height: 116px; padding: 0 8px; border-radius: 50%; font-size: 19px; }
.tkeys .fkey small { font-size: 10px; line-height: 1.3; }
.tkeys .crank { position: relative; background: radial-gradient(circle, rgba(250, 248, 243, 0.96) 0 40%, rgba(214, 222, 228, 0.93) 41% 100%); }
.tkeys .crank.active { background: radial-gradient(circle, var(--accent) 0 40%, rgba(214, 222, 228, 0.93) 41% 100%); }
.tkeys .crank .knob { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.tkeys .crank .knob::after { content: ''; position: absolute; left: 50%; top: 5px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--warm); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }

/* 高さの低い画面（横向きのスマホ）：表示を小さく、端に寄せる */
@media (max-height: 520px) {
  .only-compact { display: inline-flex; }
  .hud-tl { left: 10px; top: 8px; width: 210px; padding: 7px 10px; }
  .clock .t { font-size: 26px; }
  .clock .d { font-size: 10.5px; line-height: 1.3; }
  .tidebar { margin-top: 4px; }
  canvas.minitide { height: 30px; }
  .tideinfo { font-size: 10.5px; }
  .tideinfo b { font-size: 13px; }
  .tideinfo .flow { padding: 1px 6px; }
  .tideinfo .flow .arrow { font-size: 14px; }
  .hud-tr { top: 8px; right: 10px; padding: 6px 10px; font-size: 11px; min-width: 0; }
  .hud-tr .wx { grid-template-columns: auto auto auto auto; gap: 2px 8px; }
  .hud-tc { top: 8px; padding: 4px; gap: 6px; }
  .hud-tc .an, .hud-tc .rest { display: none; }
  body.fighting .hud-tl, body.fighting .hud-tr { display: none; }
  .hud-bl { left: 10px; bottom: 8px; width: 300px; padding: 8px 10px; }
  .hud-bl h3 { display: none; }
  .methods { flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
  .methods .chip { flex: 0 0 auto; padding: 5px 9px; font-size: 12px; }
  .lureicon { width: 36px; height: 36px; }
  .lureicon svg { width: 32px; height: 32px; }
  .spotpanel { top: 60px; right: 10px; width: 300px; max-height: calc(100% - 70px); overflow: auto; padding: 10px 12px; }
  .spotpanel .nm { font-size: 15px; }
  .spotpanel .ds { margin-bottom: 6px; }
  .spotpanel #s-go { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 3px 0 #a55f15, 0 -6px 14px rgba(250, 248, 243, 0.95); }
  .drawer { top: 8px; bottom: 8px; left: 10px; width: min(440px, 62vw); max-height: none; }
  .talkprompt { bottom: 10px; left: auto; right: 10px; transform: none; }
  .talkbox { max-height: calc(100% - 20px); overflow: auto; }
  .fishhud-l { left: 10px; bottom: 8px; width: 236px; padding: 8px 10px; font-size: 12px; max-height: calc(100% - 152px); overflow: auto; }
  .fishhud-l .lurebox { display: none; }
  .fishhud-l > .row2:first-child { margin-top: 0; }
  .fishhud-l .row2 { margin-top: 5px; }
  .fishhud-l .btnrow { margin-top: 6px !important; }
  .speed button { padding: 3px 0; font-size: 15px; }
  #f-hud:not(.showguide) .fishhud-l .guide { display: none; }
  #f-hud.infight .fishhud-l > :not(.dragrow) { display: none; }
  .fight { top: 54px; padding: 8px 10px; width: min(400px, calc(100vw - 300px)); }
  .fight .fstate { min-height: 40px; }
  .fight .fstate b { font-size: 15px; }
  .status { top: 50px; }
  .castgauge { top: 50px; bottom: auto; width: 240px; }
  .catch { top: 8px; bottom: 8px; right: 4%; width: 340px; transform: none; overflow: auto; padding: 12px 16px; }
  .catch .sp { font-size: 22px; }
  .catch .main b { font-size: 34px; }
  .lostcard { top: 8px; right: 4%; transform: none; max-height: calc(100% - 16px); overflow: auto; padding: 12px 14px; }
  .lostcard .limg { height: 80px; }
  .sheet, .prep { padding: 8px; }
  .sheet .panel, .prep .panel { padding: 14px 16px; }
  .prep .go { bottom: -14px; margin: 10px -16px -14px; padding: 10px 16px; }
  #toast { top: 30%; }
  #toast .t { font-size: 15px; padding: 8px 16px; }
  /* タイトル：左にロゴ、右に遊び方とメニュー */
  .title { display: grid; grid-template-columns: auto minmax(0, 300px); grid-template-rows: auto auto; justify-content: center; align-content: center; column-gap: 24px; row-gap: 12px; padding: 0 16px; }
  .title .logo { grid-row: 1 / 3; margin: 0; align-self: center; }
  .tlogo { width: min(400px, 50vw); }
  .logo .sub { gap: 5px; }
  .logo .sub b { font-size: 14px; }
  .logo .sub small { font-size: 11px; }
  .logo .mlist { max-width: min(400px, 50vw); margin: 0 auto; }
  .logo .mlist i { font-size: 11px; padding: 2px 7px; }
  .title .modes { flex-direction: column; margin: 0; align-self: end; }
  .title .mode { min-width: 0; width: 100%; padding: 7px 12px; }
  .title .menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; align-self: start; }
  .title .menu .btn.big { padding: 10px 8px; font-size: 15px; }
  .title .foot { display: none; }
}