/* =============================================================
   ギャラクシーオンライン — 画面の見た目
   配色は galaxy に合わせる（暗い紺・半透明の窓・青の差し色）。
   左上＝Lv10メニュー、左下＝mp3プレーヤーの予約。HUD は右と上中央に置く。
   ============================================================= */
:root{
    --bg:#05070b; --panel:rgba(14,19,30,.86); --panel2:rgba(22,28,42,.92);
    --line:rgba(122,160,214,.28); --line2:rgba(122,160,214,.5);
    --text:#e8ecf4; --sub:#9aa4b8; --accent:#4da3ff; --danger:#ff5c6e; --ok:#46d18a; --warn:#ffd166; --purple:#b48cff;
    --ui倍:1;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; width:100%; height:100%; background:var(--bg); color:var(--text);
    font-family:"Yu Gothic UI","Segoe UI","Noto Sans JP",sans-serif; overflow:hidden; overscroll-behavior:none; user-select:none; }
#app{ position:fixed; inset:0; overflow:hidden; }
#game-canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }

.btn{ appearance:none; border:1px solid var(--line2); background:rgba(24,32,48,.88); color:var(--text);
    padding:7px 14px; border-radius:6px; font:inherit; font-size:14px; cursor:pointer; transition:background .12s, border-color .12s, transform .08s; }
