/* Orbital return deck. Scoped to the home so the approved title art stays intact. */
#home{position:relative;isolation:isolate;height:100svh;min-height:760px;display:grid;grid-template-rows:84px minmax(330px,1fr) 164px auto;background:#0b2530 url('/assets/backgrounds/station-home-v1.png') center/cover no-repeat;overflow:hidden}
#home::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#051820b3 0,transparent 19%,transparent 57%,#061b27b8 82%,#071d28f2 100%)}
#home .homeHeader{height:auto;padding:18px 4.5vw;display:flex;gap:28px;align-items:center;border:0;background:linear-gradient(#061a27b3,transparent)}
#home .homeWordmark{color:#f8f0d8;font-size:19px;font-weight:700;letter-spacing:.045em;text-decoration:none;white-space:nowrap;text-shadow:0 2px 10px #031924}
#home .homeWordmark span{color:#bcefd9}
#home .homeIdentity{display:flex;align-items:center;gap:8px;min-width:0}#home .homeIdentity h2{font-size:14px;font-weight:500;letter-spacing:.04em;margin:0;max-width:190px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#home .identityLight{width:6px;height:6px;flex:none;border-radius:50%;background:#a9f2cd;box-shadow:0 0 9px #98efc6}

#home #account{font-weight:500;font-size:12px;min-height:44px;padding:10px 18px;color:#d2e4de;background:#0d2b36a8;border:1px solid #9bb9b060;border-radius:10px;box-shadow:none;white-space:nowrap}
#home #account.needsAccount{color:#eaf7ef;background:#12414aa8;border-color:#a9d9c4}
#home .hangar{position:relative;min-height:0;height:auto;display:block;background:none}
#home .character{position:absolute;left:29.5%;top:55%;transform:translate(-50%,-50%);width:clamp(280px,27vw,400px);height:auto;aspect-ratio:1;isolation:isolate}
#home .character canvas{position:relative;display:block;width:100%;height:100%;max-width:none;z-index:1;filter:drop-shadow(0 18px 12px #04252a77);animation:homeHover 5s ease-in-out infinite}
#home .character::before{content:'';position:absolute;width:57%;height:8%;bottom:8%;left:22%;background:#001b24a8;filter:blur(9px);border-radius:50%;transform:rotate(-4deg)}
#heroLoading{position:absolute;bottom:15%;left:0;right:0;font-size:12px;color:#c2e6da;text-shadow:0 2px 4px #08232c;text-align:center}#home .heroReady #heroLoading{display:none}
#home .deckCaption{position:absolute;left:29.5%;bottom:26px;transform:translateX(-50%);padding:7px 18px;border:1px solid #c3d9c542;border-radius:8px;background:#0a2731c9;color:#e0eadd;text-align:center;font-size:12px;letter-spacing:.12em;white-space:nowrap}#home .deckCaption span{display:block;font-size:9px;letter-spacing:.06em;color:#a6c3bc;margin-top:3px}
#home .matchChoice{position:absolute;top:10%;right:7%;width:min(372px,32vw);padding:0;text-align:left}
#home .matchChoice>small{display:block;color:#d3c9a7;font-size:12px;letter-spacing:.08em}#home .matchChoice h1{font-size:clamp(28px,2.8vw,40px);font-weight:500;line-height:1.5;letter-spacing:.025em;color:#fff7de;text-shadow:none;margin:12px 0 4px;white-space:nowrap}
#home .homeInvitation{font-size:14px;color:#c1d6ce;margin:0 0 26px;letter-spacing:.06em}
#home .matchChoice .play{width:100%;min-width:0;min-height:64px;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;text-decoration:none;font-size:25px;font-weight:600;border:1px solid #e1f5dc;border-radius:12px;color:#143a37;background:linear-gradient(145deg,#e0f2d9,#a8e4cf);box-shadow:0 4px 0 #528e80,0 10px 25px #061d2866,inset 0 1px #fff8;transition:filter .15s ease,box-shadow .15s ease}
#home .play:hover{filter:brightness(1.08);box-shadow:0 4px 0 #679f90,0 14px 30px #061d2880,inset 0 1px #fff8}#home .play:active{filter:brightness(.97)}#home .play>span:last-child{font-size:26px;font-weight:400}
#home .mapChoice{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0 14px;border-bottom:1px solid #abc6b42e}#home .mapChoice small{display:block;font-size:10px;letter-spacing:.08em;color:#98b7b0}#home .mapChoice b{display:block;margin-top:5px;color:#d5e5dc;font-size:14px;font-weight:500}
#home #chooseMap{background:#0a2632a8;color:#cfe1d6;border:1px solid #8fb3a755;box-shadow:none;padding:9px 14px;border-radius:8px;font-size:12px;font-weight:500;min-height:44px}
#home .matchHint{font-size:11px;color:#9ebcb5;line-height:1.9;margin:12px 0 0}
#home .homeTracks{margin:0 5vw;display:grid;grid-template-columns:1.2fr 1fr;gap:18px;padding:0;height:164px;position:relative}
#home .trackButton{position:relative;display:block;width:100%;height:100%;min-height:0;text-align:left;padding:20px 25px;border:1px solid #adc5b765;border-radius:16px;background:linear-gradient(110deg,#153642ed,#193d42cf);box-shadow:inset 0 1px #d3e5c924,0 8px 24px #031c2859;color:#edf2e4;overflow:hidden;font:inherit}
#home .trackButton::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(140deg,#e4f4df0b,transparent 50%);border-radius:inherit}
#home .trackButton:hover{border-color:#d4e5c9a6;background:linear-gradient(110deg,#1d414cfa,#23494ce8)}
#home .trackButton small{display:block;color:#d8c397;letter-spacing:.07em;font-size:11px;font-weight:500}#home .trackButton b{display:block;margin:6px 0;color:#eef3e5;font-size:23px;font-weight:500;letter-spacing:.025em}#home .trackButton span{font-size:12px;font-weight:400;color:#bdd4ca;display:block}#home #leagueTrack{padding-top:34px;padding-right:125px;background:linear-gradient(110deg,#183b42ed,#2a393dd9)}
#home .leagueEmblem{position:absolute;right:24px;top:34px;width:94px;height:94px;filter:drop-shadow(0 5px 5px #041e2b88)}

