/* Édition 16 — identité de la jaquette, écran titre illustré. */
body.home-screen{background:#130b29;display:block}
body.home-screen header{position:absolute;z-index:8;top:0;left:0;height:68px;background:linear-gradient(#1009248c,transparent);padding:0 max(28px,4vw);pointer-events:none}
body.home-screen header .logo,body.home-screen #saveStatus,body.home-screen #pause{display:none}
body.home-screen .header-right{margin-left:auto;pointer-events:auto;gap:10px}
body.home-screen .header-right button{border-color:#e6c4e84d;background:#120d2e85;backdrop-filter:blur(8px);border-radius:3px;min-height:44px;font-size:10px;letter-spacing:.07em}
body.home-screen .header-right button:hover{border-color:#92e8dd;background:#24163e}
body.home-screen #arcade{width:100%;max-width:none;height:100dvh;min-height:660px;aspect-ratio:auto;margin:0;background:#130b29}
body.home-screen #game{position:absolute;visibility:hidden;pointer-events:none}
body.home-screen footer{display:none}
.menu{padding:0;display:flex;align-items:center;background:#130b29;overflow:hidden;container-type:inline-size}
.home-art,.home-shade,.home-glow{position:absolute;inset:0;pointer-events:none}
.home-art{background:url('assets/accueil-panorama-v16.webp') center/cover no-repeat;transform-origin:70% 50%;animation:home-breathe 22s ease-in-out infinite alternate;will-change:transform}
.home-shade{background:linear-gradient(90deg,#130b295c,transparent 57%),linear-gradient(0deg,#130b29a1,transparent 23%,transparent 85%,#130b2940)}
.home-glow{inset:70% 4% 4% 44%;background:radial-gradient(ellipse at center,#ff3b951a,transparent 65%);mix-blend-mode:screen;animation:home-glow 8s ease-in-out infinite alternate}
.menu-copy{position:relative;z-index:1;width:42%;max-width:620px;margin-left:5.5%;padding:66px 0 34px;animation:home-arrive .65s ease-out both}
.home-title{font-size:inherit;line-height:1;margin:0 0 15px;text-shadow:none;letter-spacing:normal;max-width:550px}
.home-title img{display:block;width:100%;height:auto;filter:drop-shadow(0 8px 22px #10062088)}
.home-intro{font-size:15px;line-height:1.45;color:#e8c8da;margin:0 0 22px;padding-left:3%;letter-spacing:.02em}
.home-intro strong{color:#fff0d7;font-weight:700}
.home-actions{display:flex;flex-direction:column;gap:8px;max-width:390px;margin-left:3%}
.home-play{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;border-radius:2px;padding:14px 22px;min-height:68px;gap:20px;transition:transform .18s,background .18s,box-shadow .18s;border:1px solid #f99ab86b;background:#27143d85;color:#fff0d7}
.home-play.primary{background:linear-gradient(110deg,#fff0d7,#ffd4b9);color:#261433;border:0;border-left:5px solid #ff638e;box-shadow:5px 5px 0 #d83a7738}
.home-play.primary:hover{background:#fff6e9;box-shadow:7px 6px 0 #e9479459;transform:translateX(5px)}
.action-copy{display:flex;flex-direction:column;gap:2px}
.action-copy b{font-size:24px;line-height:1.05;font-style:italic;font-weight:900;text-transform:uppercase;letter-spacing:-.035em}
.action-copy small{font-size:11px;font-weight:400;line-height:1.35;letter-spacing:.025em}
.action-arrow{font-size:26px;line-height:1;font-weight:400}
.menu.has-save #start{min-height:40px;padding:8px 7px;border:0;box-shadow:none;background:transparent;color:#f5d9e2}
.menu.has-save #start:hover{color:#8dece1;background:#ff99b309;transform:translateX(4px)}
.menu.has-save #start b{font-size:14px;font-style:normal;font-weight:700;letter-spacing:.025em}
.menu.has-save #start small{display:none}
.menu.has-save #start .action-arrow{font-size:19px;color:#ff8db3}
.home-discover{max-width:390px;margin:22px 0 0 3%;display:grid;grid-template-columns:1fr 1fr;gap:0 20px;border-top:1px solid #ffc0e13d;border-bottom:1px solid #ffc0e13d}
.home-discover button{padding:11px 0;display:flex;align-items:center;gap:9px;text-align:left;min-height:48px;font-size:13px;color:#fff0d7;transition:color .15s;background:transparent}
.home-discover button:hover{color:#8dece1;background:transparent}
.home-discover button>span:last-child{margin-left:auto;color:#f58bb4}
.home-discover .nav-number{font-size:9px;letter-spacing:.05em;color:#a888ac;font-weight:400}
.home-utility{max-width:390px;display:flex;gap:22px;flex-wrap:wrap;margin:2px 0 0 3%}
.home-utility button{font-size:11px;min-height:44px;padding:0;color:#dcc3d5;background:transparent}
.home-utility button:hover{color:#8dece1;background:transparent}
.home-meta{margin:12px 0 0 3%;display:flex;flex-direction:column;gap:9px;max-width:390px;font-size:10px;color:#c8acc9}
#loadStatus{font-size:10px;letter-spacing:.035em;color:#a5ded5}
.home-edition{font-size:8px;letter-spacing:.16em;color:#a88caa}
.home-settings .setup{display:grid;grid-template-columns:1fr;gap:20px;margin:26px 0}
.home-settings select{width:100%;font-size:14px;min-height:44px}
.home-settings .setup label{font-size:11px;color:#f2c6d9}
.home-settings button.primary{min-height:44px}
.menu ~ .dialog{backdrop-filter:blur(10px);background:#110921c7}
.menu ~ .dialog .dialog-card{background:linear-gradient(145deg,#2a173bef,#15152ded);border-color:#f199bd6e;box-shadow:0 22px 90px #08051e99;border-top:3px solid #ff8aae}
.menu ~ .dialog .dialog-card h2{font-style:italic;color:#fff0d7;letter-spacing:-.03em}
@keyframes home-breathe{from{transform:scale(1)}to{transform:scale(1.022) translate(-.25%,.15%)}}
@keyframes home-glow{from{opacity:.25}to{opacity:.85}}
@keyframes home-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1600px){.menu-copy{margin-left:7%;width:37%}.home-intro{font-size:18px}.home-play{min-height:76px}.action-copy b{font-size:28px}.home-discover,.home-actions,.home-utility,.home-meta{max-width:430px}}
@media(max-width:1100px) and (min-height:601px){.menu-copy{width:46%;margin-left:4%;padding-top:65px}.home-intro{font-size:13px;margin-bottom:18px}.home-actions,.home-discover,.home-utility,.home-meta{max-width:350px}.home-utility{gap:18px}.action-copy b{font-size:22px}}
/* Téléphone vertical : les portraits restent en haut, les commandes suivent sans les masquer. */
@media(max-width:900px) and (orientation:portrait){
 body.home-screen #arcade{height:auto;min-height:100dvh;overflow:visible}
 body.home-screen header{height:60px;padding:0 max(16px,env(safe-area-inset-right))}
 body.home-screen #fullscreen{display:none}
 .menu{position:relative;inset:auto;min-height:100dvh;display:block;overflow:hidden}
 .home-art{inset:0 0 auto;height:57dvh;background-size:auto 100%;background-position:73% top;transform-origin:70% 20%}
 .home-shade{background:linear-gradient(180deg,transparent 20dvh,#130b2929 29dvh,#130b29d9 43dvh,#130b29 53dvh)}
 .home-glow{display:none}
 .menu-copy{width:auto;max-width:440px;margin:0 auto;padding:max(32dvh,230px) max(24px,env(safe-area-inset-left)) max(24px,env(safe-area-inset-bottom));animation:none}
 .home-title{max-width:350px;margin:0 0 12px}
 .home-intro{font-size:13px;margin-bottom:18px;padding-left:0}
 .home-intro br{display:none}.home-intro strong{margin-left:4px}
 .home-actions,.home-discover,.home-utility,.home-meta{max-width:none;margin-left:0}
 .home-play{min-height:64px;padding:13px 20px}.action-copy b{font-size:23px}
 .menu.has-save #start{min-height:44px;padding-left:0}
 .home-discover{margin-top:19px;gap:20px}.home-discover button{min-height:48px;font-size:13px}
 .home-utility{gap:24px;justify-content:space-between;margin-top:2px}.home-utility button{font-size:11px}
 .home-meta{margin-top:12px;gap:10px}.home-edition{font-size:7.5px;letter-spacing:.12em}
}
/* Paysage court : titre et action côte à côte, navigation au-dessous. */
@media(max-height:600px) and (orientation:landscape){
 body.home-screen #arcade{height:100dvh;min-height:320px}
 body.home-screen header{height:52px;padding:0 max(16px,env(safe-area-inset-right))}
 body.home-screen .header-right button{font-size:9px;padding:5px 9px;min-height:44px}
 .menu-copy{display:grid;grid-template-columns:1fr 1fr;column-gap:18px;width:57%;max-width:650px;margin-left:max(24px,env(safe-area-inset-left));padding:48px 0 15px;align-items:center}
 .home-title{grid-column:1;grid-row:1;max-width:260px;margin:0}
 .home-intro{grid-column:1;grid-row:2;font-size:10px;margin:6px 0 0;padding:0}
 .home-actions{grid-column:2;grid-row:1/3;margin:0;gap:2px}
 .home-play{min-height:54px;padding:9px 12px;gap:8px}.action-copy b{font-size:19px}.action-copy small{font-size:9px}.action-arrow{font-size:20px}
 .menu.has-save #start{min-height:44px;padding:7px 0}.menu.has-save #start b{font-size:10px}
 .home-discover{grid-column:1/3;margin:14px 0 0;max-width:none;gap:22px}
 .home-discover button{font-size:12px;min-height:44px;padding:8px 0}
 .home-utility{grid-column:1/3;margin:0;gap:24px;max-width:none}.home-utility button{font-size:10px;min-height:44px}
 .home-meta{grid-column:1/3;flex-direction:row;justify-content:space-between;margin:4px 0 0;max-width:none;gap:10px;align-items:center}#loadStatus{font-size:8px}.home-edition{font-size:6px;letter-spacing:.08em}
 .home-art{background-position:64% center}
}
@media(prefers-reduced-motion:reduce){.home-art,.home-glow,.menu-copy{animation:none;will-change:auto}.home-play,.home-discover button{transition:none}.home-play:hover,.menu.has-save #start:hover{transform:none}}
body.reduced-motion .home-art,body.reduced-motion .home-glow,body.reduced-motion .menu-copy{animation:none;will-change:auto}
@media(min-width:601px) and (min-height:601px) and (max-height:800px) and (orientation:landscape){
 .menu-copy{padding-top:58px;padding-bottom:22px}
 .home-title{max-width:440px}
 .home-intro{font-size:13px;margin-bottom:12px}
 .home-discover{margin-top:16px}
 .home-meta{margin-top:8px}
}
@media(min-aspect-ratio:2/1){.home-art{background-size:auto 100%;background-position:right center}}
