:root{color-scheme:dark;--bg:#101822;--ink:#f4f4ed;--muted:#a4afbd;--red:#fc594f;--line:#ffffff21;--side:244px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Yu Gothic",Meiryo,sans-serif}button,a,input{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:transparent;padding:12px 18px}button:hover{background:#ffffff10}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #ffba6a;outline-offset:4px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);background:#0b1119;padding:38px 26px 24px;display:flex;flex-direction:column;border-right:1px solid var(--line);z-index:5;overflow:auto}.brand{font-size:30px;font-weight:900;line-height:.95;letter-spacing:-1.2px;color:var(--ink);text-decoration:none}.brand span{display:block;font-size:10px;letter-spacing:1px;line-height:2.8}.edition{font-size:12px;margin:23px 0 36px;color:var(--red)}.edition span{display:block;color:#6e7a89;font-size:9px;letter-spacing:1.5px;margin-top:5px}nav{display:grid;gap:8px}nav button{text-align:left;border:0;padding:14px 8px;font-size:13px;color:var(--muted);position:relative}nav button span{font-size:10px;margin-right:14px;color:#667383}nav button[aria-current="page"]{background:#fc594f16;color:#fff}nav button[aria-current="page"]:before{content:"";position:absolute;left:-26px;top:0;bottom:0;width:4px;background:var(--red)}nav button[aria-current="page"] span{color:var(--red)}.legal{margin-top:auto;padding-top:32px;display:grid;gap:9px}.legal button{border:0;padding:0;text-align:left;font-size:10px;color:#9ca7b5}.sidebar>small{font-size:9px;color:#586574;margin-top:24px}main{margin-left:var(--side);min-height:100svh;padding-bottom:92px}.topbar{height:74px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;letter-spacing:2px;font-size:10px;color:var(--muted);border-bottom:1px solid var(--line)}.preview-label{letter-spacing:1px;border:1px solid var(--line);padding:6px 10px;font-size:10px}.scene{padding:44px 5vw;min-height:calc(100svh - 166px)}.hero{position:relative;overflow:hidden;display:flex;align-items:center;min-height:calc(100svh - 166px)}.hero-copy{position:relative;z-index:2;max-width:680px}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--red);font-weight:700}h1{font-size:clamp(36px,4.8vw,76px);line-height:1.38;letter-spacing:-2px;margin:28px 0}h2{font-size:clamp(25px,3vw,43px);letter-spacing:-1px;line-height:1.4;margin:12px 0 16px}h3{font-size:23px}.subtitle{font-size:19px}.subtitle b{font-size:11px;border:1px solid var(--line);padding:4px 8px;margin-left:10px}.lead{font-size:14px;line-height:2.1;color:var(--muted);margin:24px 0 32px}.primary{background:var(--red);color:#111;border:0;font-weight:bold;min-width:235px;display:flex;justify-content:space-between;gap:30px}.primary:hover{background:#ff7a6f}.hero-art{position:absolute;inset:0;background:radial-gradient(ellipse at 85% 30%,#24576877,transparent 55%),linear-gradient(115deg,#101822 30%,#1c303d);overflow:hidden}.orbit{position:absolute;right:-15%;top:10%;width:65%;aspect-ratio:1;border:1px solid #91c4ca22;border-radius:50%;box-shadow:0 0 0 55px #91c4ca06,0 0 0 115px #91c4ca05}.ball{position:absolute;right:10%;top:20%;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#afc6c8 40%,#35505a 75%);box-shadow:0 30px 80px #0008;color:#172732;font-size:150px;line-height:170px;text-align:center;transform:rotate(-20deg);opacity:.55}.pitch{position:absolute;right:-20%;bottom:-45%;width:110%;height:80%;border:1px solid #a3dbd62b;transform:perspective(400px) rotateX(55deg) rotateZ(-20deg);background:repeating-linear-gradient(90deg,transparent 0 100px,#a3dbd610 101px 102px)}.art-label{position:absolute;bottom:35px;right:35px;font-size:9px;letter-spacing:2px;color:#72909b}.hero-index{position:absolute;top:35px;right:35px;color:#7b939d;font-size:12px}.section-heading>p:last-child,.fine{color:var(--muted);font-size:12px;line-height:1.8}.media-frame{width:100%;aspect-ratio:16/9;background:#080e16;position:relative;overflow:hidden;max-height:64vh}.media-frame video,.media-frame img{width:100%;height:100%;object-fit:contain}.media-placeholder,.op-placeholder{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:radial-gradient(ellipse at center,#233e4b,#0a1420);padding:20px}.media-placeholder p,.media-placeholder small,.op-placeholder small{font-size:12px;color:var(--muted)}.play-symbol{font-size:60px;color:var(--red)}.character-layout{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.portrait{min-height:330px;background:linear-gradient(135deg,#263e4a,#121c28);display:grid;place-items:center;border-bottom:3px solid var(--red)}.portrait>span{font-size:150px;font-family:serif;color:#f4f4ed25}.portrait small{font-size:8px;color:var(--muted);padding:15px}.character-copy h3{font-size:44px;margin:16px 0}.character-copy>p{line-height:2;color:var(--muted)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips button{padding:9px 14px;font-size:12px}.chips button[aria-pressed="true"]{border-color:var(--red);color:var(--red);background:#fc594f0c}.systems{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:60px}.systems article{padding:22px 0;border-top:1px solid var(--line)}.systems article>span{font-size:48px;font-weight:bold;color:var(--red)}.systems h3{font-size:20px}.systems p{font-size:14px;color:var(--muted);line-height:2}.ranking-heading,.ranking-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.sample-badge{font-size:11px;color:#ffc47c;border:1px solid #ffc47c55;padding:6px 10px;white-space:nowrap}.ranking-toolbar{margin:22px 0}.ranking-toolbar p{font-size:11px;color:var(--muted)}.table-scroll{max-height:480px;overflow:auto;border-top:1px solid var(--line)}table{width:100%;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}th{font-size:10px;letter-spacing:1px;color:var(--muted);background:#101822;position:sticky;top:0}th,td{padding:12px 20px;border-bottom:1px solid var(--line)}td{font-size:13px}td:first-child{width:90px;color:var(--red);font-weight:bold}td:last-child,th:last-child{text-align:right}#moreRanks{margin-top:16px}.secondary{font-size:12px}.opening-frame img{position:absolute;inset:0}.op-placeholder h3{font-family:serif;font-size:clamp(24px,4vw,54px)}.info p{line-height:2;max-width:700px}.controls{position:fixed;bottom:0;left:var(--side);right:0;min-height:76px;background:#0b1119f5;border-top:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:14px 3vw;z-index:4;flex-wrap:wrap}.transport{display:flex;gap:6px}.controls button{padding:8px 12px;font-size:11px}#progressLabel{font-size:10px;color:var(--muted)}#soundControls{margin-left:auto;display:flex;align-items:center;gap:12px}#soundControls label{font-size:10px;display:flex;align-items:center;gap:8px}input[type=range]{width:90px;accent-color:var(--red)}.progress-track{position:absolute;bottom:0;left:0;right:0;height:3px;background:#ffffff10}#progressBar{height:100%;background:var(--red);width:0}#rankingStatus{font-size:12px;color:#ffc47c}@media(min-width:1600px){.scene{max-width:1500px;margin:auto}}@media(max-width:900px){:root{--side:190px}.sidebar{padding:30px 18px}.brand{font-size:25px}nav button[aria-current="page"]:before{left:-18px}.scene{padding:30px}.systems{gap:18px}.character-layout{gap:25px}.ball{right:3%;opacity:.3}.ranking-heading{align-items:flex-start;flex-direction:column}}@media(max-width:640px){:root{--side:0px}.sidebar{position:relative;width:100%;padding:20px 18px 12px;overflow:visible}.brand{font-size:22px;line-height:1.1}.brand br{display:none}.brand span{font-size:9px;line-height:2}.edition{position:absolute;right:18px;top:20px;margin:0}nav{display:flex;overflow-x:auto;margin-top:18px;gap:4px}nav button{flex:0 0 auto;padding:12px 9px;font-size:11px}nav button span{display:none}nav button[aria-current="page"]:before{left:0;right:0;top:auto;height:2px;width:auto}.legal{display:flex;flex-wrap:wrap;padding-top:14px;gap:12px}.legal button{font-size:9px}.sidebar>small{display:none}main{margin:0;padding-bottom:112px}.topbar{height:50px;padding:0 20px;font-size:8px}.scene{padding:26px 20px;min-height:60svh}.hero{min-height:65svh}.hero-copy{padding:20px 0}h1{font-size:39px;letter-spacing:-1px}.subtitle{font-size:15px}.eyebrow{font-size:9px;letter-spacing:2px}.hero-index{display:none}.ball{width:120px;height:120px;font-size:100px;line-height:110px;top:9%;right:2%}.art-label{font-size:7px;bottom:14px;right:15px}.character-layout{grid-template-columns:1fr}.portrait{min-height:180px}.portrait>span{font-size:90px}.character-copy h3{font-size:32px}.systems{grid-template-columns:1fr;margin-top:20px;gap:5px}.systems article>span{font-size:30px}.systems article{padding:15px 0}.systems h3{margin:10px 0}.ranking-toolbar{align-items:flex-start;flex-direction:column}th,td{padding:12px}.controls{padding:12px 16px;gap:10px;min-height:82px}#soundControls{margin-left:0}.media-frame{max-height:none}.media-placeholder h3{margin:4px}.media-placeholder p{font-size:10px}.play-symbol{font-size:36px}.media-placeholder small{font-size:9px}#progressLabel{margin-left:auto}.op-placeholder small{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* v2: タイトル画面の金色・青緑・紺色。読みやすさを優先。 */
:root{color-scheme:dark;--bg:#122b30;--ink:#fffdf3;--muted:#e0e7e6;--red:#9bece6;--line:#b5dcd659;--side:290px}
body{font-size:20px;line-height:1.8;background:radial-gradient(ellipse at 90% 0%,#356a67,#122b30 65%)}
.sidebar{background:linear-gradient(165deg,#203e40,#101d2e 65%);padding:28px 24px 24px;border-right:2px solid #d7b462;}
.brand{line-height:1.3;letter-spacing:0;text-align:center}.brand .brand-jp{display:block;font-size:29px;line-height:1.5;letter-spacing:0;color:#ffe195;font-weight:900;text-shadow:1px 2px 0 #54431e,0 0 12px #72e4e650}.brand .brand-en{font-size:20px;line-height:1.6;color:#d7fffb;letter-spacing:0;font-weight:600}
.edition{font-size:20px;margin:12px 0;text-align:center;color:#fff2bb}.edition span{font-size:16px;letter-spacing:.5px;color:#e0e7e6}
.language-switch{display:flex;gap:8px;margin:10px 0 22px}.language-switch button{flex:1;padding:8px 6px;min-height:48px;font-size:18px;border-radius:8px}.language-switch button[aria-pressed="true"]{background:#a9eee5;color:#122b30;border-color:#ffdc84;font-weight:700}
nav{gap:10px}nav button{font-size:20px;min-height:54px;padding:9px 12px;border:2px solid #40777f;border-radius:14px;background:linear-gradient(#2a3a52,#111d2e);color:#fff;font-weight:700;line-height:1.5}nav button span{font-size:18px;margin-right:10px;color:#b7e8e8}nav button[aria-current="page"]{border-color:#ffe29a;background:linear-gradient(#46515b,#18283d);box-shadow:0 0 0 2px #ba8a35,0 0 14px #9de7de44;color:#fff3b9}nav button[aria-current="page"]:before{display:none}nav button[aria-current="page"] span{color:#ffdd85}
.legal{gap:12px;padding-top:28px}.legal button{font-size:18px;min-height:44px;color:#edf7f5;padding:4px 0;line-height:1.6}.sidebar>small{font-size:16px;color:#c9dad7}
.topbar{min-height:72px;height:auto;gap:18px;padding:16px 4vw;letter-spacing:.3px;font-size:18px;color:#e9f9f4;background:#172c35}.preview-label{font-size:16px;letter-spacing:0;white-space:nowrap;border-color:#c7a25d}
.scene{padding:36px 4vw;min-height:calc(100svh - 180px)}
.hero{display:block;padding:0;min-height:0;overflow:visible}.hero-art{position:relative;inset:auto;background:none;overflow:visible}.key-visual{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}.hero-copy{padding:28px 4vw 38px;max-width:none;background:linear-gradient(135deg,#213e3f,#162b35);border-top:3px solid #d1b266}.hero-index{display:none}
h1{font-size:clamp(32px,4vw,60px);line-height:1.5;letter-spacing:0;margin:10px 0;color:#ffe195;text-shadow:1px 2px 0 #65471d,0 0 12px #89e5e744}h2{font-size:clamp(28px,3vw,44px);line-height:1.5;color:#fff0c4;letter-spacing:0}h3{font-size:26px;line-height:1.5}.hero-tagline{font-size:26px;font-weight:700;color:#fff;margin:8px 0}.eyebrow{font-size:18px;letter-spacing:.5px;color:#b0f5ec}.subtitle{font-size:22px}.subtitle b{font-size:20px;padding:4px 12px;border-color:#d5b971}.lead{font-size:22px;line-height:1.9;color:#fff4de;margin:20px 0}.primary,.secondary{font-size:20px;min-height:52px;border:2px solid #d8b86c;border-radius:16px;background:linear-gradient(#34465f,#101c2b);color:#fff;font-weight:700}.primary:hover,.secondary:hover{background:#365465}.primary{min-width:290px;box-shadow:0 0 0 2px #67c7ca55}
.section-heading>p:last-child,.fine{font-size:18px;color:#e0e7e6;line-height:1.9}.media-frame{max-height:none;border:2px solid #cfb474;border-radius:12px}.media-placeholder,.op-placeholder{background:radial-gradient(ellipse at top,#2e6260,#132235)}.media-placeholder p,.media-placeholder small,.op-placeholder small{font-size:18px;color:#eef6ed}.media-placeholder h3{font-size:30px}.play-symbol{color:#ffdb8a}.portrait{background:linear-gradient(135deg,#32575b,#142337);border:2px solid #cdb071;border-bottom-width:4px;border-radius:14px}.portrait small{font-size:18px;color:#fff;padding:15px;text-align:center}.character-copy h3{font-size:42px;color:#ffe59c}.character-copy>p{font-size:22px;line-height:1.9;color:#f4f7ec}.chips button{font-size:20px;min-height:48px;border-radius:9px;border:2px solid #638c91}.chips button[aria-pressed="true"]{color:#112c32;background:#a9eee5;border-color:#ffdd8a;font-weight:700}.systems{gap:28px;margin-top:32px}.systems article{border-color:#d0b578}.systems article>span{color:#ffdb8a}.systems h3{font-size:25px}.systems p{font-size:22px;color:#f0f7f3;line-height:1.9}.ranking-heading{flex-wrap:wrap}.sample-badge{font-size:18px;border-color:#d5b56a;color:#ffe195}.ranking-toolbar p{font-size:18px;color:#e7efef}.table-scroll{max-height:650px;border-color:#d5b56a}th{font-size:20px;color:#fff0bf;background:#203c42;letter-spacing:0}td{font-size:22px}th,td{padding:14px 20px;border-color:#cde6e630}td:first-child{color:#ffdc8b}tbody tr:nth-child(even){background:#ffffff06}#rankingStatus{font-size:20px}.info p{font-size:22px;line-height:1.9}.op-placeholder h3{color:#ffe7b0}
main{padding-bottom:130px}.controls{min-height:100px;gap:14px;background:#132333fa;border-top:2px solid #d8b66c;padding:14px 24px}.controls button{font-size:18px;min-height:48px;padding:8px 14px;border-radius:10px;border-color:#73989c;background:linear-gradient(#30435a,#162331)}#progressLabel{font-size:18px;color:#e4efe9}#soundControls label{font-size:18px}input[type=range]{width:120px;min-height:40px;accent-color:#a9eee5}.progress-track{height:5px}#progressBar{background:#ffdd8d}
@media(max-width:1150px) and (min-width:641px){:root{--side:255px}.sidebar{padding:24px 16px}.brand .brand-jp{font-size:26px}nav button{font-size:20px;padding:10px 8px}nav button span{font-size:16px;margin-right:7px}.systems{grid-template-columns:1fr}.character-layout{grid-template-columns:1fr}.portrait{min-height:220px}.controls{gap:12px}#soundControls{margin-left:0}.ranking-heading{align-items:flex-start}}
@media(max-width:640px){:root{--side:0px}body{font-size:18px}.sidebar{padding:18px 16px 14px;border-right:0;border-bottom:2px solid #d5b56a}.brand{text-align:left;display:block;padding-right:100px}.brand br{display:none}.brand .brand-jp{font-size:24px;line-height:1.5}.brand .brand-en{font-size:18px;line-height:1.6}.edition{position:static;text-align:left;margin:8px 0;font-size:18px}.edition span{display:none}.language-switch{position:absolute;right:16px;top:20px;flex-direction:column;gap:6px;margin:0}.language-switch button{font-size:18px;min-height:44px;padding:4px 12px}nav{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;overflow:visible;gap:10px}nav button{font-size:18px;min-height:52px;padding:10px 6px;text-align:center;overflow-wrap:anywhere}nav button span{display:none}.legal{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding-top:14px}.legal button{font-size:18px;min-height:44px}.topbar{font-size:18px;padding:12px 16px;min-height:60px}.preview-label{font-size:16px}.scene{padding:25px 18px}.hero{padding:0;min-height:0}.hero-copy{padding:22px 18px 30px}h1{font-size:30px;line-height:1.5}h2{font-size:28px}.hero-tagline{font-size:22px}.eyebrow{font-size:18px;letter-spacing:0}.subtitle,.subtitle b{font-size:18px}.lead{font-size:20px}.primary{min-width:0;width:100%;font-size:20px}.section-heading>p:last-child,.fine{font-size:18px}.media-placeholder{padding:12px}.media-placeholder h3{font-size:22px;margin:4px}.media-placeholder p{font-size:18px;margin:4px}.media-placeholder small{font-size:18px}.media-frame{aspect-ratio:auto;min-height:220px}.media-frame video{aspect-ratio:16/9}.opening-frame{aspect-ratio:16/9}.op-placeholder{min-height:220px}.opening-frame:has(img:not([hidden])){min-height:0}.portrait small{font-size:18px}.character-copy>p,.systems p,.info p{font-size:20px}.systems h3{font-size:24px}.chips button{font-size:18px}.ranking-toolbar p{font-size:18px}.table-scroll{max-height:620px}th,td{font-size:18px;padding:12px 8px}td:first-child{width:55px}td:nth-child(2){overflow-wrap:anywhere}td:last-child{white-space:nowrap}.op-placeholder small{font-size:18px}.controls{padding:12px 12px;min-height:100px;gap:10px}.controls button{font-size:18px;padding:8px 12px}#progressLabel{font-size:18px;margin-left:0}#soundControls{margin-left:0;flex-wrap:wrap}#soundControls label{font-size:18px}main{padding-bottom:190px}.transport{gap:8px}.preview-label{white-space:normal}.ranking-heading{gap:8px}}
@media(prefers-reduced-motion:reduce){.opening-frame img{transition:none!important}}

/* v2.2: キービジュアルだけのTOP、メニュー直下の巡回ボタン */
main{padding-bottom:0}.hero{padding:0;min-height:0}.hero-art{position:relative}.tour-control{margin-top:22px}.tour-control button{width:100%;min-height:54px;font-size:20px;font-weight:700;padding:10px 12px;border:2px solid #d8b86c;border-radius:14px;background:linear-gradient(#34465f,#101c2b);color:#fff}.tour-control button:hover{background:#365465}.scene:not(.hero){padding-bottom:145px}.controls{justify-content:flex-end}#soundControls{margin-left:0}.scene{min-height:100svh}.hero{min-height:0}
@media(max-width:640px){.tour-control{margin-top:14px}.tour-control button{font-size:18px;min-height:50px}.scene:not(.hero){padding-bottom:165px}.hero{min-height:0}.controls{justify-content:center}}

/* v2.3: 言語は巡回ボタン下。TOPに余白/最大幅制限を付けない。 */
.language-switch{position:static;display:flex;flex-direction:row;margin:14px 0 0;gap:8px}
.hero{margin:0!important;padding:0!important;max-width:none!important;width:100%}
.hero-art{margin:0;padding:0;border:0}.key-visual{display:block;width:100%;height:auto;margin:0;padding:0;border:0}
@media(max-width:640px){.language-switch{position:static;flex-direction:row;margin:12px 0 0}.language-switch button{flex:1}.brand{padding-right:0}}

/* v2.4: キービジュアルのタイトルと、二言語の4行ブランド */
.brand{display:block;text-align:center;padding:0;text-decoration:none}
.brand span{display:block;letter-spacing:0}
.brand .brand-motto{font-size:18px;line-height:1.6;color:#fff;margin:0 0 8px;text-shadow:0 2px 3px #000}
.brand .brand-title{font-size:30px;line-height:1.45;color:#ffe195;font-weight:900;overflow-wrap:anywhere;text-shadow:1px 2px 0 #54431e,0 0 8px #72e4e640}
.brand .brand-subtitle{font-size:22px;line-height:1.7;color:#b5fff4;margin-top:10px}
.brand .brand-story{font-size:18px;line-height:1.7;color:#fff;margin-top:3px}
#nav{margin-top:26px}.hero-art{position:relative;line-height:0}.title-overlay{position:absolute;top:2.5%;right:2%;width:43.23%;height:auto;pointer-events:none}
/* TOPは表示領域内に全体を収め、縦スクロールを発生させない。 */
body:has(#top:not([hidden])){overflow-x:hidden}
main:has(#top:not([hidden])){height:100svh;min-height:0;overflow:hidden}
.hero{height:100%;min-height:0}.hero-art{height:100%;display:flex;align-items:flex-start;justify-content:center}.key-visual{max-height:100%;width:100%;height:auto;object-fit:contain;object-position:top center}
@media(min-width:641px){.hero-art{width:min(100%,calc(100svh * 16 / 9));margin:0 auto}.title-overlay{top:2.5%;right:2%;width:43.23%}}
@media(max-width:640px){.brand{padding:0;text-align:center}.brand .brand-title{font-size:30px}.brand .brand-motto,.brand .brand-story{font-size:18px}.brand .brand-subtitle{font-size:22px}#nav{margin-top:20px}main:has(#top:not([hidden])){height:auto;overflow:hidden}.hero{height:auto}.hero-art{height:auto}.key-visual{max-height:none}.title-overlay{width:43.23%;top:2.5%;right:2%}}

@media(min-width:641px){main:has(#top:not([hidden])) #stage{height:100%}}

/* v2.5: 日英の画像ロゴと、少し左へ寄せたキービジュアルタイトル */
.brand-image-link{display:block;padding:0;line-height:0}.brand-image{display:block;width:100%;height:auto}.brand-image-en{display:none}html[lang="en"] .brand-image-ja{display:none}html[lang="en"] .brand-image-en{display:block}
.title-overlay{right:6%}
@media(min-width:641px){.title-overlay{right:6%}}
@media(max-width:640px){.brand-image-link{max-width:290px;margin:0 auto}.title-overlay{right:6%}}

/* v2.6: 上部キャラ選択、画像下端に紹介文を重ねる */
.character-scene{padding:20px 0 0!important;min-height:0}.character-tabs{padding:0 24px 20px;justify-content:center;gap:10px}.character-tabs button{flex:1;max-width:220px;min-height:54px;font-size:22px}
.character-frame{position:relative;margin:0;width:100%;background:#0b1520;line-height:0;overflow:hidden}.character-frame>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.character-caption{position:absolute;left:0;right:0;bottom:0;padding:26px 30px 22px;background:linear-gradient(transparent,#081422eb 20%,#081422f5);color:#fff;line-height:1.7;text-shadow:0 2px 3px #000}
.character-caption h3{font-size:28px;color:#ffe7a2;line-height:1.5;margin:0 0 6px}.character-caption p{font-size:22px;line-height:1.7;white-space:pre-line;margin:0;overflow-wrap:anywhere}
@media(max-width:900px){.character-caption{padding:20px}.character-caption h3{font-size:26px}.character-caption p{font-size:20px}}
@media(max-width:640px){.character-tabs{padding:0 14px 16px;gap:8px}.character-tabs button{flex:1 1 28%;font-size:20px;max-width:none}.character-caption{position:relative;margin-top:-28px;padding:30px 18px 20px;background:linear-gradient(transparent,#081422f5 28px);text-align:left}.character-caption h3{font-size:24px}.character-caption p{font-size:20px}}

/* v2.7: キャラクター画像をPCの画面高に合わせて縮小 */
@media(min-width:641px){
 main:has(#characters:not([hidden])){height:100svh;min-height:0;overflow:hidden}
 main:has(#characters:not([hidden])) #stage{height:100%}
 .character-scene{height:100%;padding:16px 0 0!important;display:flex;flex-direction:column;align-items:center}
 .character-tabs{flex:0 0 auto;width:100%;padding-bottom:16px;gap:8px}
 .character-tabs button{font-size:20px;min-height:48px}
 .character-frame{flex:0 1 auto;width:min(100%,calc((100svh - 100px) * 16 / 9));max-height:calc(100svh - 100px);margin:0 auto}
 .character-frame>img{max-height:calc(100svh - 100px);width:100%;height:auto;object-fit:contain}
 .character-caption{padding:24px 24px 18px}.character-caption h3{font-size:26px}.character-caption p{font-size:20px;line-height:1.65}
}
@media(max-width:640px){.character-scene{height:auto}.character-frame{max-height:none}}

/* v2.8: 蹴太カラー（白・赤・水色）の試作 */
:root{color-scheme:light;--bg:#f4fcff;--ink:#183544;--muted:#334f5d;--red:#b92436;--line:#75bacd;--side:290px}
body{background:linear-gradient(135deg,#fff,#e5f8ff);color:#183544}
.sidebar{background:linear-gradient(160deg,#fff,#e3f8ff);border-right:3px solid #db3e51;box-shadow:4px 0 16px #1a8caf18}
nav button{background:linear-gradient(#fff,#e0f4fc);color:#243b48;border:2px solid #71bbd0;box-shadow:none}
nav button:hover{background:#d8f4ff}
nav button[aria-current="page"]{background:linear-gradient(#e44758,#b32339);border-color:#fff;color:#fff;box-shadow:0 0 0 2px #df4156,0 0 12px #55c8e844}
.legal button,.sidebar>small{color:#244b5d}
.language-switch button{background:#fff;color:#193c4d;border-color:#65b6ce}
.language-switch button[aria-pressed="true"]{background:#d6374b;color:#fff;border-color:#a91f35}
.tour-control button,.primary,.secondary{background:linear-gradient(#fff,#d9f3ff);color:#9f1c32;border-color:#ce3148;box-shadow:0 0 0 2px #7bcee333}
.tour-control button:hover,.primary:hover,.secondary:hover{background:#d2f1ff}
.eyebrow,.systems article>span{color:#bd283c}h1,h2,h3{color:#ac2438;text-shadow:none}
.section-heading>p:last-child,.fine,.systems p,.info p,.ranking-toolbar p{color:#2c4b59}
.systems article{border-color:#6cbad1}.chips button{background:#fff;color:#153e50;border-color:#72bdd2}
.chips button[aria-pressed="true"]{background:#d8354c;color:#fff;border-color:#a51e33}
.chips button:hover{background:#d7f4ff}.chips button[aria-pressed="true"]:hover{background:#b6263b}
.sample-badge{background:#fff;color:#a51f35;border-color:#c92e43}.table-scroll{border-color:#72b8ce}
th{background:#daf2fb;color:#8d1e32}th,td{border-color:#89bdcd}td{color:#1e3d4d}td:first-child{color:#b3243c}tbody tr:nth-child(even){background:#dff5fc}
.media-frame{border-color:#63bdd8}.media-placeholder,.op-placeholder{background:radial-gradient(ellipse at top,#e9fbff,#b6e6f5);color:#17394b}
.media-placeholder h3,.op-placeholder h3{color:#b3263d}.media-placeholder p,.media-placeholder small,.op-placeholder small{color:#244857}.play-symbol{color:#cb3046}
.controls{background:#f2fcfffa;border-top-color:#d4384c}.controls button{background:#fff;color:#a82137;border-color:#64b5ce}#soundControls label{color:#21485a}input[type=range]{accent-color:#cf3048}
/* 80%透過＝背景の不透明度20%。画像の上の文字は白と濃い影で保護。 */
.character-caption{background:rgba(8,20,34,.20);text-shadow:0 2px 4px #000,1px 0 2px #000,-1px 0 2px #000}
.character-caption h3{font-size:52px;line-height:1.35;color:#fff;margin-bottom:8px;text-shadow:0 2px 4px #000,1px 0 2px #000,-1px 0 2px #000}
.character-caption p{font-size:40px;line-height:1.5;color:#fff}
.character-tabs button{font-size:40px;line-height:1.4;min-height:76px;padding:10px 12px}
@media(min-width:641px){.character-frame{width:min(100%,calc((100svh - 132px) * 16 / 9));max-height:calc(100svh - 132px)}.character-frame>img{max-height:calc(100svh - 132px)}}
@media(max-width:640px){.sidebar{border-right:0;border-bottom:3px solid #d4384c}.character-tabs button{font-size:40px;min-height:76px}.character-caption{background:rgba(8,20,34,.20);margin-top:-24px}.character-caption h3{font-size:48px}.character-caption p{font-size:40px}}

/* v2.9: 水色主体、赤は細いアクセント。背景30%透過＝不透明度70%。 */
:root{--red:#14768f;--line:#dc7181}
.sidebar{border-right-color:#64cce7;box-shadow:4px 0 16px #2099b51a}
nav button{border-color:#d97987;background:linear-gradient(#fff,#fbecef)}
nav button:hover{background:#edfaff}
nav button[aria-current="page"]{background:linear-gradient(#c8f3ff,#8fd5e8);color:#123848;border-color:#fff;box-shadow:0 0 0 2px #5bc6e0,0 0 12px #7edbf044}
.language-switch button{border-color:#d47b87}.language-switch button[aria-pressed="true"]{background:#b4eafb;color:#133d4e;border-color:#65bbd4}
.tour-control button,.primary,.secondary{color:#165f76;border-color:#6cbcd3;background:linear-gradient(#fff,#ddf5ff)}
.eyebrow,.systems article>span,h1,h2,h3{color:#16657c}
.chips button{border-color:#d67c89}.chips button[aria-pressed="true"]{background:#ade6f8;color:#123a4c;border-color:#62bad2}
.chips button[aria-pressed="true"]:hover{background:#96dcf1}
.sample-badge{color:#17617a;border-color:#75c4da}
th{color:#185f76}td:first-child{color:#16657c}
.media-placeholder h3,.op-placeholder h3,.play-symbol{color:#16657c}
.controls{border-top-color:#65c6e1}.controls button{color:#175f77;border-color:#da8190}input[type=range]{accent-color:#3dabc9}
/* TOPと同じ右領域で画像と操作を重ねる。 */
.character-scene{display:block;height:auto;padding:0!important;min-height:0!important;max-width:none!important;margin:0!important}
.character-frame{position:relative;width:100%!important;max-height:none!important;margin:0!important;line-height:0;background:#0b1520}
.character-frame>img{display:block;width:100%;height:auto;max-height:none!important;aspect-ratio:16/9;object-fit:contain}
.character-tabs{position:absolute;top:2%;right:2%;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;width:auto;max-width:28%;padding:0;gap:8px;z-index:3}
.character-tabs button{flex:0 0 auto;max-width:none;min-height:64px;font-size:40px;line-height:1.4;padding:8px 18px;color:#fff;background:rgba(12,36,52,.70);border:2px solid #b5e6f1;border-radius:12px;text-shadow:0 2px 3px #000}
.character-tabs button:hover{background:rgba(24,77,98,.70)}
.character-tabs button[aria-pressed="true"]{background:rgba(161,226,246,.70);color:#102f40;border-color:#fff;text-shadow:none;box-shadow:0 0 0 2px #6bc9e1}
.character-tabs button[aria-pressed="true"]:hover{background:rgba(146,216,240,.70)}
.character-caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:20px 24px;background:rgba(8,20,34,.70);line-height:1.5}
.character-caption h3{font-size:52px;color:#fff;line-height:1.35}.character-caption p{font-size:40px;color:#fff;line-height:1.5}
@media(min-width:641px){
 main:has(#characters:not([hidden])){height:100svh;min-height:0;overflow:hidden}
 main:has(#characters:not([hidden])) #stage{height:100%}
 .character-scene{height:100%}.character-frame{width:min(100%,calc(100svh * 16 / 9))!important;height:100%;margin:0 auto!important}.character-frame>img{max-height:100svh!important}
}
@media(max-width:640px){
 .sidebar{border-right:0;border-bottom-color:#64cce7}
 .character-tabs{top:8px;right:8px;max-width:36%;gap:4px}
 .character-tabs button{font-size:24px;min-height:40px;padding:4px 10px;border-radius:8px}
 .character-caption{position:relative;margin-top:-24px;padding:20px 18px;background:rgba(8,20,34,.70)}
 .character-caption h3{font-size:48px}.character-caption p{font-size:40px}
}

/* v3.0: スマホの縦/横画面。PCは既存の表示を維持する。 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}.mobile-menu-toggle{display:none}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 :root{--side:0px}
 body{font-size:20px;overflow-x:hidden}
 .sidebar{position:sticky;top:0;inset:auto;width:100%;height:auto;max-height:85svh;overflow:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:10px 14px;gap:10px;border-right:0;border-bottom:2px solid #64cce7;z-index:10;background:#eefbff}
 .brand-image-link{width:auto;max-width:calc(100% - 100px);margin:0;padding:0;line-height:1.4;text-align:left}
 .brand-image{display:none!important}
 .brand-image-link::before{content:'リフティングトラベラー';display:block;font-size:22px;font-weight:900;line-height:1.4;color:#14536c;letter-spacing:0}
 html[lang="en"] .brand-image-link::before{content:'Lifting Traveler'}
 .mobile-menu-toggle{display:block;min-height:46px;padding:8px 12px;font-size:18px;color:#164a60;background:#fff;border:2px solid #72bfd5;border-radius:10px}
 .sidebar #nav,.sidebar .tour-control,.sidebar .language-switch,.sidebar .legal,.sidebar>small{display:none}
 .sidebar.mobile-menu-open #nav{display:grid;width:100%;grid-template-columns:1fr 1fr;margin:0;gap:8px;overflow:visible}
 .sidebar.mobile-menu-open .tour-control{display:block;width:100%;margin:0}
 .sidebar.mobile-menu-open .language-switch{display:flex;width:100%;margin:0;position:static;flex-direction:row}
 .sidebar.mobile-menu-open .legal{display:grid;width:100%;grid-template-columns:1fr 1fr;margin:0;padding:0;gap:8px}
 .sidebar #nav button{font-size:18px;line-height:1.5;min-height:48px;padding:8px;text-align:center}.sidebar #nav button span{display:none}
 .sidebar .legal button{font-size:18px;min-height:44px}.tour-control button{font-size:18px;min-height:48px}
 main,main:has(#top:not([hidden])),main:has(#characters:not([hidden])){margin-left:0!important;height:auto!important;min-height:0!important;padding-bottom:0;overflow:visible!important}
 main #stage{height:auto!important}
 .scene{min-height:0;padding:24px 18px}.scene:not(.hero):not(.character-scene){padding-bottom:140px}
 .hero,.hero-art{height:auto!important;width:100%!important;min-height:0!important;margin:0!important}
 .key-visual{width:100%;height:auto;max-height:none!important}
 .character-scene{height:auto!important;padding:0!important}
 .character-frame{display:flex;flex-direction:column;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;overflow:visible}
 .character-tabs{position:static;order:0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;width:100%;max-width:none;padding:10px 12px;gap:8px;background:#edfaff;line-height:1.4}
 .character-tabs button{flex:1 1 60px;max-width:none;font-size:20px;min-height:48px;padding:6px 9px;border-radius:9px;white-space:nowrap}
 .character-frame>img{order:1;width:100%;height:auto;aspect-ratio:16/9;max-height:none!important;object-fit:contain}
 .character-caption{order:2;position:relative;left:auto;right:auto;bottom:auto;max-width:100%;margin-top:-14px;padding:16px 18px 20px;background:rgba(8,20,34,.70)}
 .character-caption h3{font-size:26px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}
 .character-caption p{font-size:20px;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}
 .controls{left:0;right:0;padding:10px 12px;min-height:70px;justify-content:center}
 .controls button,#soundControls label{font-size:18px}
}

/* v3.1: 1pxスクロール用の余地と、任意の全画面操作 */
.fullscreen-toggle{display:none}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 body{min-height:calc(100lvh + 1px)}
 .fullscreen-toggle{display:block;min-height:44px;font-size:18px;padding:6px 10px;border-radius:9px;color:#164a60;background:#fff;border:2px solid #72bfd5}
 .sidebar{gap:8px}.brand-image-link{flex:1;max-width:none}.brand-image-link::before{font-size:20px}
 .sidebar:has(.fullscreen-toggle:not([hidden])) .brand-image-link{max-width:calc(100% - 178px)}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 .sidebar{padding:4px 12px;min-height:48px}.brand-image-link::before{font-size:20px}
 .mobile-menu-toggle,.fullscreen-toggle{min-height:40px;padding:4px 10px}
 .character-frame{position:relative;display:block;height:calc(100dvh - 52px)!important;min-height:200px;overflow:hidden;background:#0b1520}
 .character-frame>img{height:100%;width:100%;max-height:100%!important;object-fit:contain;aspect-ratio:auto}
 .character-tabs{position:absolute;top:8px;right:8px;bottom:auto;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;width:120px;max-width:25%;gap:4px;padding:0;background:transparent;z-index:3}
 .character-tabs button{flex:0 0 auto;min-height:36px;font-size:18px;line-height:1.4;padding:5px 8px;white-space:nowrap}
 .character-caption{position:absolute;left:0;right:0;bottom:0;margin:0;padding:10px 144px 10px 16px;line-height:1.5;background:rgba(8,20,34,.70)}
 .character-caption h3{font-size:22px;margin-bottom:4px;line-height:1.4}
 .character-caption p{font-size:18px;line-height:1.5}
}

/* v3.2: 横向きでは見出し帯をなくし、小さい操作を左上へ重ねる */
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 .sidebar:not(.mobile-menu-open){position:fixed;top:6px;left:8px;right:auto;width:auto;min-height:0;height:auto;padding:4px;gap:6px;border:0;border-radius:10px;background:rgba(238,251,255,.70);box-shadow:none;overflow:visible}
 .sidebar:not(.mobile-menu-open) .brand-image-link{display:none}
 .sidebar:not(.mobile-menu-open) .fullscreen-toggle,.sidebar:not(.mobile-menu-open) .mobile-menu-toggle{font-size:18px;min-height:40px;padding:4px 10px;background:rgba(255,255,255,.70)}
 .sidebar.mobile-menu-open{position:fixed;top:6px;left:8px;right:8px;width:auto;max-height:calc(100dvh - 12px);padding:10px 14px;border:2px solid #64cce7;border-radius:12px;background:#eefbff;overflow:auto}
 .character-frame{height:100dvh!important;min-height:0}
 .character-caption{padding-top:8px;padding-bottom:8px}
}

/* v3.3: 重ねた画像/紹介文はタップを受けず、キャラボタンに届ける */
.character-frame>img,.character-caption{pointer-events:none}
.character-tabs{z-index:5;pointer-events:auto;isolation:isolate}
.character-tabs button{position:relative;pointer-events:auto;touch-action:manipulation}
#characterImageStatus{font-size:18px;color:#fff2a9}

/* v3.4: システム内の説明切り替え */
.top-brand{display:none}.top-logo-en{display:none}html[lang="en"] .top-logo-ja{display:none}html[lang="en"] .top-logo-en{display:block}
.system-scene{padding:28px 30px!important;min-height:100svh}.system-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:28px;align-items:start}
.system-tabs{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:12px;position:sticky;top:24px}
.system-tabs button{font-size:22px;line-height:1.5;padding:12px 14px;min-height:60px;text-align:center;background:rgba(12,36,52,.70);color:#fff;border:2px solid #b5e6f1;border-radius:12px;font-weight:700}
.system-tabs button[aria-pressed="true"]{background:rgba(161,226,246,.70);color:#102f40;border-color:#49a6c1;box-shadow:0 0 0 2px #c0effb}
.system-panel{grid-column:1;grid-row:1;min-width:0}.system-panel h2{white-space:pre-line;font-size:36px;line-height:1.5;margin:10px 0 16px}.system-lead{font-size:22px;line-height:1.8;margin:0 0 24px;color:#284957}
.system-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.system-cards section{padding:22px;background:#ffffffdb;border:2px solid #9edbe9;border-radius:14px}.system-number{font-size:24px;font-weight:bold;color:#16738c}.system-cards h3{font-size:25px;line-height:1.5;margin:8px 0 12px}.system-cards p{font-size:22px;line-height:1.8;margin:0;color:#244553;overflow-wrap:anywhere}
@media(max-width:1100px){.system-cards{grid-template-columns:1fr}}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 .top-brand{display:flex;justify-content:center;padding:14px 20px;background:linear-gradient(#fff,#e8faff);line-height:0}
 .top-brand img{width:240px;max-width:80%;height:auto;max-height:240px;object-fit:contain}
 .top-logo-en{display:none}html[lang="en"] .top-logo-en{display:block}
 .system-scene{padding:16px 14px 100px!important;min-height:0}.system-layout{display:flex;flex-direction:column;gap:20px}
 .system-tabs{position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;width:100%}.system-tabs button{flex:1 1 42%;font-size:20px;min-height:50px;padding:8px}
 .system-panel{width:100%}.system-panel h2{font-size:28px}.system-lead{font-size:20px}.system-cards{grid-template-columns:1fr;gap:14px}.system-cards section{padding:18px}.system-cards h3{font-size:24px}.system-cards p{font-size:20px}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 .top-brand img{max-height:130px;width:auto;max-width:65%}.top-brand{padding:10px 20px}
 .system-scene{padding-top:62px!important}.system-layout{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px}.system-tabs{grid-column:2;grid-row:1;position:sticky;top:10px;flex-direction:column}.system-tabs button{flex:0 0 auto;font-size:18px;min-height:44px;padding:6px}.system-panel{grid-column:1;grid-row:1}.system-panel h2{font-size:28px}
}

/* v3.5: 実画面に番号＋選択中の吹き出し。元画像は変更しない。 */
.system-layout{grid-template-columns:minmax(0,1fr) 180px;gap:22px}.system-tabs button{font-size:20px}.system-panel h2{font-size:30px}.system-lead{font-size:20px;margin-bottom:18px}
.screen-stage{position:relative;line-height:0;background:#102935;border:2px solid #86c4d4;border-radius:12px;overflow:hidden}.screen-stage>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;pointer-events:none}
.guide-marker{position:absolute;transform:translate(-50%,-50%);width:38px;height:38px;min-height:0;border-radius:50%;padding:0;border:3px solid #fff;background:#08617c;color:#fff;font-size:20px;font-weight:900;line-height:32px;box-shadow:0 1px 5px #0009;z-index:3;touch-action:manipulation}
.guide-marker[aria-pressed="true"]{background:#ffe296;color:#162d3b;border-color:#162d3b}.guide-marker:hover{background:#3a93ac}
.callout-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.callout-lines line{stroke:#fff0ab;stroke-width:3;filter:drop-shadow(0 1px 1px #071a25)}
.guide-bubble{position:absolute;width:34%;padding:14px 16px;border-radius:12px;background:rgba(9,30,45,.92);border:2px solid #b7eafb;color:#fff;line-height:1.5;z-index:2;pointer-events:none;box-shadow:0 2px 8px #0006}
.guide-bubble h3{font-size:20px;color:#fff0b2;margin:0 0 8px;line-height:1.5}.guide-bubble p{font-size:18px;margin:0;line-height:1.65;color:#fff;overflow-wrap:anywhere}
.guide-utilities{display:flex;justify-content:space-between;gap:16px;margin:14px 0;font-size:18px;line-height:1.6}.guide-utilities a{color:#155c73;text-decoration:underline;min-height:44px;display:flex;align-items:center;white-space:nowrap}
.guide-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-note{display:flex;gap:12px;text-align:left;background:#fff;border:2px solid #aed6e0;border-radius:12px;padding:16px;color:#234453;line-height:1.7;font-size:20px}
.guide-note[aria-pressed="true"]{background:#e3f8ff;border-color:#2082a0}.guide-note:hover{background:#edfaff}.note-number{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#176b84;color:#fff;text-align:center;font-size:20px;font-weight:700;line-height:32px}.guide-note strong{display:block;font-size:22px;color:#164a60;margin-bottom:6px}.guide-note>span:last-child{min-width:0}.guide-note>span:last-child>span{display:block}.guide-extra{font-size:20px;line-height:1.8;padding:14px 18px;border-left:4px solid #55b9d3}.guide-extra:empty{display:none}
@media(max-width:1100px){.guide-bubble{display:none}.callout-lines{display:none}.guide-notes{grid-template-columns:1fr}}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 .guide-bubble,.callout-lines{display:none}.guide-marker{width:34px;height:34px;line-height:28px;font-size:18px;border-width:2px}.guide-notes{grid-template-columns:1fr}.guide-note{font-size:20px}.guide-note strong{font-size:22px}.guide-utilities{font-size:18px;flex-wrap:wrap}.system-panel h2{font-size:28px}
}

/* v3.6: 文字サイズはキャラ紹介に統一。上段に選択、短い説明、実画面。 */
:root{--reading-size:40px;--reading-heading:52px}
.system-scene{padding:0!important;max-width:none!important;margin:0!important;min-height:0!important}
.system-layout{display:flex;flex-direction:column;gap:0}.system-tabs{position:static;display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;padding:2px;gap:2px}
.system-tabs button{flex:1;min-width:0;font-size:var(--reading-size);line-height:1.4;min-height:72px;padding:6px 8px;border-radius:10px;white-space:nowrap}
.system-panel{width:100%;min-width:0}.system-lead{font-size:var(--reading-size);line-height:1.5;margin:0;padding:10px 16px;color:#244553}
.screen-stage{width:100%;border:0;border-radius:0;overflow:visible}.screen-stage>img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:contain}
.guide-region{position:absolute;min-height:0;padding:0;border:3px solid #f32132;background:transparent;border-radius:3px;box-shadow:0 0 0 1px #fff9;z-index:2;cursor:pointer;touch-action:manipulation}
.guide-region:hover,.guide-region[aria-pressed="true"]{background:#ff283318;border-color:#ff1429;box-shadow:0 0 0 2px #fff}
.region-number{position:absolute;bottom:0;transform:translateY(55%);display:block;font-size:var(--reading-size);line-height:1.05;color:#fff;background:#c9182b;border-radius:50%;text-align:center;padding:0 2px;font-weight:bold;text-shadow:none;pointer-events:none}.region-number-right{right:0}.region-number-left{left:0}
.guide-dialog{width:min(1100px,94vw);max-width:94vw;max-height:85dvh;padding:26px 30px;border:3px solid #82cede;border-radius:16px;background:#0c2532;color:#fff;overflow:auto;font-size:var(--reading-size)}
.guide-dialog::backdrop{background:rgba(0,15,24,.55)}.guide-dialog h3{font-size:var(--reading-heading);line-height:1.4;color:#fff1bd;margin:0 0 18px}.guide-dialog p{font-size:var(--reading-size);line-height:1.65;margin:0;color:#fff}
.guide-close{display:block;margin:0 0 18px auto;font-size:var(--reading-size);line-height:1.4;padding:8px 18px;color:#10384b;background:#caf2ff;border-radius:12px;border:2px solid #fff;min-height:48px}
.system-missing{padding:36px 24px;min-height:250px;background:#dff5ff;color:#244b5b;font-size:var(--reading-size);line-height:1.8}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 :root{--reading-size:20px;--reading-heading:26px}.system-scene{padding:0!important}.system-layout{display:flex;gap:0}.system-tabs{position:static;display:flex;flex-direction:row;flex-wrap:nowrap;padding:2px;gap:2px}.system-tabs button{font-size:20px;min-height:52px;padding:6px 4px;white-space:normal;overflow-wrap:anywhere}.system-lead{font-size:20px;padding:8px 12px;line-height:1.5}.guide-dialog{padding:20px;max-height:88dvh}.guide-dialog h3{font-size:26px}.guide-dialog p,.guide-close{font-size:20px}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 :root{--reading-size:18px;--reading-heading:22px}.system-tabs{padding-left:190px}.system-tabs button{font-size:18px;min-height:48px;white-space:nowrap}.system-lead{font-size:18px}.guide-dialog h3{font-size:22px}.guide-dialog p,.guide-close{font-size:18px}.guide-dialog{padding:14px 20px}
}

/* v3.7: 暗転なし、対象の近くに出す非モーダル解説 */
.guide-dialog{position:fixed;margin:0;inset:auto;z-index:30;box-shadow:0 5px 24px #00162355;background:rgba(12,37,50,.96)}
.guide-dialog::backdrop{background:transparent}


/* v3.8: 世界観の導入と、読みやすい運営情報 */
main:has(#top:not([hidden])){height:auto;min-height:100svh;overflow:visible}
main:has(#top:not([hidden])) #stage{height:auto!important}
.hero,.hero-art{height:auto!important;min-height:0}.hero-art{width:100%!important;max-width:none;margin:0!important}.key-visual{max-height:none;width:100%;height:auto}
.world-intro{padding:28px 36px 36px;background:linear-gradient(135deg,#fff,#e0f6ff);border-top:3px solid #a6dbe8;color:#244553;line-height:1.7;font-size:var(--reading-size)}
.world-intro p{margin:0}.world-intro p+p{margin-top:16px;font-weight:700;color:#155e76}
.info{width:100%;max-width:none!important;padding:32px 36px 60px!important}
.info h2,.legal-document h1{font-size:var(--reading-heading);line-height:1.4;color:#164a60;margin:0 0 16px;overflow-wrap:anywhere}
.legal-content{font-size:var(--reading-size);line-height:1.75;color:#244553;overflow-wrap:anywhere}
.legal-content>section{padding:24px 0;border-top:2px solid #a7d6e3}.legal-content h3{font-size:var(--reading-heading);line-height:1.4;margin:0 0 16px;color:#155e76}
.info .legal-content p,.legal-content p{max-width:none;font-size:inherit;line-height:inherit;margin:0 0 20px;color:inherit}.legal-content p:last-child{margin-bottom:0}
.legal-content ul{margin:0 0 20px;padding-left:1.5em}.legal-content li+li{margin-top:10px}.legal-content address{font-style:normal;line-height:1.8}
.legal-content a{color:#08627f;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}.legal-content a:hover{color:#b82235}
.info .legal-date,.legal-date{font-size:var(--reading-size);line-height:1.5;color:#3d6373;max-width:none;margin:0 0 24px}
.info>.secondary{margin-top:30px;font-size:var(--reading-size);line-height:1.4}.legal button[aria-current="page"]{font-weight:700;text-decoration:underline;text-underline-offset:5px}
.legal-document{background:#effaff;color:#244553}.legal-document-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 4vw;border-bottom:2px solid #a7d6e3;background:#fff}
.legal-document-header>a{font-size:var(--reading-size);color:#155e76;line-height:1.5}.legal-document-header .language-switch{position:static;display:flex;flex-direction:row;margin:0}
.legal-document-main{margin:0 auto!important;max-width:1500px;width:100%;padding:32px 4vw 60px;min-height:0}
.legal-document-nav{display:flex;flex-wrap:wrap;gap:16px 30px;margin-top:30px;padding-top:24px;border-top:2px solid #a7d6e3}
.legal-document-nav a{font-size:var(--reading-size);color:#155e76;line-height:1.5}.legal-document-nav a[aria-current="page"]{font-weight:bold}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 .world-intro{padding:20px 18px 28px}.world-intro p+p{margin-top:12px}.info{padding:76px 18px 36px!important}.legal-content>section{padding:20px 0}.legal-content h3{margin-bottom:12px}.info .legal-content p,.legal-content p{margin-bottom:16px}.legal-document-main{padding:24px 18px 40px}.legal-document-header{padding:16px 18px}.legal-document-header .language-switch button{font-size:20px}
}


/* v3.9: 世界観はキービジュアル下部に重ね、TOPを画面内へ */
main:has(#top:not([hidden])){height:100svh;min-height:0;overflow:hidden}
main:has(#top:not([hidden])) #stage{height:100%!important}
#top.hero{height:100%!important;display:flex;flex-direction:column;overflow:hidden;min-height:0}
#top .top-brand{flex:0 0 auto}
#top .hero-art{position:relative;flex:0 1 auto;width:min(100%,calc(100svh * 16 / 9))!important;height:auto!important;max-height:100%;aspect-ratio:16/9;margin:0 auto!important;overflow:hidden;min-height:0}
#top .key-visual{display:block;width:100%;height:auto;max-height:100%;object-fit:contain;object-position:top center}
#top .world-intro{position:absolute;left:0;right:0;bottom:0;z-index:3;max-height:100%;overflow:auto;padding:18px 28px 22px;border:0;background:rgba(8,32,46,.85);color:#fff;font-size:var(--reading-size);line-height:1.5;text-shadow:0 1px 2px #0006}
#top .world-intro p+p{margin-top:10px;color:#e4f8ff;font-weight:700}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 #top .top-brand{padding:8px 18px}
 #top .top-brand img{max-height:clamp(80px,22svh,170px);width:auto;max-width:80%}
 #top .hero-art{flex:1 1 0;width:100%!important;height:0!important;max-height:none;aspect-ratio:auto;background:#c9edf6}
 #top .key-visual{height:100%;max-height:100%;object-fit:contain;object-position:top center}
 #top .world-intro{padding:14px 16px 18px;line-height:1.5}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 #top .top-brand{padding:2px 18px}#top .top-brand img{max-height:60px}
 #top .world-intro{padding:10px 18px 12px;line-height:1.4}
}


/* v3.10: スマホTOPの高さを明示し、横向きでは画像を全面表示 */
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 body:has(#top:not([hidden])){min-height:0}
 main:has(#top:not([hidden])){height:calc(100svh - var(--mobile-header-height,76px))!important;height:calc(100dvh - var(--mobile-header-height,76px))!important;min-height:0!important;overflow:hidden!important}
 main:has(#top:not([hidden])) #stage{height:100%!important}
 #top.hero{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%!important;min-height:0;overflow:hidden}
 #top .top-brand{display:flex;align-items:center;justify-content:center;padding:8px 18px}
 #top .top-brand img{max-height:clamp(80px,20svh,150px);width:auto;max-width:80%}
 #top .hero-art{display:block;position:relative;flex:none;width:100%!important;height:100%!important;min-height:0;max-height:none;aspect-ratio:auto;overflow:hidden;margin:0!important;background:#c9edf6}
 #top .key-visual{position:absolute;top:0;left:0;display:block;width:100%;height:100%;max-height:none!important;aspect-ratio:auto;object-fit:contain;object-position:top center}
 #top .world-intro{max-height:65%;padding:12px 16px 16px}
 .system-tabs{justify-content:flex-end;align-items:stretch;gap:2px}
 .system-tabs button{flex:0 1 auto;width:auto;min-width:44px;min-height:48px;padding:6px 8px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 main:has(#top:not([hidden])){height:100svh!important;height:100dvh!important}
 #top.hero{display:block}
 #top .top-brand{display:none!important}
 #top .hero-art{height:100%!important;width:100%!important}
 #top .key-visual{object-fit:cover;object-position:center}
 #top .world-intro{max-height:48%;padding:10px 18px 12px;line-height:1.4}
 .system-tabs{padding:2px 2px 2px var(--mobile-controls-width,280px)}
 .system-tabs button{font-size:18px;flex:0 1 auto;padding:4px 8px;min-height:44px;white-space:normal;overflow-wrap:anywhere}
}

/* 世界観の背景は50%透過。文字は不透明のまま。 */
#top .world-intro{background:rgba(8,32,46,.50);text-shadow:0 1px 3px #000,0 0 5px #0008}

/* v3.11: キャラクター紹介文の背景も50%透過 */
.character-caption{background:rgba(8,20,34,.50)}

/* v4: 固定スナップショットのランキング。本文は既存の読みやすいサイズ。 */
.ranking-scene{max-width:none!important;padding:26px 30px 60px!important;min-width:0;color:#244553}
.ranking-scene h2{font-size:var(--reading-heading);color:#164a60}.ranking-scene h3{font-size:var(--reading-size);line-height:1.5;margin:20px 0 12px;color:#155e76}
.ranking-scene p,.ranking-scene label,.ranking-scene select,.ranking-scene input,.ranking-button,.ranking-pager{font-size:var(--reading-size);line-height:1.5}
.ranking-heading{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.ranking-heading .eyebrow{color:#155e76}
.ranking-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:20px}.ranking-controls label{flex:1 1 100%;min-width:0;display:flex;flex-direction:column;gap:8px}
.ranking-controls select{max-width:100%;width:100%;padding:10px 12px;background:#fff;color:#164a60;border:2px solid #83cadd;border-radius:10px;min-height:52px}
.ranking-button{min-height:48px;padding:8px 16px;border:2px solid #83cadd;border-radius:10px;color:#164a60;background:#fff;font-weight:700}
.ranking-button:hover{background:#d6f4ff}.ranking-button[aria-pressed="true"]{background:#b8edfc;border-color:#187c9c}.ranking-button:disabled{opacity:.45}
.ranking-stages{display:flex;gap:8px;flex-wrap:wrap}.ranking-search{margin:24px 0;padding:20px;background:#fff;border:2px solid #a7d6e3;border-radius:14px;display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.ranking-search h3{grid-column:1/-1;margin:0}.ranking-search label{display:flex;flex-direction:column;gap:8px;min-width:0}.ranking-search input{width:100%;min-width:0;min-height:52px;padding:8px 12px;background:#f4fcff;color:#164a60;border:2px solid #83cadd;border-radius:8px}.ranking-search>div{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap}
#rankingUpdated,#rankingNote{margin:14px 0}.ranking-error{padding:14px;border-left:5px solid #b52135;background:#fff0f2;color:#8a1830}
.ranking-table-scroll{overflow:auto;max-height:72dvh;width:100%;border:2px solid #a7d6e3;border-radius:12px}
.ranking-scene table{width:100%;border-collapse:collapse}.ranking-scene th,.ranking-scene td{font-size:var(--reading-size);padding:14px 16px;line-height:1.5;vertical-align:middle;border-bottom:1px solid #b7d9e3}
.ranking-scene th{background:#dff5fc;color:#164a60;position:sticky;top:0;z-index:1;white-space:nowrap}.ranking-scene td:first-child{color:#155e76;white-space:nowrap;width:auto}.ranking-scene td:nth-child(3){font-variant-numeric:tabular-nums;white-space:nowrap}
.ranking-scene th:last-child,.ranking-scene td:last-child{text-align:left}.ranking-scene tbody tr:nth-child(even){background:#fff9}.ranking-scene tbody tr.ranking-self{background:#d0f3ff;box-shadow:inset 7px 0 #087eaa}
.ranking-player-name{display:block;overflow-wrap:anywhere;min-width:4em}.ranking-player-tag{display:inline-block;margin-right:12px;color:#466a7c;font-size:.8em;font-family:monospace;user-select:all}
.ranking-colors{display:inline-flex;gap:8px;vertical-align:middle}.ranking-color{display:inline-block;width:24px;height:24px;border:1px solid #557988;border-radius:50%;background:linear-gradient(135deg,var(--color-one) 50%,var(--color-two) 50%)}
.ranking-pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin-top:22px}.ranking-pager>span{font-variant-numeric:tabular-nums;text-align:center}#rankingBrowse{margin-top:20px}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 .ranking-scene{padding:20px 12px 40px!important}.ranking-controls{gap:8px}.ranking-search{padding:14px;grid-template-columns:1fr;gap:12px}.ranking-search h3,.ranking-search>div{grid-column:1}.ranking-scene th,.ranking-scene td{padding:10px 8px}.ranking-button{padding:8px 10px}.ranking-table-scroll{max-height:65dvh}.ranking-pager{gap:8px}.ranking-color{width:18px;height:18px}.ranking-player-tag{margin-right:6px}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){.ranking-scene{padding-top:64px!important}}

/* v4.3: OPは表示領域全体を使い、操作はYouTube標準UIに集約。 */
#opening{position:relative;display:block;width:100%;height:100dvh;min-height:0;padding:0!important;background:#000;overflow:hidden;max-width:none!important}
#opening #opFrame{position:absolute;inset:0;width:100%;height:100%;min-height:200px;max-height:none;max-width:none;margin:0;border:0;border-radius:0;aspect-ratio:auto;background:#000}
#opPlayerHost{position:absolute;inset:0;display:grid;place-items:center;color:#fff}
#opPlayerHost:empty::before{content:'YouTube';font-size:24px;opacity:.6}
#opPlayerHost iframe{width:100%;height:100%;min-height:200px;border:0}
.op-feedback{height:100%;overflow:auto;padding:32px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:20px;background:#eefbff;color:#164a60}
#opStatus{font-size:var(--reading-size);line-height:1.5;margin:0}
.op-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.op-actions button,.op-actions a{font:inherit;font-size:var(--reading-size);line-height:1.5;min-height:44px;padding:8px 14px;border:2px solid #83cadd;border-radius:10px;background:#fff;color:#164a60;text-decoration:none}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 .sidebar.mobile-menu-open #nav,.sidebar.mobile-menu-open .legal{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;max-width:100%}
 .sidebar.mobile-menu-open #nav button,.sidebar.mobile-menu-open .legal button{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
 .system-layout,.system-panel{min-width:0;max-width:100%}
 .system-tabs{min-width:0;max-width:100%}
 #opening{height:calc(100dvh - var(--mobile-header-height,70px))}
 .op-feedback{padding:20px}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 #opening{height:100dvh}
 .system-tabs{padding-left:min(var(--mobile-controls-width,190px),40%)}
 .op-feedback{padding:60px 20px 20px;justify-content:flex-start}
}

/* v4.4: 色設定を含む5項目。文字を小さくせず、必要なら折り返す。 */
.system-tabs{flex-wrap:wrap;justify-content:flex-end}
.system-tabs button{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* 集計対象の時刻と、完成版の公開時刻を区別。 */
#rankingUpdated{white-space:pre-line}

/* Player equipment: keep the original shoe shading and both saved RGBA colours. */
.ranking-colors{gap:8px;align-items:center;vertical-align:middle;margin:4px 0;line-height:0}
.ranking-equipment{display:block;flex:none;overflow:visible;filter:drop-shadow(0 1px 1px #102f4038)}
.ranking-equipment-ball{width:44px;height:44px}
.ranking-equipment-shoe{width:58px;height:46px}
@media(max-width:700px){.ranking-equipment-ball{width:32px;height:32px}.ranking-equipment-shoe{width:44px;height:35px}.ranking-colors{gap:5px}}

/* v4.7 — Galaxy ranking; one page of 100 entries, then navigation and search. */
.ranking-scene{background:linear-gradient(#081725e6,#081725ed),url('assets/main-v47.webp') center top/cover fixed;color:#f6faff;min-height:100dvh}
.ranking-heading{display:block}.ranking-heading h2{margin:0;width:100%;line-height:0}.ranking-logo{display:block;width:100%;height:auto;max-width:1500px;margin:0 auto}
.ranking-controls{display:grid;gap:12px;margin:18px 0 8px}.ranking-controls label.ranking-group-select{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;line-height:1.35}
.ranking-controls select{background:#f4fbff;color:#163e53}.ranking-stages{justify-content:center}.ranking-stages button{flex:1;max-width:240px}
.ranking-scene #rankingUpdated{margin:12px 0 20px;color:#e1f2ff;font-size:clamp(20px,1.7vw,28px)}
#rankingStatus:empty,#rankingResult:empty{display:none}.ranking-scene .sample-badge{display:inline-block;margin-top:10px;color:#ffe5a6}
.ranking-table-scroll{max-height:none!important;overflow:visible;border:0;border-radius:0;scroll-margin-top:70px}
.ranking-scene table{border-collapse:separate;border-spacing:0 4px;table-layout:auto}
.ranking-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ranking-scene td{padding:12px 10px;font-size:var(--reading-size);border:0;background:#06142092;line-height:1.3;color:#f6faff}
.ranking-scene tbody tr:nth-child(even){background:transparent}.ranking-scene tbody tr:nth-child(even) td{background:#9e702359}
.ranking-scene tbody tr.ranking-self{box-shadow:none;background:transparent}.ranking-scene tbody tr.ranking-self td{background:#2979a7bb;border-block:2px solid #8ae5ff}
.ranking-scene td.ranking-position{width:1%;color:#ffdc80;font-size:1.25em;text-align:center;font-variant-numeric:tabular-nums}
.ranking-scene td.ranking-time{width:1%;white-space:nowrap;font-variant-numeric:tabular-nums}
.ranking-scene td.ranking-equipment-cell{width:1%;white-space:nowrap}.ranking-scene .ranking-colors{display:flex;gap:12px;margin:0}
.ranking-scene .ranking-equipment-ball{width:64px;height:64px}.ranking-scene .ranking-equipment-shoe{width:86px;height:68px}
.ranking-player-name{min-width:0}.ranking-player-tag{font-size:.65em;color:#b8d4e3;margin:4px 0 0}.ranking-scene td:last-child{white-space:normal}
.ranking-scene .ranking-pager{color:#f6faff}.ranking-scene .ranking-search{margin-top:28px;background:#f6fcfff5;color:#244553}.ranking-search h3{color:#155e76}
.ranking-scene .ranking-error{color:#8a1830}.ranking-scene .ranking-button{font-size:var(--reading-size)}
@media(max-width:900px){.ranking-controls label.ranking-group-select{gap:10px;font-size:24px}.ranking-controls select{font-size:24px}.ranking-scene td{font-size:26px;padding:12px 7px}.ranking-scene .ranking-equipment-ball{width:48px;height:48px}.ranking-scene .ranking-equipment-shoe{width:64px;height:51px}.ranking-scene .ranking-colors{gap:6px}}
@media(max-width:600px){.ranking-controls label.ranking-group-select{grid-template-columns:1fr;font-size:20px;gap:6px}.ranking-controls select{font-size:20px}.ranking-scene td{font-size:20px;padding:12px 4px}.ranking-scene .ranking-equipment-ball{width:34px;height:34px}.ranking-scene .ranking-equipment-shoe{width:44px;height:35px}.ranking-scene .ranking-colors{gap:3px}.ranking-scene td.ranking-position{font-size:25px}.ranking-player-name{overflow-wrap:anywhere}.ranking-scene #rankingUpdated{font-size:20px}.ranking-scene .ranking-button{font-size:20px}.ranking-stages{gap:6px}}
.ranking-scene .sample-badge{background:#133748;border-color:#e0bb65}

/* v4.8 — Metadata belongs to the same best-score record; unknown stays unknown. */
.ranking-scene td.ranking-time{white-space:normal}.ranking-score{display:block;white-space:nowrap}
.ranking-recorded-at{display:block;font-size:20px;line-height:1.5;white-space:nowrap;margin-top:6px;color:#d7eaf5}
.ranking-scene td.ranking-stats{font-size:clamp(20px,1.7vw,28px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ranking-stats>span{display:block;line-height:1.5}.ranking-scene td.ranking-equipment-cell{font-variant-numeric:normal}
@media(max-width:1500px){
 .ranking-scene table,.ranking-scene tbody{display:block;width:100%}
 .ranking-scene tbody tr{display:grid;grid-template-columns:2em minmax(0,1fr) auto minmax(0,1.4fr);gap:0;margin-bottom:5px;padding:10px;background:#06142092}
 .ranking-scene tbody tr:nth-child(even){background:#9e702359}.ranking-scene tbody tr.ranking-self{background:#2979a7bb;box-shadow:inset 5px 0 #8ae5ff}
 .ranking-scene tbody tr td,.ranking-scene tbody tr:nth-child(even) td,.ranking-scene tbody tr.ranking-self td{width:auto;min-width:0;border:0;background:transparent;padding:4px 6px;align-self:center}
 .ranking-position{grid-column:1;grid-row:1/3}.ranking-time{grid-column:2;grid-row:1}.ranking-equipment-cell{grid-column:3;grid-row:1}.ranking-player{grid-column:4;grid-row:1}
 .ranking-stats{grid-column:2/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:0 1em}.ranking-stats>span{overflow-wrap:anywhere;min-width:0}.ranking-action{grid-column:2/-1;grid-row:3}
 .ranking-recorded-at{white-space:normal}.ranking-scene td.ranking-position{font-size:1.25em}
}
@media(max-width:700px){
 .ranking-scene tbody tr{grid-template-columns:1.4em minmax(0,1fr) auto minmax(0,1.1fr);padding:10px 3px}
 .ranking-scene td.ranking-stats{font-size:20px}.ranking-scene tbody tr td{padding:3px}.ranking-recorded-at{font-size:20px;overflow-wrap:anywhere;line-height:1.3}
 .ranking-stats{gap:0 12px}.ranking-scene .ranking-equipment-ball{width:34px;height:34px}.ranking-scene .ranking-equipment-shoe{width:44px;height:35px}.ranking-scene .ranking-colors{gap:3px}
}
@media(max-width:1500px){.ranking-scene tbody tr>td{width:auto!important}.ranking-recorded-at{overflow-wrap:normal}}

.ranking-scene td.ranking-stats{white-space:normal}

/* v4.9: low-saturation stripes differ in brightness as well as hue. */
.ranking-scene tbody tr{--ranking-row-bg:rgba(234,240,246,.075);background:var(--ranking-row-bg)!important;box-shadow:none}
.ranking-scene tbody tr:nth-child(even){--ranking-row-bg:rgba(200,229,241,.15);background:var(--ranking-row-bg)!important}
.ranking-scene tbody tr.ranking-self{--ranking-row-bg:#9e702359;background:var(--ranking-row-bg)!important;box-shadow:inset 5px 0 #efcc6c}
.ranking-scene tbody tr>td,.ranking-scene tbody tr:nth-child(even)>td,.ranking-scene tbody tr.ranking-self>td{background:transparent!important;border-block:0}
.ranking-date-short,.ranking-combo-short{display:none}
@media(min-width:1501px){.ranking-scene tbody tr.ranking-self{box-shadow:none}.ranking-scene tbody tr.ranking-self>td:first-child{box-shadow:inset 5px 0 #efcc6c}}
/* Reserve enough room for translated rank text without changing the PC layout. */
@media(max-width:1500px){.ranking-scene tbody tr{grid-template-columns:max-content minmax(0,1fr) auto minmax(0,1.4fr)}.ranking-scene td.ranking-position{padding-right:12px}}
@media(max-width:700px){.ranking-scene td.ranking-position{font-size:20px;padding-right:8px}}
@media(max-width:1200px) and (max-height:600px) and (orientation:landscape){
 .ranking-scene tbody tr{display:grid;grid-template-columns:max-content minmax(0,1fr) 48px minmax(80px,.38fr);grid-template-rows:auto auto;gap:0 10px;padding:7px 9px;align-items:center}
 .ranking-scene tbody tr>td{padding:0!important;align-self:center;font-size:20px;line-height:1.35}
 .ranking-scene td.ranking-position{grid-column:1;grid-row:1/3;font-size:20px;white-space:nowrap;padding-right:4px!important}
 .ranking-scene td.ranking-time{grid-column:2;grid-row:1;display:flex;align-items:baseline;gap:12px;white-space:nowrap;font-size:20px;min-width:0}
 .ranking-score{display:inline;white-space:nowrap}.ranking-recorded-at{display:inline;margin:0;font-size:18px;line-height:1.35;white-space:nowrap;overflow-wrap:normal}
 .ranking-date-full,.ranking-combo-full{display:none}.ranking-date-short,.ranking-combo-short{display:inline}
 .ranking-scene td.ranking-stats{grid-column:2;grid-row:2;display:flex;flex-wrap:nowrap;gap:14px;font-size:18px;line-height:1.35;white-space:nowrap;overflow-wrap:normal}
 .ranking-stats>span{line-height:1.35;white-space:nowrap;overflow-wrap:normal}
 .ranking-scene td.ranking-equipment-cell{grid-column:3;grid-row:1/3}.ranking-scene .ranking-colors{flex-direction:column;gap:0;align-items:center}
 .ranking-scene .ranking-equipment-ball{width:30px;height:30px}.ranking-scene .ranking-equipment-shoe{width:42px;height:33px}
 .ranking-scene td.ranking-player{grid-column:4;grid-row:1/3;font-size:20px}.ranking-player-tag{font-size:16px;margin-top:2px}.ranking-player-name{line-height:1.35}
 .ranking-scene td.ranking-action{grid-column:2/-1;grid-row:3;padding-top:6px!important}
 .ranking-stages button{font-size:20px!important;white-space:nowrap}
}
.ranking-scene td.ranking-position{font-weight:800;color:#edf5fa}
.ranking-scene tr[data-rank="1"]>.ranking-position{color:#ffdc80;text-shadow:0 1px 2px #0008}
.ranking-scene tr[data-rank="2"]>.ranking-position{color:#e0e6ef;text-shadow:0 1px 2px #0008}
.ranking-scene tr[data-rank="3"]>.ranking-position{color:#e9ad85;text-shadow:0 1px 2px #0008}

/* v4.10: give landscape names the unused middle space and larger primary text. */
@media(max-width:1200px) and (max-height:600px) and (orientation:landscape){
 .ranking-scene tbody tr{grid-template-columns:max-content minmax(280px,1.05fr) 56px minmax(0,1fr);gap:0 12px;min-height:104px;padding:10px 12px}
 .ranking-scene td.ranking-position{font-size:clamp(26px,3.4vw,34px);font-weight:800;padding-right:2px!important}
 .ranking-scene td.ranking-time{font-size:clamp(26px,3.4vw,34px);gap:12px}
 .ranking-recorded-at{font-size:20px}
 .ranking-scene td.ranking-stats{font-size:20px;gap:14px}
 .ranking-scene td.ranking-player{font-size:clamp(24px,3.2vw,32px)}
 .ranking-player-name{line-height:1.3;overflow-wrap:anywhere}.ranking-player-tag{font-size:20px;line-height:1.35;margin-top:3px}
 .ranking-scene .ranking-equipment-ball{width:38px;height:38px}.ranking-scene .ranking-equipment-shoe{width:52px;height:41px}
}
/* On short, narrow landscape screens preserve complete text with a tighter gap. */
@media(max-width:700px) and (max-height:600px) and (orientation:landscape){
 .ranking-scene tbody tr{grid-template-columns:max-content minmax(250px,1.05fr) 48px minmax(0,1fr);gap:0 8px;padding:10px 6px}
 .ranking-scene td.ranking-position,.ranking-scene td.ranking-time{font-size:26px}.ranking-recorded-at{font-size:18px}.ranking-scene td.ranking-time{gap:8px}
 .ranking-scene td.ranking-stats{font-size:18px;gap:10px}.ranking-player-tag{font-size:18px}
 .ranking-scene .ranking-equipment-ball{width:34px;height:34px}.ranking-scene .ranking-equipment-shoe{width:46px;height:37px}
}

/* v4.11: use the compact record year in phone portrait view too. */
@media(max-width:700px) and (orientation:portrait){
 .ranking-date-full{display:none}.ranking-date-short{display:inline}
}

/* v4.17: bilingual Google Play download link and English introduction above the world text. */
.english-only{display:none!important}
html[lang="en"] .english-only{display:block!important}
#top .lifting-intro{margin:0 0 8px;color:#fff;font-size:inherit;line-height:1.4;text-align:left;letter-spacing:0}
#top .lifting-intro strong{color:#e4f8ff;white-space:normal}
#top #liftingDefinition{margin:0 0 12px;color:#e4f8ff;font-weight:700}
#top #worldNarrative{margin-top:0;font-weight:400}
#top .play-download{position:absolute;top:2.5%;left:2%;width:min(46%,460px);aspect-ratio:3/1;min-height:56px;z-index:4;display:block;text-decoration:none;color:#fff;isolation:isolate;transition:filter .18s ease}
#top .play-download>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
#top .play-download-copy{position:absolute;inset:18% 6% 18% 23%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-align:center;line-height:1.3;text-shadow:0 2px 3px #000;font-size:clamp(13px,1.5vw,22px);font-weight:600;letter-spacing:0}
#top .play-download-copy strong{font-size:1.12em;font-weight:800;white-space:nowrap;color:#fff1b8}
#top .play-download-en{display:none}
html[lang="en"] #top .play-download-ja{display:none}
html[lang="en"] #top .play-download-en{display:flex}
#top .play-download:hover{filter:brightness(1.2)}
#top .play-download:focus-visible{outline:3px solid #fff;outline-offset:3px;border-radius:16px}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 #top .play-download{top:6px;left:6px;width:48%;max-width:340px}
 #top .play-download-copy{font-size:clamp(10px,2.7vw,18px);gap:1px}
 #top .play-download-copy strong{font-size:1em}
 #top #liftingDefinition{margin-bottom:10px}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 #top .play-download{top:60px;left:8px;width:min(42%,320px)}
 #top .play-download-copy{font-size:clamp(13px,2vw,18px)}
 #top .lifting-intro{margin-bottom:5px}
}

/* v4.21: flush desktop columns, left one-third and right two-thirds. */
main:has(#top:not([hidden])){height:100svh;overflow:auto}
main:has(#top:not([hidden])) #stage{height:auto!important;min-height:100%}
#top.hero{display:block;height:auto!important;min-height:100%;overflow:visible}
#top .top-brand{display:none!important}
#top .hero-art{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:start;gap:0;width:100%!important;height:auto!important;max-height:none;aspect-ratio:auto;padding:0;overflow:visible;background:#081925}
#top .hero-left,#top .hero-visual{position:relative;min-width:0;width:100%}
#top .hero-left{display:flex;flex-direction:column;align-items:center;gap:0}
#top .hero-left>.play-download{position:relative;top:auto;left:auto;width:100%;margin:0;flex:none}
#top .hero-gameplay{position:relative;width:100%;max-width:none;margin:0;background:#071925;border:0;border-radius:0;overflow:hidden;color:#fff;line-height:1.4}
#top .hero-gameplay-player{position:relative;aspect-ratio:16/9;width:100%;background:#000}
#top .hero-gameplay-poster{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:#000;overflow:hidden}
#top .hero-gameplay-poster>img{display:block;width:100%;height:100%;object-fit:cover}
#top .hero-gameplay-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:44px;padding-left:4px;background:#e62117;border-radius:12px;color:#fff;font-size:25px;line-height:1}
#top .hero-gameplay-play-text{position:absolute;left:0;right:0;bottom:0;padding:6px 10px;background:#000b;color:#fff;font-size:16px;font-weight:700}
#top .hero-gameplay-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
#top .hero-gameplay-caption{padding:18px 20px;font-size:clamp(17px,1.4vw,23px);text-align:left;line-height:1.6}
#top .hero-gameplay-caption strong,#top .hero-gameplay-caption>span,#top .hero-gameplay-caption small{display:block}
#top .hero-gameplay-caption strong{font-size:1.2em;color:#fff0b7}
#top .hero-gameplay-caption small{font-size:.9em;margin-top:8px}
#top .hero-gameplay-caption a{display:inline-block;margin-top:8px;color:#b9edff;font-size:.84em;text-underline-offset:3px}
#top .key-visual{position:relative;display:block;width:100%;height:auto;max-height:none!important;aspect-ratio:16/9;object-fit:contain}
#top .title-overlay{top:2.5%;right:4%;width:56%}
#top .world-intro{position:relative;left:auto;right:auto;bottom:auto;max-height:none;overflow:visible;padding:22px;background:#08202e;font-size:clamp(18px,1.4vw,24px);line-height:1.65}
@media(max-width:640px),(max-width:1200px) and (pointer:coarse){
 body:has(#top:not([hidden])){overflow-y:auto}
 main:has(#top:not([hidden])){height:auto!important;min-height:0!important;overflow:visible!important}
 main:has(#top:not([hidden])) #stage{height:auto!important}
 #top.hero{display:block;height:auto!important;overflow:visible;min-height:0}
 #top .hero-art{display:flex;flex-direction:column;gap:0;height:auto!important;width:100%!important;padding:0;max-height:none;aspect-ratio:auto;overflow:visible;background:#081925}
 #top .hero-left{display:contents}
 #top .hero-gameplay{order:0;width:100%;max-width:none;margin:0;border:0;border-radius:0}
 #top .hero-gameplay-caption{padding:12px 16px;font-size:18px;line-height:1.45}
 #top .hero-gameplay-caption small{font-size:15px;margin-top:4px}
 #top .hero-gameplay-caption a{margin-top:4px}
 #top .hero-visual{order:1;position:relative;width:100%;height:auto;overflow:hidden}
 #top .key-visual{position:relative;top:auto;left:auto;display:block;width:100%;height:auto;max-height:none!important;aspect-ratio:16/9;object-fit:contain}
 #top .title-overlay{width:43.23%;top:2.5%;right:6%}
 #top .world-intro{position:relative;left:auto;right:auto;bottom:auto;max-height:none;overflow:visible;padding:12px 16px 16px;background:#08202e;font-size:20px;line-height:1.5}
 #top .hero-visual>.play-download{top:6px;left:6px}
}
@media(max-width:640px) and (orientation:landscape),(max-width:1200px) and (pointer:coarse) and (orientation:landscape){
 #top .hero-gameplay{margin-top:56px}
 #top .hero-gameplay-player{max-width:760px;margin-inline:auto}
 #top .hero-gameplay-caption{max-width:760px;margin-inline:auto}
 #top .hero-visual>.play-download{top:6px}
}