#home .homeFooter{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px;align-items:center;padding:14px 5vw 18px;border:0;background:none;min-height:82px}
#home .homeFooter button{color:#c3dace;background:transparent;box-shadow:none;border:1px solid #779a902e;border-radius:9px;font-size:11px;font-weight:400;padding:10px 14px;min-height:44px;white-space:nowrap}
#home .homeFooter #daily{color:#d6e7ca;background:#193b3a66}#home #homeStatus{font-size:11px;line-height:1.8;color:#adc6ba;text-align:left;padding:0;margin:0;min-height:0}
body:has(#home:not([hidden])) #menuSound{right:calc(env(safe-area-inset-right) + 10px);bottom:max(14px,env(safe-area-inset-bottom));font-weight:400;background:#102f39df;border-color:#87aaa04d;box-shadow:none;font-size:10px;padding:8px;min-width:50px}
.insideHome #home .homeFooter{padding-right:max(82px,6vw)}
@keyframes homeHover{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(min-width:1600px){#home .character{width:400px}#home .matchChoice{right:9%}}
@media(orientation:landscape) and (max-height:600px){
 #home{height:100svh;min-height:360px;grid-template-rows:54px minmax(142px,1fr) 116px 56px;background-position:center center}
 #home .homeHeader{padding:6px 3vw;gap:18px}#home .homeWordmark{font-size:15px}#home .homeIdentity h2{font-size:12px;max-width:100px}#home #account{font-size:11px;padding:8px 12px}
 #home .character{width:210px;left:28%;top:55%}#home .deckCaption{left:28%;bottom:6px;font-size:10px;padding:4px 10px}#home .deckCaption span{display:none}
 #home .matchChoice{top:0;right:6%;width:33%;}#home .matchChoice>small{display:block;font-size:10px}#home .matchChoice h1{font-size:25px;line-height:1.4;margin:4px 0}#home .homeInvitation{font-size:11px;margin:0 0 9px}#home .matchChoice .play{min-height:46px;font-size:20px;padding:9px 17px;border-radius:10px}#home .play>span:last-child{font-size:21px}
 #home .mapChoice{padding:10px 0 0;border:0}#home .mapChoice small{font-size:9px}#home .mapChoice b{font-size:12px;margin-top:1px}#home #chooseMap{font-size:11px;padding:7px 10px;min-height:40px}#home .matchHint{font-size:10px;line-height:1.5;margin:4px 0 0}#home .matchHint br{display:none}
 #home .homeTracks{margin:0 3vw;gap:12px;height:116px}#home .trackButton{padding:12px 17px;border-radius:12px}#home .trackButton small{font-size:10px}#home .trackButton b{font-size:18px;margin:3px 0}#home .trackButton span{font-size:10px}#home #leagueTrack{padding:20px 86px 12px 17px}#home .leagueEmblem{width:64px;height:64px;right:14px;top:23px}
 
 #home .homeFooter{padding:6px 3vw;gap:14px;min-height:56px}#home .homeFooter button{font-size:10px;padding:8px 10px}#home #homeStatus{font-size:10px;line-height:1.6}body:has(#home:not([hidden])) #menuSound{bottom:7px;right:8px;min-height:40px}
}
@media(orientation:landscape) and (max-height:390px){#home .character{width:174px;top:52%}#home .homeHeader{gap:12px}#home .homeWordmark{font-size:13px}#home .homeIdentity h2{max-width:80px}#home .matchChoice{width:35%;right:4%;top:11px}#home .matchChoice h1{font-size:22px}#home .homeInvitation{display:none}#home .matchHint{font-size:9px}#home .matchChoice .play{margin-top:8px}#home .deckCaption{bottom:3px}#home .trackButton b{font-size:16px}}
@media(max-width:600px) and (orientation:portrait){
 #home{height:auto;min-height:100svh;grid-template-rows:auto auto auto auto;background-size:auto 760px;background-position:23% -135px;overflow:visible}
 #home::before{background:linear-gradient(#061c2577,transparent 18%,#08232d22 35%,#0b2530e8 62%,#0b2530 85%)}
 #home .homeHeader{padding:18px 20px 10px;display:grid;grid-template-columns:1fr auto;gap:12px}#home .homeWordmark{font-size:16px}#home .homeIdentity{grid-column:1;grid-row:2}#home .homeIdentity h2{font-size:12px;max-width:180px}#home #account{grid-column:2;grid-row:1;font-size:11px;padding:8px 11px}
 
 #home .hangar{height:auto;min-height:0;padding:240px 20px 24px}#home .character{left:50%;top:0;transform:translateX(-50%);width:260px}#home .deckCaption{left:50%;top:204px;bottom:auto;font-size:10px;padding:4px 12px}#home .deckCaption span{display:none}
 #home .matchChoice{position:relative;top:auto;right:auto;width:100%;max-width:390px;margin:0 auto;padding:20px 22px;background:linear-gradient(140deg,#102e39e8,#0b2732ed);border:1px solid #96bbae52;border-radius:18px;box-shadow:0 10px 30px #001c2640}
 #home .matchChoice>small{font-size:10px}#home .matchChoice h1{font-size:28px;margin:6px 0;line-height:1.5}#home .homeInvitation{font-size:12px;margin-bottom:18px}#home .matchChoice .play{min-height:56px;font-size:23px;padding:12px 20px}#home .mapChoice{padding:16px 0 10px}#home .matchHint{font-size:10px;line-height:1.7;margin:10px 0 0}
 #home .homeTracks{display:grid;grid-template-columns:1fr;margin:0 20px;height:auto;gap:12px}#home #leagueTrack{height:122px;padding-top:24px}#home .trackButton b{font-size:20px}#home .leagueEmblem{width:76px;height:76px;top:21px;right:24px}body:has(#home:not([hidden])) #menuSound{bottom:16px;right:20px}
}
@media(prefers-reduced-motion:reduce){#home .character canvas{animation:none}#home .play{transition:none}}
/* Keep utility controls out of the room milestones and the short-height action area. */
#home .trackButton{appearance:none;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;line-height:1.35}

body:has(#home:not([hidden])) #menuSound{top:20px;bottom:auto;right:calc(env(safe-area-inset-right) + 4.5vw + 110px);min-width:50px;height:44px}
.insideHome #home .homeFooter{padding-right:5vw}
@media(orientation:landscape) and (max-height:600px){body:has(#home:not([hidden])) #menuSound{top:5px;right:calc(env(safe-area-inset-right) + 3vw + 91px)}.insideHome #home .homeFooter{padding-right:3vw}}
@media(orientation:landscape) and (max-height:390px){#home .matchChoice>small{font-size:9px;line-height:1.2}#home .matchChoice h1{font-size:22px;line-height:1.2;margin:3px 0}#home .matchChoice .play{height:44px;min-height:44px;line-height:1.1;margin-top:6px;padding:8px 17px}#home .mapChoice{padding:0;margin-top:5px;height:44px}#home #chooseMap{height:44px;min-height:44px}#home .matchHint{font-size:9px;line-height:1.4;margin:0}}
@media(max-width:600px) and (orientation:portrait){#home #account{justify-self:end;width:auto}body:has(#home:not([hidden])) #menuSound{top:18px;bottom:auto;right:118px}}
@media(max-width:350px) and (orientation:portrait){#home .homeWordmark{font-size:13px}}
/* 航海記録：ホームの3枚目のカードと、名前の横に掲げる称号。 */
#home .homeTracks{grid-template-columns:1.12fr .95fr .95fr}
#home .homeTitleBadge{flex:0 0 auto;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 10px;border-radius:999px;border:1px solid #d8c39766;color:#efd9ae;font-size:11px;letter-spacing:.04em}
@media(orientation:landscape) and (max-height:600px){#home .homeTitleBadge{max-width:96px;font-size:10px;padding:2px 8px}}
@media(orientation:landscape) and (max-height:390px){#home .homeTitleBadge{display:none}}
@media(max-width:600px) and (orientation:portrait){#home .homeTracks{grid-template-columns:1fr}}
/* 見た目の刷新（2026-11-10）：ゲーム本体と同じガラスとネオンでそろえる。配置・大きさは変えない。 */
#home .trackButton{border:1px solid #7ff0c833;border-radius:16px;
 background:linear-gradient(168deg,#14323ff0,#071520f7);
 box-shadow:0 18px 46px #00000073,inset 0 1px 0 #ffffff1f;backdrop-filter:blur(8px) saturate(1.1);
 transition:border-color .14s,transform .12s,box-shadow .14s}
#home .trackButton::after{background:radial-gradient(80% 60% at 50% 0%,#7ff0c812,transparent 70%)}
#home .trackButton:hover{border-color:#7ff0c87a;transform:translateY(-2px);
 background:linear-gradient(168deg,#1a4252f5,#0a1c28fa);
 box-shadow:0 22px 54px #0000008c,0 0 34px #7ff0c81f,inset 0 1px 0 #ffffff2b}
#home .trackButton small{color:#8fd6c4;letter-spacing:.14em}
#home .trackButton b{color:#f2fbf7;letter-spacing:.02em}
#home .trackButton span{color:#9ec4ba}
#home #logTrack b{color:#ffe3ad;text-shadow:0 0 22px #ffd27a3d}
#home .homeTitleBadge{background:linear-gradient(180deg,#ffd27a26,#ffd27a0a);border-color:#ffd27a66;
 color:#ffe9bd;box-shadow:0 0 16px #ffd27a1f}
/* 出発のボタンは、押したくなる厚みにする。 */
#home .play{background:linear-gradient(180deg,#a6f8da,#55d2ab);color:#042720;border:0;
 box-shadow:0 5px 0 #2b7c65,0 14px 34px #55d2ab3d,inset 0 1px 0 #ffffff80;letter-spacing:.04em;
 transition:filter .12s,transform .08s,box-shadow .08s}
#home .play:hover{background:linear-gradient(180deg,#b8fbe4,#66ddb7)}
#home .play:active{transform:translateY(3px);box-shadow:0 2px 0 #2b7c65,0 7px 20px #55d2ab33,inset 0 1px 0 #ffffff80}

#home .homeWordmark{letter-spacing:.06em}
#home .homeWordmark span{color:var(--ui-mint,#7ff0c8)}
#home .matchChoice h1{text-shadow:0 2px 24px #03131ba6}

/* ノッチ・ホーム領域の逃げ。ホームにだけ指定が無く、iPhoneの横持ちで左端の
   カード（指令）の文字がノッチに隠れていた。ゲーム画面（hud.css）は元から対応済み。
   Webでは env() が0なので見た目は変わらない。*/
#home{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
#home .homeFooter{padding-bottom:max(18px,env(safe-area-inset-bottom))}
@media(orientation:landscape) and (max-height:600px){
 #home .homeFooter{padding-bottom:max(6px,env(safe-area-inset-bottom))}
}
/* .homeFooter は <footer> タグなので、shell.css の
   `.insideHome #home footer{padding:7px 4vw}`（id1+class1+型1）のほうが
   `#home .homeFooter`（id1+class1）より詳細度が高く、上の指定が**黙って無効になる**。
   実機の横持ち（高さ550px以下＋insideHome）がまさにこの条件で、
   ホーム領域の逃げが効いていなかった。既存の設計値7pxは変えずに詳細度だけ上げる。 */
@media(orientation:landscape) and (max-height:550px){
 .insideHome #home .homeFooter{padding-bottom:max(7px,env(safe-area-inset-bottom))}
}

/* ============ version 6：入口が6つになったホームのカード ============ */
/* 常設を維持する（AGENTS.md「判断材料を隠さない」）ため、スクロールや折りたたみは使わず
   3列×2段へ組み替える。カードの段は #home のグリッド行で確保し、余りはハンガー（1fr）が吸う。 */
#home{grid-template-rows:84px minmax(300px,1fr) 222px auto}
/* フッターの3つのボタンは1行に収める（4つ目が折り返して2段になっていた） */
#home .homeFooter{grid-template-columns:auto minmax(0,1fr) auto auto;gap:14px}
#home .homeTracks{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);height:100%;padding-bottom:4px}
#home .trackButton{padding:11px 16px}
#home .trackButton b{font-size:18px;margin:3px 0}
#home .trackButton span{font-size:10.5px;line-height:1.45}
/* リーグの紋章は164pxのカード向けだった。段が低くなったので縦中央へ寄せて小さくする。 */
#home #leagueTrack{padding-top:11px;padding-right:84px}
#home .leagueEmblem{width:60px;height:60px;right:14px;top:50%;transform:translateY(-50%)}

/* 横長で高さが足りない画面：1段をさらに詰め、部屋の帯は畳む */
@media(orientation:landscape) and (max-height:550px){
 /* 右列に必要な高さを先に確保し、余りをカードの段が吸う。
    固定pxで配ると、この範囲の低いほうの高さ（391〜420pxなど）で右列がはみ出す */
 #home{grid-template-rows:54px 148px minmax(0,1fr) auto}
 #home .homeTracks{gap:8px}
 #home .trackButton{padding:8px 11px;border-radius:11px}
 #home .trackButton small{font-size:8.5px;letter-spacing:.08em}
 #home .trackButton b{font-size:14px;margin:2px 0}
 #home .trackButton span{font-size:8.5px;line-height:1.35}
 #home .stationPreview{display:none}
 #home #leagueTrack{padding:8px 60px 8px 11px}
 #home .leagueEmblem{width:46px;height:46px;right:9px}
 /* 右の列（対戦へ／マップ変更）は絶対配置でグリッドの行の高さに数えられない。
    行に収まらないとカードの段へはみ出し、カードに覆われて押せなくなる。
    飾りの一文を畳み、見出しと余白を詰めて行の中へ収める。
    「通常戦・リーグptの変動なし」は何をするかの判断材料なので残す。 */
 #home .homeInvitation{display:none}
 #home .matchChoice>small{font-size:9.5px;line-height:1.2}
 #home .matchChoice h1{font-size:19px;line-height:1.25;margin:3px 0}
 #home .matchChoice .play{min-height:46px;height:46px}
 #home .mapChoice{padding:4px 0 0}
 #home .matchHint{margin-top:2px}
}
@media(orientation:landscape) and (max-height:390px){
 #home .trackButton{padding:7px 10px 5px}
 #home .trackButton b{font-size:12.5px;margin:1px 0}
 #home .trackButton span{font-size:8px;line-height:1.3}
 #home .leagueEmblem{width:40px;height:40px}
 #home #leagueTrack{padding:7px 52px 7px 10px}
 /* 右の列（対戦へ／マップ変更）は .hangar の中で絶対配置なので、行の高さが足りないと
    下のカードの段へはみ出し、カードに覆われて「マップ変更」の下半分が押せなくなる。
    行をハンガー寄りへ配り直し、列の中身も詰めて行の中へ収める。 */
 #home{grid-template-rows:44px 132px minmax(0,1fr) auto}
 #home .matchChoice>small{font-size:8.5px;line-height:1.1}
 #home .matchChoice h1{font-size:17px;line-height:1.15;margin:2px 0 0}
 #home .matchChoice .play{height:42px;min-height:42px;margin-top:5px}
 #home .mapChoice{margin-top:4px;height:40px}
 #home #chooseMap{height:40px;min-height:40px}
}
/* 縦持ちのスマホ：1列に6段だと長すぎるので2列にする */
@media(max-width:600px) and (orientation:portrait){
 #home{grid-template-rows:auto auto auto auto}
 #home .homeTracks{grid-template-columns:repeat(2,minmax(0,1fr));height:auto}
 #home .stationDestination{height:auto}
 #home .trackButton{min-height:100px}
 #home .stationPreview{display:none}
 /* リーグのカードだけ高さ固定＋大きな紋章で中身がはみ出していた */
 #home #leagueTrack{height:auto;padding:11px 68px 11px 16px}
 #home .leagueEmblem{width:52px;height:52px;right:12px;top:50%;transform:translateY(-50%)}
}

/* 高さ551〜600pxの横長：version 6 でカードを2段にしたとき、基本の行指定
   （84px/300px/222px）を max-height:600px のブロックより後ろへ置いたため、
   同じ詳細度で後ろが勝ち、低い画面でも222pxの段が当たってフッターが62px画面外へ出ていた。
   この帯の文字の大きさは max-height:600px のブロックが決めているので、そのとき右列に必要な
   230pxを先に確保し、残りをハンガーとカードの段で分ける。max-height:550px の配分（148px固定）は
   飾りの一文を畳む前提なので、この帯には使わない。 */
@media(orientation:landscape) and (min-height:551px) and (max-height:600px){
 #home{grid-template-rows:54px minmax(230px,1fr) minmax(0,1fr) auto}
}
/* ============ 横長で高さ601〜770pxの画面（1280×720・1366×768・iPad横 1024×768 など） ============
   基本（≥771px）の配分は 84+380+222+82=768px を必要とし、min-height:760px に貼り付くと
   右列（.matchChoice は .hangar の中で絶対配置）が次の段へ8pxはみ出し、フッターは画面外に出ていた。
   AGENTS.md の「はみ出す側に必要な高さを先に確保し、余りを可変の段が吸う」に従い、
   右列を先に詰めてから必要な高さを確保し、余りはハンガー（1fr）が吸う。情報は1つも落とさない。 */
@media(orientation:landscape) and (min-height:601px) and (max-height:777px){
 #home{min-height:0;grid-template-rows:62px minmax(292px,1fr) 184px auto}
 #home .homeHeader{padding:10px 4.5vw}
 #home .homeWordmark{font-size:17px}
 #home .homeIdentity h2{font-size:13px}
 #home .homeStats{gap:20px}#home .homeStats b{font-size:18px}#home .homeStats span{font-size:10px}
 #home #account{padding:8px 15px;font-size:11.5px}
 #home .character{width:clamp(220px,20vw,300px);top:54%}
 #home .deckCaption{bottom:14px;font-size:11px;padding:5px 14px}
 #home .matchChoice{top:5%}
 #home .matchChoice>small{font-size:11px}
 #home .matchChoice h1{font-size:clamp(25px,2.2vw,31px);line-height:1.35;margin:7px 0 3px}
 #home .homeInvitation{font-size:12px;margin:0 0 12px}
 #home .matchChoice .play{min-height:52px;padding:11px 20px;font-size:21px}
 #home .play>span:last-child{font-size:22px}
 #home .mapChoice{padding:11px 0 9px}
 #home #chooseMap{padding:8px 12px;font-size:11px}
 #home .matchHint{font-size:10px;line-height:1.6;margin:7px 0 0}
 #home .homeTracks{gap:13px}
 #home .trackButton{padding:9px 14px}
 #home .trackButton small{font-size:10px}
 #home .trackButton b{font-size:16px;margin:2px 0}
 #home .trackButton span{font-size:10px;line-height:1.4}
 #home #leagueTrack{padding-top:9px;padding-right:70px}
 #home .leagueEmblem{width:52px;height:52px;right:12px}
 #home .stationPreview{bottom:6px;left:14px;right:14px}
 #home .roomMilestone b{font-size:8.5px}#home .roomMilestone small{font-size:8px}
 /* padding の一括指定は 112行目の padding-bottom:max(18px,env(safe-area-inset-bottom)) と
    詳細度が同じで、後ろにあるこちらが勝つ。この帯は iPad の横持ち（1024×768）に当たるので、
    ホーム領域の逃げを残したまま下の余白だけ詰める。 */
 #home .homeFooter{padding:8px 4.5vw max(10px,env(safe-area-inset-bottom));min-height:62px;gap:12px}
 #home .homeFooter button{font-size:10.5px;padding:8px 12px}
 #home #homeStatus{font-size:10.5px;line-height:1.6}
 body:has(#home:not([hidden])) #menuSound{top:11px;height:40px;min-height:40px}
}
/* 高さ778px以上の横長：右列は h1 が最大の40pxになると349px必要で、top:10% を足すと
   ハンガーの段は389pxいる。min-height:760px に貼り付くと4〜8pxはみ出していたので、
   必要な高さを先に確保する。基本の見た目（文字の大きさ）は変えない。 */
@media(orientation:landscape) and (min-height:778px){
 #home{min-height:778px;grid-template-rows:84px minmax(389px,1fr) 222px auto}
}
/* 画面より広い段ができないようにする。#home は1列のグリッドで、列は既定の auto なので
   いちばん広い段（ヘッダー。横並びで折り返さない4つの塊＋音スイッチ分の余白）の
   min-content まで列が広がる。#home は overflow:hidden なので、はみ出した右側は
   切り取られて触れなくなる（幅768pxで列873px → 「一族を見る」「戦績を見る」「マップ変更」が画面外）。 */
#home{grid-template-columns:minmax(0,1fr)}
#home .homeHeader{min-width:0}
#home .homeWordmark{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* 幅が狭いと見出し（nowrap）が右列の幅を超えて、列の右端から1〜26pxはみ出していた。
   画面の外へは出ないが右端がそろわないので、幅に応じて字を詰めて列の中に収める。
   縦持ちのスマホ（幅600px以下）は右列が全幅になるので対象外。
   高さ550px以下の横長は、その帯の指定（17〜19px）がすでに列へ収めているので触らない
   （ここで上書きすると667×375で右列が3pxはみ出す）。 */
@media(min-width:601px) and (max-width:860px) and (min-height:551px){
 #home .matchChoice h1{font-size:clamp(19px,2.9vw,27px)}
}

/* 高さ360px以下の横持ち（iPhone SE 第1世代の568×320など）。
   2026-11-11、#home の min-height:360px が画面高320pxを超えていたため全体が40pxはみ出し、
   フッターの「訪問ボーナス」「一族を見る」「戦績を見る」が画面外（y=331）で押せなかった。
   min-height を外して画面高に収め、足りない40pxはトラックのカードを小さくして捻出する。
   ヘッダーの44pxと hangar の132pxは動かさない。ヘッダーを縮めるとクルーの絵（.hero は
   hangar の中で絶対配置）がロゴまで上がって「COSMO ROLLERS」が押せなくなり、
   hangar を縮めると右の .matchChoice が下の段に覆われて「マップ変更」が押せなくなる。 */
@media(orientation:landscape) and (max-height:360px){
 #home{min-height:0;grid-template-rows:44px 132px minmax(0,1fr) auto}
 #home .homeTracks{gap:5px;padding:4px 4vw 5px}
 #home .trackButton{min-height:40px;padding:5px 9px}
 #home .trackButton b{font-size:12.5px;margin:0;line-height:1.2}
 #home .trackButton small{font-size:8.5px;line-height:1.1}
 #home .trackButton span{font-size:9px;line-height:1.1}
 #home .homeFooter{padding:2px 3vw;gap:10px;min-height:0}
 #home .homeFooter button{font-size:9.5px;padding:5px 9px;min-height:44px}
 #home #homeStatus{font-size:9.5px;margin:0;min-height:0}
}

/* ============ version 7：静かなホーム（2026-11-11） ============
   「せっかくかっこいいトップページだったのに、いろいろとうるさい画面になってる」。
   version 6 で入口が6つになり、画面の下半分が大きなカード2段で埋まり、上端は
   勝利・試合・パーツの数値帯になっていた。背景（帰還デッキ）と主役（クルー・対戦へ）が
   上下の情報帯に挟まれて窮屈になったのが「うるささ」の正体。
   入口も現在値もひとつも隠さず、見た目の階層だけを作り直す：
     ・いま遊ぶ形（指令・遠征・CPUリーグ）＝1段の3枚。背景を透かす薄いガラスにする
     ・ステーションと記録（整備ドック・ステーション・航海記録・一族・戦績・補修パーツ）
       ＝下の1行の棚。ラベルと現在値だけの小さなボタン
     ・ヘッダーの数値帯は棚の「戦績」「補修パーツ」へ移し、上は名前と称号だけにする
   撤去した文字は、どれも押した先のシートに同じものがある（短縮の内訳は
   docs/design-directions.md の同名の節）。 */

/* 上端：数値帯が無くなったぶん、名前と称号に幅を戻す（「けんし…」と切れていた）。 */
#home .homeIdentity h2{max-width:min(40vw,420px)}
#home .homeHeader{gap:16px}

/* いま遊ぶ形：3枚を1段に。カードの地を薄くして、背景のステーションを透かす。 */
#home .homeTracks{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);
 height:100%;margin:0 5vw;gap:16px;padding:0 0 2px}
#home .trackButton{justify-content:center;padding:14px 20px;border-radius:14px;
 border-color:#7ff0c824;background:linear-gradient(170deg,#0c2632b3,#06141cc4);
 box-shadow:0 14px 32px #0000004d,inset 0 1px 0 #ffffff12}
#home .trackButton:hover{border-color:#7ff0c866;transform:translateY(-2px);
 background:linear-gradient(170deg,#12394adb,#08202ce0);
 box-shadow:0 18px 40px #00000066,0 0 28px #7ff0c81a,inset 0 1px 0 #ffffff24}
#home .trackButton small{font-size:10.5px;letter-spacing:.14em}
#home .trackButton b{font-size:21px;margin:5px 0 3px}
#home .trackButton span{font-size:11px;line-height:1.45}
#home #leagueTrack{padding:14px 84px 14px 20px}
#home .leagueEmblem{width:58px;height:58px;right:16px;top:50%;transform:translateY(-50%)}

/* 下の棚：ラベルと現在値だけの1行。押せる高さ（44px）は保つ。 */
#home .homeFooter,.insideHome #home .homeFooter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
 min-height:0;padding:12px 5vw max(14px,env(safe-area-inset-bottom));background:none;border:0}
#home .homeFooter .shelfLink{display:inline-flex;align-items:baseline;gap:8px;min-height:44px;
 padding:8px 14px;border:1px solid #7ff0c81f;border-radius:11px;background:#06161fa6;
 color:#dcebe4;font:inherit;white-space:nowrap;box-shadow:none;backdrop-filter:blur(6px);
 transition:border-color .14s,background .14s}
#home .homeFooter .shelfLink small{font-size:10px;letter-spacing:.12em;color:#7fae9f}
#home .homeFooter .shelfLink b{font-size:13px;font-weight:500;color:#eef7f2;letter-spacing:.02em}
#home .homeFooter .shelfLink:hover{border-color:#7ff0c866;background:#0c2a36cc}
#home #homeStatus{flex:1 1 100%;margin:0;min-height:0;font-size:11px;color:#a8c4b9;text-align:left}
/* shell.css の `.insideHome #home footer`（id1+class1+型1）が `#home .homeFooter` より
   強いので、帯ごとの上書きは必ずこの詳細度で書く。 */
.insideHome #home .homeFooter{padding:12px 5vw max(14px,env(safe-area-inset-bottom))}

/* 基本（帯に当たらない画面。幅601px以上の縦持ち＝iPadの縦など）もカードは1段。 */
#home{grid-template-rows:84px minmax(300px,1fr) 124px auto}
/* 段の配分：カードが1段になったぶん、余りはハンガー（主役と背景）が吸う。
   ハンガーの最低値は home-rows.test.js が要求する実測値をそのまま維持する。 */
@media(orientation:landscape) and (min-height:778px){
 #home{min-height:778px;grid-template-rows:84px minmax(389px,1fr) 124px auto}
}
@media(orientation:landscape) and (min-height:601px) and (max-height:777px){
 #home{min-height:0;grid-template-rows:62px minmax(292px,1fr) 112px auto}
 #home .trackButton b{font-size:19px}
 #home .homeFooter,.insideHome #home .homeFooter{padding:9px 4.5vw max(12px,env(safe-area-inset-bottom))}
}
@media(orientation:landscape) and (min-height:551px) and (max-height:600px){
 #home{grid-template-rows:54px minmax(230px,1fr) 96px auto}
}
@media(orientation:landscape) and (max-height:550px){
 #home{grid-template-rows:54px minmax(148px,1fr) 86px auto}
 #home .homeTracks{gap:10px;margin:0 3vw}
 #home .trackButton{padding:9px 13px;border-radius:11px}
 #home .trackButton small{font-size:9px;letter-spacing:.1em}
 #home .trackButton b{font-size:16px;margin:2px 0}
 #home .trackButton span{font-size:9.5px;line-height:1.3}
 #home #leagueTrack{padding:9px 58px 9px 13px}
 #home .leagueEmblem{width:44px;height:44px;right:9px}
 #home .homeFooter,.insideHome #home .homeFooter{padding:7px 3vw max(7px,env(safe-area-inset-bottom));gap:6px}
 #home .homeFooter .shelfLink{min-height:40px;padding:6px 10px;gap:6px;border-radius:9px}
 #home .homeFooter .shelfLink small{font-size:9px}
 #home .homeFooter .shelfLink b{font-size:11px}
 #home #homeStatus{font-size:9.5px}
}
@media(orientation:landscape) and (max-height:390px){
 #home{grid-template-rows:44px minmax(132px,1fr) 74px auto}
 #home .trackButton{padding:7px 11px}
 #home .trackButton b{font-size:14px;margin:1px 0}
 #home .trackButton span{font-size:8.5px;line-height:1.25}
 #home #leagueTrack{padding:7px 50px 7px 11px}
 #home .leagueEmblem{width:38px;height:38px;right:7px}
 #home .homeFooter .shelfLink{min-height:38px;padding:5px 9px;gap:5px}
 #home .homeFooter .shelfLink small{font-size:8.5px}
 #home .homeFooter .shelfLink b{font-size:10.5px}
}
@media(orientation:landscape) and (max-height:360px){
 #home{min-height:0;grid-template-rows:44px minmax(140px,1fr) 58px auto}
 #home .homeTracks{gap:6px}
 #home .trackButton{padding:5px 9px}
 #home .trackButton b{font-size:13px}
 #home .trackButton span{font-size:8px}
 #home .homeFooter,.insideHome #home .homeFooter{padding:3px 3vw max(3px,env(safe-area-inset-bottom));gap:4px}
 #home .homeFooter .shelfLink{min-height:32px;padding:4px 8px;gap:4px}
 #home .homeFooter .shelfLink small{font-size:8px}
 #home .homeFooter .shelfLink b{font-size:10px}
}
/* 縦持ちのスマホ：3枚は1列に積む。棚は折り返して2〜3行になる。 */
@media(max-width:600px) and (orientation:portrait){
 /* 基本の段の指定はこのブロックより前にあるので、ここで縦積みへ戻す */
 #home{grid-template-rows:auto auto auto auto}
 #home .homeTracks{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;height:auto;margin:0 20px}
 #home .trackButton{min-height:96px;padding:13px 18px}
 #home .homeFooter,.insideHome #home .homeFooter{padding:14px 20px 78px;gap:7px;justify-content:flex-start}
}

/* 数値帯が持っていた margin-left:auto が無くなったので、名前が中央へ流れていた。
   右端へ寄せるのはアカウントの入口（と、その左に固定の音スイッチ）だけ。 */
#home #account{margin-left:auto}
/* カードが1段になってハンガーが広がったぶん、右列は上端ではなく主役と同じ高さに置く。
   高さ600px以下の横長は、もともと上端から詰めて配っているので触らない。 */
@media(orientation:landscape) and (min-height:601px){
 #home .matchChoice{top:50%;transform:translateY(-50%)}
}
/* 棚は画面の端に散らさず、カードの段と同じまとまりとして中央に置く。 */
#home .homeFooter,.insideHome #home .homeFooter{justify-content:center}
#home #homeStatus{text-align:center}
/* 下端の暗幕は、2段の大きなカードを置いていたころの濃さだった。
   カードと棚が自分の地を持つので、背景のステーションを沈めない濃さまで戻す。 */
#home::before{background:linear-gradient(180deg,#051820a6 0,transparent 19%,transparent 60%,#061b2787 84%,#071d28cc 100%)}

/* 暗幕を薄くしたぶん、右列（出発の文・通常戦の条件）が背景の明るい手すりに重なって
   読みにくくなった。下端ではなく「右側だけ」を沈めて、左のクルーと背景は明るいまま保つ。 */
#home::before{background:
 linear-gradient(180deg,#051820a6 0,transparent 19%,transparent 60%,#061b2787 84%,#071d28cc 100%),
 linear-gradient(96deg,transparent 44%,#04151e7a 68%,#04151ec4 100%)}
/* 縦持ちは右列が全幅のカードになるので、横方向の暗がりは当てない（上の基本指定は
   portrait の @media より後ろにあり、そのままだと黙って勝つ）。 */
@media(max-width:600px) and (orientation:portrait){
 #home::before{background:linear-gradient(#061c2577,transparent 18%,#08232d22 35%,#0b2530e8 62%,#0b2530 85%)}
}

/* 「通常戦 · CPU5人」と「リーグptの変動なし」は別の条件。以前は短高横で <br> を
   display:none にして1行へ畳んでいたが、区切りが消えて「CPU5人リーグpt」と1語に読めた。
   2つの文を span に分け、行の高さが足りない画面では区切り記号を足して1行にする。 */
#home .matchHint span{display:block}
@media(orientation:landscape) and (max-height:430px){
 #home .matchHint span{display:inline}
 #home .matchHint span+span::before{content:' ／ '}
}

/* ===== 帰還デッキの飾り（2026-11-16 ユーザーテストH） =====
   飾りはクルーの箱（.character）の中に置き、位置と大きさはその箱に対する割合で決める。
   画面の帯ごとにクルーの幅が変わっても飾りが一緒に縮むので、帯ごとの指定はほとんど要らない。
   主（slot0）は手前の左、2つ目（slot1）は手前の右、3つ目（slot2）は奥の右上。奥の飾りだけクルー
   （canvas は z-index:1）の後ろに描き、少し小さく暗くして奥行きを出す。
   高さは床ではなくクルーの球の横に合わせる。背の低い横画面ではクルーの箱の下端がカードの段まで
   はみ出している（932×430 で22px）ので、箱の下端に置くと飾りがカードに潜る。足もとの光の皿（::before）で
   「浮かべて飾っている」と読ませ、背景の床の位置が画面ごとに違っても浮いて見えないようにする。
   飾りは指を受けない（pointer-events:none）。クルー・対戦へ・棚のボタンを押す邪魔をしない。 */
#home .deckDecor{position:absolute;inset:0;pointer-events:none}
#home .deckDecor .deckItem{position:absolute;width:46%;aspect-ratio:120/115;z-index:2;filter:drop-shadow(0 8px 7px #021820c0) drop-shadow(0 0 12px #8fe6c340)}
#home .deckDecor .deckItem::before{content:'';position:absolute;left:10%;right:10%;bottom:1%;height:18%;border-radius:50%;background:radial-gradient(closest-side,#d6fff1d9,#7fe9c88c 40%,#2aa58e33 72%,transparent);box-shadow:0 0 0 1.5px #a9f5dc80,0 0 18px #6fe3c266;z-index:-1}
#home .deckDecor .deckItem svg{position:relative;display:block;width:100%;height:100%;overflow:visible}
#home .deckDecor .slot0{left:-36%;bottom:20%}
#home .deckDecor .slot1{right:-36%;bottom:20%}
#home .deckDecor .slot2{right:-40%;bottom:50%;width:32%;z-index:0;filter:drop-shadow(0 6px 6px #021820b0) brightness(.84)}
/* 置いた直後に一度だけ光って現れる。光の輪（::after）は飾りの足もとから広がって消える。 */
#home .deckDecor .deckItem.isNew{animation:deckArrive 1.3s cubic-bezier(.2,.8,.25,1) both}
#home .deckDecor .deckItem.isNew::after{content:'';position:absolute;left:10%;right:10%;bottom:1%;height:18%;border-radius:50%;border:2px solid #b8ffe4;box-shadow:0 0 18px #7ff0c8,inset 0 0 12px #7ff0c8aa;animation:deckRing 1.3s ease-out both}
@keyframes deckArrive{0%{opacity:0;transform:translateY(18%) scale(.6);filter:brightness(2.6) drop-shadow(0 0 24px #b8ffe4)}45%{opacity:1;transform:translateY(-5%) scale(1.08);filter:brightness(1.8) drop-shadow(0 0 28px #7ff0c8)}100%{opacity:1;transform:none}}
@keyframes deckRing{0%{opacity:0;transform:scale(.4)}30%{opacity:1}100%{opacity:0;transform:scale(2)}}
/* 縦長のタブレット（768×1024 など）はクルーの左右の余白が箱の幅の3割ほどしかない。 */
@media(min-width:601px) and (max-width:860px) and (min-height:551px){
 #home .deckDecor .slot0{left:-24%}
 #home .deckDecor .slot1{right:-24%}
 #home .deckDecor .slot2{right:-28%;width:28%}
}
/* 縦持ちのスマホはクルーが画面の中央で、真下に「対戦へ」のカードがある。左右へ張り出さず、下へも下げない。 */
@media(max-width:600px) and (orientation:portrait){
 #home .deckDecor .deckItem{width:30%}
 #home .deckDecor .slot0{left:-10%;bottom:10%}
 #home .deckDecor .slot1{right:-10%;bottom:10%}
 #home .deckDecor .slot2{right:-8%;bottom:58%;width:26%}
}
@media(prefers-reduced-motion:reduce){#home .deckDecor .deckItem.isNew,#home .deckDecor .deckItem.isNew::after{animation:none}}