.btn:hover:not(:disabled){ background:rgba(46,62,92,.95); border-color:#7fb8ff; }
.btn:active:not(:disabled){ transform:translateY(1px); }
.btn:disabled, .btn.買えない{ opacity:.38; cursor:default; }
.btn:focus-visible, .btn.lv10-フォーカス, .btn:focus{ outline:2px solid #ffd166; outline-offset:1px; }
.btn-main{ background:linear-gradient(180deg,#2f7fe0,#1f5cb0); border-color:#6fb0ff; font-weight:bold; }
.btn-main:hover:not(:disabled){ background:linear-gradient(180deg,#3b8ff5,#2569c4); }
.btn.is-on{ background:rgba(77,163,255,.32); border-color:#9fd0ff; box-shadow:inset 0 0 0 1px #4da3ff; }
.btn.小{ padding:4px 9px; font-size:12px; }

/* ---------------- タイトル ---------------- */
#題{ position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px;
    background:var(--bg); }
#題[hidden]{ display:none; }
/* v1.2.1: 読み込み中の輪（止まった時・選ぶ窓を出した時は消す） */
.読込-輪{ width:46px; height:46px; border-radius:50%; border:3px solid rgba(77,163,255,.18); border-top-color:#4da3ff; animation:読込回 .9s linear infinite; }
#題.止 .読込-輪{ display:none; }
@keyframes 読込回{ to{ transform:rotate(360deg); } }
.題-文字{ text-align:center; text-shadow:0 0 24px rgba(77,163,255,.6), 0 2px 4px #000; animation:題光 4s ease-in-out infinite; }
.題-年{ letter-spacing:.6em; color:#9fd0ff; font-size:15px; margin-bottom:6px; }
.題-名{ margin:0; font-size:clamp(34px,6.5vw,76px); letter-spacing:.08em; font-weight:900;
    background:linear-gradient(180deg,#ffffff 20%,#9fd0ff 60%,#4da3ff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.題-名 span{ display:block; font-size:.42em; letter-spacing:.55em; margin-top:4px; }
@keyframes 題光{ 50%{ filter:brightness(1.18); } }
.題-釦{ display:flex; flex-direction:column; gap:10px; min-width:260px; }
.題-釦 .btn{ font-size:17px; padding:11px 18px; }
.題-釦 small{ display:block; font-size:11px; font-weight:normal; opacity:.8; margin-top:2px; }
.題-版{ position:absolute; right:14px; bottom:10px; color:var(--sub); font-size:12px; }

/* ---------------- HUD ---------------- */
#hud{ position:absolute; inset:0; pointer-events:none; z-index:3; font-size:calc(13px * var(--ui倍)); }
#hud[hidden]{ display:none; }
#hud > *{ pointer-events:auto; }
#hud-上{ position:absolute; top:10px; left:50%; transform:translateX(-50%); text-align:center; white-space:nowrap;
    padding:6px 16px; background:linear-gradient(180deg,rgba(8,12,20,.8),rgba(8,12,20,.4)); border:1px solid var(--line); border-radius:8px; pointer-events:none; }
.hud-名{ font-size:1.45em; font-weight:bold; margin-right:10px; letter-spacing:.04em; }
.hud-印{ display:inline-block; margin:0 3px; padding:1px 8px; border-radius:10px; font-size:.92em; border:1px solid var(--色,#9aa4b8); color:var(--色,#c8d0e0); background:rgba(0,0,0,.35); }
.hud-印.赤{ color:#ff8a8a; }
.hud-航行{ margin-top:4px; color:#ffd166; font-size:.95em; }
.hud-大型{ margin-top:5px; color:#ffd0d0; font-size:.95em; }
.棒.大型{ width:min(420px,60vw); height:8px; margin:4px auto 0; background:rgba(255,92,110,.15); }
.棒.大型 > i{ background:linear-gradient(90deg,#ff5c6e,#ffb070); box-shadow:0 0 8px #ff5c6e; transition:width .6s; }
.hud-航行.緑{ color:#7fffd4; } .hud-航行.紫{ color:#c8a8ff; }
#hud-標的{ position:absolute; top:126px; left:50%; transform:translateX(-50%); min-width:260px; text-align:center; }
#hud-標的:empty{ display:none; }
#hud-標的{ padding:8px 14px; background:var(--panel); border:1px solid var(--line); border-radius:8px; }
.標-名{ font-weight:bold; font-size:1.1em; }
.標-副{ color:var(--sub); font-size:.9em; margin:2px 0 5px; }
.標-釦{ margin-top:6px; }
#hud-右{ position:absolute; top:10px; right:10px; width:calc(214px * var(--ui倍)); display:flex; flex-direction:column; gap:8px; align-items:stretch; }
.hud-釦列{ display:flex; flex-wrap:wrap; gap:4px; justify-content:flex-end; }
#hud-推進{ touch-action:none; user-select:none; }
#hud-推進.押下{ background:#bfe8ff; color:#04121f; box-shadow:0 0 10px #bfe8ff; }
#hud-資{ padding:9px 12px; background:var(--panel); border:1px solid var(--line); border-radius:8px; }
.hud-艦長{ font-size:1.05em; } .hud-艦長 b{ color:#ffd166; }
.hud-金{ font-size:1.5em; font-weight:bold; color:#ffe27a; margin-top:5px; } .hud-金 small{ font-size:.55em; color:var(--sub); }
.hud-行{ color:#c8d0e0; margin-top:2px; }
#hud-資 .hud-印{ margin:5px 3px 0 0; }
#hud-レーダー{ width:calc(200px * var(--ui倍)); height:calc(200px * var(--ui倍)); align-self:flex-end; }
#hud-艦隊{ position:absolute; right:10px; bottom:10px; display:flex; gap:6px; flex-wrap:wrap-reverse; justify-content:flex-end; max-width:calc(100vw - 340px); }
.hud-艦{ width:calc(118px * var(--ui倍)); padding:5px 7px; background:var(--panel); border:1px solid var(--line); border-radius:8px; }
.hud-艦.旗{ border-color:#7fb8ff; box-shadow:0 0 12px rgba(77,163,255,.35); }
.hud-艦.大破{ opacity:.55; cursor:pointer; } .hud-艦.大破:hover{ opacity:.8; }
.hud-艦 img{ width:100%; height:calc(38px * var(--ui倍)); object-fit:contain; display:block; }
.hud-艦名{ font-size:.85em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#hud-艦隊.多{ gap:4px; }
#hud-艦隊.多 .hud-艦{ width:calc(84px * var(--ui倍)); padding:3px 5px; }
#hud-艦隊.多 .hud-艦 img{ height:calc(26px * var(--ui倍)); }
#hud-艦隊.多 .hud-艦名{ font-size:.75em; } #hud-艦隊.多 .hud-特{ font-size:.7em; }
.hud-特{ font-size:.8em; color:var(--sub); margin-top:2px; } .hud-特.可{ color:#ffd166; }
.棒{ height:5px; background:rgba(255,255,255,.1); border-radius:3px; overflow:hidden; margin-top:3px; }
.棒 > i{ display:block; height:100%; background:#46d18a; transition:width .15s; }
.棒.盾 > i{ background:#5ec8ff; }
/* HUD の棒は 80_画面.js が scaleX で動かす（幅を変えるとレイアウトが毎回走る）。0.1秒ごとに書くのでアニメは付けない */
#hud-艦隊 .棒 > i, #hud-標的 .棒 > i{ transition:none; transform-origin:left center; }
#hud-資, #hud-標的{ contain:layout paint; } .hud-艦{ contain:layout; }
#hud-右, #hud-艦隊, #hud-上, #hud-標的{ will-change:transform; }   /* 毎フレーム動く canvas の上に重なるので、各枠を自分の層に分けて描き直しを枠の中に閉じる */
.棒.経験 > i{ background:#ffd166; }
#入星{ position:absolute; top:34%; left:0; right:0; text-align:center; pointer-events:none; opacity:0; text-shadow:0 0 16px rgba(77,163,255,.7), 0 2px 3px #000; }
#入星.is-on{ animation:入星 3.2s ease-out forwards; }
.入星-名{ font-size:clamp(28px,4.5vw,52px); font-weight:900; letter-spacing:.12em; }
.入星-副{ font-size:16px; color:#c8dcff; margin-top:6px; letter-spacing:.2em; }
.入星-副.入星-警{ color:#ffb0b8; text-shadow:0 0 12px rgba(255,92,110,.8), 0 2px 3px #000; }
@keyframes 入星{ 0%{ opacity:0; transform:scale(1.15); letter-spacing:.4em; } 15%{ opacity:1; transform:scale(1); } 75%{ opacity:1; } 100%{ opacity:0; } }

/* ---------------- 星図 ---------------- */
#星図{ position:absolute; inset:0; z-index:20; background:#05070b; }
#星図[hidden]{ display:none; }
#星図-canvas{ width:100%; height:100%; display:block; cursor:grab; }
#星図-札{ position:absolute; right:12px; top:56px; width:280px; padding:12px 14px; background:var(--panel); border:1px solid var(--line); border-radius:10px; }
.札-名{ font-size:20px; font-weight:bold; margin-bottom:6px; }
.札-首都{ font-size:12px; padding:1px 7px; border:1px solid #ffd166; color:#ffd166; border-radius:9px; vertical-align:middle; }
.札-行{ margin:4px 0; color:#d4dae6; }
.札-印{ display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.札-淡{ color:var(--sub); } .札-赤{ color:#ff8a8a; } .札-紫{ color:#c8a8ff; } .札-港{ color:#e8ecf4; }
.札-釦{ display:flex; gap:8px; margin-top:12px; } .札-釦 .btn{ flex:1; }
#星図-札{ max-height:calc(100vh - 80px); overflow-y:auto; width:320px; }
.札-依頼{ color:#ffd166; } .札-掲{ font-size:.9em; }
.札-小見出し{ margin-top:10px; padding-top:6px; border-top:1px solid var(--line); color:#7fd4ff; font-size:.88em; }

/* ---------------- 窓 ---------------- */
/* v1.4.9 台詞（DG1 セリフ.css の寸法を写す。宇宙に重ねるので一回り小さく、押せない） */
.台詞層{ position:absolute; left:50%; transform:translateX(-50%); width:min(62vw,110vh); aspect-ratio:16/9; container-type:size;
    z-index:10; pointer-events:none; font-family:"Yu Mincho","Noto Serif JP",serif; }
.台詞層上{ top:56px; } .台詞層下{ bottom:72px; }
.台詞-吹出{ position:absolute; left:0; margin-left:-1.6cqw; width:100cqw; height:60cqh; background-size:100% 100%; background-repeat:no-repeat;
    opacity:0; transition:opacity .25s; }
.台詞-吹出.出{ opacity:1; }
.台詞-吹出.弾{ animation:台詞弾 .3s ease-out; }
@keyframes 台詞弾{ 0%{ transform:translateY(6px) scale(.98); } 100%{ transform:none; } }
.台詞-上{ top:0; } .台詞-下{ bottom:0; }
.台詞-吹出.語り{ width:80cqw; height:28cqh; margin:1cqw; left:10cqw; background-color:rgba(63,63,63,.65); border:1px solid rgba(180,180,200,.4); border-radius:8px; }
.台詞-吹出.語り .台詞-中身{ padding:3cqh 3cqw; text-align:center; }
.台詞-吹出.語り .台詞-本文{ padding-left:0; font-size:2.3cqw; }
.台詞-吹出.語り .台詞-名{ display:none; }
.台詞-中身{ display:flex; flex-direction:column; justify-content:center; box-sizing:border-box; width:100%; height:100%; color:#fff; text-shadow:2px 2px 4px #000; }
.台詞-上 .台詞-中身{ padding:3cqh 5cqw 0 27cqw; }
.台詞-下 .台詞-中身{ padding:13.9cqh 28cqw 0 11.7cqw; }
.台詞-本文{ font-size:2.6cqw; line-height:1.5; white-space:pre-wrap; }
.台詞-上 .台詞-本文{ padding-left:1.3cqw; }
.台詞-名{ position:absolute; font-family:"MS Gothic",monospace; font-size:1.7cqw; font-weight:bold; color:#fff; -webkit-text-stroke:2px #000; paint-order:stroke fill; white-space:nowrap; }
.台詞-上 .台詞-名{ bottom:10.2cqh; left:29cqw; }
.台詞-下 .台詞-名{ top:23.1cqh; right:28cqw; }
/* 顔は枠の上に重ね、枠の端（顔の側）を隠す大きさに（本人 11-03: 顔が枠の下・小さくて枠の端が見えていた）。ぼかしは上と左右だけ・下は枠に乗る */
.台詞-顔{ position:absolute; z-index:1; width:30cqw; aspect-ratio:1; object-fit:cover; opacity:0; transition:opacity .25s;
    -webkit-mask-image:radial-gradient(ellipse 60% 70% at 50% 60%, #000 70%, transparent 100%); mask-image:radial-gradient(ellipse 60% 70% at 50% 60%, #000 70%, transparent 100%); }
.台詞-顔.出{ opacity:1; }
.台詞-顔上{ left:-1cqw; top:-2.3cqw; }       /* 顔の下端＝枠の下端（枠の絵 005_f_top の枠は 32〜82%の高さ） */
.台詞-顔下{ right:-1cqw; bottom:4.2cqw; }     /* 005_f_down の枠は 37.5〜87.5% */
#窓層.港の中{ background:radial-gradient(ellipse 70% 65% at 50% 50%, rgba(3,6,14,.25), rgba(3,6,14,.78)); animation:港幕 .5s ease-out; }
@keyframes 港幕{ from{ background-color:rgba(3,6,14,0); opacity:.2; } to{ opacity:1; } }
#窓層{ position:absolute; inset:0; z-index:40; pointer-events:none; display:flex; align-items:center; justify-content:center; 
    padding:66px 0 6px; }   /* v1.7.50 上の 66px は Lv10 メニューの丸い釦（左上 y20〜62）の予約。窓の題が釦の下に隠れていた */
.窓{ position:absolute; pointer-events:auto; width:min(860px,96vw); max-height:min(88vh, calc(100vh - 72px)); display:flex; flex-direction:column;
    background:linear-gradient(180deg,rgba(18,24,38,.95),rgba(10,14,22,.95)); border:1px solid var(--line2); border-radius:10px;
    box-shadow:0 18px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter:blur(6px); animation:窓出 .16s ease-out;
    font-size:calc(14px * var(--ui倍)); }
@keyframes 窓出{ from{ opacity:0; transform:translateY(10px) scale(.98); } }
.窓::before,.窓::after{ content:''; position:absolute; width:16px; height:16px; border:2px solid #4da3ff; pointer-events:none; }
.窓::before{ left:-1px; top:-1px; border-right:none; border-bottom:none; border-radius:10px 0 0 0; }
.窓::after{ right:-1px; bottom:-1px; border-left:none; border-top:none; border-radius:0 0 10px 0; }
.窓-頭{ display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--line); }
.窓-題{ font-size:1.15em; font-weight:bold; flex:1; letter-spacing:.03em; }
.窓-右{ display:flex; gap:10px; color:#d4dae6; font-size:.92em; }
.窓-右 .資 small{ color:var(--sub); }
.窓-閉{ appearance:none; background:none; border:none; color:var(--sub); font-size:20px; cursor:pointer; padding:0 4px; }
.窓-閉:hover{ color:#fff; }
.窓-札列{ display:flex; gap:3px; padding:6px 10px 0; border-bottom:1px solid var(--line); }
.窓-札{ appearance:none; padding:6px 16px; background:rgba(24,30,42,.7); border:1px solid var(--line); border-bottom:none; border-radius:7px 7px 0 0;
    color:var(--sub); font:inherit; cursor:pointer; }
.窓-札.is-on{ background:rgba(46,58,80,.95); color:#fff; box-shadow:inset 0 2px 0 #4da3ff; }
.窓-札:focus{ outline:2px solid #ffd166; }
.窓-身{ padding:12px 14px; overflow:auto; flex:1; }
.窓.札あり{ height:min(88vh, calc(100vh - 72px)); }   /* 札のある窓（港・艦隊メニュー）は一番長い高さで固定。中身が短くても枠は動かない */
.窓-足{ display:flex; justify-content:flex-end; gap:8px; padding:10px 14px; border-top:1px solid var(--line); }
.窓-足[hidden]{ display:none; }
.拠点の窓 .窓-題{ color:var(--勢力色,#fff); text-shadow:0 0 10px var(--勢力色,transparent); }
.窓口{ display:flex; align-items:center; gap:10px; margin-right:auto; min-width:0; }
.窓口 img{ width:56px; height:56px; border-radius:50%; object-fit:cover; object-position:50% 15%; border:1px solid var(--line2); box-shadow:0 0 8px rgba(77,163,255,.25); flex:none; }
.窓口-文{ min-width:0; }
.窓口-名{ font-size:.78em; color:var(--sub); }
.窓口-句{ font-size:.95em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.出港{ min-width:140px; }

.一覧{ display:flex; flex-direction:column; gap:4px; }
.行{ display:flex; align-items:center; gap:10px; padding:6px 8px; background:rgba(255,255,255,.03); border:1px solid rgba(122,160,214,.12); border-radius:6px; min-height:40px; }
.行.見出し{ background:none; border:none; color:var(--sub); font-size:.88em; min-height:0; padding:0 8px; }
.行.右寄せ{ justify-content:flex-end; background:none; border:none; }
.行.淡{ color:var(--sub); }
/* 艦隊の並べ替え（v0.2.22）: つかんだ行は薄く、差し込む所に光る線 */
.行.並べ{ cursor:grab; transition:opacity .12s, background .12s; }
.行.並べ:hover{ background:rgba(122,160,214,.08); }
.行.つかみ{ opacity:.4; cursor:grabbing; }
.行.差し上{ box-shadow:0 -3px 0 0 #7fd4ff, 0 -3px 10px 0 rgba(127,212,255,.6); }
.行.差し下{ box-shadow:0 3px 0 0 #7fd4ff, 0 3px 10px 0 rgba(127,212,255,.6); }
/* 予備艦（v1.1.0）: 配備の下に境の見出し。見出しへ落とすと予備の先頭へ */
.小見出し.予備見出し{ margin:10px 0 2px; padding-top:6px; border-top:1px dashed #ffd166; color:#ffd166; }
.予備見出し.差し下{ box-shadow:0 3px 0 0 #ffd166, 0 3px 10px 0 rgba(255,209,102,.5); }
.行.予備{ background:rgba(255,209,102,.03); }
.行.予備 .艦絵{ opacity:.75; }
/* DLC（v1.1.0） */
.印.DLC{ border-color:#ffd166; color:#ffd166; background:rgba(255,209,102,.12); }
.DLC格{ grid-template-columns:repeat(3,1fr); }
.DLC格 .DLC札:first-child{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(4,1fr); gap:4px 14px; }
.DLC格 .DLC札:first-child > :not(.造船値){ grid-column:1 / -1; }
.DLC絵列{ display:flex; gap:8px; }
.DLC絵列 .艦絵{ flex:1; min-width:0; height:64px; }
.DLC艦名{ grid-column:1 / -1; color:#fff; font-weight:bold; margin-top:2px; }
.DLC札{ border-color:rgba(255,209,102,.35); background:linear-gradient(180deg, rgba(255,209,102,.07), rgba(255,255,255,.02)); }
.行-名{ flex:1; min-width:120px; }
.行-数{ min-width:84px; text-align:right; font-variant-numeric:tabular-nums; }
.行-釦{ display:flex; gap:4px; min-width:250px; justify-content:flex-end; }
.行 .btn{ padding:4px 10px; font-size:.9em; }
.行 .棒{ width:120px; height:7px; margin:0; }
.行.順位 .順位-番{ min-width:36px; text-align:center; font-weight:bold; color:var(--sub); }
.行.順位.上1 .順位-番{ color:#ffd166; text-shadow:0 0 8px rgba(255,209,102,.6); } .行.順位.上2 .順位-番{ color:#e0e6f0; } .行.順位.上3 .順位-番{ color:#e0a070; }
.行.順位.上1{ background:linear-gradient(90deg,rgba(255,209,102,.12),rgba(255,255,255,.02)); }
.行.懸賞{ min-height:76px; background:linear-gradient(90deg,rgba(255,92,110,.08),rgba(255,255,255,.02)); }
.行.懸賞.済{ opacity:.55; }
.懸賞-顔{ width:64px; height:64px; border-radius:6px; object-fit:cover; object-position:50% 15%; border:1px solid rgba(255,140,140,.5); flex:none; }
.行.懸賞 .行-数{ min-width:120px; }
.行.懸賞.大型{ border-color:rgba(255,92,110,.45); box-shadow:inset 0 0 18px rgba(255,92,110,.12); }
.行.懸賞 .棒.大型{ width:110px; height:6px; margin:3px 0 2px auto; }
.緑{ color:#7ff0a8; } .赤{ color:#ff8a8a; } .黄{ color:#ffd98a; } .紫{ color:#c8a8ff; }
.印{ display:inline-block; font-size:.78em; padding:0 6px; border:1px solid var(--line2); border-radius:8px; color:#c8d0e0; vertical-align:middle; }
.印.旗{ border-color:#ffd166; color:#ffd166; }
.印.赤{ border-color:#ff8a8a; }
.印.種迎撃{ border-color:#ffb070; color:#ffc890; } .印.種戦闘{ border-color:#ff8a8a; color:#ffaaaa; } .印.種探査{ border-color:#7fd4ff; color:#a8e4ff; } .印.種採掘{ border-color:#c9a86a; color:#e0c890; }
.品印{ display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:7px; vertical-align:middle; }
.小見出し{ color:#9fd0ff; margin:6px 2px; font-weight:bold; }
.艦絵{ width:120px; height:56px; object-fit:contain; display:block; filter:drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.艦絵.小{ width:72px; height:32px; }
.艦絵.極小{ width:40px; height:20px; }   /* v1.7.42 編成の記録の顔ぶれ */
.編成絵{ display:flex; align-items:center; gap:1px; flex:2; min-width:0; } .編成絵 small{ color:var(--sub); margin-left:4px; }
.編成表 .行{ padding-top:3px; padding-bottom:3px; }
.段{ display:flex; gap:2px; } .段 i{ width:9px; height:12px; background:rgba(255,255,255,.1); border-radius:2px; } .段 i.on{ background:#4da3ff; box-shadow:0 0 6px #4da3ff; }
.造船格{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.造船札{ padding:6px 8px; background:rgba(255,255,255,.03); border:1px solid rgba(122,160,214,.18); border-radius:8px; display:flex; flex-direction:column; gap:4px; }
.造船札 .艦絵{ width:100%; height:52px; }
.造船札.不可{ opacity:.55; }
.造船名{ font-weight:bold; }
.造船値{ display:grid; grid-template-columns:1fr 1fr; gap:0 8px; color:#c8d0e0; font-size:.85em; }
.造船価{ color:#ffe27a; font-weight:bold; }
.艦選び{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.艦選び .btn{ display:flex; align-items:center; gap:6px; padding:4px 10px; }
.選択列{ display:flex; gap:8px; flex-wrap:wrap; }
.入力{ background:rgba(0,0,0,.4); color:#fff; border:1px solid var(--line2); border-radius:6px; padding:7px 10px; font:inherit; font-size:16px; width:240px; user-select:text; }
.勢力格{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:10px; }   /* v1.7.57 minmax: 細い画面で3つ目が切れて横に流れていた */
.勢力札{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px; border-color:var(--色); background:rgba(0,0,0,.35); }
.勢力札.is-on{ background:color-mix(in srgb, var(--色) 22%, transparent); box-shadow:0 0 18px color-mix(in srgb, var(--色) 50%, transparent); border-width:2px; }
.勢力顔{ width:min(130px,100%); height:auto; aspect-ratio:1; object-fit:cover; border-radius:8px; border:1px solid var(--色); }
.勢力名{ font-size:18px; font-weight:bold; color:var(--色); }
.勢力首{ color:var(--sub); font-size:13px; }
.事象{ display:flex; flex-direction:column; gap:12px; }
.事象-絵 img{ width:100%; max-height:300px; object-fit:cover; border-radius:8px; border:1px solid var(--line); display:block; }
.事象-文{ line-height:1.8; font-size:1.05em; }
.事象-選{ display:flex; flex-direction:column; gap:6px; }
.事象-選 .btn{ text-align:left; padding:10px 14px; }
.事象-得{ display:flex; flex-wrap:wrap; gap:8px; } .事象-得 span{ padding:4px 10px; border:1px solid #ffd166; color:#ffe27a; border-radius:12px; }
/* v1.7.36 追加シナリオ「第一探査船団の航跡」 */
.航跡章 .事象-文{ border-left:3px solid #9fe8ff; padding-left:12px; }
.航跡-続き{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; padding:8px 12px; border:1px dashed rgba(159,232,255,.45); border-radius:8px; color:#bfe8ff; font-size:.92em; }
.航跡-続き span{ flex:1; min-width:200px; }
.航跡見本{ display:flex; align-items:baseline; justify-content:center; gap:4px; color:#9fe8ff; } .航跡見本 b{ font-size:1.7em; } .航跡見本 small{ color:var(--sub); }
.撃沈文{ text-align:center; line-height:2; font-size:1.1em; padding:16px; }

/* ---------------- 通知・確認 ---------------- */
#ui-notify-area{ position:fixed; left:50%; top:130px; transform:translateX(-50%); z-index:200; display:flex; flex-direction:column; gap:6px; align-items:center; pointer-events:none; }
.ui-toast{ padding:7px 18px; background:rgba(14,20,32,.92); border:1px solid var(--line2); border-radius:18px; font-size:14px; animation:toast .2s ease-out; }
.ui-toast.ok{ border-color:#46d18a; color:#bff5d4; } .ui-toast.warn{ border-color:#ffd166; color:#ffe9a8; } .ui-toast.error{ border-color:#ff5c6e; color:#ffc0c8; }
.ui-toast.is-out{ opacity:0; transition:opacity .25s; }
@keyframes toast{ from{ opacity:0; transform:translateY(-6px); } }
#ui-modal-back{ position:fixed; inset:0; z-index:300; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; }
#ui-modal-back[hidden]{ display:none; }
#ui-modal{ min-width:340px; max-width:90vw; padding:18px 20px; background:var(--panel2); border:1px solid var(--line2); border-radius:10px; }
#ui-modal h2{ margin:0 0 8px; font-size:18px; } #ui-modal p{ margin:0 0 16px; color:#d4dae6; }
.ui-modal-btns{ display:flex; justify-content:flex-end; gap:8px; }

/* ---------------- v0.2.0 宙域・物語・軍 ---------------- */
.hud-宙{ display:block; font-size:.82em; letter-spacing:.2em; color:var(--色); opacity:.85; margin-bottom:1px; }
.物語-絵{ margin:-4px -4px 10px; border-radius:8px; overflow:hidden; max-height:300px; }
.物語-絵 img{ display:block; width:100%; height:300px; object-fit:cover; }
.物語-文{ margin:6px 4px; line-height:1.8; font-size:1.05em; color:#dfe6f2; }
.軍-文{ margin:4px 4px 10px; line-height:1.7; color:#c8d0e0; }
.棒.戦線{ width:160px; height:7px; margin:0; } .棒.戦線 > i{ background:#ffd166; }
#終幕{ position:fixed; inset:0; z-index:40; background:radial-gradient(ellipse at 50% 60%, rgba(10,16,30,.92), rgba(2,3,8,.98)); overflow:hidden; pointer-events:auto; cursor:pointer; }
#終幕[hidden]{ display:none; }
.終幕-流れ{ position:absolute; left:0; right:0; top:100%; text-align:center; animation:終幕流れ 46s linear forwards; }
.終幕-流れ.早送り{ animation-duration:6s; }
@keyframes 終幕流れ{ from{ transform:translateY(0); } to{ transform:translateY(calc(-100% - 50vh)); } }
.終幕-行{ font-size:20px; line-height:2.2; color:#cfd8ea; }
.終幕-大{ font-size:28px; line-height:2.4; color:#fff; font-weight:bold; letter-spacing:.06em; }
.終幕-小{ font-size:17px; line-height:2; color:#9fb0cc; }
.終幕-題{ font-size:42px; font-weight:bold; letter-spacing:.12em; color:#ffe9a8; margin:20px 0 6px; text-shadow:0 0 24px rgba(255,210,120,.45); }
.終幕-空{ height:16vh; }
.終幕-釦{ position:absolute; left:50%; bottom:12vh; transform:translateX(-50%); }
.終幕-釦:not([hidden]){ display:flex; gap:14px; align-items:center; }   /* v1.7.0 続ける釦の隣に「記念に艦を塗る」 */
.終幕-釦 .終幕-続{ font-size:18px; padding:10px 28px; }
.終幕-釦 .終幕-塗, .終幕-釦 .終幕-航{ font-size:14px; padding:8px 16px; opacity:.85; white-space:nowrap; } .終幕-塗 small, .終幕-航 small{ color:#ffd166; }
.札-宙{ font-size:12px; letter-spacing:.2em; margin-bottom:2px; }
.hud-戦線{ margin-top:4px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:.95em; }
.hud-戦線 .棒.戦線{ width:150px; height:8px; margin:0; } .hud-戦線 b{ color:#ffe9a8; }
.戦線-足{ color:#ffd166; font-weight:bold; animation:戦線足 2.5s ease-out forwards; }
@keyframes 戦線足{ 0%{ opacity:0; transform:translateY(6px); } 12%{ opacity:1; transform:translateY(0); } 70%{ opacity:1; } 100%{ opacity:0; } }
.淡{ color:var(--sub); }
.行.全種{ background:none; border:none; padding:0 0 6px; min-height:0; } .行.全種 .btn{ padding:6px 18px; margin-left:calc(62px * var(--ui倍, 1)); }   /* 「交易」の札の真下に置く（パッドの↑で交易の札へ戻る） */

/* ===== v0.7.0 オンライン ===== */
/* 開始: タイトルの絵の下に状態だけ（釦は置かない） */
.題-状態{ min-height:1.6em; color:#cfe8ff; font-size:16px; letter-spacing:.12em; text-shadow:0 0 12px rgba(77,163,255,.6); animation:題光 2.4s ease-in-out infinite; }
.題-状態.赤{ color:#ff9a9a; animation:none; }
.勢力数{ font-size:13px; color:#e8f0ff; } .勢力数 b{ font-size:18px; color:var(--色); }
/* チュートリアル（今の課題を1つ） */
#案内{ position:absolute; top:calc(62px * var(--ui倍)); left:50%; transform:translateX(-50%); padding:8px 16px 9px; min-width:300px; text-align:center;
    background:linear-gradient(180deg, rgba(255,209,102,.16), rgba(10,14,24,.9)); border:1px solid rgba(255,209,102,.55); border-radius:10px; box-shadow:0 0 18px rgba(255,209,102,.25); }
#案内[hidden]{ display:none; }
#案内.進{ animation:案内来 .5s ease-out; }
@keyframes 案内来{ from{ transform:translateX(-50%) scale(1.15); opacity:0; } to{ transform:translateX(-50%) scale(1); opacity:1; } }
.案内-段{ font-size:.8em; color:#ffd166; letter-spacing:.1em; } .案内-課{ font-size:1.25em; font-weight:bold; color:#fff; margin:2px 0; } .案内-説{ font-size:.9em; color:var(--sub); }
#案内 .btn{ position:absolute; right:6px; top:6px; font-size:.75em; padding:2px 8px; }
.案内-頁{ padding:6px 4px 2px; } .案内-題{ font-size:22px; font-weight:bold; color:#9fd0ff; margin-bottom:10px; } .案内-文{ line-height:1.9; font-size:15px; } .案内-数{ text-align:right; color:var(--sub); margin-top:10px; font-size:12px; }
/* 会話（左の中ほど。左上は Lv10 メニュー、左下は mp3 の予約） */
#話{ position:absolute; left:10px; bottom:calc(96px * var(--ui倍)); width:min(calc(380px * var(--ui倍)), calc(100vw - 20px)); pointer-events:none; }
#話 > *{ pointer-events:auto; }
.話-流し{ display:flex; flex-direction:column; gap:3px; pointer-events:none !important; }
.話-流し .話-行{ background:rgba(5,8,14,.72); border-radius:6px; padding:3px 8px; transition:opacity .6s; }
.話-流し .話-行.消{ opacity:0; }
.話-枠{ background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:6px; }
.話-枠[hidden]{ display:none; }
.話-札列{ display:flex; gap:4px; margin-bottom:5px; }
.話-札{ flex:1; font-size:.85em; padding:3px 0; border-radius:5px; border:1px solid color-mix(in srgb, var(--色) 50%, transparent); background:rgba(0,0,0,.3); color:var(--色); cursor:pointer; }
.話-札.is-on{ background:color-mix(in srgb, var(--色) 25%, transparent); color:#fff; }
.話-ログ{ height:calc(190px * var(--ui倍)); overflow-y:auto; font-size:.92em; line-height:1.5; padding:2px 4px; }
.話-行{ word-break:break-all; } .話-行.系{ color:#ff9a9a; } .話-行.強{ background:rgba(255,209,102,.14); }
.話-時{ color:var(--sub); font-size:.8em; margin-right:5px; } .話-範{ font-size:.8em; margin-right:5px; } .話-名{ color:#fff; font-weight:bold; margin-right:6px; }
.話-入力行{ display:flex; gap:4px; margin-top:5px; }
/* v1.7.32 艦長の合図 */
.話-合図列{ display:flex; flex-wrap:wrap; gap:3px; margin-top:5px; }
.話-合図{ font-size:.8em; padding:2px 7px; border-radius:10px; border:1px solid rgba(236,244,255,.45); background:rgba(236,244,255,.12); color:#ecf4ff; cursor:pointer; }
.話-合図.飾{ --色:#ffd166; border-color:var(--色); background:rgba(8,14,28,.6); color:var(--色); }
.話-合図 i{ font-style:normal; margin-right:3px; }
.話-合図.未所持{ opacity:.55; border-style:dashed; }
.話-合図:hover, .話-合図:focus-visible{ background:rgba(236,244,255,.25); }
.話-合図買{ font-size:.78em; padding:2px 8px; margin-left:auto; }
@media (max-height: 600px) {   /* 背の低い画面: 合図は横1列で送る・ログを短く（枠の上が画面の外へ出ていた） */
    #話 .話-合図列{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; } #話 .話-合図, #話 .話-合図買{ flex:none; }
    .話-ログ{ height:calc(110px * var(--ui倍)); }
    /* v1.7.53 レーダーが艦長の札の下で画面の外へはみ出し、艦隊の札の下に隠れていた: 右下の角へ小さく置き、艦隊の札はその左へ */
    #hud-レーダー{ position:absolute; right:0; top:calc(100vh - 20px - 120px * var(--ui倍)); width:calc(120px * var(--ui倍)); height:calc(120px * var(--ui倍)); }
    #hud-艦隊{ right:calc(16px + 120px * var(--ui倍)); max-width:calc(100vw - 340px - 126px * var(--ui倍)); }
}
.話-合図列.札の中{ flex:1; margin-top:0; } .btn.話-合図{ min-height:0; font-size:.85em; padding:3px 9px; border-radius:12px; }
.話-入力{ flex:1; min-width:0; width:auto; font-size:14px; padding:4px 8px; } .話-先{ max-width:110px; width:auto; font-size:13px; padding:3px; }
.話-起.is-on, #hud-声.is-on{ border-color:#46d18a; color:#9fffc8; }
/* 課金の釦・勢力の色 */
.btn.課金{ background:linear-gradient(180deg, #8a5a00, #5a3a00); border-color:#ffd166; color:#fff2c8; }
.色釦{ width:30px; height:24px; padding:0; border:2px solid rgba(255,255,255,.25); }
.色釦.is-on{ border-color:#fff; box-shadow:0 0 8px #fff; }
.改装費 small{ color:var(--sub); }
/* v1.7.2 造船所の下の DLC の艦の行 */
.行.DLC案内{ margin-top:10px; border-color:rgba(255,209,102,.35); background:linear-gradient(90deg, rgba(255,209,102,.07), transparent); }
.DLC案内-絵{ display:flex; gap:2px; flex:0 0 auto; } .DLC案内-絵 .艦絵.小{ width:46px; }
/* v1.7.7 艦の航跡（DLC）の見本 */
.btn.塗装札 i.跡見本{ border-color:rgba(255,255,255,.2); background:#0a0f18; }
.跡見本.t1{ background:radial-gradient(circle at 20% 50%, #fff 0 1.5px, transparent 2px), radial-gradient(circle at 50% 40%, #fff2c0 0 1.5px, transparent 2px), radial-gradient(circle at 80% 60%, #fff 0 1px, transparent 1.5px), #0a0f18 !important; }
.跡見本.t2{ background:linear-gradient(90deg, #ff5c6e, #ffb04a, #ffe66a, #7dff8a, #5ec8ff, #b48aff) !important; }
.跡見本.t4{ background:radial-gradient(ellipse 4px 2.5px at 25% 45%, #ffb8d8 90%, transparent), radial-gradient(ellipse 4px 2.5px at 55% 65%, #ffe4f0 90%, transparent), radial-gradient(ellipse 3px 2px at 82% 35%, #ff8ab8 90%, transparent), #0a0f18 !important; }
.跡見本.t5{ background:linear-gradient(90deg, transparent, #e8402a 30%, #ff7a2a 60%, #ffc14a 85%, #fff2c0) !important; }
.跡見本.t3{ background:linear-gradient(90deg, transparent, rgba(159,232,255,.5) 40%, #e8fbff) !important; }
/* v1.7.0 艦の塗装（DLC） */
.塗装行{ display:flex; align-items:center; gap:14px; }
.塗装見本{ flex:0 0 180px; height:96px; display:flex; align-items:center; justify-content:center; background:radial-gradient(ellipse at center, rgba(120,160,255,.10), transparent 70%); }
.塗装見本 canvas{ max-width:168px; max-height:92px; }
.塗装見本.三{ flex:0 0 330px; gap:6px; } .塗装見本.三 canvas{ max-width:104px; max-height:64px; }
.塗装列{ display:flex; flex-wrap:wrap; gap:5px; flex:1; }
.btn.塗装札{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:3px 4px; min-width:50px; }
.btn.塗装札 i{ width:26px; height:14px; border-radius:3px; border:1px solid rgba(255,255,255,.35); }
.btn.塗装札 small{ font-size:11px; }
.btn.塗装札.未所持{ opacity:.6; } .btn.塗装札.未所持 small::after{ content:'*'; color:#ffd166; }
.btn.塗装札.is-on{ border-color:#fff; box-shadow:0 0 8px rgba(255,255,255,.6); opacity:1; }
/* v1.7.9 艦長の肖像（DLC） */
.肖像行{ display:flex; align-items:flex-start; gap:14px; }
.肖像大{ flex:0 0 112px; height:112px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.2); border-radius:6px; background:radial-gradient(ellipse at center, rgba(120,160,255,.12), transparent 70%); overflow:hidden; }
.肖像大 img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.肖像列{ display:flex; flex-wrap:wrap; gap:4px; flex:1; }
.肖像列.見本{ flex:0 0 auto; }
.肖像札{ display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; padding:0; overflow:hidden; border-radius:5px; }
.btn.肖像札 small{ font-size:11px; }
.肖像札 img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.btn.肖像札.未所持{ opacity:.6; }
.btn.肖像札.is-on{ border-color:#fff; box-shadow:0 0 8px rgba(255,255,255,.6); opacity:1; }
.標-顔{ width:30px; height:30px; object-fit:cover; object-position:top; border-radius:5px; margin-right:7px; vertical-align:middle; border:1px solid rgba(220,196,255,.5); }
.btn.枠案内{ margin-left:10px; }
.DLC見本, .塗装列.DLC見本, .肖像列.見本.DLC見本{ flex:0 0 330px; }   /* DLC の札の「見た目と時短」で品の名前の位置を揃える（塗装の見本 .塗装見本.三 と同じ幅） */
/* v1.7.11 撃沈の演出（DLC）の見本 */
.btn.塗装札 i.爆見本{ border-radius:50%; width:18px; height:18px; border-color:rgba(255,255,255,.2); }
.爆見本.b0{ background:radial-gradient(circle, #fff2c0 0 20%, #ffb347 45%, #ff6a3c 70%, transparent 72%); }
.爆見本.b1{ background:radial-gradient(circle, #e8fbff 0 20%, #7fd4ff 45%, #4a8cff 70%, transparent 72%); }
.爆見本.b2{ background:radial-gradient(circle, #fff 0 15%, transparent 16%), conic-gradient(#ff5c6e, #ffb04a, #ffe66a, #7dff8a, #5ec8ff, #b48aff, #ff5c6e); }
.btn.塗装札 i.跳見本{ border-color:rgba(255,255,255,.2); }
.跳見本.j0{ background:repeating-linear-gradient(90deg, #02060f 0 3px, #aad2ff 3px 4px, #02060f 4px 7px, #ffdcb4 7px 8px) !important; }
.跳見本.j1{ background:linear-gradient(115deg, transparent 45%, #f0e6ff 46% 50%, transparent 51%), repeating-linear-gradient(90deg, #0c041a 0 3px, #a06eff 3px 4px) !important; }
.跳見本.j2{ background:radial-gradient(circle, #140c02 0 20%, #ffd66e 24% 30%, #140c02 34% 50%, #ffc834 54% 60%, #140c02 64%) !important; }
.跳見本.j4{ background:linear-gradient(115deg, transparent 45%, #ffdcaa 46% 50%, transparent 51%), repeating-linear-gradient(90deg, #180404 0 3px, #ff3c46 3px 4px) !important; }
.跳見本.j5{ background:radial-gradient(circle, transparent 0 40%, #8cc8ff 44% 50%, transparent 54%), linear-gradient(90deg, #6eaaff, #3c6eff, #c8f0ff) !important; }
.btn.塗装札.名札色札 b{ display:block; font-size:12px; line-height:18px; max-width:72px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-shadow:0 0 2px #000, 0 0 2px #000; }
.組見本 .btn.塗装札{ min-width:44px; padding:3px 2px; }
.組見本 .btn.塗装札 img{ width:26px; height:18px; object-fit:cover; object-position:top; border-radius:3px; }
.組見本 i.枠見本{ font-style:normal; font-size:10px; line-height:14px; text-align:center; color:#ffd166; background:#0a0f18; }
.跳見本.j3{ background:linear-gradient(90deg, #78ffc8, #5ac8ff, #c88cff) !important; }
.爆見本.b4{ background:radial-gradient(circle, #e8fff0 0 20%, #5effa0 45%, #2a9c8c 70%, transparent 72%); }
.爆見本.b5{ background:radial-gradient(circle, #fff0e0 0 18%, #ff3c4a 45%, #b0182a 70%, transparent 72%); }
.爆見本.b3{ background:radial-gradient(circle, #fff8d8 0 20%, #ffd166 45%, #e8a020 70%, transparent 72%); }
.話-顔{ width:18px; height:18px; object-fit:cover; object-position:top; border-radius:3px; vertical-align:-4px; margin-right:4px; }
.話-顔.順位-顔{ width:24px; height:24px; vertical-align:-7px; margin-right:6px; }
.hud-印.紫{ --色:#c8a8ff; } .hud-印.淡{ opacity:.7; }
.倉庫表 .交易釦列{ display:flex; gap:4px; min-width:calc(330px * var(--ui倍)); justify-content:flex-end; }
/* v0.7.1: 安全圏の印・会話の使えない札・声の欄・勢力の欄 */
.hud-印.安全{ --色:#7fffd4; background:rgba(40,120,100,.35); font-weight:bold; }
.話-札.不可{ opacity:.35; filter:grayscale(1); cursor:not-allowed; }
#hud-声欄{ padding:5px 8px; background:var(--panel); border:1px solid var(--line); border-radius:8px; font-size:.82em; display:flex; flex-direction:column; gap:2px; }
#hud-声欄[hidden], #hud-勢力欄[hidden]{ display:none; }
.声-行{ display:flex; align-items:center; gap:5px; white-space:nowrap; transition:opacity .3s; }
.声-行.淡{ opacity:.5; } .声-行.自 .声-名{ color:#9fffc8; }
.声-印{ width:1.2em; text-align:center; } .声-名{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; color:#fff; } .声-Lv{ color:var(--sub); font-size:.9em; }
.声-棒{ width:46px; height:6px; background:rgba(0,0,0,.5); border-radius:3px; overflow:hidden; } .声-棒 i{ display:block; height:100%; width:0; background:#46d18a; transition:width .1s; }
.声-行.話中 .声-名{ text-shadow:0 0 6px #46d18a; } .声-注{ color:var(--sub); font-size:.85em; min-width:2.6em; text-align:right; }
#hud-勢力欄{ padding:7px 10px; background:var(--panel); border:1px solid var(--line); border-radius:8px; display:flex; flex-direction:column; gap:4px; font-size:.88em; }
#hud-勢力欄 .btn{ width:100%; } .勢欄-題{ font-weight:bold; color:#ffd166; } .勢欄-題.赤{ color:#ff8a8a; } .勢欄-文{ color:var(--sub); }
/* v0.7.2: サーバーに切れている印（その間は記録されない） */
.hud-印.切断{ --色:#ff5c6e; font-weight:bold; background:rgba(120,20,30,.55); animation:切断 1.2s ease-in-out infinite; }
@keyframes 切断{ 50%{ opacity:.55; } }
/* v0.7.3: 改装に使わない交易品の印 */
.印.素材外{ color:#8a92a4; border-color:#5a6274; background:rgba(120,128,144,.12); }
/* v0.7.8: 倉庫の全種の釦は行の「預ける・出す」の真上に右寄せ（パッドの巡回で届くように） */
.行.倉庫全種{ display:flex; justify-content:flex-end; gap:4px; padding-right:calc(135px * var(--ui倍, 1)); }
.行.倉庫全種 .btn{ margin-left:0; padding:5px 8px; font-size:.88em; }
/* v0.7.9: 上の枠の右に、この星系で受けている依頼の進み */
#hud-上{ display:flex; align-items:center; gap:14px; }
.hud-上本{ text-align:center; }
.hud-依頼{ text-align:left; border-left:1px solid var(--line); padding-left:12px; font-size:.9em; line-height:1.55; }
.hud-依頼-題{ font-size:.8em; color:var(--sub); letter-spacing:.15em; }
.hud-依頼-行 b{ color:#ffd166; } .hud-依頼-行.済 b{ color:#7fffd4; }
/* v0.7.10: 入港した時の自動（売却・預け・常時修理）のチェック釦 */
.btn.自動釦{ flex:none; width:calc(96px * var(--ui倍, 1)); padding:3px 4px; font-size:.8em; color:var(--sub); }
.btn.自動釦.is-on{ color:#9fffc8; border-color:#46d18a; background:rgba(70,209,138,.14); }
.自動欄{ flex:none; width:calc(96px * var(--ui倍, 1)); }
.行.右寄せ .btn.自動釦{ width:auto; padding:5px 10px; }
/* v1.3.0 星系警備（艦隊メニュー） */
.警備箱{ border:1px solid rgba(255,159,67,.25); border-radius:8px; padding:6px 8px; margin:8px 0; background:rgba(255,159,67,.04); }
.警備箱.攻撃中{ border-color:rgba(255,92,110,.7); background:rgba(255,92,110,.08); animation:警備点滅 1.6s ease-in-out infinite; }
.警備箱 .警備頭 .行-名{ font-weight:bold; }
.警備箱 > .btn{ display:block; margin:4px 0 0 auto; }   /* 置く釦は戻す釦と同じ右の列に（パッドの上下で届くように。.罠.md） */
@keyframes 警備点滅{ 50%{ box-shadow:0 0 12px rgba(255,92,110,.45); } }
/* v1.4.0 T7 カスタムオーダー: 絵を選ぶ並び */
.T7絵列{ display:grid; grid-template-columns:repeat(6, 1fr); gap:6px; max-height:300px; overflow-y:auto; padding:4px; }
.T7絵列 .btn.T7絵{ padding:4px; height:72px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.03); }
.T7絵列 .btn.T7絵 img{ max-width:100%; max-height:62px; object-fit:contain; }
.T7絵列 .btn.T7絵.is-on{ outline:2px solid #ffd166; background:rgba(255,209,102,.12); }
/* v1.4.2 T7 の大きさの見本（ステーションと並べる） */
canvas.T7見本{ display:block; width:100%; height:220px; border-radius:8px; border:1px solid rgba(255,255,255,.1); margin:6px 0; }
/* v1.6.8 称号: 得た時の金の札（上から降りて光が横切る）と、艦長の札の一覧 */
.称号札{ position:fixed; left:50%; top:14%; transform:translateX(-50%); z-index:9000; pointer-events:none; overflow:hidden;
    min-width:320px; padding:10px 34px 12px; text-align:center; border:1px solid rgba(255,209,102,.75); border-radius:10px;
    background:linear-gradient(180deg, rgba(48,36,10,.94), rgba(18,14,6,.94)); box-shadow:0 0 24px rgba(255,209,102,.35), inset 0 0 18px rgba(255,209,102,.12);
    animation:称号降り .5s cubic-bezier(.2,1.4,.4,1) both; transition:opacity .6s, transform .6s; }
.称号札.消える{ opacity:0; transform:translateX(-50%) translateY(-24px); }
.称号札-上{ color:#e9c877; font-size:.82em; letter-spacing:.3em; }
.称号札-名{ color:#ffd166; font-size:1.7em; font-weight:bold; text-shadow:0 0 12px rgba(255,209,102,.6); margin:2px 0; }
.称号札-文{ color:var(--sub); font-size:.86em; }
.称号札-光{ position:absolute; top:0; bottom:0; left:-40%; width:30%; background:linear-gradient(90deg, transparent, rgba(255,242,192,.45), transparent);
    transform:skewX(-20deg); animation:称号光 1.4s .35s ease-out both; }
@keyframes 称号降り{ from{ opacity:0; transform:translateX(-50%) translateY(-40px) scale(.9); } to{ opacity:1; transform:translateX(-50%) translateY(0) scale(1); } }
@keyframes 称号光{ from{ left:-40%; } to{ left:120%; } }
.称号列{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:6px; margin:4px 0 8px; }
.称号枠{ border:1px solid rgba(255,255,255,.1); border-radius:8px; padding:5px 8px; background:rgba(255,255,255,.02); color:var(--sub); }
.称号枠.得{ border-color:rgba(255,209,102,.55); background:rgba(255,209,102,.07); color:var(--text); }
.称号枠-名{ font-weight:bold; }
.称号枠.得 .称号枠-名{ color:#ffd166; }
.称号枠-文{ font-size:.8em; }
.称号枠-進{ font-size:.78em; text-align:right; opacity:.8; }
/* v1.6.11 掲げる称号 */
.称号枠.掲{ outline:2px solid #ffd166; box-shadow:0 0 10px rgba(255,209,102,.35); }
.称号枠 > .btn{ display:block; margin:4px 0 0 auto; padding:2px 10px; font-size:.8em; }
.行.見出し > .btn{ margin-left:auto; padding:2px 10px; font-size:.9em; }
/* v1.6.18 新しく記録した星系の行 */
.入星-副.入星-新{ color:#ffe7a0; text-shadow:0 0 12px rgba(255,209,102,.7), 0 2px 3px #000; }
/* v1.6.26 今日の日課 */
.行.日課済{ border-color:rgba(255,209,102,.45); background:rgba(255,209,102,.06); }
/* v1.6.32 HUD の掲げている称号 */
.hud-号{ color:#ffd166; font-size:.9em; line-height:1.2; text-shadow:0 0 8px rgba(255,209,102,.4); }
.札-額{ white-space:nowrap; }   /* v1.7.51 星図の札の依頼の跳躍数・報酬を折り返さない */
.札-二列{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; } .札-二列>.札-額{ flex:0 0 auto; }
@media (orientation: portrait) and (max-width: 700px) {   /* v1.7.56 縦持ちのスマホ: 右の釦が Lv10 メニューの帯に重なり、艦隊の札が細い縦1列になっていた */
    #hud-右{ top:66px; }
    #hud-レーダー{ width:calc(150px * var(--ui倍)); height:calc(150px * var(--ui倍)); }
    #hud-上{ top:66px; left:10px; transform:none; white-space:normal; flex-wrap:wrap; gap:6px; max-width:calc(100vw - 32px - 214px * var(--ui倍)); }
    #hud-上 .hud-印{ white-space:nowrap; }
    #hud-艦隊{ bottom:130px; max-width:calc(100vw - 20px); }   /* 左下 120px は mp3 の予約 */
    #hud-標的{ top:auto; bottom:calc(138px + 100px * var(--ui倍)); }   /* 艦隊の札（1段）のすぐ上。真ん中は自分の艦隊 */
    #hud-艦隊.多 .hud-艦{ width:calc(68px * var(--ui倍)); } #hud-艦隊.多 .hud-艦 img{ height:calc(20px * var(--ui倍)); }   /* 13隻で4段になり画面の下4割を覆っていた */
    #hud:has(#hud-艦隊.多) #hud-標的{ bottom:calc(140px + 230px * var(--ui倍)); }
}
.勢力札 .艦絵{ width:min(120px,100%); } .勢力札{ min-width:0; } .勢力名{ overflow-wrap:anywhere; }   /* v1.7.57 細い画面の勢力選び */
@media (max-width: 600px) {   /* v1.7.58 細い画面の窓: 題が1文字ずつ縦に折れ、札が横にはみ出していた */
    .窓-頭{ flex-wrap:wrap; row-gap:4px; }
    .窓-題{ min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .窓-右{ order:3; flex-basis:100%; flex-wrap:wrap; gap:4px 10px; font-size:.85em; }
    .窓-札列{ flex-wrap:wrap; row-gap:3px; }
    .窓-札{ padding:5px 10px; white-space:nowrap; }
}
.窓-身{ scrollbar-color:rgba(122,160,214,.45) rgba(0,0,0,.25); }   /* v1.7.58 横にあふれた時の棒が白く浮いていた */
@media (max-width: 600px) {   /* v1.7.58 細い画面の造船所・DLC の艦: 4列・3列では性能の字が1語ずつ折れていた */
    .造船格, .DLC格{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .DLC格 .DLC札:first-child{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {   /* v1.7.59 細い画面: 一覧の行（艦隊・交易・改装など）が横にあふれていた。数の欄は次の段へ折り返す */
    .窓 .行{ flex-wrap:wrap; row-gap:3px; column-gap:8px; }
    .窓 .行-名{ min-width:100px; }
    .窓 .行-数{ min-width:56px; }
}
@media (orientation: portrait) and (max-width: 700px) {   /* v1.7.60 縦持ちの星図: 札が上半分を覆い、真ん中の選んだ星系まで隠していた。下に置く */
    #星図-札{ top:auto; bottom:10px; left:10px; right:10px; width:auto; max-height:42vh; }
    #星図-札 .札-釦{ position:sticky; bottom:-12px; margin:12px -14px -12px; padding:8px 14px 12px; background:rgba(14,19,30,.97); }   /* 航行・閉じるは札をめくらずに押せる */
}
