/* MiniBlocks : un plateau télé dans le ciel de Minecraft.
   Ciel du jeu en fond, encre indigo pour le texte et les contours, soleil pour l'action, bonbon pour la boutique. */
/* polices servies par le site (pas d'appel à Google) */
@font-face { font-family: "Bagel Fat One"; font-display: swap; src: url(/fonts/bagel-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bagel Fat One"; font-display: swap; src: url(/fonts/bagel-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-weight: 100 900; font-display: swap; src: url(/fonts/lexend-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-weight: 100 900; font-display: swap; src: url(/fonts/lexend-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ciel: #7cc6ff;
  --ciel-clair: #bfe4ff;
  --nuage: #ffffff;
  --encre: #20124d;
  --encre-douce: #4a3f78;
  --soleil: #ffc93c;
  --bonbon: #ff4f9a;
  --herbe: #2fae4e;
  --trait: 3px solid var(--encre);
  --ombre: 6px 6px 0 var(--encre);
  --titre: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --texte: "Lexend", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ciel); }
body { margin: 0; color: var(--encre); background: transparent; font: 17px/1.6 var(--texte); }
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font: 700 .95em var(--texte); background: var(--ciel-clair); padding: .05em .35em; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
.sub { max-width: 60ch; margin: .8rem 0 2rem; font-size: 1.1rem; color: var(--encre-douce); }
:focus-visible { outline: 4px solid var(--bonbon); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--nuage); padding: .5rem 1rem; border: var(--trait); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
section.wrap { padding-top: clamp(3rem, 7vw, 5.5rem); }
.page { padding-bottom: 4rem; min-height: 60vh; }

/* ----- boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1.05rem var(--texte); color: var(--encre);
  padding: .8rem 1.3rem; border: var(--trait); border-radius: 14px; box-shadow: 4px 4px 0 var(--encre); cursor: pointer; text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.btn-sun { background: var(--soleil); }
.btn-ink { background: var(--encre); color: var(--nuage); }
.btn-candy { background: var(--bonbon); color: var(--nuage); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ----- bandeau du haut ----- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: .6rem clamp(1rem, 4vw, 2rem);
  background: var(--ciel); border-bottom: var(--trait); }
.brand img { width: 150px; height: auto; image-rendering: pixelated; }
.menu { display: flex; gap: .3rem; flex: 1; position: relative; }
.menu a { font-weight: 700; text-decoration: none; padding: .35rem .8rem; border-radius: 10px; }
.menu a { position: relative; z-index: 1; }
.menu .menu-shop { background: var(--soleil); box-shadow: inset 0 0 0 3px var(--encre); }
.onair { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  background: var(--nuage); border: var(--trait); border-radius: 999px; padding: .25rem .8rem; }
.onair i { width: 10px; height: 10px; border-radius: 50%; background: var(--herbe); box-shadow: 0 0 0 3px #2fae4e40; }

/* ----- scène d'accueil : la télé ----- */
.stage { max-width: 1240px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 2rem;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.stage h1 { max-width: 14ch; }
.intro { font-size: 1.2rem; max-width: 46ch; margin: 1.2rem 0 1.8rem; }
.ticket { display: inline-flex; align-items: stretch; padding: 0; border: var(--trait); border-radius: 12px; box-shadow: var(--ombre);
  background: var(--soleil); color: var(--encre); cursor: pointer; font: inherit; transform: rotate(-2deg); animation: drop .7s cubic-bezier(.2, 1.6, .4, 1) .2s both; }
.ticket-main { display: grid; text-align: left; padding: .7rem 1.2rem .8rem; }
.ticket-main small { font-size: .85rem; font-weight: 700; }
.ticket-main b { font: 400 clamp(1.7rem, 4vw, 2.3rem)/1.1 var(--titre); }
.ticket-stub { display: grid; place-items: center; padding: 0 1.1rem; font-weight: 700; border-left: 3px dashed var(--encre); background: #ffe28a; border-radius: 0 9px 9px 0; min-width: 6.5rem; }
.ticket:hover { transform: rotate(-1deg) translateY(-2px); }
@keyframes drop { from { transform: translateY(-40px) rotate(-10deg); } }
.how { font-size: .95rem; color: var(--encre-douce); margin: 1.2rem 0 0; }
.tv { margin: 0; }
.tv-screen { position: relative; border: 6px solid var(--encre); border-radius: 30px; overflow: hidden; box-shadow: 10px 10px 0 var(--encre); background: var(--encre); }
.tv-screen img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tv-live { position: absolute; top: 1rem; left: 1rem; display: inline-flex; gap: .45rem; align-items: center; font-weight: 700; font-size: .95rem;
  background: var(--nuage); border: var(--trait); border-radius: 999px; padding: .15rem .75rem; }
.tv-live i { width: 10px; height: 10px; border-radius: 50%; background: #e3342f; animation: rec 1.4s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.tv figcaption { margin: 1rem 0 0 .5rem; font-weight: 700; }

/* nuages en blocs, comme ceux du jeu */
.clouds { height: 70px; background:
  linear-gradient(var(--nuage), var(--nuage)) 6% 30px / 160px 40px no-repeat,
  linear-gradient(var(--nuage), var(--nuage)) 10% 10px / 70px 30px no-repeat,
  linear-gradient(var(--nuage), var(--nuage)) 52% 20px / 220px 50px no-repeat,
  linear-gradient(var(--nuage), var(--nuage)) 57% 0 / 90px 30px no-repeat,
  linear-gradient(var(--nuage), var(--nuage)) 92% 34px / 140px 36px no-repeat,
  linear-gradient(var(--nuage), var(--nuage)) 0 100% / 100% 20px no-repeat; }

/* ----- bandeau blanc : comment se joue un show ----- */
.band { background: var(--nuage); padding: clamp(3rem, 7vw, 5rem) 0; }
.stairs { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; align-items: end; height: 300px; }
.stairs li { height: var(--h); min-height: 120px; background: var(--ciel-clair); border: var(--trait); border-radius: 14px 14px 4px 4px;
  display: flex; flex-direction: column; justify-content: flex-start; padding: .8rem; }
.stairs b { font: 400 clamp(1.5rem, 3.5vw, 2.6rem)/1 var(--titre); }
.stairs span { font-size: .9rem; font-weight: 700; margin-top: .3rem; }
.stairs .win { background: var(--soleil); }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; }
.facts li { background: var(--ciel-clair); border: var(--trait); border-radius: 12px; padding: .8rem 1rem; font-size: 1.05rem; }
.facts b { display: block; font-size: 1.15rem; }

/* ----- programme : bande de jeux défilante ----- */
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.more { font-weight: 700; text-decoration: underline 3px; text-underline-offset: 5px; }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 30%); gap: 1.2rem; overflow-x: auto; padding: 0 0 1.4rem; scroll-snap-type: x mandatory; }
.reel .g { scroll-snap-align: start; }

/* carte de jeu : un petit écran */
.g { background: var(--nuage); border: var(--trait); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.g-shot { aspect-ratio: 16 / 10; background: var(--ciel-clair) center / cover; border-bottom: var(--trait); position: relative; }
.g-tag { position: absolute; left: .6rem; top: .6rem; background: var(--nuage); border: var(--trait); border-radius: 999px; font-size: .8rem; font-weight: 700; padding: 0 .55rem; }
.g-tag.live { background: var(--herbe); color: var(--nuage); }
.g-body { padding: .9rem 1rem 1.1rem; display: grid; gap: .25rem; }
.g-body h3 { display: flex; align-items: center; gap: .5rem; }
.g-body h3::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c, var(--soleil)); border: 2px solid var(--encre); flex: none; }
.g-body p { margin: 0; color: var(--encre-douce); font-size: .98rem; }
.g-meta { font-size: .88rem; font-weight: 700; }
.g details { margin-top: .4rem; }
.g summary { cursor: pointer; font-weight: 700; }
.g ul { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .95rem; color: var(--encre-douce); }

