/* Accueil Snake : même rythme de page que Retro, avec l'illustration du jeu. */
body[data-screen="home"]{background:#080711}
html:has(body[data-screen="home"]),body[data-screen="home"]{height:auto;overflow-y:auto}
body[data-screen="home"] .app-shell{display:block;width:100%;height:auto;min-height:100dvh;padding:0}
body[data-screen="home"] .topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;width:100%;height:76px;margin:0;padding:8px max(24px,calc((100vw - 1440px)/2));border:0;border-bottom:1px solid #453054;border-radius:0;background:#0c0b19ed;box-shadow:none;backdrop-filter:blur(14px)}
body[data-screen="home"] .topbar__identity{display:flex!important;align-items:center;min-width:0}
body[data-screen="home"] .topbar .brand{gap:12px;font:700 .96rem Verdana,Arial,sans-serif;letter-spacing:.015em;white-space:nowrap}
body[data-screen="home"] .topbar .brand b{color:#d68bee}
.brand-mark{display:block;flex:0 0 auto;width:44px;height:44px;border:0;border-radius:9px;box-shadow:none}
body[data-screen="home"] .topbar__right{flex:0 0 auto}
body[data-screen="home"] #app{display:block;max-width:1440px;width:calc(100% - 48px);margin:22px auto 0;padding-bottom:26px}
body[data-screen="home"] #app>.screen--home.active{display:flex!important;flex-direction:column;align-items:stretch;gap:0;width:100%;height:auto;min-height:0!important;padding:0!important;border:0;border-radius:0;background:none!important;box-shadow:none;overflow:visible!important}
.screen--home .home-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:580px;padding:58px clamp(30px,5vw,76px);border:1px solid #5c3d75;border-radius:12px;background:#0b091a;overflow:hidden}
.screen--home .home-hero::after{content:"";position:absolute;z-index:0;inset:0;background:linear-gradient(90deg,#09091bef 0%,#09091bdc 29%,#09091b75 58%,#09091b11 100%),linear-gradient(0deg,#09091b80,transparent 45%);pointer-events:none}
.screen--home .home-hero .hero-art{position:absolute;z-index:-1;inset:0;width:100%;height:100%!important;min-height:0!important;margin:0;border:0!important;border-radius:0;background-size:cover!important;background-position:center 54%!important;box-shadow:none;opacity:1!important;mask-image:none;-webkit-mask-image:none}
.screen--home .home-hero .hero-copy{z-index:1;width:min(100%,590px);max-width:590px;margin:0;transform:none}
.screen--home .hero-copy h1{font-size:clamp(4.8rem,6.5vw,7rem);line-height:.86}
.screen--home .hero-tagline{margin:27px 0 32px!important;font-size:1.18rem}
.screen--home .hero-actions{display:grid;grid-template-columns:1fr;width:min(100%,320px);gap:12px}
.screen--home .hero-actions .button{min-height:58px;font-size:.83rem}
.screen--home .home-main{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:18px;margin-top:18px}
.screen--home .home-main .home-guide{width:100%;max-width:none;margin:0;padding:23px 25px;border:1px solid #3d3052!important;border-radius:9px;background:#111022d9}
.screen--home .home-guide p{font-size:.84rem;line-height:1.55}
.screen--home .home-guide p+p{margin-top:12px;font-size:.78rem}
.screen--home .home-main .home-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;margin:0!important;gap:12px}
.screen--home .home-links button{min-height:73px;padding:13px 17px;font-size:.82rem;text-align:left}
.screen--home .home-links button::before{width:28px;height:28px;flex-basis:28px;margin-right:10px}
.screen--home .home-footer{position:static;display:flex;width:100%;margin:20px 0 28px!important;padding:0;border:0;font-size:.72rem}
.screen--home .home-footer a{display:inline-flex;align-items:center;min-height:40px;padding:8px 13px;border:1px solid #5e427d;border-radius:6px;background:#120d24;color:#d9b4f0}
@media(max-width:900px){
  body[data-screen="home"] .topbar{padding-inline:20px}
  .screen--home .home-hero{min-height:540px;padding:44px 35px}
  .screen--home .home-hero::after{background:linear-gradient(90deg,#09091bf5 0%,#09091bd8 45%,#09091b44 100%)}
  .screen--home .home-main{grid-template-columns:1fr}
  .screen--home .home-main .home-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  body[data-screen="home"] .topbar{display:grid;grid-template-columns:1fr auto;gap:5px 0;min-height:86px;height:auto;padding:9px 14px}
  body[data-screen="home"] .topbar__identity{grid-column:1/-1;grid-row:1}
  body[data-screen="home"] .topbar__right{grid-column:1/-1;grid-row:2;justify-content:flex-start}
  body[data-screen="home"] .topbar .brand{font-size:.8rem}
  body[data-screen="home"] .topbar .brand-mark{width:35px;height:35px}
  body[data-screen="home"] #app{width:calc(100% - 24px);margin-top:12px}
  .screen--home .home-hero{display:block;min-height:570px;padding:30px 20px 260px}
  .screen--home .home-hero::after{background:linear-gradient(180deg,#09091bf8 0%,#09091be0 35%,#09091b29 68%,#09091b11 100%)}
  .screen--home .home-hero .hero-art{grid-row:auto;top:0!important;bottom:0!important;height:100%!important;background-position:center 59%!important}
  .screen--home .hero-copy h1{font-size:clamp(3.25rem,12.7vw,5.2rem)!important}
  .screen--home .hero-tagline{margin:19px 0 25px!important;font-size:.97rem}
  .screen--home .hero-actions{grid-template-columns:1fr;width:min(100%,300px);gap:8px}
  .screen--home .hero-actions .button{min-height:48px;padding-inline:7px;font-size:.68rem}
  .screen--home .home-main{gap:11px;margin-top:11px}
  .screen--home .home-main .home-guide{padding:17px 18px}
  .screen--home .home-main .home-links{gap:8px}
  .screen--home .home-links button{min-height:52px;padding:9px 10px!important;font-size:.74rem}
  .screen--home .home-links button::before{width:22px!important;height:22px!important;flex-basis:22px!important;margin-right:6px!important}
  .screen--home .home-footer{margin:15px 0 20px!important}
}
@media(max-width:380px){
  .screen--home .home-hero{min-height:540px;padding-inline:16px}
  .screen--home .home-links button{font-size:.69rem}
}

/* Pied de page commun à Pixelonia, adapté à la palette de Snake. */
.snake-footer{display:none}
body[data-screen="home"] .snake-footer{display:block;min-height:64px;border-top:1px solid #4b355f;background:#0c0b19}
.snake-footer__inner{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(1440px,calc(100% - 48px));min-height:64px;margin:auto}
.snake-footer p{margin:0;color:#f4edf9;font-size:.76rem}
.snake-footer p strong{font-weight:700}
.snake-footer nav{display:flex;align-items:center}
.snake-footer nav a{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 18px;border-left:1px solid #614478;color:#c4b7d3;font-size:.68rem;font-weight:700;text-decoration:none;white-space:nowrap}
.snake-footer nav a:first-child{border-left:0}
.snake-footer nav a:hover{color:#fff}
.snake-footer .discord-mark{color:#a35df1}
@media(max-width:700px){
  .snake-footer__inner{flex-direction:column;align-items:flex-start;gap:7px;width:calc(100% - 24px);padding:12px 0}
  .snake-footer nav{width:100%;justify-content:space-between}
  .snake-footer nav a{padding:0 7px;font-size:.61rem}
  .snake-footer nav a:first-child{padding-left:0}
  .snake-footer nav a:last-child{padding-right:0}
}

/* L'illustration garde ses proportions : montagnes, grille et serpent restent visibles. */
@media(min-width:901px){
  .screen--home .home-hero{min-height:700px}
  .screen--home .home-hero::after{background:linear-gradient(90deg,#09091bf7 0%,#09091bea 28%,#09091b87 47%,#09091b08 100%)}
  .screen--home .home-hero .hero-art{left:auto;right:0;width:55%;background-position:center center!important;mask-image:linear-gradient(90deg,transparent 0%,#000 17%)!important;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 17%)!important}
}
@media(min-width:701px) and (max-width:900px){
  .screen--home .home-hero{min-height:630px}
  .screen--home .home-hero .hero-art{left:auto;right:0;width:62%;background-position:center center!important;mask-image:linear-gradient(90deg,transparent 0%,#000 18%)!important;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 18%)!important}
}

/* Quatre accès de menu lisibles, avec une couleur et un pictogramme discrets. */
.screen--home .home-links button{--menu-accent:#b895e3;position:relative;display:flex;align-items:center;min-height:84px;padding:15px 48px 15px 19px;border:1px solid #493a60;border-radius:10px;background:#151126;color:#f3edf8;font-family:Verdana,Arial,sans-serif;font-size:.85rem;font-weight:700;letter-spacing:.035em;box-shadow:inset 0 1px #ffffff10,0 7px 22px #03020a55;text-shadow:none}
.screen--home .home-links button::before{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;margin-right:15px;border:1px solid color-mix(in srgb,var(--menu-accent) 55%,#34254d);border-radius:8px;background:color-mix(in srgb,var(--menu-accent) 13%,#100b23);color:var(--menu-accent);font-size:1.2rem;line-height:1;box-shadow:none}
.screen--home .home-links button::after{content:'→';position:absolute;right:18px;color:#a58db7;font-size:1.2rem;font-weight:400}
.screen--home .home-links button[data-action="skins"]{--menu-accent:#ae92df}
.screen--home .home-links button[data-action="skins"]::before{content:'◈'}
.screen--home .home-links button[data-action="achievements"]{--menu-accent:#e5bd70}
.screen--home .home-links button[data-action="achievements"]::before{content:'★'}
.screen--home .home-links button[data-action="stats"]{--menu-accent:#83c5d9}
.screen--home .home-links button[data-action="stats"]::before{content:'▥'}
.screen--home .home-links button[data-action="options"]{--menu-accent:#c89ad6}
.screen--home .home-links button[data-action="options"]::before{content:'⚙'}
.screen--home .home-links button:hover{transform:translateY(-2px);border-color:#9475b0;background:#1b1530;box-shadow:inset 0 1px #ffffff20,0 10px 24px #03020a77}
.screen--home .home-links button:active{transform:translateY(0)}
@media(max-width:700px){
  .screen--home .home-hero .hero-art{left:0;right:0;width:100%;mask-image:none!important;-webkit-mask-image:none!important}
  .screen--home .home-links button{min-height:61px;padding:9px 8px!important;font-size:.72rem;letter-spacing:0}
  .screen--home .home-links button::before{flex:0 0 28px!important;width:28px!important;height:28px!important;margin-right:8px!important;border-radius:6px;font-size:.96rem}
  .screen--home .home-links button::after{content:none}
}

.screen--home .home-links button{min-height:91px;padding:15px 18px;border-color:#51415f;background:linear-gradient(110deg,color-mix(in srgb,var(--menu-accent) 10%,#151123),#100d1c 75%);box-shadow:inset 0 1px #ffffff18,0 7px 20px #03020a55}
.screen--home .home-links button::before,.screen--home .home-links button::after{display:none!important;content:none!important}
.screen--home .menu-symbol{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;margin-right:16px;border:1px solid color-mix(in srgb,var(--menu-accent) 42%,#483657);border-radius:8px;background:color-mix(in srgb,var(--menu-accent) 13%,#130e25);color:var(--menu-accent);font-size:1.25rem;line-height:1}
.screen--home .menu-copy{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
.screen--home .menu-label{color:#f6f0fa;font-size:.86rem;font-weight:800;line-height:1.15;letter-spacing:.025em}
.screen--home .menu-description{color:#bcb0cb;font-size:.71rem;font-weight:400;line-height:1.25;letter-spacing:0;white-space:normal!important}
.screen--home .menu-arrow{flex:0 0 auto;margin-left:12px;color:var(--menu-accent);font-size:1.25rem;line-height:1;opacity:.8}
.screen--home .home-links button:hover .menu-arrow{transform:translate(2px,-2px);opacity:1}
@media(max-width:700px){
  .screen--home .home-links button{min-height:82px;padding:10px 9px!important}
  .screen--home .menu-symbol{flex-basis:29px;width:29px;height:29px;margin-right:8px;border-radius:6px;font-size:.95rem}
  .screen--home .menu-label{font-size:.71rem;letter-spacing:0}
  .screen--home .menu-description{font-size:.61rem;line-height:1.2;overflow-wrap:break-word}
  .screen--home .menu-arrow{display:none}
}

/* L'accueil tient dans la fenêtre, avec la consigne directement dans l'image. */
.screen--home .hero-heading{display:flex;align-items:center;gap:16px}
.screen--home .hero-heading img{display:block;flex:0 0 auto;width:70px;height:70px;border-radius:12px;filter:drop-shadow(0 5px 15px #a748d34d)}
.screen--home .hero-heading h1{margin:0;font-size:clamp(3.6rem,4.9vw,5rem);line-height:.86}
.screen--home .hero-heading h1 span{font-size:.42em;letter-spacing:.035em}
.screen--home .hero-heading h1 strong{font-size:1.08em;letter-spacing:-.085em}
.screen--home .home-hero .home-guide{position:relative;z-index:1;width:min(100%,500px);max-width:500px;margin:15px 0 0;padding:0;border:0!important;background:transparent}
.screen--home .home-hero .home-guide p{margin:0;color:#f1e8f7;font-size:.78rem;line-height:1.42}
.screen--home .home-hero .home-guide p+p{margin-top:8px;color:#bcb0ca;font-size:.75rem;line-height:1.34}
.screen--home .home-main{display:block;flex:0 0 auto;margin-top:12px}
.screen--home .home-main .home-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.screen--home .home-links button{min-height:86px}
@media(min-width:701px){
  html:has(body[data-screen="home"]),body[data-screen="home"]{height:100%;overflow:hidden}
  body[data-screen="home"] .app-shell{display:flex;flex-direction:column;height:100dvh!important;min-height:0;padding-bottom:0}
  body[data-screen="home"] .topbar{flex:0 0 68px;height:68px}
  body[data-screen="home"] #app{display:flex;flex:1 1 auto!important;min-height:0;margin:12px auto 0;padding-bottom:12px}
  body[data-screen="home"] #app>.screen--home.active{display:flex!important;flex:1 1 auto!important;min-height:0!important}
  .screen--home .home-hero{flex:1 1 auto;min-height:0;padding:clamp(20px,3vh,36px) clamp(30px,5vw,76px);align-items:flex-start}
  .screen--home .hero-tagline{margin:15px 0 17px!important;font-size:1.02rem}
  .screen--home .hero-actions{width:min(100%,290px);gap:8px}
  .screen--home .hero-actions .button{min-height:48px;font-size:.76rem}
  body[data-screen="home"] .snake-footer{flex:0 0 48px;min-height:48px}
  .snake-footer__inner{min-height:48px}
}
@media(min-width:701px) and (max-width:900px){
  .screen--home .home-main .home-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .screen--home .home-links button{min-height:82px}
  .screen--home .hero-heading h1{font-size:clamp(3.3rem,6vw,4.2rem)}
}
@media(max-width:700px){
  html:has(body[data-screen="home"]),body[data-screen="home"]{height:100%;overflow:hidden}
  body[data-screen="home"] .app-shell{display:flex;flex-direction:column;height:100dvh!important;min-height:0;padding-bottom:0}
  body[data-screen="home"] .topbar{flex:0 0 78px;min-height:78px;height:78px}
  body[data-screen="home"] #app{display:flex;flex:1 1 auto!important;min-height:0;margin:8px auto 0;padding-bottom:8px}
  body[data-screen="home"] #app>.screen--home.active{display:flex!important;flex:1 1 auto!important;min-height:0!important}
  .screen--home .home-hero{flex:1 1 auto;min-height:0;padding:17px 17px 12px;align-items:flex-start}
  .screen--home .hero-heading{gap:9px}
  .screen--home .hero-heading img{width:47px;height:47px;border-radius:9px}
  .screen--home .hero-heading h1{font-size:clamp(2.7rem,11vw,3.55rem)!important}
  .screen--home .hero-heading h1 span{font-size:.42em}
  .screen--home .hero-tagline{margin:10px 0 12px!important;font-size:.83rem}
  .screen--home .hero-actions{width:min(100%,265px);gap:6px}
  .screen--home .hero-actions .button{min-height:41px;font-size:.68rem}
  .screen--home .home-hero .home-guide{margin-top:10px;padding:8px 10px;border-radius:7px;background:#090819c7}
  .screen--home .home-hero .home-guide p{font-size:12px;line-height:1.28}
  .screen--home .home-hero .home-guide p+p{margin-top:6px;font-size:12px;line-height:1.25}
  .screen--home .home-main{margin-top:8px}
  .screen--home .home-main .home-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .screen--home .home-links button{min-height:63px;padding:7px 8px!important}
  .screen--home .menu-symbol{flex-basis:26px;width:26px;height:26px;margin-right:6px}
  .screen--home .menu-label{font-size:.68rem}
  .screen--home .menu-description{font-size:.57rem}
  body[data-screen="home"] .snake-footer{flex:0 0 auto;min-height:58px}
  .snake-footer__inner{min-height:58px;gap:2px;padding:6px 0}
  .snake-footer nav a{min-height:23px;font-size:.55rem}
}
@media(max-height:690px){
  html:has(body[data-screen="home"]),body[data-screen="home"]{height:auto;overflow-y:auto}
  body[data-screen="home"] .app-shell{height:auto!important;min-height:100dvh}
  body[data-screen="home"] #app{flex:0 0 auto!important;min-height:0}
  body[data-screen="home"] #app>.screen--home.active{flex:0 0 auto!important}
  .screen--home .home-hero{min-height:445px}
}
.screen--home .home-hero .hero-art{z-index:0}
.screen--home .home-hero::after{z-index:1}
.screen--home .home-hero .hero-copy{z-index:2}
@media(max-width:700px){
  .screen--home .home-hero .hero-art{background-size:auto 110%!important;background-position:center top!important}
}
@media(min-width:701px){
  .screen--home .home-hero .hero-copy{display:flex;flex-direction:column;justify-content:space-between;align-self:center;height:min(100%,580px)}
  .screen--home .hero-tagline{margin:0!important}
  .screen--home .home-hero .home-guide{margin:0}
}
.topbar .hub-return-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:38px;margin-left:12px;padding:0 12px;border:1px solid #70568e;border-radius:6px;background:#120e22;color:#eee2f7;font:700 .72rem Verdana,Arial,sans-serif;text-decoration:none;white-space:nowrap;transition:background .18s,border-color .18s}
.topbar .hub-return-link:hover{border-color:#be82ec;background:#261638}
.topbar .hub-return-link:focus-visible{outline:3px solid #d3aaff;outline-offset:3px}
body[data-screen="home"] .topbar__right{margin-left:auto}
@media(max-width:700px){
  body[data-screen="home"] .topbar__identity{grid-column:1;grid-row:1}
  body[data-screen="home"] .topbar__right{grid-column:1/-1;grid-row:2;margin-left:0}
  body[data-screen="home"] .topbar .hub-return-link{grid-column:2;grid-row:1;justify-self:end;margin-left:6px}
}
@media(max-width:380px){
  body[data-screen="home"] .topbar .brand span{display:none}
}
@media(max-width:360px){
  body:not([data-screen="home"]):not([data-mode]) .topbar__right .icon-button{display:none}
  body:not([data-screen="home"]):not([data-mode]) .topbar .hub-return-link{margin-left:6px;padding-inline:8px;font-size:.68rem}
}
@media(max-width:700px){
  body[data-mode] .topbar .hub-return-link{display:none}
}