/* ----- lobby ----- */
.lobby-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 220px 220px; gap: 1rem; margin-top: 1.5rem; }
.lobby-grid figure { position: relative; margin: 0; border: var(--trait); border-radius: 18px; overflow: hidden; }
.lobby-grid figcaption { position: absolute; left: .8rem; bottom: .8rem; background: var(--nuage); border: var(--trait); border-radius: 999px; padding: .1rem .8rem; font-weight: 700; }
.lobby-grid img { width: 100%; height: 100%; object-fit: cover; }
.l-a { grid-row: span 2; }

/* ----- comptoir des compagnons ----- */
.counter-band { margin-top: clamp(3rem, 7vw, 5.5rem); background: var(--encre); color: var(--nuage); }
.counter { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.counter p { font-size: 1.1rem; max-width: 42ch; margin: 1rem 0 1.6rem; color: #d9d3ff; }
.counter .btn { box-shadow: 4px 4px 0 var(--soleil); border-color: var(--soleil); }
.parade { display: flex; align-items: flex-end; justify-content: center; gap: .5rem; min-height: 220px; }
.parade { gap: 0; }
.parade img { height: 190px; width: auto; margin: 0 -22px -14px; transform-origin: bottom center; }
.parade img:nth-child(4) { height: 190px; }

/* ----- podium ----- */
.podium { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; }
.podium li { background: var(--nuage); border: var(--trait); border-radius: 18px; padding: 1.2rem; display: grid; justify-items: center; text-align: center; gap: .4rem; }
.podium li:nth-child(1) { order: 2; background: var(--soleil); padding-top: 2rem; }
.podium li:nth-child(2) { order: 1; }
.podium li:nth-child(3) { order: 3; }
.podium img { width: 72px; height: 72px; image-rendering: pixelated; border: var(--trait); border-radius: 10px; }
.podium a { font: 400 1.3rem var(--titre); text-decoration: none; }
.podium .empty { grid-column: 1 / -1; order: 0; }

/* ----- catalogue ----- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.8rem; }
.chips button { font: 700 .98rem var(--texte); color: var(--encre); background: var(--nuage); border: var(--trait); border-radius: 999px; padding: .35rem 1rem; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--encre); color: var(--nuage); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }

/* ----- classements ----- */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.board { background: var(--nuage); border: var(--trait); border-radius: 18px; padding: 1.2rem 1.2rem .8rem; }
.board h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.board ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.board li { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; border-top: 2px dashed var(--ciel-clair); counter-increment: r; }
.board li::before { content: counter(r); font: 400 1.1rem var(--titre); width: 1.6ch; }
.board li:first-child { border-top: 0; }
.board img { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 6px; }
.board a { flex: 1; font-weight: 700; text-decoration: none; }
.board a:hover { text-decoration: underline; }
.board .v { font: 400 1.15rem var(--titre); }
.board .none { color: var(--encre-douce); }
.board .none::before { content: none; }
.find { margin-top: 2.5rem; max-width: 560px; }
.find label, .who-field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.find-row { display: flex; gap: .6rem; }
.find-row input { flex: 1; min-width: 0; font: 400 1.1rem var(--texte); padding: .7rem .9rem; border: var(--trait); border-radius: 12px; background: var(--nuage); color: var(--encre); }

/* ----- profil ----- */
.pro-head { display: flex; gap: 2rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 2rem; }
.pro-skin { width: 260px; min-height: 340px; display: grid; place-items: end center; }
.pro-skin img { width: 140px; filter: drop-shadow(6px 6px 0 var(--encre)); }
.pro-skin .skin3d { filter: drop-shadow(6px 6px 0 rgba(32, 18, 77, .35)); }
.state { display: inline-block; margin-top: .6rem; font-weight: 700; border: var(--trait); border-radius: 999px; padding: 0 .7rem; background: var(--nuage); }
.state.on { background: var(--herbe); color: var(--nuage); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 2.5rem; }
.kpis div { background: var(--nuage); border: var(--trait); border-radius: 14px; padding: .8rem 1rem; }
.kpis b { display: block; font: 400 2rem/1.1 var(--titre); }
.kpis .crown { background: var(--soleil); }
.table { width: 100%; max-width: 720px; border-collapse: collapse; background: var(--nuage); border: var(--trait); border-radius: 14px; overflow: hidden; }
.table th, .table td { padding: .55rem .9rem; text-align: left; border-bottom: 2px solid var(--ciel-clair); }
.table td + td, .table th + th { text-align: right; }
.mypets { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin: 1rem 0 2.5rem; }
.mypets img { height: 140px; width: auto; margin: 0 -14px; }

/* ----- boutique ----- */
.shop-head { background: var(--nuage); border-bottom: var(--trait); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.shop-head .sub { margin-bottom: 0; }
.shop-head-in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.shop-head-in img { width: min(440px, 40vw); height: auto; margin-bottom: -2.2rem; position: relative; }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.shop > .who, .shop > .pick, .shop > .reassure { grid-column: 1; }
.shop h2 { font-size: 1.7rem; display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.step { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--encre); color: var(--nuage); font-size: 1.2rem; flex: none; }
.who { background: var(--nuage); border: var(--trait); border-radius: 18px; padding: 1.4rem; }
.who-row { display: flex; gap: 1.2rem; align-items: flex-start; }
.who-skin { width: 110px; height: 150px; flex: none; display: grid; place-items: center; margin: -1.2rem 0 -1rem; }
.who-skin img { width: 64px; height: 64px; image-rendering: pixelated; border: var(--trait); border-radius: 12px; }
.skin3d { cursor: pointer; display: block; }
.who-field { flex: 1; min-width: 0; }
.who-msg { margin: .5rem 0 0; font-size: .95rem; color: var(--encre-douce); }
.who-msg.ok { color: var(--herbe); font-weight: 700; }
.who-msg.err { color: #c81d4e; font-weight: 700; }
.pick { margin-top: 2.5rem; }
.shelf-title { margin: 1.5rem 0 .8rem; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.item { position: relative; text-align: left; font: inherit; color: var(--encre); background: var(--nuage); border: var(--trait); border-radius: 18px;
  padding: 1rem 1rem 1.1rem; cursor: pointer; display: grid; gap: .3rem; }
.item:hover { box-shadow: 4px 4px 0 var(--encre); }
.item[aria-pressed="true"] { background: #fff6d6; box-shadow: var(--ombre); outline: 3px solid var(--soleil); outline-offset: -9px; }
.item img { height: 160px; width: 100%; object-fit: contain; margin-bottom: .2rem; }
.shelf-gems { margin-top: 1rem; }
.shelf-gems .item img { height: 120px; }
.shelf-note { margin: 1rem 0 0; }
.item h3 { font-size: 1.25rem; }
.item p { margin: 0; font-size: .95rem; color: var(--encre-douce); }
.price { font: 400 1.5rem var(--titre); margin-top: .3rem; }
.badge { position: absolute; top: -.8rem; right: .8rem; background: var(--bonbon); color: var(--nuage); border: var(--trait); border-radius: 999px; padding: 0 .7rem; font-weight: 700; font-size: .85rem; transform: rotate(3deg); }
.owned { font-weight: 700; color: var(--herbe); font-size: .9rem; }
.item.has { cursor: default; opacity: .75; }
.item.has:hover { transform: none; box-shadow: none; }
.cart { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 90px; background: var(--nuage); border: var(--trait); border-radius: 18px; box-shadow: var(--ombre); padding: 1.4rem; }
.cart-empty { color: var(--encre-douce); margin: 0; }
.cart-line { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.cart-line img { width: 88px; height: 88px; object-fit: contain; }
.cart-for { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: 1rem; }
.cart-for img { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 6px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--ciel-clair); padding-top: .8rem; margin-bottom: 1rem; }
.cart-total b { font: 400 1.8rem var(--titre); }
.cart .btn { width: 100%; }
.cart small { display: block; margin-top: .8rem; color: var(--encre-douce); font-size: .85rem; }
.cart-err { color: #c81d4e; font-weight: 700; margin: .8rem 0 0; }
.closed { background: #fff6d6; border: 2px dashed var(--encre); border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; margin: 0 0 1rem; }
.reassure { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 3rem 0 4rem; }
.reassure li { background: var(--nuage); border: var(--trait); border-radius: 12px; padding: .7rem 1rem; }
.thanks { text-align: center; }
.thanks img { margin: 0 auto 1.5rem; height: 160px; width: auto; }
.thanks .sub { margin-left: auto; margin-right: auto; }

/* ----- texte long ----- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
.prose p { margin: .5rem 0; }

/* ----- pied de page ----- */
.foot { margin-top: 4rem; background: var(--encre); color: #d9d3ff; padding: 2.5rem clamp(1rem, 4vw, 2rem) 1.5rem; }
.foot-in { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot img { image-rendering: pixelated; margin-bottom: .6rem; }
.foot p { margin: 0; }
.foot nav { display: grid; gap: .3rem; }
.foot nav a { color: var(--nuage); font-weight: 700; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.legal { max-width: 1180px; margin: 2rem auto 0; font-size: .85rem; opacity: .75; }

/* ============================ le monde autour (fx.js) ============================ */
.pixel { image-rendering: pixelated; }

/* ciel fixe : dégradé qui se couche, soleil carré, nuages en blocs qui dérivent vers l'ouest */
#sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(var(--ciel), var(--ciel-clair)); }
.sun { position: absolute; left: var(--sx, 80vw); top: var(--sy, 10vh); width: 84px; height: 84px; padding: 0; border: 0; cursor: pointer;
  background: var(--sun, #fff6a0); box-shadow: 0 0 0 14px rgba(255, 246, 160, .35), 0 0 0 30px rgba(255, 246, 160, .16); }
.sun::after { content: ""; position: absolute; inset: 18px; background: #fffbe0; }
.cloud-layer { position: absolute; inset: 0; will-change: transform; }
.cloud { position: absolute; left: 0; width: var(--w); height: calc(var(--w) * .3); background: #fff; opacity: .92;
  box-shadow: inset 0 -10px 0 #e4f1ff; animation: drift linear infinite;
  clip-path: polygon(0 40%, 18% 40%, 18% 0, 55% 0, 55% 20%, 80% 20%, 80% 40%, 100% 40%, 100% 100%, 0 100%); }
.cloud:nth-child(3n+2) { clip-path: polygon(0 30%, 30% 30%, 30% 0, 62% 0, 62% 30%, 100% 30%, 100% 75%, 70% 75%, 70% 100%, 12% 100%, 12% 75%, 0 75%); }
.cloud:nth-child(3n) { clip-path: polygon(0 0, 45% 0, 45% 35%, 100% 35%, 100% 100%, 20% 100%, 20% 65%, 0 65%); }
.far .cloud { opacity: .7; }
@keyframes drift { from { transform: translateX(110vw); } to { transform: translateX(calc(-1 * var(--w) - 10vw)); } }

/* calques d'effets */
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.wipe { position: fixed; inset: 0; display: none; pointer-events: none; z-index: 80; }

/* barre d'objets : le cadre blanc glisse d'un onglet à l'autre */
.hotbar-sel { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--nuage); box-shadow: inset 0 0 0 3px var(--encre);
  border-radius: 10px; opacity: 0; transition: transform .28s cubic-bezier(.3, 1.5, .5, 1), width .28s cubic-bezier(.3, 1.5, .5, 1), opacity .15s; }
.onair i { animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #2fae4e90; } 70%, 100% { box-shadow: 0 0 0 9px #2fae4e00; } }
.brand img { transition: transform .2s; }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }

/* progrès : petit bandeau qui glisse en haut à droite */
.toasts { position: fixed; top: 76px; right: 16px; z-index: 70; display: grid; gap: .6rem; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .8rem; min-width: 270px; max-width: min(360px, calc(100vw - 32px)); padding: .55rem 1rem .55rem .6rem;
  background: var(--encre); color: #fff; border: 3px solid #fff; outline: 3px solid var(--encre); border-radius: 4px; box-shadow: 8px 8px 0 rgba(32, 18, 77, .35);
  font-size: .95rem; line-height: 1.3; animation: toast-in .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.toast b { display: block; color: var(--soleil); font-weight: 700; }
.toast.out { animation: toast-out .4s ease-in forwards; }
.toast-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: #33246e; border: 2px solid #5a4a9a; }
.toast-ico.star { background: #33246e var(--px-crown) center / 30px no-repeat; image-rendering: pixelated; }
.toast-ico img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
@keyframes toast-in { from { transform: translateX(120%); } }
@keyframes toast-out { to { transform: translateX(130%); } }

/* accueil : texte jaune qui palpite, télé posée sur une île flottante */
.stage { position: relative; }
.stage-copy { position: relative; }
.splash { position: absolute; right: 2%; top: -1.6rem; z-index: 2; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 1.35rem/1 var(--titre); color: #ffe93c; text-shadow: 3px 3px 0 var(--encre); white-space: nowrap;
  transform: rotate(-14deg); animation: splash .45s ease-in-out infinite alternate; }
@keyframes splash { to { transform: rotate(-14deg) scale(1.1); } }
.tv { position: relative; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.tv-screen { cursor: pointer; }
.tv-static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; pointer-events: none; transition: opacity .08s; }
.tv-chan { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: stretch; font-weight: 700; font-size: .95rem;
  background: var(--encre); color: #fff; border: 3px solid var(--encre); border-radius: 8px; overflow: hidden; }
.tv-chan b { background: var(--soleil); color: var(--encre); padding: 0 .55rem; font-family: var(--titre); font-weight: 400; }
.tv-chan span { padding: .1rem .7rem; }
.isle { width: 76%; height: 99px; margin: -3px auto 0; filter: drop-shadow(8px 8px 0 rgba(32, 18, 77, .85)); }
.isle::before { content: ""; display: block; height: 100%; image-rendering: pixelated;
  background: url(/img/tex-grass.png) 0 0 / 33px 33px repeat-x, url(/img/tex-dirt.png) 0 33px / 33px 33px repeat-x, url(/img/tex-stone.png) 0 0 / 33px 33px;
  clip-path: polygon(0 0, 100% 0, 100% 33px, 90% 33px, 90% 66px, 70% 66px, 70% 99px, 38% 99px, 38% 66px, 14% 66px, 14% 33px, 0 33px); }
.tv figcaption { text-align: center; margin-top: .4rem; }
.bits i { position: absolute; width: 42px; height: 42px; border: 3px solid var(--encre); image-rendering: pixelated;
  background: url(/img/tex-grass.png) 0 0 / 36px 36px; animation: float 5s ease-in-out infinite; }
.bits i:nth-child(1) { left: 46%; top: 12%; animation-delay: -1s; }
.bits i:nth-child(2) { right: 1.5%; top: 64%; width: 30px; height: 30px; background-size: 24px; animation-delay: -2.5s; animation-duration: 4s; }
.bits i:nth-child(3) { left: 50%; bottom: 8%; width: 34px; height: 34px; background-size: 28px; animation-delay: -3.3s; }
.bits i:nth-child(4) { right: 6%; top: 4%; width: 26px; height: 26px; background: url(/img/tex-dirt.png) 0 0 / 20px; animation-duration: 7s; }
.ticket { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.ticket:hover { transform: rotate(1deg) translateY(-4px) scale(1.03); }

/* l'escalier du show : des blocs de terre posés un par un */
.stairs li { position: relative; color: #fff; text-shadow: 2px 2px 0 var(--encre); border-radius: 4px; image-rendering: pixelated;
  background: url(/img/tex-dirt.png) 0 0 / 32px 32px; padding-top: 1.3rem; clip-path: inset(100% 0 0 0); }
.stairs li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: url(/img/tex-grass.png) 0 0 / 32px 32px repeat-x; border-radius: 2px 2px 0 0; }
.stairs .win { background: var(--soleil); color: var(--encre); text-shadow: none; }
.stairs .win::before { display: none; }
.stairs .win::after { content: ""; position: absolute; left: 50%; top: -46px; width: 54px; height: 36px; margin-left: -27px; background: var(--px-crown) center / contain no-repeat; opacity: 0; }
.stairs.in li { animation: build .55s steps(5, end) forwards; }
.stairs.in li:nth-child(2) { animation-delay: .12s; } .stairs.in li:nth-child(3) { animation-delay: .24s; }
.stairs.in li:nth-child(4) { animation-delay: .36s; } .stairs.in li:nth-child(5) { animation-delay: .48s; } .stairs.in li:nth-child(6) { animation-delay: .6s; }
.stairs.in .win::after { animation: crown-drop .6s cubic-bezier(.3, 1.6, .5, 1) 1.3s both; }
.stairs li { clip-path: inset(100% 0 0 0); }
.stairs.in .win { clip-path: none; animation-name: build-win; }
@keyframes build { to { clip-path: inset(0 0 0 0); } }
@keyframes build-win { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(-60px 0 0 0); } }
@keyframes crown-drop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }

/* cartes de jeu : posées comme des blocs, elles penchent vers la souris */
.g { transition: transform .18s ease-out, box-shadow .18s; }
.g.tilt { box-shadow: 8px 10px 0 var(--encre); }
.catalog .g, .reel .g { animation: place .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes place { from { opacity: 0; transform: translateY(-46px); } 60% { opacity: 1; } }
.g:hover h3::before { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.g-shot { transition: background-size .4s; background-size: 100%; }
.g:hover .g-shot { background-size: 110%; }
.chips button { transition: transform .12s; }
.chips button:hover { transform: translateY(-2px); }
.chips button[aria-pressed="true"] { animation: press .3s; }
@keyframes press { 40% { transform: scale(.9); } }

/* lobby : les photos apparaissent en blocs */
.lobby-grid figure { clip-path: inset(50% 50% 50% 50%); }
.lobby-grid.in figure { animation: open-block .5s steps(4, end) forwards; }
.lobby-grid.in figure:nth-child(2) { animation-delay: .15s; } .lobby-grid.in figure:nth-child(3) { animation-delay: .3s; }
@keyframes open-block { to { clip-path: inset(0 0 0 0); } }
.lobby-grid img { transition: transform .5s; }
.lobby-grid figure:hover img { transform: scale(1.06); }

/* les compagnons marchent sur l'herbe */
.parade { padding-bottom: 36px; background: url(/img/tex-grass.png) 0 100% / 36px 36px repeat-x; image-rendering: pixelated; }
.parade img { cursor: pointer; }
.parade img.jump, .mypets img.jump { animation: jump .6s cubic-bezier(.3, .7, .4, 1); }
@keyframes walk { from { transform: rotate(-2.5deg); } to { transform: translateY(-5px) rotate(2.5deg); } }
@keyframes jump { 40% { translate: 0 -42px; scale: 1 1.06; } 80% { translate: 0 0; scale: 1.08 .92; } }
.mypets img { cursor: pointer; }

/* podium : les marches montent, la couronne tombe sur le premier */
.podium li { position: relative; transform-origin: bottom; }
.podium.in li { animation: rise .6s steps(4, end) both; }
.podium.in li:nth-child(1) { animation-delay: .5s; } .podium.in li:nth-child(2) { animation-delay: .1s; } .podium.in li:nth-child(3) { animation-delay: .3s; }
.podium li:nth-child(1):not(.empty)::before { content: ""; position: absolute; top: -30px; left: 50%; width: 54px; height: 36px; margin-left: -27px;
  background: var(--px-crown) center / contain no-repeat; animation: crown-drop .6s cubic-bezier(.3, 1.6, .5, 1) 1.1s both; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(-60px 0 0 0); } }

/* boutique : les articles flottent comme des objets lâchés, l'article choisi est enchanté */
.spr { position: relative; display: block; }
.item .spr img { animation: bob 3s ease-in-out infinite; transition: scale .2s; }
.item:nth-child(2) .spr img { animation-delay: -1s; } .item:nth-child(3) .spr img { animation-delay: -2s; }
.item:hover .spr img { scale: 1.07; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.spr::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(115deg, transparent 38%, rgba(196, 120, 255, .9) 46%, rgba(255, 220, 255, 1) 50%, rgba(196, 120, 255, .9) 54%, transparent 62%) 0 0 / 300% 100%;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; animation: glint 2.6s linear infinite; }
.item .spr::after { margin-bottom: .4rem; }
.spr.glint::after, .item[aria-pressed="true"] .spr::after, .item:hover .spr::after { opacity: .7; }
@keyframes glint { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.item { transition: transform .15s, box-shadow .15s; }
.item:hover { transform: translate(-2px, -3px); }
.item[aria-pressed="true"] { animation: press .3s; }
.badge { animation: wiggle 2.8s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(3deg); } 85% { transform: rotate(-4deg) scale(1.1); } 90% { transform: rotate(6deg) scale(1.1); } }
.cart-line .spr { width: 88px; height: 88px; flex: none; }
.cart-line { animation: place .45s cubic-bezier(.3, 1.5, .5, 1); }
.who-skin.hello { animation: hello .6s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes hello { from { transform: scale(.3) rotate(-20deg); } }
.btn { transition: transform .12s, box-shadow .12s; }
.btn:not([disabled]):hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.counter .btn:hover { box-shadow: 6px 6px 0 var(--soleil); }
.cart .btn-candy:not([disabled]) { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-5px); } 86% { transform: none; } 92% { transform: translateY(-2px); } }
.shop-head-in img { animation: float 5s ease-in-out infinite; }
.thanks img { animation: float 3s ease-in-out infinite; }


/* nuit étoilée en bas de page, derrière des collines en blocs */
.foot { position: relative; margin-top: 7rem; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -63px; height: 64px; background: var(--encre);
  clip-path: polygon(0 64px, 0 32px, 6% 32px, 6% 16px, 14% 16px, 14% 40px, 22% 40px, 22% 8px, 30% 8px, 30% 24px, 41% 24px, 41% 44px, 52% 44px, 52% 12px,
    58% 12px, 58% 0, 66% 0, 66% 28px, 77% 28px, 77% 16px, 88% 16px, 88% 36px, 95% 36px, 95% 20px, 100% 20px, 100% 64px); }
.night { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.night .s1, .night .s2 { position: absolute; left: 0; top: 0; width: 3px; height: 3px; animation: twinkle 3.2s steps(2) infinite; }
.night .s2 { width: 4px; height: 4px; animation-duration: 4.4s; animation-delay: -1.3s; }
@keyframes twinkle { 50% { opacity: .35; } }
.moon { position: absolute; left: 46%; top: 30px; width: 58px; height: 58px; background: #f1eeff; box-shadow: inset -12px -12px 0 #d6ceff; }
.moon::after { content: ""; position: absolute; left: 12px; top: 14px; width: 10px; height: 10px; background: #d6ceff; box-shadow: 18px 16px 0 #d6ceff, 4px 26px 0 -2px #d6ceff; }
.foot-in, .legal { position: relative; }

/* ============================ lisibilité, navigation, pages légales ============================ */
html, body { overflow-x: clip; }
.menu svg { display: none; width: 22px; height: 22px; fill: currentColor; shape-rendering: crispEdges; }
.onair b { font-weight: 700; }
.onair.down i { background: #c81d4e; animation: none; box-shadow: none; }

/* titre d'accueil : une idée par ligne */
.stage h1 { max-width: none; font-size: clamp(2.4rem, 4.3vw, 3.9rem); }
.stage h1 .l { display: block; white-space: nowrap; }
.how b { font-weight: 700; color: var(--encre); }

/* programme : flèches pour faire défiler */
.reel-nav { display: flex; align-items: center; gap: .5rem; }
.reel-nav .more { margin-left: .6rem; }
.arrow { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: var(--encre); background: var(--nuage);
  border: var(--trait); border-radius: 12px; box-shadow: 3px 3px 0 var(--encre); cursor: pointer; }
.arrow svg { width: 22px; height: 22px; fill: currentColor; shape-rendering: crispEdges; }
.arrow:hover { background: var(--soleil); }
.arrow:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.reel { scrollbar-width: thin; scrollbar-color: var(--encre) transparent; padding: 14px 10px 1.4rem; margin: -14px -10px 0; }

/* toute la carte ouvre la fiche du jeu */
.g { position: relative; }
.g-open { all: unset; cursor: pointer; }
.g-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.g:has(.g-open:focus-visible) { outline: 4px solid var(--bonbon); outline-offset: 3px; }
.chips small { font-size: .8em; opacity: .65; margin-left: .15rem; }

/* fiche de jeu */
.sheet { width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; color: var(--encre); background: var(--nuage);
  border: var(--trait); border-radius: 22px; box-shadow: var(--ombre); overflow: auto; }
.sheet::backdrop { background: rgba(32, 18, 77, .6); }
.sheet[open] { animation: sheet-in .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.sheet-shot { position: relative; aspect-ratio: 16 / 9; background: var(--ciel-clair) center / cover; border-bottom: var(--trait); }
.sheet-body { padding: 1.2rem 1.4rem 1.4rem; }
.sheet h2 { font-size: 2rem; }
.sheet p { margin: .3rem 0; }
.rules { margin: 1rem 0 1.4rem; padding-left: 1.4rem; display: grid; gap: .35rem; }
.rules:empty { display: none; }
.sheet form { margin-top: 1.2rem; }
.sheet form .btn { width: 100%; }

/* classements, profil */
.board li.me { background: #fff6d6; margin: 0 -.6rem; padding-left: .6rem; padding-right: .6rem; border-radius: 8px; }
.back { display: inline-block; font-weight: 700; margin-bottom: 1rem; text-decoration: underline 3px; text-underline-offset: 5px; }
.table.short tbody tr:nth-child(n+9) { display: none; }
.more-rows { margin-top: 1rem; }
.podium { padding-top: 2rem; }

/* boutique : accord avant de payer */
.agree { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.4; margin: 0 0 1rem; cursor: pointer; }
.agree input { width: 22px; height: 22px; flex: none; margin: .1rem 0 0; accent-color: var(--bonbon); cursor: pointer; }
.paybar { display: none; }

/* boutique : deux onglets (en ligne / gratuit en jeu) */
.shop-tabs { display: inline-flex; gap: 0; margin-top: 1.2rem; border: var(--trait); border-radius: 14px; overflow: hidden; background: var(--nuage); box-shadow: 4px 4px 0 var(--encre); }
.shop-tabs button { font: 700 1rem var(--texte); color: var(--encre); background: none; border: 0; padding: .6rem 1.1rem; cursor: pointer; }
.shop-tabs button + button { border-left: var(--trait); }
.shop-tabs [aria-selected="true"] { background: var(--encre); color: var(--nuage); }
.free { padding-bottom: 3rem; }
.free h2 { font-size: 1.7rem; margin: 0 0 1rem; }
.free h2 + .shelf { margin-top: 0; }
.earn { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.earn li { background: var(--nuage); border: var(--trait); border-radius: 14px; padding: .7rem 1rem; font-weight: 700; }
.earn b { display: block; font: 400 2rem/1.1 var(--titre); color: #b0279c; }
.free-item { cursor: default; }
.free-item:hover { transform: none; box-shadow: none; }
.price.gem { color: #b0279c; }
.price.gem i { font-style: normal; }
.parade img.big { height: 230px; }
.free-me { display: flex; align-items: center; gap: .6rem; margin: -.4rem 0 1rem; font-size: 1.05rem; }
.free-me img { width: 32px; height: 32px; image-rendering: pixelated; border: var(--trait); border-radius: 8px; }
.gem { color: #b0279c; }
.meter { display: block; height: 12px; margin-top: .4rem; border: 2px solid var(--encre); border-radius: 4px; image-rendering: pixelated;
  background: linear-gradient(90deg, #d94fd1 var(--p), #efe6fa var(--p)); }
.need { font-size: .85rem; font-weight: 700; color: var(--encre-douce); }
.free-item.has { background: #effbe9; }
.badge.new { background: var(--soleil); color: var(--encre); }

/* pages légales */
.updated { color: var(--encre-douce); font-size: .9rem; margin: .5rem 0 0; }
.prose .sub { margin-bottom: 1rem; }
.prose ul, .charter { padding-left: 1.3rem; }
.prose li { margin: .45rem 0; }
.charter li { margin: .9rem 0; }
.imprint { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; background: var(--nuage); border: var(--trait); border-radius: 14px; padding: 1rem 1.2rem; }
.imprint dt { font-weight: 700; }
.imprint dd { margin: 0; }
.todo { background: #fff6d6; border: 2px dashed var(--encre); border-radius: 6px; padding: 0 .4rem; font-size: .9rem; }
.lost { text-align: center; }
.lost img { height: 180px; width: auto; margin: 0 auto 1rem; }
.lost .sub { margin-left: auto; margin-right: auto; }

/* pied de page : trois colonnes, la lune à droite */
.foot-in { gap: 2rem 3.5rem; }
.foot-in > div { margin-right: auto; }
.moon { left: auto; right: 5%; }

@media (max-width: 900px) {
  .stage h1 { font-size: clamp(2.4rem, 7.4vw, 4.2rem); }
  .stage, .counter { grid-template-columns: 1fr; }
  .stage h1 { max-width: none; }
  .facts, .reassure { grid-template-columns: 1fr; gap: .6rem; }
  .parade img { height: 120px; margin: 0 -16px -10px; } .parade img.big { height: 160px; }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .shop-head-in { grid-template-columns: 1fr; }
  .shop-head-in img { width: 70%; margin: 0 auto -1.5rem; }
  .cart { grid-column: 1; grid-row: auto; position: static; }
  .lobby-grid { grid-template-columns: 1fr 1fr; }
  .l-a { grid-column: span 2; grid-row: auto; }
  .lobby-grid { grid-template-rows: 220px 160px; }
  .reel { grid-auto-columns: 78%; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .stairs { grid-template-columns: repeat(3, 1fr); height: auto; }
  .stairs li { height: auto; min-height: 0; }
  .podium { grid-template-columns: 1fr; }
  .podium li { order: 0 !important; }
  .who-row > img { display: none; }
}
@media (max-width: 640px) {
  .splash { font-size: 1.05rem; top: -1.4rem; }
  .bits { display: none; }
  /* téléphone : une ligne d'en-tête, les onglets en bas comme une barre d'objets */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .top { gap: .8rem; padding: .5rem 1rem; justify-content: space-between; }
  .brand img { width: 122px; }
  .onair { font-size: .88rem; padding: .2rem .7rem; }
  .menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); background: var(--nuage); border-top: var(--trait); }
  .menu a { display: grid; justify-items: center; gap: .15rem; padding: .3rem .1rem; font-size: .76rem; line-height: 1.1; white-space: nowrap; }
  .menu svg { display: block; }
  .menu .menu-shop { background: none; box-shadow: none; }
  .menu .menu-shop svg { color: var(--bonbon); }
  .hotbar-sel { background: var(--soleil); }
  .toasts { top: auto; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; }
  .foot { padding-bottom: 1.5rem; }
  .foot-in > div { flex-basis: 100%; }
  .moon { top: 14px; width: 40px; height: 40px; }

  /* accueil */
  .stage { padding-top: 2.4rem; }
  .splash { right: 0; top: -1.7rem; }
  .stairs .win::after { left: auto; right: .5rem; top: .5rem; width: 36px; height: 24px; margin: 0; }
  .reel-nav .arrow { display: none; }

  /* jeux : filtres sur une ligne, deux cartes par rangée */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 1.2rem -1rem 1.4rem; padding: .2rem 1rem .5rem; scrollbar-width: none; }
  .chips button { flex: none; white-space: nowrap; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .catalog .g-body { padding: .55rem .7rem .75rem; gap: .1rem; }
  .catalog .g-body h3 { font-size: 1.02rem; gap: .35rem; }
  .catalog .g-body h3::before { width: 10px; height: 10px; }
  .catalog .g-tag { display: none; }
  .catalog .g-meta { font-size: .76rem; }
  .catalog .g { border-radius: 14px; }

  /* boutique : pseudo centré, articles en deux colonnes, barre de paiement */
  .who-row { flex-direction: column; align-items: center; gap: .6rem; }
  .who-skin { margin: -.6rem auto -.4rem; }
  .who-field { width: 100%; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .shelf > .item:last-child:nth-child(odd) { grid-column: span 2; }
  .item { padding: .8rem .8rem .9rem; border-radius: 14px; }
  .item img { height: 110px; }
  .shelf-gems .item img { height: 80px; }
  .item h3 { font-size: 1.05rem; }
  .item p { font-size: .8rem; }
  .price { font-size: 1.2rem; }
  .badge { font-size: .72rem; right: .4rem; }
  .paybar:not([hidden]) { display: flex; position: fixed; left: .6rem; right: .6rem; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 54;
    align-items: center; gap: .7rem; padding: .4rem .5rem .4rem .6rem; color: #fff; background: var(--encre); border: 3px solid var(--encre);
    border-radius: 16px; box-shadow: 0 6px 0 rgba(32, 18, 77, .3); animation: place .4s cubic-bezier(.3, 1.5, .5, 1); }
  .paybar img { width: 44px; height: 44px; object-fit: contain; }
  .paybar span { flex: 1; display: grid; line-height: 1.25; font-size: .9rem; }
  .paybar .btn { padding: .55rem 1rem; border-color: #fff; box-shadow: none; }
  body.cart-seen .paybar { display: none; }

  /* profil */
  .pro-head { flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
  .pro-skin { min-height: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mypets { justify-content: center; }
  .mypets img { height: 110px; }
  .parade img { height: 74px; margin: 0 -6px -6px; } .parade img.big { height: 112px; }
  .parade { overflow: hidden; }
  .parade { min-height: 160px; }

  .earn { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .earn li { padding: .5rem .6rem; font-size: .8rem; }
  .earn b { font-size: 1.5rem; }
  .shop-tabs { display: flex; }
  .shop-tabs button { flex: 1; }
  .imprint { grid-template-columns: 1fr; gap: .1rem; }
  .imprint dd { margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .stairs li, .podium li, .lobby-grid figure { clip-path: none !important; }
  .stairs .win::after { opacity: 1; }
  .cloud-layer { display: none; }
}

/* Boutique : quantité de gemmes, grades et tableau comparatif */
.gem-qty { font: 400 1.35rem var(--titre); color: #9b2fd6; }
.gem-qty i { font-style: normal; }
.price small { font: 700 .85rem var(--texte); color: var(--encre-douce); margin-left: .25rem; }
.shelf-grades .item img { height: 120px; }
.grades-wrap { margin-top: 1.4rem; overflow-x: auto; }
.grades { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; background: var(--nuage); border: var(--trait); border-radius: 18px; box-shadow: var(--ombre); overflow: hidden; }
.grades caption { text-align: left; font: 400 1.4rem var(--titre); padding: 0 0 .6rem; }
.grades th, .grades td { padding: .7rem .8rem; text-align: center; border-bottom: 2px dashed var(--ciel-clair); font-size: .95rem; }
.grades tr:last-child th, .grades tr:last-child td { border-bottom: 0; }
.grades tbody th { text-align: left; font-weight: 700; }
.grades td small { display: block; font-size: .8rem; color: var(--encre-douce); }
.grades .hot { background: #fff6d6; }
.grades thead th { vertical-align: bottom; }
.grades thead em { display: block; font: 700 .75rem var(--texte); color: var(--bonbon); font-style: normal; margin-bottom: .3rem; }
.gb { display: inline-block; font: 900 .85rem "Arial Black", var(--texte); color: #fff; padding: .15rem .55rem; border: 2px solid var(--encre); border-radius: 8px; text-shadow: 1px 1px 0 var(--encre); }
.gb-vip { background: #2fae4e; }
.gb-vipp { background: #2a8ae0; }
.gb-win { background: linear-gradient(#ffc93c, #e0791a); }
.grades .ic { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: middle; }

/* Boutique « marché des îles » : chaque article flotte sur sa mini-île, dans un faisceau de sa rareté */
.sec { display: flex; align-items: center; gap: .6rem; font: 400 1.5rem var(--titre); margin: 2rem 0 .9rem; text-transform: uppercase; letter-spacing: .02em; }
.sec::after { content: ""; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--encre) 0 8px, transparent 8px 14px); }
.pick > h2 + .sec { margin-top: .4rem; }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; }
.fn { --a: #c9d3df; --b: #7d8a9c; --glow: #ffffff; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center;
  text-align: center; font: inherit; color: #fff; border: var(--trait); border-radius: 16px; overflow: hidden; cursor: pointer; padding: .7rem .6rem 0;
  min-height: 270px; background: linear-gradient(var(--a), var(--b)); box-shadow: 5px 5px 0 var(--encre); transition: transform .15s, box-shadow .15s; }
.fn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 260%; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--glow) 32%, transparent) 0 9deg, transparent 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 46%); mask: radial-gradient(circle, #000 0 18%, transparent 46%); animation: spin 26s linear infinite; }
.fn:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 7px 9px 0 var(--encre); }
.fn:hover::before { animation-duration: 7s; }
.fn[aria-pressed="true"] { transform: translateY(-4px); box-shadow: 0 0 0 4px var(--soleil), 7px 9px 0 var(--encre); }
.fn.r-common { --a: #d6dde6; --b: #8794a6; --glow: #ffffff; }
.fn.r-uncommon { --a: #a6ef8f; --b: #2f9a3a; --glow: #eaffc9; }
.fn.r-rare { --a: #8fdcff; --b: #2763cc; --glow: #e3f6ff; }
.fn.r-epic { --a: #e3a6ff; --b: #6d27b8; --glow: #f6dcff; }
.fn.r-legend { --a: #ffe07a; --b: #e0661c; --glow: #fff4c2; }
.fn-wide { grid-column: span 2; }
.fn-name { font: 400 1.3rem/1.05 var(--titre); text-transform: uppercase; text-shadow: 2px 2px 0 var(--encre); min-height: 1.4em; }
.fn-stage { position: relative; flex: 1; width: 100%; display: grid; place-items: end center; padding-bottom: 46px; }
.fn-stage img { position: relative; z-index: 1; width: 92%; height: 130px; object-fit: contain; animation: bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 0 rgba(16, 8, 48, .22)); }
.fn-wide .fn-stage img { height: 170px; }
.fn:nth-child(2n) .fn-stage img { animation-delay: -1.1s; }
.fn:nth-child(3n) .fn-stage img { animation-delay: -2.2s; }
/* la mini-île : dessus texturé, dessous de terre en pointe, posée dans le ciel */
.fn-isle { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; width: 62%; height: 18px; background: var(--tex) 0 0 / 18px 18px;
  image-rendering: pixelated; border: 3px solid var(--encre); border-bottom: 0; }
.fn-isle::after { content: ""; position: absolute; top: 15px; left: -3px; right: -3px; height: 22px; background: url(/img/tex-dirt.png) 0 0 / 18px 18px;
  image-rendering: pixelated; clip-path: polygon(0 0, 100% 0, 88% 45%, 74% 45%, 64% 100%, 46% 70%, 34% 70%, 22% 40%, 8% 40%); filter: brightness(.8); }
.fn-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; min-height: 1.6rem; }
.fn-pow { font-weight: 800; font-size: .82rem; background: rgba(16, 8, 48, .6); border-radius: 999px; padding: .05rem .55rem; }
/* prix : panneau de bois */
.fn-price { position: relative; margin: .55rem 0 .7rem; padding: .15rem .9rem; color: #2a1606; font: 400 1.25rem var(--titre); rotate: -2deg;
  background: repeating-linear-gradient(0deg, #c8924f 0 6px, #b57f40 6px 8px); border: 3px solid var(--encre); border-radius: 4px; box-shadow: 3px 3px 0 var(--encre); }
.fn-price.gem { color: #fff; background: repeating-linear-gradient(0deg, #8a4fd0 0 6px, #7a3fc0 6px 8px); }
.fn-price s { font: 700 .85rem var(--texte); opacity: .65; margin-right: .3rem; }
.fn-badge { position: absolute; top: .9rem; left: -2.7rem; z-index: 2; width: 10rem; rotate: -38deg; background: var(--bonbon); color: #fff;
  border-block: 2px solid var(--encre); padding: .1rem 0; font-weight: 800; font-size: .78rem; text-align: center; }
.fn .owned { position: absolute; top: .5rem; right: .5rem; z-index: 2; background: var(--herbe); color: #fff; border: 2px solid var(--encre); border-radius: 8px; padding: 0 .45rem; font-size: .8rem; }
.fn .owned:empty { display: none; }
.fn.has { filter: saturate(.55); cursor: default; }
.free-item { cursor: default; }
.free-item .meter { width: 80%; margin: 0 0 .4rem; }
.free-item .need, .free-item > .owned:not(:empty) { position: static; margin: 0 0 .6rem; color: #fff; font-size: .82rem; font-weight: 800; }
.grades td .ic { display: inline-block; margin: 0 auto; }
@media (max-width: 640px) {
  .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .fn { min-height: 230px; }
  .fn-stage img { height: 92px; }
  .fn-wide .fn-stage img { height: 120px; }
  .fn-name { font-size: 1rem; }
  .fn-price { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .fn::before, .fn-stage img { animation: none; } }

/* Clic : le bouton s'écrase puis rebondit (avec le « pop » en particules de fx.js) */
.mined { animation: mined .34s ease-out; }
@keyframes mined { 0% { scale: 1; } 25% { scale: 1.08 .86; } 55% { scale: .95 1.08; } 80% { scale: 1.02 .98; } 100% { scale: 1; } }
.free > .shelf-note { margin: .2rem 0 1.4rem; }
.fn:has(.fn-badge) .fn-name { margin-top: 1.25rem; }

/* ===== Boutique immersive : nuit étoilée, îles qui flottent, bannière en vedette, fiche plein écran ===== */
body.in-mall { background: #160d3d; }
.mall { position: relative; color: #fff; padding: 2rem 0 4rem; min-height: 100vh; overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #5b2bb8 0%, transparent 60%), radial-gradient(900px 500px at 0% 30%, #1d4fb8 0%, transparent 60%),
    linear-gradient(#1c0f4a, #120a33 60%, #0d0826); }
.mall-sky { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 30% 70%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 55% 15%, #ffe68a 50%, transparent 51%), radial-gradient(2px 2px at 80% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 85%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 20% 90%, #b9e6ff 50%, transparent 51%),
    radial-gradient(2px 2px at 65% 60%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 45% 40%, #fff 50%, transparent 51%);
  background-size: 400px 400px; animation: twinkle 6s steps(2) infinite; }
/* îles du décor : rendus isométriques avec les vraies textures Minecraft ; plus petites et sombres = plus loin */
.mall-sky img { position: absolute; height: auto; image-rendering: pixelated; animation: drift-isle 22s ease-in-out infinite;
  filter: brightness(.7) saturate(1.1) drop-shadow(0 18px 24px #0008); }
.mall-sky img:nth-child(1) { width: 150px; left: 2%; top: 13%; }
.mall-sky img:nth-child(2) { width: 110px; right: 3%; top: 28%; animation-delay: -6s; filter: brightness(.55) drop-shadow(0 18px 24px #0008); }
.mall-sky img:nth-child(3) { width: 70px; left: 7%; top: 58%; animation-delay: -12s; filter: brightness(.45) drop-shadow(0 18px 24px #0008); }
.mall-sky img:nth-child(4) { width: 170px; right: 5%; top: 72%; animation-delay: -17s; }
@media (max-width: 760px) { .mall-sky img { opacity: .5; } .mall-sky img:nth-child(4) { width: 110px; } }
@keyframes twinkle { 50% { opacity: .55; } }
@keyframes drift-isle { 50% { transform: translate(18px, -14px); } }
.mall .wrap { position: relative; }
.mall-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1.4rem; }
.mall-top h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-style: italic; text-transform: uppercase; text-shadow: 4px 4px 0 #ff4f9a; }
.who-chip { display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 3px solid #fff3; border-radius: 999px; padding: .3rem .4rem .3rem .3rem; position: relative; }
.who-chip.ok { border-color: #7be35a; }
.who-chip .who-skin { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #fff2; flex: none; }
.who-chip .who-skin img { width: 100%; height: 100%; image-rendering: pixelated; }
.who-chip input { width: 9.5rem; font: 700 1rem var(--texte); color: #fff; background: none; border: 0; outline: none; }
.who-chip input::placeholder { color: #fff9; }
.who-chip .btn { padding: .3rem .9rem; box-shadow: none; }
.who-chip .who-msg { position: absolute; left: 1rem; top: 100%; margin-top: .3rem; font-size: .85rem; white-space: nowrap; }
.who-chip .who-msg.err { color: #ff8fa8; }
.mall .shop-tabs { margin: 0 0 0 auto; }
.mall .sec { color: #fff; text-shadow: 3px 3px 0 #ff4f9a; font-style: italic; }
.mall .sec::after { background: repeating-linear-gradient(90deg, #fff6 0 8px, transparent 8px 14px); }
.mall .grades { color: var(--encre); }
.mall .grades caption { color: #fff; }
.mall .reassure li { color: var(--encre); }
.mall .earn li { color: var(--encre); }
.mall .free-me { color: #fff; display: flex; align-items: center; gap: .5rem; }
.mall .free-me[hidden] { display: none; }
/* bannière en vedette */
.hero { position: relative; height: clamp(300px, 38vw, 400px); border: 4px solid #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 4px var(--encre), 0 20px 50px #0008; }
.slide { --a: #ffe07a; --b: #e0661c; position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 1rem; padding: 1.5rem 2rem;
  background: radial-gradient(80% 120% at 25% 50%, var(--a), var(--b)); opacity: 0; transform: translateX(6%); transition: opacity .6s, transform .6s; pointer-events: none; isolation: isolate; }
.slide.on { opacity: 1; transform: none; pointer-events: auto; }
.slide::before { content: ""; position: absolute; z-index: -1; left: 28%; top: 50%; width: 160%; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(#fff3 0 8deg, transparent 8deg 20deg); -webkit-mask: radial-gradient(circle, #000 0 15%, transparent 50%); mask: radial-gradient(circle, #000 0 15%, transparent 50%); animation: spin 30s linear infinite; }
.slide.r-rare { --a: #8fdcff; --b: #2763cc; }
.slide.r-epic { --a: #e3a6ff; --b: #6d27b8; }
.slide-art img { width: 100%; max-height: 340px; object-fit: contain; filter: drop-shadow(0 14px 0 #0004); animation: bob 3.4s ease-in-out infinite; }
.slide-kicker { display: inline-block; background: var(--encre); padding: .1rem .7rem; border-radius: 6px; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.slide h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-style: italic; text-transform: uppercase; text-shadow: 4px 4px 0 var(--encre); margin: .4rem 0; }
.slide p { margin: 0 0 .8rem; font-weight: 700; text-shadow: 1px 1px 0 #0006; }
.slide-price { display: block; font: 400 2rem var(--titre); text-shadow: 3px 3px 0 var(--encre); margin-bottom: .8rem; }
.slide-price s, .d-price s { font: 700 1rem var(--texte); opacity: .7; margin-right: .5rem; }
.dots { position: absolute; bottom: .8rem; left: 50%; translate: -50% 0; display: flex; gap: .4rem; z-index: 2; }
.dots button { width: 14px; height: 14px; border: 3px solid var(--encre); background: #fff6; cursor: pointer; padding: 0; }
.dots button[aria-current] { background: #fff; width: 30px; }
/* fiche plein écran */
.detail { --a: #ffe07a; --b: #e0661c; width: min(920px, 94vw); max-height: 92vh; padding: 0; border: 4px solid #fff; border-radius: 22px; color: #fff; overflow: auto;
  background: radial-gradient(90% 120% at 30% 40%, var(--a), var(--b)); box-shadow: 0 0 0 4px var(--encre), 0 30px 80px #000a; }
.detail::backdrop { background: rgba(10, 5, 30, .75); backdrop-filter: blur(4px); }
.detail[open] { display: grid; grid-template-columns: 1fr 1fr; animation: pop-in .28s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop-in { from { transform: scale(.85); opacity: 0; } }
.detail.r-common { --a: #d6dde6; --b: #8794a6; } .detail.r-uncommon { --a: #a6ef8f; --b: #2f9a3a; } .detail.r-rare { --a: #8fdcff; --b: #2763cc; }
.detail.r-epic { --a: #e3a6ff; --b: #6d27b8; }
.detail .x { position: absolute; top: .7rem; right: .8rem; z-index: 3; width: 40px; height: 40px; border: 3px solid var(--encre); border-radius: 10px; background: #fff; color: var(--encre); font-weight: 900; cursor: pointer; }
.d-art { position: relative; display: grid; place-items: center; padding: 2rem 1rem 4rem; }
.d-art img { position: relative; z-index: 1; width: 100%; max-height: 330px; object-fit: contain; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 14px 0 #0004); }
.d-art .fn-isle { width: 60%; bottom: 2rem; }
.d-txt { padding: 2rem 1.6rem; background: rgba(16, 8, 48, .55); display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.d-rar { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; background: #fff; color: var(--encre); padding: 0 .5rem; border-radius: 4px; }
.d-txt h2 { font-size: clamp(2rem, 4vw, 3rem); font-style: italic; text-transform: uppercase; text-shadow: 3px 3px 0 var(--encre); }
.d-txt p { margin: 0; }
.d-price { font: 400 2.2rem var(--titre); text-shadow: 3px 3px 0 var(--encre); }
.d-for { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.d-for img { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 6px; }
.d-who { display: flex; gap: .4rem; }
.d-who input { font: 700 1rem var(--texte); padding: .5rem .7rem; border: 3px solid var(--encre); border-radius: 10px; width: 11rem; }
.detail .agree { font-size: .9rem; display: flex; gap: .5rem; align-items: flex-start; }
.detail .agree a { color: #fff; }
.detail .buy { width: 100%; font-size: 1.3rem; padding: .8rem; }
.detail .owned.big { font: 400 1.4rem var(--titre); color: #7be35a; }
.detail #checkout { width: 100%; }
.detail #checkout:not(:empty) { background: #fff; border-radius: 12px; padding: .5rem; }
.fn.has { filter: saturate(.4) brightness(.85); }
@media (max-width: 760px) {
  .slide { grid-template-columns: 1fr; padding: 1rem; text-align: center; }
  .slide-art img { max-height: 150px; }
  .detail[open] { grid-template-columns: 1fr; }
  .d-art { padding: 1.2rem 1rem 3rem; }
  .d-art img { max-height: 190px; }
  .mall .shop-tabs { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .mall-sky, .mall-sky img, .slide::before, .slide-art img, .d-art img { animation: none; } }
.mall .fn-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 640px) { .mall .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.d-art { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.d-art .fn-isle { position: relative; bottom: auto; left: auto; translate: none; margin-top: -4px; }
.test-band { background: repeating-linear-gradient(-45deg, #ffc93c 0 18px, #20124d 18px 36px); color: #fff; font-weight: 900; text-align: center; padding: .4rem; border-radius: 10px; text-shadow: 2px 2px 0 #20124d, -1px -1px 0 #20124d; margin: 0 0 1rem; }
.fn-desc { display: block; width: 100%; font-size: .78rem; font-weight: 700; opacity: .9; text-shadow: 1px 1px 0 #20124d; margin-top: .15rem; }
.d-pows { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.d-pows li { background: rgba(16, 8, 48, .45); border-radius: 8px; padding: .25rem .6rem; }
.d-how { opacity: .85; }
