/* Polices hébergées sur le site (v52) : plus aucun appel à Google Fonts (l'adresse IP des visiteurs n'est plus envoyée à Google) */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/bricolage-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: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/bricolage-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/fonts/figtree-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: 'Figtree'; font-style: normal; font-display: swap; font-weight: 300 900; src: url('/fonts/figtree-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* =========================================================
   BriqueThèque — thème « boîte à jouets »
   Bleu nuit, rouge brique, jaune tenon
   ========================================================= */
:root {
  --bg: #EEF1F8;
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --ink: #12172E;
  --ink-2: #2C3350;
  --muted: #5A6180;
  --line: #DFE3EE;
  --line-2: #C9CFE0;
  --chip: #E4E8F3;
  --night: #13183A;
  --night-2: #1F2758;
  --red: #D7262E;
  --red-dark: #A9161D;
  --red-soft: #FDE8E9;
  --yellow: #FFC72C;
  --yellow-dark: #E0A800;
  --blue: #2B63D9;
  --green: #0E6E3E;
  --green-border: #1C9A58;
  --green-soft: #E2F6EA;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 23, 46, .06), 0 4px 14px rgba(18, 23, 46, .06);
  --shadow-lift: 0 2px 4px rgba(18, 23, 46, .08), 0 14px 32px rgba(18, 23, 46, .14);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --tabbar-h: 0px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45;
  padding-bottom: var(--tabbar-h);
  background-color: var(--bg);
  /* motif discret de tenons */
  background-image: radial-gradient(circle at 12px 12px, rgba(19, 24, 58, .045) 5px, transparent 5.5px);
  background-size: 24px 24px;
}
a { color: var(--blue); }
a:hover { color: var(--night-2); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; }
.display { font-family: var(--display); font-weight: 800; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease-out), background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-dark); }
.btn-primary:hover { background: #C41F27; color: #fff; }
.btn-primary:active { box-shadow: 0 1px 0 var(--red-dark); transform: translateY(2px) scale(.98); }
.btn-outline { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); font-weight: 600; }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-owned { background: var(--green-soft); border-color: var(--green-border); color: var(--green); }
.btn-owned:hover { background: #D2F0DE; color: var(--green); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.iconbtn {
  width: 44px; min-height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-2); background: var(--surface); color: var(--muted); flex: none;
  transition: transform .15s var(--ease-out), border-color .2s, color .2s, background-color .2s;
}
.iconbtn:hover { border-color: var(--red); color: var(--red); }
.iconbtn:active { transform: scale(.9); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.iconbtn.is-on { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.iconbtn.is-on svg { fill: currentColor; }
.linkbtn { border: none; background: none; padding: 0; color: inherit; opacity: .75; font-size: 13px; text-decoration: underline; text-align: left; }
.linkbtn:hover { opacity: 1; }

/* Effet « onde » au clic */
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); pointer-events: none; transform: scale(0); animation: ripple .55s ease-out forwards; }
.btn-ghost .ripple, .btn-outline .ripple, .btn-owned .ripple, .iconbtn .ripple { background: rgba(18, 23, 46, .12); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--night); color: #fff; box-shadow: 0 2px 0 var(--yellow); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 38px; height: 28px; background: var(--red); border-radius: 6px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px 6px; align-content: center;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
  transition: transform .4s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark i { height: 9px; border-radius: 50%; background: #F04A51; border: 1.5px solid #9E1218; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.mainnav { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.mainnav a {
  position: relative; min-height: 44px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px;
  color: #C9CEEA; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s;
}
.mainnav a:hover { background: var(--night-2); color: #fff; }
.mainnav a.is-active { background: var(--yellow); color: var(--ink); }
.count { display: inline-block; min-width: 22px; text-align: center; background: rgba(255,255,255,.14); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 12px; font-weight: 800; }
.mainnav a.is-active .count { background: var(--ink); color: #fff; }
.usermenu { display: flex; align-items: center; gap: 10px; }
.usermenu-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; text-transform: uppercase;
}

/* ---------- Barre d'onglets (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--night); border-top: 2px solid var(--yellow);
  display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 2px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a {
  position: relative; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #AEB4D6; font-size: 10px; font-weight: 700; text-decoration: none; border-radius: 12px; transition: color .2s; white-space: nowrap;
}
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-spring); }
.tabbar a.is-active { color: var(--yellow); }
.tabbar a.is-active svg { transform: translateY(-2px) scale(1.12); }
.tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10px; padding: 0 6px; line-height: 17px; min-width: 18px; }
.tabbar .count[data-zero] { display: none; }

/* ---------- Pages ---------- */
main { display: block; outline: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 22px; animation: pageIn .35s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title { font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1.05; letter-spacing: -.02em; }
.page-title .hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 4px; }
.page-sub { margin: 6px 0 0; color: var(--muted); }

.search {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; background: var(--surface);
  border: 2px solid var(--line-2); border-radius: 14px; flex: 0 1 400px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--night-2); box-shadow: 0 0 0 4px rgba(43, 99, 217, .15); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { border: none; outline: none; background: transparent; font-size: 16px; flex: 1; min-width: 0; }

.toolbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.select {
  min-height: 44px; padding: 0 38px 0 14px; border-radius: 12px; border: 2px solid var(--line-2); background-color: var(--surface);
  font-weight: 600; font-size: 14px; color: var(--ink-2); appearance: none; cursor: pointer; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 13px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
  transition: border-color .2s;
}
.select:hover { border-color: var(--ink-2); }
.select option.opt-main { font-weight: 800; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.result-count { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Cartes de sets ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 20px; }
.card {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-in { animation: cardIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* Case photo de taille FIXE : l'image s'adapte, jamais l'inverse */
.card-media {
  display: block; margin: 0; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; text-align: left;
  position: relative; width: 100%; height: 0; padding-top: 75%; /* ratio 4:3 */
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-2) 100%); border-bottom: 1px solid var(--line); overflow: hidden;
}
.card-media > img, .card-media > .placeholder-brick {
  position: absolute; inset: 0; margin: auto;
}
.card-media > img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; padding: 14px; transition: transform .4s var(--ease-out); }
.card:hover .card-media > img { transform: scale(1.06); }
.card-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1; max-width: calc(100% - 20px); background: var(--night); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.card-meta { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.card-name {
  font-size: 16px; font-weight: 700; line-height: 1.25; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em;
}
.card-facts { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-pieces { font-size: 13px; color: var(--muted); }
.price { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; }
.price small { font-family: var(--body); font-weight: 600; font-size: 11px; color: var(--muted); margin-left: 3px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn { flex: 1; padding: 0 10px; font-size: 14px; min-width: 0; }
.badge-mine { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 3px 9px; border-radius: 99px; }

.placeholder-brick { position: absolute; inset: 0; margin: auto; width: 46%; height: 30%; background: var(--chip); border-radius: 8px; }
.placeholder-brick::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 25%; height: 50%;
  background: radial-gradient(circle, var(--surface-2) 38%, var(--line-2) 40%, var(--line-2) 46%, transparent 48%) 0 50% / 25% 100% repeat-x;
}

/* Animations de retour */
.pop { animation: pop .45s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
.wiggle { animation: wiggle .4s ease; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.particle { position: fixed; z-index: 65; width: 10px; height: 8px; border-radius: 2px; pointer-events: none; }

.skeleton {
  background: linear-gradient(90deg, var(--chip) 0%, #F2F4FA 50%, var(--chip) 100%); background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear; border-radius: 18px; min-height: 320px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.center { display: flex; justify-content: center; }
.empty {
  padding: 48px 24px; text-align: center; background: var(--surface); border: 2px dashed var(--line-2); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); animation: pageIn .35s var(--ease-out);
}
.empty strong { color: var(--ink); font-size: 18px; }

/* ---------- Listes (collection / souhaits) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  animation: cardIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); min-width: 0;
}
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-hl { background: var(--night); border-color: var(--night); color: #fff; }
.stat-hl span { color: #C9CEEA; }
.stat-hl strong { color: var(--yellow); }
.stat small { display: block; font-size: 12px; color: inherit; opacity: .7; margin-top: 2px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 14px; box-shadow: var(--shadow); transition: transform .25s var(--ease-out), box-shadow .25s, opacity .3s;
}
.row:hover { transform: translateX(3px); box-shadow: var(--shadow-lift); }
.row.row-out { opacity: 0; transform: translateX(40px); }
.row-media { position: relative; width: 96px; height: 72px; border-radius: 12px; background: var(--surface-2); flex: none; overflow: hidden; }
.row-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.row-media > .placeholder-brick { width: 70%; height: 46%; }
.row-info { flex: 1 1 220px; min-width: 0; }
.row-name { font-weight: 700; font-size: 17px; }
.row-meta { font-size: 14px; color: var(--muted); }
.row-price { font-family: var(--display); font-weight: 800; font-size: 18px; white-space: nowrap; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Connexion ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-hero {
  position: relative; overflow: hidden; flex: 1 1 420px; background: var(--red); color: #fff; padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,.10) 9px, rgba(0,0,0,.08) 10px, transparent 11px);
  background-size: 40px 40px;
}
.auth-hero .brand-mark { box-shadow: 0 0 0 3px #fff, inset 0 -3px 0 rgba(0,0,0,.18); }
.auth-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; max-width: 540px; letter-spacing: -.02em; animation: pageIn .6s var(--ease-out) both; }
.auth-hero p { margin: 16px 0 0; font-size: 18px; color: #FFE3E4; max-width: 480px; animation: pageIn .6s .1s var(--ease-out) both; }
.auth-points { display: flex; flex-wrap: wrap; gap: 28px; color: #FFE3E4; font-size: 15px; }
.auth-points span { animation: pageIn .6s var(--ease-out) both; }
.auth-points span:nth-child(2) { animation-delay: .1s; }
.auth-points span:nth-child(3) { animation-delay: .2s; }
.auth-points strong { display: block; color: #fff; font-size: 21px; }
.floating-brick { position: absolute; border-radius: 8px; opacity: .9; animation: float 6s ease-in-out infinite; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); }
.floating-brick::before, .floating-brick::after { content: ''; position: absolute; top: -9px; width: 30%; height: 12px; border-radius: 5px 5px 0 0; background: inherit; }
.floating-brick::before { left: 12%; } .floating-brick::after { right: 12%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 4deg)); } }
.auth-side { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 410px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); padding: 28px; border-radius: 22px; box-shadow: var(--shadow-lift); animation: cardIn .5s var(--ease-out) both; }
.segmented { display: flex; background: var(--chip); border-radius: 14px; padding: 4px; }
.segmented button { flex: 1; min-height: 44px; border: none; border-radius: 11px; background: transparent; font-weight: 600; font-size: 15px; color: var(--muted); padding: 0 12px; transition: background-color .25s, color .25s, box-shadow .25s; }
.segmented button.is-on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input { min-height: 48px; padding: 0 14px; border: 2px solid var(--line-2); border-radius: 12px; font-size: 16px; background: var(--surface); width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--night-2); box-shadow: 0 0 0 4px rgba(43, 99, 217, .15); outline: none; }
.field small { font-weight: 400; color: var(--muted); }
.error { color: #A3161D; font-weight: 600; font-size: 14px; }
.error:not(:empty) { animation: wiggle .4s ease; }
.notice { font-size: 13px; color: var(--muted); }

/* ---------- Partage ---------- */
.share-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.panel { flex: 1 1 400px; min-width: 0; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); animation: cardIn .45s var(--ease-out) both; }
.panel + .panel { animation-delay: .08s; }
.panel h2 { font-size: 18px; font-weight: 700; }
.panel-dark { background: var(--night); border-color: var(--night); color: #fff; }
.panel-dark .check { color: #fff; }
.panel-dark .check input { accent-color: var(--yellow); }
.panel-dark .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.panel-dark .btn-outline:hover { background: #fff; color: var(--ink); }
.panel-dark .linkbtn { font-size: 14px; min-height: 44px; }
.code-big {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 6vw, 44px); letter-spacing: 3px; background: var(--yellow); color: var(--ink);
  padding: 6px 18px; border-radius: 14px; display: inline-block; box-shadow: inset 0 -4px 0 var(--yellow-dark); max-width: 100%; overflow-wrap: anywhere;
}
.code-input { text-transform: uppercase; letter-spacing: 2px; font-size: 20px !important; }
.friend-list { display: flex; flex-direction: column; gap: 8px; }
.friend-item { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease-out), border-color .2s; }
.friend-item:hover { color: var(--ink); border-color: var(--line-2); transform: translateX(3px); }
.friend-item .avatar { width: 32px; height: 32px; font-size: 14px; background: var(--red); color: #fff; }
.friend-item span { flex: 1; font-weight: 600; }
.friend-item small { color: var(--muted); }

.readonly { display: flex; align-items: center; gap: 10px; background: #FFF6D6; border: 2px solid var(--yellow); color: #5A4300; border-radius: 14px; padding: 12px 16px; font-weight: 600; animation: pageIn .35s var(--ease-out); }
.readonly svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.friend-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.friend-head .avatar { width: 56px; height: 56px; font-size: 22px; background: var(--red); color: #fff; }

.footer-note { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; font-size: 13px; color: var(--muted); }

/* ---------- Animation « Je l'ai » ---------- */
.fly { position: fixed; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; z-index: 60; opacity: 0; }
.fly-inner { position: relative; width: 64px; height: 64px; border-radius: 14px; background: var(--surface); box-shadow: 0 10px 24px rgba(0,0,0,.28); border: 3px solid var(--yellow); overflow: hidden; }
.fly-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.fly-inner > .placeholder-brick { width: 70%; height: 46%; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h)); transform: translate(-50%, 24px) scale(.96); z-index: 70;
  background: var(--night); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 28px rgba(0,0,0,.3); max-width: calc(100% - 32px); opacity: 0; pointer-events: none;
  border-left: 5px solid var(--yellow); transition: opacity .25s, transform .35s var(--ease-spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --tabbar-h: 76px; }
  .mainnav { display: none; }
  .tabbar:not([hidden]) { display: grid; }
  .topbar-inner { padding: 10px 16px; justify-content: space-between; }
  .brand-name { font-size: 19px; }
  .usermenu-text strong { display: none; }
  .page { padding: 18px 16px 32px; gap: 16px; }
  .page-title { font-size: 30px; }
  .search { flex: 1 1 100%; }
  .toolbar { padding: 10px; }
  .toolbar .select { flex: 1 1 140px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card:hover { transform: none; }
  .card-body { padding: 10px; gap: 8px; }
  .card-name { font-size: 14px; }
  .card-meta, .card-pieces { font-size: 11px; }
  .price { font-size: 15px; }
  .card-actions { gap: 6px; }
  .card-actions .btn { font-size: 13px; padding: 0 6px; }
  .card-actions .btn svg { display: none; }
  .card-actions .iconbtn { width: 40px; }
  .stat { padding: 10px 12px; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 11px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .row-actions { width: 100%; }
  .row-actions .btn { flex: 1; }
  .auth-hero { padding: 32px 24px 28px; flex-basis: 100%; }
  .auth-points, .floating-brick { display: none; }
  .auth-side { padding: 20px 16px 40px; }
  .auth-card { padding: 20px; }
  .panel { padding: 20px; flex-basis: 100%; }
  .segmented button { font-size: 14px; padding: 0 8px; white-space: nowrap; }
  .friend-head .page-title { font-size: 26px !important; }
  .friend-head .avatar { width: 44px; height: 44px; font-size: 18px; }
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* Le texte de l'accueil passe au-dessus des briques flottantes */
.auth-hero > *:not(.floating-brick) { position: relative; z-index: 1; }

/* =========================================================
   Version 6
   ========================================================= */

/* Photos chargées en douceur (elles ne dépendent plus du survol) */
img.lazy { opacity: 0; transition: opacity .35s ease; }
img.lazy.is-loaded { opacity: 1; }
.card-zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(19, 24, 58, .86); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease-out);
}
.card-media:hover .card-zoom, .card-media:focus-visible .card-zoom { opacity: 1; transform: none; }
.linklike { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.linklike:hover { color: var(--red); }
.row-media { border: 0; padding: 0; cursor: pointer; }

/* Préférences */
.hide-prices .price, .hide-prices .row-price, .hide-prices .price-only, .hide-prices .card-facts .price { display: none !important; }
.no-anim *, .no-anim *::before, .no-anim *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }

/* ---------- Carrousel de l'accueil ---------- */
.carousel { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateX(28px); visibility: hidden;
  transition: opacity .5s ease, transform .6s var(--ease-out), visibility 0s .6s;
}
.slide.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .5s ease, transform .6s var(--ease-out), visibility 0s; }
.slide-icon {
  width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,.15);
}
.slide.is-on .slide-icon { animation: pop .6s var(--ease-spring) .15s both; }
.slide-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slide-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -.02em; color: #fff; }
.slide-sub { margin: 0; font-size: 18px; color: #FFE3E4; max-width: 480px; }
.carousel-ctrl { display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 6px; }
.dot { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dot span { position: relative; display: block; width: 28px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.35); overflow: hidden; transition: width .3s var(--ease-out); }
.dot.is-on span { width: 40px; background: rgba(255,255,255,.45); }
.dot span::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.dot.is-on span::after { transform: scaleX(1); }
.dot.is-on.run span::after { transform: scaleX(0); animation: progress var(--delay, 4500ms) linear forwards; }
.carousel.is-paused .dot.is-on span::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.carousel-pause {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.carousel-pause:hover { background: rgba(255,255,255,.15); }
.carousel-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bouton Google ---------- */
.btn-google { background: #fff; color: #1F1F1F; border: 2px solid var(--line-2); font-weight: 600; min-height: 48px; }
.btn-google:hover { background: #F7F8FC; color: #1F1F1F; border-color: var(--ink-2); }
.btn-google .g-logo { width: 20px; height: 20px; stroke: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

/* ---------- Menu du profil ---------- */
.usermenu { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 2px solid transparent;
  background: rgba(255,255,255,.06); color: #fff; font-weight: 700; font-size: 15px; transition: background-color .2s, border-color .2s;
}
.profile-btn:hover, .profile-btn[aria-expanded="true"] { background: rgba(255,255,255,.14); border-color: rgba(255,199,44,.6); }
.profile-btn .chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.profile-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 270px; max-width: calc(100vw - 24px);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 8px;
  box-shadow: 0 18px 48px rgba(18, 23, 46, .28); transform-origin: top right; animation: menuIn .22s var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
.profile-menu::before { content: ''; position: absolute; top: -7px; right: 22px; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.profile-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; min-width: 0; }
.profile-menu-head div { display: flex; flex-direction: column; min-width: 0; }
.profile-menu-head strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-menu-head small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-lg { width: 46px; height: 46px; font-size: 18px; }
.profile-menu [role="menuitem"] {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer;
}
.profile-menu [role="menuitem"]:hover, .profile-menu [role="menuitem"]:focus-visible { background: var(--surface-2); color: var(--ink); outline: none; box-shadow: inset 0 0 0 2px var(--yellow); }
.profile-menu [role="menuitem"] svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; color: var(--muted); }
.profile-menu #logout { color: var(--red-dark); }
.profile-menu #logout svg { color: var(--red-dark); }
.profile-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- Pages compte & paramètres ---------- */
.page-narrow { max-width: 760px; }
.panel fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel legend { font-weight: 700; padding: 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-danger { background: var(--red-dark); color: #fff; }
.btn-danger:hover { background: #8A1015; color: #fff; }
.panel-danger { border-color: #F3C3C6; }
.panel-danger h2 { color: var(--red-dark); }
.panel-admin { border: 2px solid var(--yellow); }
.banner { padding: 12px 16px; border-radius: 14px; font-weight: 600; animation: pageIn .35s var(--ease-out); }
.banner.ok { background: var(--green-soft); color: var(--green); border: 2px solid var(--green-border); }
.banner.err { background: var(--red-soft); color: var(--red-dark); border: 2px solid #F3C3C6; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.badge.on { background: var(--green-soft); color: var(--green); }
.badge.off { background: var(--chip); color: var(--muted); }
.badge.admin { background: var(--yellow); color: var(--ink); }
.status-line { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.status-line.ok { color: var(--green); }
.status-line svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps code, .hint code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; overflow-wrap: anywhere; }
.linkbtn.danger { color: var(--red-dark); opacity: 1; align-self: flex-start; min-height: 32px; }
.avatar-edit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar-xl { width: 96px; height: 96px; font-size: 38px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--yellow); }
.avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.avatar-actions .hint { flex-basis: 100%; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; padding: 6px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row span { display: flex; flex-direction: column; gap: 2px; }
.switch-row small { color: var(--muted); font-size: 13px; }
.switch { appearance: none; flex: none; width: 52px; height: 30px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color .25s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease-spring); }
.switch:checked { background: var(--green-border); }
.switch:checked::after { transform: translateX(22px); }

/* ---------- Fiche d'un set ---------- */
.sheet {
  width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(10, 14, 40, .45); overflow: auto;
}
.sheet[open] { animation: sheetIn .35s var(--ease-out); }
.sheet::backdrop { background: rgba(13, 17, 42, .62); backdrop-filter: blur(3px); animation: fadeIn .25s ease; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet-inner { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.sheet-loading { display: flex; flex-direction: column; gap: 16px; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sheet-close svg { stroke-width: 2.4; stroke-linecap: round; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.sheet-media { position: relative; width: 100%; padding-top: 75%; height: 0; border-radius: 18px; background: linear-gradient(180deg, #fff, var(--surface-2)); border: 1px solid var(--line); overflow: hidden; }
.sheet-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.sheet-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-right: 40px; }
.sheet-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.sheet-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-facts span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; font-size: 14px; color: var(--ink-2); }
.price-hero { background: var(--night); color: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.price-hero-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #C9CEEA; }
.price-hero-value { font-family: var(--display); font-weight: 800; font-size: 38px; color: var(--yellow); line-height: 1.1; }
.price-hero-note { font-size: 13px; color: #C9CEEA; }
.trend { margin-top: 6px; font-size: 13px; font-weight: 700; }
.trend.up { color: #7BE0A6; }
.trend.down { color: #FFB3B6; }
.sheet-info .card-actions { max-width: 360px; }
.ext-link { font-size: 14px; font-weight: 600; align-self: flex-start; }
.chart-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chart-card h3 { font-size: 18px; }
.chart-box { min-height: 120px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; outline: none; }
.chart:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 8px; }
.grid-line { stroke: var(--line); stroke-width: 1; }
.axis-line { stroke: var(--line-2); stroke-width: 1; }
.axis-text { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.value-label { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--body); }
.chart-area { fill: #2B63D9; opacity: .08; }
.chart-line { fill: none; stroke: #2B63D9; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.dashed { stroke-dasharray: 5 5; opacity: .7; }
.chart-dot { fill: #2B63D9; stroke: var(--surface); stroke-width: 2; }
.chart-dot.retail { fill: var(--surface); stroke: #2B63D9; stroke-width: 2; }
.crosshair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.focus-dot { fill: none; stroke: #2B63D9; stroke-width: 2; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--night); color: #fff; border-radius: 10px; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 1px; box-shadow: 0 8px 22px rgba(0,0,0,.25); white-space: nowrap; z-index: 2;
}
.chart-tip strong { font-size: 16px; }
.chart-tip span { font-size: 12px; color: #C9CEEA; }
.chart-empty { padding: 28px 16px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: 12px; }
.chart-note { margin: 0; font-size: 13px; color: var(--muted); }
.chart-table summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.chart-table td:last-child, .chart-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .profile-name, .profile-btn .chevron { display: none; }
  .profile-btn { padding: 4px; }
  .carousel { gap: 14px; }
  .slide-icon { width: 46px; height: 46px; }
  .slide-title { font-size: 30px; }
  .slide-sub { font-size: 15px; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .sheet[open] { animation: sheetUp .35s var(--ease-out); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet-inner { padding: 18px 16px 24px; }
  .sheet-grid { grid-template-columns: 1fr; gap: 16px; }
  .sheet-info { padding-right: 0; }
  .sheet-title { font-size: 24px; }
  .price-hero-value { font-size: 32px; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
}
.card-media > img.lazy { transition: opacity .35s ease, transform .4s var(--ease-out); }

/* Corrections v6 */
.page > .panel, #admin-box > .panel { flex: 0 0 auto; }
.auth-hero .carousel .slide-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -.02em; color: #fff; max-width: none; animation: none; }
.auth-hero .carousel .slide-sub { margin: 0; font-size: 18px; color: #FFE3E4; max-width: 480px; animation: none; }
.auth-hero .carousel { margin: auto 0; }
@media (max-width: 760px) {
  .auth-hero .carousel .slide-title { font-size: 30px; }
  .auth-hero .carousel .slide-sub { font-size: 15px; }
  .auth-hero .carousel { margin: 24px 0 0; }
}

/* Fiche d'un set : photo compacte pour voir « Je l'ai » sans faire défiler */
.sheet { width: min(840px, calc(100vw - 32px)); }
.sheet-grid { align-items: center; }
.sheet-media { height: 300px; padding-top: 0; }
.sheet-info .card-actions { width: 100%; }
.sheet-info .price-hero { padding: 12px 16px; }
.sheet-info .price-hero-value { font-size: 30px; }
@media (max-width: 760px) {
  .sheet-media { height: 180px; }
  .sheet-inner { gap: 14px; }
  .sheet-grid { gap: 12px; }
  .sheet-info { gap: 10px; }
  .sheet-title { font-size: 22px; }
  .sheet-info .price-hero-value { font-size: 26px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .sheet-media { height: 220px; }
}
@media (max-width: 760px) {
  .sheet { width: 100vw; max-width: 100vw; }
}

/* =========================================================
   Version 9
   ========================================================= */

/* ---------- Page de connexion : plaque de construction bleue ---------- */
.auth-hero {
  background-color: #1C58C9;
  /* tenons en relief : reflet clair en haut à gauche, ombre en bas à droite */
  background-image:
    radial-gradient(circle at 18px 17px, rgba(255,255,255,.20) 0 8px, transparent 9px),
    radial-gradient(circle at 21px 22px, rgba(0,0,0,.22) 0 9px, transparent 10px),
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.07) 0 11px, transparent 12px);
  background-size: 40px 40px;
}
.auth-hero .carousel .slide-sub { color: #DCE6FF; }
.auth-hero .carousel .slide-title { text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.auth-hero .slide-icon { color: var(--red); }
.auth-hero .brand-mark { box-shadow: 0 0 0 3px #fff, inset 0 -3px 0 rgba(0,0,0,.18); }
.auth-hero > *:not(.brick-field) { position: relative; z-index: 1; }
.floating-brick { display: none; }

.brick-field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pop-brick {
  position: absolute; border-radius: 4px; background-color: var(--c);
  background-image:
    radial-gradient(circle at 18px 17px, rgba(255,255,255,.35) 0 8px, transparent 9px),
    radial-gradient(circle at 21px 22px, rgba(0,0,0,.25) 0 9px, transparent 10px);
  background-size: 40px 40px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 6px 10px rgba(0,0,0,.18);
  animation: brickLife 5.2s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes brickLife {
  0%   { opacity: 0; transform: translateY(-46px) scale(1.06); }
  9%   { opacity: 1; transform: translateY(3px) scale(1); }
  13%  { transform: translateY(0) scaleY(.94); }
  17%  { transform: translateY(0) scaleY(1); }
  82%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-14px); }
}

/* ---------- Carte de connexion ---------- */
.auth-card { min-height: 0; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.auth-text { margin: 0; color: var(--ink-2); }
.auth-badge {
  width: 56px; height: 56px; border-radius: 16px; background: var(--chip); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; animation: pop .6s var(--ease-spring);
}
.auth-badge.warn { background: var(--red-soft); color: var(--red-dark); }
.auth-badge svg, .btn svg.mail { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.linkbtn.strong { opacity: 1; color: var(--blue); font-weight: 600; font-size: 13px; }
.center-text { text-align: center; margin: 0; }
.btn-tall { min-height: 50px; }
#auth-extra:empty { display: none; }

/* ---------- Animation de bienvenue : 3 briques qui s'emboîtent ---------- */
.welcome {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: rgba(13, 17, 42, .55); backdrop-filter: blur(4px); animation: fadeIn .2s ease;
}
.welcome.is-out { animation: welcomeOut .4s ease forwards; }
@keyframes welcomeOut { to { opacity: 0; } }
.welcome-stack { display: flex; flex-direction: column-reverse; align-items: center; }
.wb {
  position: relative; display: block; width: 132px; height: 46px; border-radius: 6px; margin-top: 10px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.25);
  opacity: 0; animation: wbDrop .5s cubic-bezier(.5,0,.75,0) forwards, wbSnap .22s ease-out forwards;
}
.wb::before, .wb::after {
  content: ''; position: absolute; top: -11px; width: 30px; height: 12px; border-radius: 5px 5px 2px 2px;
  background: inherit; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.15);
}
.wb::before { left: 20px; } .wb::after { right: 20px; }
.wb1 { background: #D7262E; animation-delay: 0s, .5s; }
.wb2 { background: #FFC72C; animation-delay: .3s, .8s; left: 14px; }
.wb3 { background: #2B63D9; animation-delay: .6s, 1.1s; left: -8px; }
@keyframes wbDrop { from { opacity: 1; transform: translateY(-70vh); } to { opacity: 1; transform: translateY(0); } }
@keyframes wbSnap { 0% { transform: scale(1, 1); } 40% { transform: scale(1.06, .86); } 100% { transform: scale(1, 1); } }
.welcome-stack { animation: stackPop .35s ease 1.25s both; }
@keyframes stackPop { 0% { transform: scale(1); } 50% { transform: scale(1.12) rotate(-3deg); } 100% { transform: scale(1); } }
.welcome-text { margin: 0; color: #fff; font-family: var(--display); font-weight: 800; font-size: 26px; text-align: center; padding: 0 16px; opacity: 0; animation: pageIn .4s ease .9s forwards; }

/* ---------- Mes amis ---------- */
.friend-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.friend-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); min-width: 0; transition: opacity .3s, transform .3s; }
.friend-card .avatar { width: 46px; height: 46px; font-size: 18px; background: var(--red); color: #fff; flex: none; }
.friend-card.is-off { opacity: .7; }
.friend-card.row-out { opacity: 0; transform: translateX(30px); }
.friend-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.friend-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-info small { color: var(--muted); font-size: 13px; }
.friend-card .btn { padding: 0 12px; font-size: 14px; }
.empty.small { padding: 22px 16px; }

/* ---------- Tableau des comptes (administrateur) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { font-size: 12px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

@media (max-width: 760px) {
  /* Accueil compact : les champs de connexion sont visibles dès l'arrivée */
  .auth-hero { padding: 14px 18px 12px; gap: 10px; flex-basis: 100%; justify-content: flex-start; background-size: 32px 32px; }
  .auth-hero .brand-name { font-size: 18px; }
  .auth-hero .brand-mark { width: 32px; height: 23px; }
  .auth-hero .carousel { margin: 2px 0 0; gap: 4px; }
  .auth-hero .slide-icon, .auth-hero .carousel .slide-sub { display: none; }
  .auth-hero .carousel .slide-title { font-size: 21px; line-height: 1.15; min-height: 2.3em; }
  .dot { width: 34px; height: 34px; }
  .dot span { width: 20px; }
  .dot.is-on span { width: 30px; }
  .carousel-pause { width: 34px; height: 34px; }
  .auth-side { padding: 12px 12px 32px; align-items: flex-start; }
  .auth-card { padding: 18px 16px; gap: 14px; }
  .auth-form { gap: 13px; }
  .auth-title { font-size: 23px; }
  .field input { min-height: 46px; }

  /* Messages : toute la largeur, 2 lignes au maximum */
  .toast { left: 12px; right: 12px; max-width: none; transform: translateY(24px); font-size: 14px; padding: 11px 14px; }
  .toast.is-on { transform: none; }

  .friend-card { flex-wrap: wrap; }
  .friend-card .btn { order: 3; flex: 1 1 100%; }
  .wb { width: 112px; height: 40px; }
}
.auth-hero > .brick-field { position: absolute; inset: 0; z-index: 0; }

/* Règles du mot de passe (v10) */
.pw-rules { list-style: none; margin: -6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 6px; transition: color .2s; }
.pw-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: background-color .2s, border-color .2s; position: relative; }
.pw-rules li.ok { color: var(--green); font-weight: 600; }
.pw-rules li.ok .pw-dot { background: var(--green-border); border-color: var(--green-border); }
.pw-rules li.ok .pw-dot::after { content: ''; position: absolute; left: 3px; top: 0; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 400px) { .pw-rules { grid-template-columns: 1fr; } }

/* Bouton Supprimer dans le tableau des comptes (admin) */
.btn-del { border: 1.5px solid #F3C3C6; background: var(--red-soft); color: var(--red-dark); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.btn-del:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-del:disabled { opacity: .6; }

/* =========================================================
   v12 — Communauté, visibilité des listes, tranche de prix
   ========================================================= */

/* ---------- Bannière d'avertissement (vue admin d'une liste privée) ---------- */
.banner.warn { background: #FFF6E0; color: #7A5600; border: 1px solid var(--yellow); }

/* ---------- Page communauté : en-tête animé ---------- */
.community-hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff; padding: 26px 22px; box-shadow: var(--shadow);
  margin-bottom: 4px;
}
.community-hero-in { position: relative; z-index: 2; }
.community-hero .page-title { color: #fff; font-size: 32px; }
.community-hero .page-title .hl { background: linear-gradient(transparent 62%, var(--red) 62%); color: #fff; }
.community-hero .page-sub { color: #C9CEEA; margin: 6px 0 14px; max-width: 60ch; }
.community-search { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); max-width: 420px; }
.community-search input { color: #fff; }
.community-search input::placeholder { color: #AEB4D6; }
.community-search svg { stroke: #C9CEEA; }
.community-anim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-brick {
  position: absolute; bottom: -34px; width: calc(var(--w, 2) * 15px); height: 15px; border-radius: 3px;
  background: var(--c, var(--yellow)); opacity: 0;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
  animation: floatUp var(--dur, 10s) linear forwards;
}
.float-brick::before, .float-brick::after {
  content: ''; position: absolute; top: -3px; width: 7px; height: 4px; border-radius: 3px 3px 0 0; background: inherit;
}
.float-brick::before { left: 3px; }
.float-brick::after { right: 3px; }
@keyframes floatUp {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .9; }
  100% { transform: translate(var(--drift, 0), calc(-100% - 320px)) rotate(28deg); opacity: 0; }
}

/* ---------- Grille des membres ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.member-card {
  display: flex; align-items: center; gap: 13px; padding: 14px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s; min-width: 0;
}
a.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-2); color: inherit; }
.member-card .avatar { width: 52px; height: 52px; font-size: 20px; background: var(--red); color: #fff; flex: none; }
.member-card.is-locked { opacity: .72; }
.member-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.member-info > strong { display: flex; align-items: center; gap: 8px; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mc-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mc-chip-hid { color: var(--muted); opacity: .72; font-style: italic; font-weight: 600; }
.mc-chip-hid svg { stroke-width: 2; }
.member-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.member-go { flex: none; font-weight: 700; color: var(--blue); font-size: 14px; white-space: nowrap; }

/* Badges de visibilité */
.vis-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.6; }
.vis-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.vis-badge.public { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border); }
.vis-badge.amis { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }
.vis-badge.priv { background: var(--red-soft); color: var(--red-dark); border: 1px solid #F3C3C6; }
.vis-badge.me { background: var(--yellow); color: #4A3500; }

/* ---------- Contrôle de visibilité (Privé / Amis / Public) ---------- */
.vis-block { display: flex; flex-direction: column; gap: 10px; }
.vis-title { font-size: 14px; color: #C9CEEA; font-weight: 600; }
.vis-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vis-label { font-weight: 600; font-size: 15px; }
.vis-label small { display: block; font-weight: 500; color: #AEB4D6; font-size: 12.5px; }
.panel .vis-label small { color: var(--muted); }
.vis-control { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 11px; padding: 3px; gap: 2px; }
.panel .vis-control { background: var(--chip); }
.vis-opt { position: relative; }
.vis-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vis-opt span { display: block; min-width: 58px; text-align: center; padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; color: #C9CEEA; transition: background-color .2s, color .2s; }
.panel .vis-opt span { color: var(--muted); }
/* Sélecteur : Privé = rouge, Amis = blanc, Public = vert */
.vis-opt.is-on span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.vis-opt:nth-child(1).is-on span { background: var(--red); color: #fff; }
.vis-opt:nth-child(2).is-on span { background: #ff9d24; color: #fff; }
.vis-opt:nth-child(3).is-on span { background: var(--green-border); color: #fff; }
/* Légende de visibilité : Privé / Amis / Public, chacun sur sa ligne */
.vis-legend { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.vis-legend li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #C9CEEA; line-height: 1.3; }
.panel .vis-legend li { color: var(--muted); }
.vl-tag { flex: none; min-width: 58px; text-align: center; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.vl-tag.priv { background: var(--red); color: #fff; }
.vl-tag.friends { background: #ff9d24; color: #fff; }
.vl-tag.public { background: var(--green-border); color: #fff; }

/* ---------- Catalogue : filtres repliables (mobile) ---------- */
.filters-toggle { display: none; }
.price-filter { flex-basis: 100%; display: flex; flex-direction: column; gap: 9px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 2px; }
.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-label { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.pf-clear { align-self: center; }
.dualrange { position: relative; height: 34px; width: 100%; max-width: 440px; }
.dr-track { position: absolute; left: 10px; right: 10px; top: 50%; transform: translateY(-50%); height: 6px; background: var(--chip); border-radius: 999px; }
.dr-fill { position: absolute; top: 0; bottom: 0; background: var(--red); border-radius: 999px; }
.dualrange input[type="range"] {
  position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 34px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.dualrange input[type="range"]#pf-rmax { z-index: 4; }
.dualrange input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--red);
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab; margin-top: 0;
}
.dualrange input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); }
.dualrange input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--red);
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: grab;
}
.dualrange input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.dualrange input[type="range"]::-moz-range-track { background: transparent; }
.pf-inputs { display: inline-flex; align-items: center; gap: 6px; }
.pf-num { width: 82px; min-height: 40px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); text-align: right; }
.pf-dash { color: var(--muted); }
.pf-eur { color: var(--muted); font-weight: 600; }

/* ---------- Vue listes (ami / membre) : en-tête animé ---------- */
.listing-top { margin-bottom: 2px; }
.btn-back { padding: 0 14px; min-height: 40px; gap: 4px; }
.btn-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.listing-hero { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 16px 20px 20px; box-shadow: var(--shadow); }
.listing-anim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.listing-hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.readonly.mini { font-size: 12.5px; padding: 6px 11px; gap: 7px; align-self: flex-start; max-width: 100%; border-radius: 10px; }
.readonly.mini svg { width: 15px; height: 15px; flex: none; }
.listing-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar-listing { width: 66px; height: 66px; font-size: 26px; background: var(--red); color: #fff; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.listing-titles { min-width: 0; flex: 1; }
.listing-name { font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.12; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.listing-sub { margin: 7px 0 0; color: #C9CEEA; font-size: 14px; }
.listing-sub span { display: block; }
.listing-tabs { width: 100%; }
@media (min-width: 641px) { .listing-tabs { max-width: 380px; } }

/* ---------- Mes amis : compteurs (2 lignes PC, 1 ligne mobile) ---------- */
.fc-counts { display: flex; flex-direction: column; gap: 1px; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 3px; }
.fc-item { white-space: nowrap; }
.fc-sep { display: none; }

@media (max-width: 760px) {
  .filters-toggle { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; color: var(--ink-2); }
  .filters-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .filters-toggle .ft-chev { margin-left: auto; transition: transform .25s; }
  .filters-toggle.is-open .ft-chev { transform: rotate(180deg); }
  .filters-panel { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease-out); }
  .filters-panel.open { max-height: 1000px; margin-top: 10px; }
  .fc-counts { flex-direction: row; align-items: center; gap: 6px; }
  .fc-sep { display: inline; color: var(--line-2); }
  .listing-tabs button { min-height: 48px; font-size: 15px; }
  .listing-name { font-size: 22px; }
  .avatar-listing { width: 56px; height: 56px; font-size: 22px; }
}
@media (max-width: 640px) {
  .pf-inputs { width: 100%; }
  .pf-num { flex: 1; width: auto; }
  .community-hero .page-title { font-size: 26px; }
}

/* =========================================================
   v14 — Notifications, visibilité sur Communauté, cartes membres
   ========================================================= */

/* ---------- Cloche de notifications ---------- */
.notif { position: relative; }
.notif-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.notif-btn:hover { background: rgba(255,255,255,.16); }
.notif-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif-badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--night); animation: badgePop .3s var(--ease-spring); }
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }
.notif-menu { position: absolute; top: calc(100% + 10px); right: 0; width: min(340px, 92vw); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 8px; z-index: 60; animation: menuIn .2s var(--ease-out); }
.notif-head { font-weight: 700; font-size: 14px; padding: 6px 8px 8px; color: var(--ink-2); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.notif-empty { padding: 16px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; }
.notif-item + .notif-item { border-top: 1px solid var(--line); }
.notif-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.notif-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-info small { color: var(--muted); font-size: 12px; }
.notif-acts { display: flex; gap: 6px; flex: none; }
.avatar-sm { width: 38px; height: 38px; font-size: 15px; background: var(--red); color: #fff; flex: none; }
.btn-xs { min-height: 34px; padding: 0 10px; font-size: 13px; border-radius: 9px; }

/* ---------- Communauté : hero + panneau visibilité ---------- */
/* Disposition PC : grand bandeau en haut-gauche (s'étire jusqu'aux filtres), filtres juste en dessous, visibilité à droite */
.community-top { display: grid; grid-template-columns: 1fr 340px; grid-template-rows: 1fr auto; grid-template-areas: "hero vis" "filters vis"; gap: 14px; align-items: stretch; }
.community-top .community-hero { grid-area: hero; margin-bottom: 0; }
.community-top .comm-filterbar { grid-area: filters; margin-top: 0; align-self: start; }
.community-vis { grid-area: vis; display: flex; flex-direction: column; gap: 10px; }
.community-vis .vis-title { color: var(--ink-2); }
.community-vis .vis-label { color: var(--ink); }
.community-vis .vis-label small { color: var(--muted); }
@media (max-width: 900px) {
  .community-top { display: flex; flex-direction: column; }
  .community-top .community-hero { order: 1; }
  .community-vis { order: 2; }
  .community-top .comm-filterbar { order: 3; }
}
/* La légende descriptive n'apparaît que sur PC */
@media (max-width: 760px) { .vis-legend { display: none; } }

/* ---------- Cartes membres : flèche en haut à droite ---------- */
.member-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.member-name { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.member-top .member-go { flex: none; margin-left: auto; font-weight: 700; color: var(--blue); font-size: 14px; white-space: nowrap; }
.member-top .vis-badge.me { flex: none; }
.vis-badge.wait { background: #FFF1D6; color: #8A5B00; }
.vis-badge.ok { background: var(--green-soft); color: var(--green); }

/* ---------- Demande d'accès (profil membre) ---------- */
.banner.info { background: #EAF1FF; color: #244E9C; border: 1px solid #BFD4F7; }
.access-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.access-cta strong { display: block; }
.access-cta span { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .access-cta { flex-direction: column; align-items: stretch; } .access-cta .btn { width: 100%; } }

/* =========================================================
   v15 — Filtres communauté, actions profil, notifs, scroll-top
   ========================================================= */

/* Cloche : léger décalage à droite + fix débordement mobile */
.notif { margin-left: 20px; }
.notif-menu { right: 0; }
@media (max-width: 560px) {
  .notif-menu { position: fixed; top: 64px; left: 10px; right: 10px; width: auto; max-height: 70vh; overflow-y: auto; }
}
.notif-link { text-decoration: none; color: inherit; }
.notif-link:hover { background: var(--surface-2); }
.notif-link.is-new { background: #EAF1FF; }
.notif-link svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.4; flex: none; }

/* Bouton « cooler » pour Demander l'accès (dégradé indigo→violet) */
.btn-accent { color: #fff; border: none; background: linear-gradient(135deg, #5B6CF0 0%, #9B4DF0 100%); box-shadow: 0 2px 10px rgba(91,108,240,.4); }
.btn-accent:hover { filter: brightness(1.07); }
.btn-accent svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Zone « demande en attente » */
.access-cta.pending { background: #FFF8EC; border-color: #F3D9A6; }
.access-cta.pending strong { color: #8A5B00; }

/* Actions en haut du profil (ajouter en ami) */
.listing-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.listing-actions { display: flex; gap: 8px; }
.btn-friend svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-friend.is-friend { background: var(--green-soft); border-color: var(--green-border); color: var(--green); }

/* Badge « Ami » + valeur de collection sur les cartes */
.vis-badge.friend { background: #E7EDFB; color: var(--blue); }
.mc-chip.mc-value { color: var(--green); font-weight: 800; }

/* Barre tri & filtres de la communauté */
.comm-filterbar { margin-top: 12px; }
.comm-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--night-2); }
.pill.is-on { background: var(--night); color: #fff; border-color: var(--night); }
.pill-reset { color: var(--muted); border-style: dashed; }

/* Bouton flottant « remonter en haut » */
.to-top { position: fixed; right: 18px; bottom: calc(18px + var(--tabbar-h)); z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--night); color: #fff; box-shadow: var(--shadow-lift); display: flex; align-items: center; justify-content: center; animation: badgePop .25s var(--ease-spring); }
.to-top:hover { background: var(--night-2); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Sur mobile, la barre tri/filtres se replie sous la visibilité (réutilise .filters-toggle / .filters-panel) */
@media (max-width: 760px) {
  .comm-filterbar .filters-panel.open { max-height: 300px; }
}

/* v15b — sections amis (following/followers) + petits boutons */
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.followers-h { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.h-sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.friend-card[data-id] .btn-accent { white-space: nowrap; }

/* =========================================================
   v17 — Modale de confirmation, sections amis, chips
   ========================================================= */
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(10, 14, 32, .55); opacity: 0; transition: opacity .2s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal-overlay.is-open { opacity: 1; }
.modal { width: min(420px, 100%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 22px; transform: translateY(12px) scale(.97); transition: transform .22s var(--ease-spring); }
.modal-overlay.is-open .modal { transform: none; }
.modal-title { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0 0 8px; }
.modal-msg { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.modal-acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.btn-danger { background: var(--red); color: #fff; border: none; }
.btn-danger:hover { background: var(--red-dark); }

/* Lien avatar+pseudo cliquable dans les cartes amis */
.fc-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; flex: 1; }
.fc-link:hover strong { text-decoration: underline; }
.fc-link .avatar { flex: none; }

/* Chip « Demande envoyée » + petite croix pour annuler */
.pending-chip { display: inline-flex; align-items: center; gap: 2px; background: #FFF1D6; color: #8A5B00; font-weight: 700;
  font-size: 13px; padding: 4px 6px 4px 12px; border-radius: 999px; white-space: nowrap; }
.chip-x { border: none; background: none; padding: 0; margin-left: 2px; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; }
.chip-x:hover { background: rgba(0,0,0,.1); }
.chip-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* Cartes amis/suiveurs : autoriser le passage à la ligne des actions quand c'est serré */
.friend-card { flex-wrap: wrap; row-gap: 10px; }
.friend-card .fc-link { flex: 1 1 160px; }
.friend-card .btn, .friend-card .pending-chip { flex: 0 1 auto; }

/* =========================================================
   v18 — notifs scroll, brique pop, bulles prix, badge brique, etc.
   ========================================================= */
/* Panneau de notifs : 4 visibles puis scroll */
.notif-list { max-height: 268px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.notif-item.row-out { opacity: 0; transform: translateX(40px); transition: opacity .25s, transform .25s; }

/* Grosse brique LEGO qui pop sur un bouton */
.pop-lego { position: fixed; z-index: 95; width: 56px; height: 36px; border-radius: 5px; pointer-events: none;
  background: var(--c, var(--yellow)); box-shadow: inset 0 -6px 0 rgba(0,0,0,.22); animation: popLego .7s var(--ease-out) forwards; }
.pop-lego::before, .pop-lego::after { content: ''; position: absolute; top: -6px; width: 14px; height: 8px; border-radius: 4px 4px 0 0; background: inherit; }
.pop-lego::before { left: 9px; } .pop-lego::after { right: 9px; }
@keyframes popLego { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 35% { transform: scale(1.15) rotate(8deg); opacity: 1; } 100% { transform: scale(.9) translateY(-46px) rotate(-14deg); opacity: 0; } }

/* Bulle de prix dans le sous-titre « Les listes de… » */
.sub-bubble { display: inline-flex; align-items: center; background: rgba(255,255,255,.16); color: #fff; font-weight: 700;
  font-size: 12.5px; padding: 1px 9px; border-radius: 999px; margin-left: 2px; }
.listing-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.listing-sub > span { display: inline-flex; align-items: center; }
.listing-friends { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-weight: 700; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; }
.listing-friends svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
/* Coin haut-droite du bandeau « Les listes de… » (PC) : bulle « Profil … » + nb d'amis dessous, collés à droite */
.listing-vis { position: absolute; top: 0; right: 0; z-index: 3; flex-direction: column; align-items: flex-end; gap: 8px; }
.listing-prof { font-weight: 800; }
.listing-prof.prof-public { background: rgba(46,160,67,.22); border-color: rgba(46,160,67,.55); }
.listing-prof.prof-friends { background: rgba(255,157,36,.24); border-color: rgba(255,157,36,.65); }
.listing-prof.prof-private { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.listing-prof svg { width: 13px; height: 13px; }
.listing-head { padding-right: 150px; }

/* Demande envoyée en place (profil) : chip + Annuler rouge */
.access-slot { display: inline-flex; }
.req-pending { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.access-cta .req-pending { align-items: flex-end; }
.danger-link { color: var(--red-dark); opacity: 1; font-weight: 700; text-decoration: underline; font-size: 13px; }

/* Badge « Ami » : rectangle bleu avec léger reflet animé (sans tenons) */
.brick-badge { position: relative; display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 5px;
  background: #5B6BD6; color: #fff; font-size: 11.5px; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0,0,0,.22); overflow: hidden; }
.brick-badge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-130%); animation: brickShine 5s ease-in-out infinite; }
@keyframes brickShine { 0%, 55% { transform: translateX(-130%); } 78%, 100% { transform: translateX(130%); } }

/* Bouton dans le bandeau bleu nuit (Voir mes amis) */
.btn-hero { margin-top: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; align-self: flex-start; }
.btn-hero:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-hero svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Suiveurs : tout sur une seule ligne */
#follower-cards { grid-template-columns: 1fr; }
.follower-card { flex-wrap: nowrap; }
.follower-card .fc-link { min-width: 0; }
.follower-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.follower-actions .btn-accent { min-width: 0; }
.follower-actions .btn-accent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   v19 — zoom image, cadenas, hero communauté, listing-sub vertical
   ========================================================= */
/* Curseur « main » sur la notif cliquable */
.notif-link { cursor: pointer; }

/* Image de la fiche cliquable + loupe (curseur main, pas de « chargement ») */
.sheet-media.zoomable { cursor: pointer; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(19,24,58,.75); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.sheet-media.zoomable:hover .zoom-hint, .sheet-media.zoomable:focus-visible .zoom-hint { opacity: 1; }
.zoom-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.zoom-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(8,11,26,.9); opacity: 0; transition: opacity .2s; cursor: pointer; }
.zoom-overlay.is-open { opacity: 1; }
.zoom-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; cursor: pointer; transform: scale(.96); transition: transform .22s var(--ease-spring); }
.zoom-overlay.is-open img { transform: none; }
.zoom-close { position: fixed; top: 16px; right: 16px; color: #fff; background: rgba(255,255,255,.14); cursor: pointer; }

/* Cadenas sur l'avatar d'un membre verrouillé */
.member-ava { position: relative; flex: none; display: inline-flex; }
.lock-badge { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--surface); }
.lock-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* Hero communauté : colonne pleine hauteur, bas du bandeau = bouton + stat */
.community-top .community-hero { display: flex; flex-direction: column; }
.community-hero .community-hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.community-hero-in .page-sub { margin-bottom: 4px; }
.hero-tagline { color: #AEB4D6; font-style: italic; margin-bottom: 16px; }
.community-search-lg { max-width: none; width: 100%; flex: 0 0 auto; min-height: 54px; height: 54px; font-size: 16px; position: relative; }
.hero-bottom { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-bottom .btn-hero { margin-top: 0; align-self: center; }
.hero-stat { display: inline-flex; align-items: center; gap: 6px; color: #C9CEEA; font-size: 13.5px; margin: 0; }
.hero-stat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Croix personnalisée de la recherche (rouge quand il y a du texte) */
.community-search-lg input::-webkit-search-cancel-button { display: none; }
.community-search-lg input { padding-right: 38px; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; background: none;
  display: flex; align-items: center; justify-content: center; color: #AEB4D6; cursor: pointer; border-radius: 50%; }
.search-clear:hover { background: rgba(255,255,255,.12); }
.search-clear.active { color: var(--red); }
.search-clear svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; }

/* Infos des suiveurs (PC uniquement) */
.pc-only { display: flex; }
.mobile-only { display: none !important; }
.follower-meta { align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; justify-content: flex-end; }
.follower-meta .mc-chip { color: var(--muted); }

/* Sous-titre « Les listes de… » : chaque info sur sa ligne */
.listing-sub { flex-direction: column; align-items: flex-start; gap: 6px; }

@media (max-width: 760px) {
  .hero-tagline { display: none; }
  .community-search-lg { min-height: 50px; }
  .pc-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
  .listing-head { padding-right: 0; }
  /* Carte suiveur : avatar+pseudo sur une ligne, l'action (bouton ou « Demande
     envoyée ») en dessous, et la croix « retirer » épinglée en haut à droite. */
  .follower-card { flex-wrap: wrap; position: relative; padding-right: 46px; }
  .follower-card .fc-link { flex: 1 1 100%; }
  .follower-actions { width: 100%; justify-content: flex-start; }
  .follower-actions .btn-accent { flex: 1 1 auto; justify-content: center; }
  .follower-card .follower-actions .iconbtn[data-act="remove-follower"] {
    position: absolute; top: 10px; right: 10px; z-index: 4; margin: 0;
  }
}

/* =========================================================
   v23 — Or : pastille, coffre journalier, mini-jeux (style « Clash »)
   ========================================================= */
:root {
  --gold: #ffc928; --gold-2: #ff9f1a; --gold-edge: #b86a00; --gold-ink: #5a3200;
  --cr-deep: #160f45; --cr-deep-2: #2a1d7a; --cr-violet: #4a2bc2; --cr-outline: #160a3d;
}

/* ---------- Barre du haut : jamais sur 2 lignes ---------- */
.topbar-inner { flex-wrap: nowrap; gap: 12px 18px; }
.brand { flex: none; }
.brand-name { font-size: 20px; white-space: nowrap; }
.mainnav { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
.mainnav a { white-space: nowrap; }
.usermenu { flex: none; }
.notif { flex: none; margin-left: 14px; }
@media (max-width: 1180px) {
  .topbar-inner { gap: 10px 12px; padding: 10px 16px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 32px; height: 24px; padding: 4px 5px; gap: 4px; }
  .brand-mark i { height: 7px; }
  .mainnav a { padding: 0 10px; font-size: 14px; gap: 6px; }
  .profile-name { display: none; }
  .profile-btn { padding: 4px 8px 4px 4px; gap: 6px; }
}
/* Tablette : le logo seul (sans le nom) pour laisser la place au menu et à la pastille */
@media (max-width: 1040px) and (min-width: 761px) {
  .brand-name { display: none; }
  .mainnav a { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 880px) and (min-width: 761px) {
  .mainnav a { padding: 0 7px; font-size: 13.5px; }
  .mainnav .count { display: none; }
}
@media (max-width: 800px) and (min-width: 761px) {
  .mainnav { gap: 2px; }
  .mainnav a { padding: 0 5px; font-size: 13px; }
}
/* Filet de sécurité : jamais de liens qui passent sous la pastille, au pire le menu défile */
.mainnav { overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  .topbar-inner { padding: 8px 12px; gap: 8px; justify-content: flex-start; }
  .brand { gap: 7px; min-width: 0; }
  .brand-mark { width: 27px; height: 20px; padding: 3px 4px; gap: 3px; border-radius: 5px; }
  .brand-mark i { height: 6px; border-width: 1px; }
  .brand-name { font-size: clamp(14px, 4.3vw, 18px); }
  .wallet { margin-left: auto; }
  .notif { margin-left: 4px; }
  .notif-btn { width: 40px; height: 40px; border-radius: 11px; }
  .profile-btn { min-height: 0; padding: 2px; }
  .profile-btn .avatar { width: 36px; height: 36px; font-size: 15px; }
}
@media (max-width: 345px) {
  .topbar-inner { padding: 8px 8px; gap: 6px; }
  .brand-mark { display: none; }
}

/* ---------- Pastille d'Or ---------- */
.wallet {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; padding: 0 13px 0 31px; margin-left: 10px; border-radius: 999px;
  background: linear-gradient(180deg, #8c5dff 0%, #6236e0 52%, #4a22b8 100%);
  border: 2px solid #ffd54a;
  box-shadow: 0 0 0 2px rgba(20, 8, 60, .55), 0 4px 14px rgba(140, 90, 255, .55), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25);
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none;
  text-shadow: 0 2px 0 rgba(26, 8, 70, .9), 1px 0 0 rgba(26,8,70,.6), -1px 0 0 rgba(26,8,70,.6);
  transition: transform .2s var(--ease-spring), filter .2s;
}
.wallet:hover, .wallet:focus-visible { color: #fff; transform: translateY(-1px) scale(1.04); filter: brightness(1.08); }
.wallet.is-active { box-shadow: 0 0 0 2px rgba(20, 8, 60, .55), 0 0 0 4px rgba(255, 213, 74, .45), 0 4px 18px rgba(255, 200, 60, .6), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25); }
.wallet-amount { position: relative; z-index: 2; font-variant-numeric: tabular-nums; min-width: 10px; }
.wallet-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.wallet-shine::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -50%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-22deg);
  animation: walletShine 3.6s ease-in-out infinite;
}
@keyframes walletShine { 0%, 55% { left: -50%; } 85%, 100% { left: 130%; } }
.wallet-coin, .coin-ic, .pile-coin, .fly-coin, .burst-coin, .coin3d, .gstat-coin, .coin-big, .jackpot-fx .jp-rain i {
  background: radial-gradient(circle at 34% 30%, #fff8c9 0 14%, #ffd94a 32%, #ffb31a 64%, #c87800 100%);
}
.wallet-coin {
  position: absolute; left: -9px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; z-index: 2;
  border: 2px solid #9a5a00; box-shadow: 0 3px 6px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.35), inset 0 -3px 0 rgba(150,80,0,.35);
  animation: coinWobble 4s ease-in-out infinite;
}
.wallet-coin::after, .coin3d::after, .coin-big::after, .gstat-coin::after {
  content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: #b06400; font-size: 15px;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
@keyframes coinWobble { 0%, 70%, 100% { transform: rotate(0) scale(1); } 76% { transform: rotate(-14deg) scale(1.08); } 84% { transform: rotate(10deg) scale(1.08); } 92% { transform: rotate(-4deg); } }
.wallet .spark {
  position: absolute; z-index: 3; width: 12px; height: 12px; pointer-events: none; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 3px #fff6a8) drop-shadow(0 0 6px #ffd84a);
  animation: twinkle 2.6s ease-in-out infinite;
}
.wallet .s1 { top: -8px; right: 2px; }
.wallet .s2 { bottom: -7px; right: -7px; width: 9px; height: 9px; animation-delay: .9s; }
.wallet .s3 { top: -7px; left: 16px; width: 8px; height: 8px; animation-delay: 1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 40% { transform: scale(1) rotate(90deg); opacity: 1; } 70% { transform: scale(.2) rotate(160deg); opacity: 0; } }
.wallet-bump { animation: walletBump .55s var(--ease-spring); }
@keyframes walletBump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.coin-ic { display: inline-block; position: relative; width: 1.05em; height: 1.05em; border-radius: 50%; border: 1.5px solid #9a5a00; vertical-align: -.17em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
@media (max-width: 760px) {
  .wallet { height: 32px; padding: 0 11px 0 27px; font-size: 15px; margin-left: auto; }
  .wallet-coin { width: 30px; height: 30px; margin-top: -15px; left: -8px; }
  .wallet-coin::after { font-size: 13px; }
}

/* Pièces volantes / fontaine */
.fly-coin { position: fixed; z-index: 4000; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #9a5a00; pointer-events: none;
  box-shadow: 0 4px 10px rgba(120,70,0,.45), inset 0 0 0 2px rgba(255,255,255,.35); }
.burst-coin { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9a5a00; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 2px 6px rgba(0,0,0,.3); }

/* ---------- Texte « Clash » ---------- */
.cr-title {
  font-family: var(--display); font-weight: 800; color: #fff; letter-spacing: .01em; margin: 0;
  text-shadow: 0 4px 0 var(--cr-outline), 2px 0 0 var(--cr-outline), -2px 0 0 var(--cr-outline), 0 -2px 0 var(--cr-outline),
    2px 2px 0 var(--cr-outline), -2px 2px 0 var(--cr-outline), 2px -2px 0 var(--cr-outline), -2px -2px 0 var(--cr-outline), 0 8px 14px rgba(0,0,0,.35);
}
.cr-big { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 10vw, 56px); line-height: 1; letter-spacing: .01em; text-align: center; }
.cr-gold {
  background: linear-gradient(180deg, #fffbe0 0%, #ffe066 35%, #ffb81f 70%, #ff8a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 0 0 #4a2300) drop-shadow(-2px 0 0 #4a2300) drop-shadow(0 2px 0 #4a2300) drop-shadow(0 -2px 0 #4a2300) drop-shadow(0 5px 0 #2a1200) drop-shadow(0 8px 10px rgba(0,0,0,.4));
}
.cr-red {
  background: linear-gradient(180deg, #ffd2d2 0%, #ff6b6b 40%, #e3132a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 0 0 #3d0008) drop-shadow(-2px 0 0 #3d0008) drop-shadow(0 2px 0 #3d0008) drop-shadow(0 -2px 0 #3d0008) drop-shadow(0 5px 0 #24000a) drop-shadow(0 8px 10px rgba(0,0,0,.4));
}
.cr-plus { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; color: #fff2a0;
  text-shadow: 0 3px 0 #6a3a00, 2px 0 0 #6a3a00, -2px 0 0 #6a3a00, 0 -2px 0 #6a3a00, 0 0 22px rgba(255,210,60,.9);
  animation: plusPop .7s var(--ease-spring) both; }
@keyframes plusPop { 0% { transform: scale(0) translateY(20px); opacity: 0; } 60% { transform: scale(1.3) translateY(-6px); opacity: 1; } 100% { transform: scale(1); } }
.gold-total { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,213,74,.45); color: #fff; font-weight: 700; font-size: 15px; animation: pageIn .4s ease .2s both; }
.gold-total b { font-family: var(--display); font-size: 19px; color: #ffd84a; font-variant-numeric: tabular-nums; min-width: 2ch; }
.txt-red { color: #ff4d5e; }

/* ---------- Boutons « Clash » ---------- */
.btn-cr {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 30px;
  border-radius: 14px; border: 2px solid #0a2457; cursor: pointer; color: #fff; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .02em;
  text-shadow: 0 2px 0 rgba(0,0,0,.45), 1px 1px 0 #0a2457, -1px 1px 0 #0a2457, 1px -1px 0 #0a2457, -1px -1px 0 #0a2457;
  background: linear-gradient(180deg, #7fd0ff 0%, #3fa3ff 48%, #1f7ff0 52%, #1667d6 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.65), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 #0a2457, 0 9px 16px rgba(0,0,0,.35);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn-cr small { font-size: 14px; opacity: .9; }
.btn-cr:hover { color: #fff; filter: brightness(1.07); }
.btn-cr:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 #0a2457; }
.btn-cr:disabled { filter: grayscale(.3) brightness(.9); cursor: default; }
.btn-cr-gold {
  border-color: #5a3000; background: linear-gradient(180deg, #fff09a 0%, #ffd23a 48%, #ffb300 52%, #f09400 100%);
  text-shadow: 0 2px 0 rgba(0,0,0,.4), 1px 1px 0 #5a3000, -1px 1px 0 #5a3000, 1px -1px 0 #5a3000, -1px -1px 0 #5a3000;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.75), inset 0 -4px 0 rgba(0,0,0,.14), 0 5px 0 #5a3000, 0 9px 16px rgba(0,0,0,.35);
}
.btn-cr-gold:active { box-shadow: inset 0 2px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(0,0,0,.14), 0 1px 0 #5a3000; }
.btn-cr .coin-ic { width: 22px; height: 22px; vertical-align: middle; }

/* Rayons lumineux rotatifs */
.cr-rays { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px; pointer-events: none; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,230,140,.20) 0deg 9deg, rgba(255,230,140,0) 9deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 62%); mask-image: radial-gradient(circle, #000 0 18%, transparent 62%);
  animation: raysSpin 18s linear infinite; }
@keyframes raysSpin { to { transform: rotate(360deg); } }

/* ---------- Fenêtre de jeu ---------- */
body.game-open { overflow: hidden; }
.game-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(ellipse at center, rgba(40,20,110,.72), rgba(6,4,24,.9)); opacity: 0; transition: opacity .22s; }
.game-overlay.is-open { opacity: 1; }
.game-overlay.is-closing { opacity: 0; }
.game-card {
  position: relative; width: min(480px, 100%); max-height: calc(100dvh - 36px); display: flex; flex-direction: column;
  border-radius: 24px; color: #fff; border: 3px solid #6c5cff;
  background: radial-gradient(120% 70% at 50% 0%, #4a34c9 0%, #2a1d7a 45%, #170f4a 100%);
  box-shadow: 0 0 0 3px var(--cr-outline), 0 20px 60px rgba(0,0,0,.55), inset 0 2px 0 rgba(255,255,255,.25);
  transform: translateY(40px) scale(.85); opacity: 0; transition: transform .45s var(--ease-spring), opacity .25s;
}
.game-overlay.is-open .game-card { transform: none; opacity: 1; }
.game-overlay.is-closing .game-card { transform: scale(.9); opacity: 0; }
.game-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.4px); background-size: 16px 16px; }
.game-body { position: relative; display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; padding: 18px 18px 20px; gap: 10px; }
.game-body.swap-in { animation: swapIn .38s var(--ease-out); }
@keyframes swapIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.game-card.is-loading .game-body { opacity: .55; pointer-events: none; }
.game-card.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25); border-top-color: #ffd84a; animation: raysSpin .8s linear infinite; }
.game-x {
  position: absolute; z-index: 20; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; color: #fff; border: 2px solid #4a0010;
  background: linear-gradient(180deg, #ff8080 0%, #ff3b4e 50%, #e0182d 52%, #c40f22 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 3px 0 #4a0010, 0 6px 12px rgba(0,0,0,.35);
}
.game-x:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 1px 0 #4a0010; }
.game-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
.flash-ok { animation: flashOk .7s ease; }
.flash-no { animation: flashNo .55s ease; }
@keyframes flashOk { 30% { box-shadow: 0 0 0 3px var(--cr-outline), 0 0 0 9px rgba(50,220,120,.6), 0 0 60px rgba(50,220,120,.6); } }
@keyframes flashNo { 15%, 45% { transform: translateX(-8px); } 30%, 60% { transform: translateX(8px); }
  30% { box-shadow: 0 0 0 3px var(--cr-outline), 0 0 0 9px rgba(255,60,80,.6), 0 0 60px rgba(255,60,80,.55); } }

/* ---------- Règles ---------- */
.rules { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 4px; }
.rules-top { position: relative; width: 120px; height: 104px; display: grid; place-items: center; }
.rules-rays { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
.rules-badge { position: relative; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; transform: rotate(-6deg);
  border: 3px solid var(--cr-outline); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -6px 0 rgba(0,0,0,.2), 0 6px 0 var(--cr-outline), 0 12px 24px rgba(0,0,0,.4);
  animation: badgeDrop .7s var(--ease-spring) both, badgeFloat 3s ease-in-out .7s infinite; }
.rules-badge span { font-family: var(--display); font-weight: 800; font-size: 50px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
@keyframes badgeDrop { from { transform: translateY(-80px) rotate(-30deg) scale(.4); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
@keyframes badgeFloat { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-7px); } }
.rules-price .rules-badge, .gtile-price .gtile-badge { background: linear-gradient(160deg, #6fb2ff, #2a6ce0 60%, #1b4bb0); }
.rules-quiz .rules-badge, .gtile-quiz .gtile-badge { background: linear-gradient(160deg, #6ff0b0, #1fae6a 60%, #0f7a48); }
.rules-mystery .rules-badge, .gtile-mystery .gtile-badge { background: linear-gradient(160deg, #ffe680, #ffb21f 60%, #e07a00); }
.rules-title { font-size: 30px; animation: pageIn .45s var(--ease-out) .15s both; }
.rules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.rules-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  font-size: 15px; font-weight: 600; line-height: 1.3; animation: ruleIn .45s var(--ease-spring) both; animation-delay: calc(.3s + var(--i) * .11s); }
@keyframes ruleIn { from { opacity: 0; transform: translateX(-30px) scale(.95); } to { opacity: 1; transform: none; } }
.ri { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe066, #ffae00); color: var(--gold-ink); box-shadow: 0 2px 0 #7a4600; }
.ri svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rules-left { margin: 2px 0 0; color: #d9d3ff; font-size: 14px; min-height: 1.3em; }
.rules-left b { color: #ffd84a; font-size: 16px; }
.rules-go { min-width: 180px; font-size: 24px; min-height: 58px; animation: goIn .5s var(--ease-spring) .75s both, goPulse 1.6s ease-in-out 1.3s infinite; }
@keyframes goIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes goPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Écran de jeu ---------- */
.gs-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 52px; }
.gs-step { font-family: var(--display); font-weight: 800; font-size: 18px; padding: 6px 12px; border-radius: 12px; background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.18); color: #ffd84a; white-space: nowrap; }
.gs-title { text-align: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; text-shadow: 0 2px 0 var(--cr-outline); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-timer { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; margin-right: 10px; }
.gs-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.t-face { fill: #fff; stroke: var(--cr-outline); stroke-width: 3; }
.t-bg { fill: none; stroke: #e3e0f7; stroke-width: 6; }
.t-ring { fill: none; stroke: #2fbf71; stroke-width: 6; stroke-linecap: round; transition: stroke .3s; }
.t-cap { position: absolute; top: -6px; left: 50%; width: 12px; height: 8px; margin-left: -6px; border-radius: 3px 3px 1px 1px; background: #fff; border: 2.5px solid var(--cr-outline); z-index: -1; }
.t-nub { position: absolute; top: 2px; right: 1px; width: 8px; height: 6px; border-radius: 2px; background: #fff; border: 2.5px solid var(--cr-outline); transform: rotate(45deg); z-index: -1; }
.t-num { position: relative; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--cr-outline); font-variant-numeric: tabular-nums; }
.gs-timer.is-danger .t-ring { stroke: #ff3b4e; }
.gs-timer.is-danger .t-num { color: #e0182d; }
.gs-timer.tick { animation: tickPulse .35s ease; }
@keyframes tickPulse { 40% { transform: scale(1.18) rotate(-4deg); } }
.gs-timer.is-stopped .t-ring { opacity: .7; }
.gs-timer.is-over { animation: timerOver .6s ease; }
@keyframes timerOver { 20%, 60% { transform: rotate(-12deg) scale(1.1); } 40%, 80% { transform: rotate(12deg) scale(1.1); } }

.gs-media { flex: 1 1 auto; min-height: 96px; max-height: 34dvh; display: flex; }
.gs-frame { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 18px; padding: 10px;
  background: #fff; border: 3px solid var(--cr-outline); box-shadow: inset 0 -5px 0 rgba(0,0,0,.08), 0 5px 0 rgba(0,0,0,.25); }
.gs-img { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gs-img-ph { display: grid; place-items: center; }
.gs-setname { text-align: center; font-weight: 700; font-size: 15px; color: #d9d3ff; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.gs-question { text-align: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; text-shadow: 0 2px 0 var(--cr-outline); }
.gs-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.gs-opt {
  position: relative; min-height: 58px; padding: 8px 10px; border-radius: 14px; cursor: pointer;
  border: 2.5px solid var(--cr-outline); color: var(--cr-outline); font-weight: 800; font-size: 15px; line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 0%, #f1efff 55%, #dcd8fb 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 rgba(60,40,160,.18), 0 4px 0 var(--cr-outline);
  animation: optIn .4s var(--ease-spring) both; animation-delay: calc(.08s * var(--i));
  transition: transform .08s, box-shadow .08s, background .2s, opacity .25s; display: flex; align-items: center; justify-content: center;
}
@keyframes optIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.gs-opt-txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; text-align: center; }
.gs-opt.is-long { font-size: 13.5px; }
.gs-opt.is-xl { font-size: 12px; }
.gs-opt.is-price { font-family: var(--display); font-size: 22px; }
.gs-opt:not(:disabled):hover { transform: translateY(-2px); background: linear-gradient(180deg, #fff 0%, #fffbe6 55%, #ffeeb0 100%); }
.gs-opt:not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 2px 0 #fff, 0 1px 0 var(--cr-outline); }
.gs-opt:disabled { cursor: default; }
.gs-opt.is-picked { background: linear-gradient(180deg, #fffbe6, #ffe27a); }
.gs-opt.is-correct { color: #fff; background: linear-gradient(180deg, #8af5b6 0%, #2fcf7a 50%, #18a85c 100%); text-shadow: 0 1px 0 rgba(0,0,0,.35); animation: optWin .5s var(--ease-spring); }
.gs-opt.is-wrong, .gs-opt.is-answer-red { color: #fff; background: linear-gradient(180deg, #ff9a9a 0%, #ff4757 50%, #d6142c 100%); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.gs-opt.is-answer-red { animation: optWin .5s var(--ease-spring); }
.gs-opt.is-dim { opacity: .45; }
@keyframes optWin { 40% { transform: scale(1.08); } }

/* Calque résultat (suspense, coffre, raté) */
.gs-layer { position: absolute; inset: 0; z-index: 10; border-radius: 21px; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden; }
.gs-layer[hidden] { display: none; }
.gs-layer.is-suspense { background: rgba(14, 8, 46, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.gs-layer.is-win { background: radial-gradient(circle at 50% 45%, rgba(90,55,220,.92), rgba(18,10,60,.96)); animation: fadeIn .3s ease; }
.gs-layer.is-soft { background: linear-gradient(180deg, rgba(14,8,46,.15), rgba(14,8,46,.72) 45%, rgba(14,8,46,.72) 70%, rgba(14,8,46,.15)); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.coin-suspense { display: flex; gap: 16px; perspective: 600px; }
.coin3d { position: relative; width: 70px; height: 70px; border-radius: 50%; border: 3px solid #8a4e00;
  box-shadow: 0 10px 28px rgba(255,180,0,.55), inset 0 0 0 4px rgba(255,255,255,.35), inset 0 -5px 0 rgba(150,80,0,.35); }
.coin3d::after { font-size: 30px; }
.coin3d.c1 { animation: coinSpin .9s linear infinite, coinGrow 3s ease forwards; }
.coin3d.c2 { animation: coinSpin .9s linear .2s infinite, coinGrow 3s ease .1s forwards; }
@keyframes coinSpin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes coinGrow { 0% { scale: .3; opacity: .2; } 70% { scale: 1.35; opacity: 1; } 85% { scale: 1.2; } 100% { scale: 1.5; filter: brightness(1.3); } }

.gs-miss, .gs-win { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 100%; }
.miss-word { animation: missIn .6s var(--ease-spring) both; }
@keyframes missIn { 0% { transform: scale(3) rotate(-8deg); opacity: 0; } 55% { transform: scale(.9) rotate(3deg); opacity: 1; } 75% { transform: scale(1.06) rotate(-2deg); } 100% { transform: none; } }
.gs-answer { max-width: 100%; padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); font-size: 15px; color: #e8e4ff; animation: pageIn .4s ease .25s both; }
.gs-answer b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; font-size: 17px; color: #7dffb2; }
.gs-answer b.txt-red { color: #ff5a6a; }
.gs-foot { min-height: 54px; display: flex; align-items: center; justify-content: center; }
.gs-next { min-width: 190px; animation: goIn .4s var(--ease-spring) both; }
.gs-last { margin: 0; color: #ffd84a; font-weight: 700; animation: pageIn .4s ease both; }
.win-rays { width: 620px; height: 620px; margin: -310px 0 0 -310px; top: 46%; }
.win-word { position: relative; animation: winIn .7s var(--ease-spring) both; }
@keyframes winIn { 0% { transform: scale(0) rotate(-10deg); } 60% { transform: scale(1.18) rotate(3deg); } 100% { transform: none; } }
.chest-hint { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; animation: pageIn .4s ease .5s both; }
.chest-hint.is-gone { opacity: 0; transition: opacity .25s; }
.tap-dots { display: inline-flex; gap: 5px; }
.tap-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ffd84a; background: transparent; transition: background .2s, transform .2s; }
.tap-dots i.on { background: #ffd84a; transform: scale(1.2); box-shadow: 0 0 10px #ffd84a; }
.gs-reward { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gs-reward[hidden] { display: none; }
.gs-reward.is-jackpot .cr-plus { font-size: 64px; }

/* ---------- Coffre ---------- */
.chest-wrap { position: relative; width: 180px; height: 160px; display: grid; place-items: center; }
.chest-btn { position: relative; z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chest { width: 160px; height: auto; display: block; overflow: visible; filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)); }
.chest-lid, .chest-body { transform-box: fill-box; transform-origin: 50% 100%; }
.chest-glow { opacity: 0; transition: opacity .35s; }
.chest-cracks { filter: drop-shadow(0 0 3px #fff3a0) drop-shadow(0 0 7px #ffc400); }
.crack { stroke: #fff6b8; stroke-width: 4; stroke-dasharray: 60; stroke-dashoffset: 60; opacity: 0; transition: stroke-dashoffset .35s ease, opacity .15s; }
.chest-btn.crack-1 .c1, .chest-btn.crack-2 .c1, .chest-btn.crack-2 .c2 { stroke-dashoffset: 0; opacity: 1; }
.chest-btn.crack-1 .chest-glow { opacity: .3; }
.chest-btn.crack-2 .chest-glow { opacity: .55; }
.chest-btn.is-idle .chest { animation: chestBob 1.5s ease-in-out infinite; }
@keyframes chestBob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-5px) rotate(-1.5deg); } 75% { transform: translateY(-3px) rotate(1.5deg); } }
.chest-btn.hop .chest { animation: chestHop .5s cubic-bezier(.3,1.4,.5,1); }
@keyframes chestHop { 0% { transform: none; } 18% { transform: scale(1.14, .82); } 45% { transform: translateY(-34px) scale(.94, 1.08) rotate(-5deg); } 70% { transform: translateY(0) scale(1.12, .88) rotate(3deg); } 85% { transform: scale(.97, 1.03); } 100% { transform: none; } }
.chest-btn.is-charging .chest { animation: chestShake .1s linear infinite; }
.chest-btn.is-charging .chest-glow { opacity: .7; }
.chest-btn.is-charging .c1, .chest-btn.is-charging .c2 { stroke-dashoffset: 0; opacity: 1; transition-duration: .8s; }
@keyframes chestShake { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 1px) rotate(-2deg); } 50% { transform: translate(2px, -1px) rotate(2deg); } 75% { transform: translate(-1px, 2px) rotate(-1deg); } }
.chest-btn.is-open { cursor: default; }
.chest-btn.is-open .chest-lid { animation: lidFly .9s cubic-bezier(.2,.8,.3,1) forwards; }
.chest-btn.is-open .chest-glow { opacity: 1; animation: glowPulse 1.2s ease-in-out infinite; }
.chest-btn.is-open .crack { opacity: 0; }
.chest-btn.is-open .chest { animation: chestLand .5s var(--ease-spring); }
@keyframes lidFly { 0% { transform: none; } 30% { transform: translateY(-52px) rotate(-10deg); } 100% { transform: translate(-70px, -40px) rotate(-60deg); opacity: 0; } }
@keyframes glowPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes chestLand { 0% { transform: scale(1.2, .8); } 60% { transform: scale(.95, 1.06); } 100% { transform: none; } }
.chest-rays { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; z-index: 1; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,240,170,.55) 0deg 7deg, rgba(255,240,170,0) 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 10%, transparent 60%); mask-image: radial-gradient(circle, #000 0 10%, transparent 60%); }
.chest-wrap.is-open .chest-rays { opacity: 1; transition: opacity .3s; animation: raysSpin 6s linear infinite; }
.chest-flash { position: absolute; left: 50%; top: 45%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 30%, rgba(255,240,170,.8) 50%, transparent 70%); }
.chest-wrap.is-open .chest-flash { animation: chestFlash .7s ease-out; }
@keyframes chestFlash { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(9); opacity: 0; } }
.chest-burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 5; }

/* ---------- Bonus journalier ---------- */
.daily-overlay { background: radial-gradient(ellipse at 50% 40%, rgba(80,45,200,.95), rgba(10,6,40,.97)); }
.game-bare { position: relative; width: min(440px, 100%); }
.daily-stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 6px; }
.daily-rays { top: 52%; animation: raysSpin 16s linear infinite, fadeIn .8s ease .2s both; }
.daily-sparkles, .jp-sparkles { position: absolute; inset: -40px; pointer-events: none; }
.sp { position: absolute; width: 14px; height: 14px; background: #fff; transform: scale(0);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px #fff3a0); animation: twinkleSp var(--d) ease-in-out var(--dl) infinite; }
@keyframes twinkleSp { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(var(--s)) rotate(90deg); opacity: 1; } }
.daily-title { position: relative; font-size: clamp(32px, 9vw, 44px); animation: titleDrop .7s var(--ease-spring) .25s both; }
@keyframes titleDrop { from { transform: translateY(-60px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.daily-sub { position: relative; margin: 0; color: #e4ddff; font-weight: 600; font-size: 16px; animation: pageIn .5s ease 1.1s both; }
.daily-chest-zone { position: relative; margin: 8px 0 0; animation: chestFall .9s cubic-bezier(.3,1.45,.55,1) .55s both; }
@keyframes chestFall { 0% { transform: translateY(-110vh) rotate(-14deg) scale(.7); } 60% { transform: translateY(0) scale(1.15, .82); } 78% { transform: translateY(-16px) scale(.96, 1.05); } 100% { transform: none; } }
.daily-chest-zone .chest-wrap { width: 200px; height: 176px; }
.daily-chest-zone .chest { width: 182px; }
.daily-dust { position: absolute; left: 50%; bottom: 6px; width: 220px; height: 40px; margin-left: -110px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255,255,255,.5), transparent 70%); opacity: 0; animation: dust .7s ease-out 1.05s; }
@keyframes dust { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
.daily-overlay .game-bare { animation: stageShake .35s ease 1.05s; }
@keyframes stageShake { 25% { transform: translateY(5px); } 50% { transform: translateY(-3px); } 75% { transform: translateY(2px); } }
.daily-reward { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; }
.daily-reward[hidden] { display: none; }
.daily-claim { position: relative; min-width: 240px; font-size: 21px; min-height: 60px; animation: goIn .5s var(--ease-spring) 1.35s both, goPulse 1.6s ease-in-out 2s infinite; }
.daily-claim.is-gone { animation: none; transform: scale(0); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: none; }

/* ---------- JACKPOT plein écran ---------- */
.jackpot-fx { position: fixed; inset: 0; z-index: 3500; pointer-events: none; overflow: hidden; display: grid; place-items: center; }
.jackpot-fx.is-out { opacity: 0; transition: opacity .6s; }
.jp-flash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,250,210,.95), rgba(255,200,40,.55) 40%, rgba(255,160,0,.15) 75%); animation: jpFlash 1.2s ease-out both; }
@keyframes jpFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: .35; } }
.jp-rays { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax;
  background: repeating-conic-gradient(rgba(255,230,120,.45) 0deg 6deg, rgba(255,230,120,0) 6deg 16deg); animation: raysSpin 8s linear infinite; }
.jp-rain i { position: absolute; top: -60px; width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid #9a5a00; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
  animation: jpFall var(--d) cubic-bezier(.35,.1,.6,1) var(--dl) both; transform: scale(var(--s)); }
@keyframes jpFall { from { transform: translateY(0) rotate(0) scale(var(--s)); } to { transform: translateY(115vh) rotate(var(--r)) scale(var(--s)); } }
.jp-text { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: winIn .8s var(--ease-spring) .15s both; }
.jp-word { font-size: clamp(54px, 15vw, 96px); }
.jp-amount { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 12vw, 72px); line-height: 1; }

/* ---------- Page Mini-jeux ---------- */
.games-page { max-width: 760px; }
.games-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 18px; background: var(--cr-deep);
  border: 3px solid var(--cr-outline); box-shadow: inset 0 3px 8px rgba(0,0,0,.4), 0 4px 0 rgba(0,0,0,.15); animation: pageIn .4s var(--ease-out) both; }
.gtab { position: relative; z-index: 2; min-height: 46px; border: 0; background: none; color: #b9b2e8; font-family: var(--display); font-weight: 800; font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color .25s; }
.gtab.is-on { color: var(--gold-ink); }
.gtab-slider { position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 13px;
  background: linear-gradient(180deg, #fff09a, #ffd23a 50%, #ffb300 52%, #f09400); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 3px 0 #5a3000;
  transition: transform .35s var(--ease-spring); }
.games-tabs.on-shop .gtab-slider { transform: translateX(100%); }
.gtab-ic { width: 20px; height: 20px; border-radius: 6px; display: inline-block; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.gtab-ic-games { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10a5 5 0 0 1 4.9 6l-.8 4a2.5 2.5 0 0 1-4.4 1L15 16H9l-1.7 2a2.5 2.5 0 0 1-4.4-1l-.8-4A5 5 0 0 1 7 7zm0 3v2H5v2h2v2h2v-2h2v-2H9v-2zm9 1a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zm2.5 2.6a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/%3E%3C/svg%3E"); }
.gtab-ic-shop { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16l1 5a3 3 0 0 1-5 2.2A3 3 0 0 1 12 12a3 3 0 0 1-4-.8A3 3 0 0 1 3 9zm1 9.5a4.8 4.8 0 0 0 3 .3 4.9 4.9 0 0 0 4 .2 4.9 4.9 0 0 0 4-.2 4.8 4.8 0 0 0 3-.3V20a1 1 0 0 1-1 1h-4v-5h-4v5H6a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }

.games-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 22px 22px; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #5a3be0 0%, #2e1f8a 50%, #170f4a 100%);
  border: 3px solid var(--cr-outline); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 6px 0 rgba(22,10,61,.25), 0 14px 30px rgba(40,20,120,.35);
  animation: heroIn .7s var(--ease-spring) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(-24px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-rays { top: 30%; opacity: .8; }
.hero-coins { position: absolute; inset: 0; pointer-events: none; }
.hero-coin { position: absolute; bottom: -40px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9a5a00; opacity: .85;
  background: radial-gradient(circle at 34% 30%, #fff8c9 0 14%, #ffd94a 32%, #ffb31a 64%, #c87800 100%);
  animation: heroCoin var(--d) linear var(--dl) infinite; transform: scale(var(--s)); }
@keyframes heroCoin { 0% { transform: translateY(0) rotateY(0) scale(var(--s)); opacity: 0; } 10% { opacity: .85; } 90% { opacity: .85; } 100% { transform: translateY(-300px) rotateY(720deg) scale(var(--s)); opacity: 0; } }
.games-hero-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.games-title { font-size: clamp(36px, 8vw, 50px); animation: titleDrop .7s var(--ease-spring) .15s both; }
.games-tagline { margin: 0; animation: pageIn .5s ease .4s both; }
.shine-text { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 4.6vw, 24px); letter-spacing: .01em;
  background: linear-gradient(100deg, #ffd23a 0%, #ffd23a 38%, #fffbe0 50%, #ffd23a 62%, #ffb300 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #3a1a00) drop-shadow(1px 0 0 #3a1a00) drop-shadow(-1px 0 0 #3a1a00);
  animation: shineText 3s ease-in-out infinite; }
@keyframes shineText { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.games-sub { margin: 0; max-width: 500px; color: #ddd6ff; font-size: 15px; line-height: 1.4; animation: pageIn .5s ease .55s both; }
.games-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; animation: pageIn .5s ease .7s both; }
.gstat { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 16px; text-align: left;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.16); }
.gstat small { display: block; font-size: 12px; color: #c9c1ff; font-weight: 600; }
.gstat b { font-family: var(--display); font-size: 20px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.gstat-gold b { color: #ffd84a; }
.gstat-coin { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #9a5a00; flex: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); animation: coinSpin 3s linear infinite; }
.gstat-clock { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--cr-outline); flex: none; }
.gstat-clock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.games-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gtile-skel { height: 128px; border-radius: 22px; background: linear-gradient(90deg, #e8e5f7, #f4f2fc, #e8e5f7); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.gtile {
  position: relative; overflow: hidden; width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 18px 18px 18px 16px; border-radius: 22px; text-align: left; color: #fff; cursor: pointer; isolation: isolate;
  border: 3px solid var(--cr-outline); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.18), 0 6px 0 var(--cr-outline), 0 14px 24px rgba(30,15,90,.25);
  transition: transform .18s var(--ease-spring), box-shadow .18s, filter .2s;
}
.gtile.anim-in { animation: tileIn .6s var(--ease-spring) both; animation-delay: calc(.35s + var(--i) * .13s); }
@keyframes tileIn { from { opacity: 0; transform: translateY(40px) scale(.9) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.gtile-price { background: linear-gradient(135deg, #3d8bff 0%, #2559d6 55%, #1b3fa8 100%); }
.gtile-quiz { background: linear-gradient(135deg, #2fd38a 0%, #17a463 55%, #0d7647 100%); }
.gtile-mystery { background: linear-gradient(135deg, #8f5cff 0%, #6a35e0 50%, #4a1fb0 100%); }
.gtile:not(.is-done):hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.18), 0 10px 0 var(--cr-outline), 0 20px 30px rgba(30,15,90,.3); }
.gtile:not(.is-done):active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 2px 0 var(--cr-outline); }
.gtile-bg { position: absolute; z-index: -1; right: 90px; top: 50%; transform: translateY(-50%) rotate(-12deg); font-family: var(--display); font-weight: 800;
  font-size: 150px; line-height: 1; color: rgba(255,255,255,.09); pointer-events: none; animation: bgFloat 6s ease-in-out infinite; }
@keyframes bgFloat { 0%, 100% { transform: translateY(-50%) rotate(-12deg); } 50% { transform: translateY(-56%) rotate(-6deg); } }
.gtile-shine { position: absolute; z-index: -1; top: -50%; bottom: -50%; left: -40%; width: 30%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); animation: tileShine 5s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s + 1s); }
@keyframes tileShine { 0%, 70% { left: -40%; } 100% { left: 140%; } }
.gtile-badge { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; flex: none; transform: rotate(-6deg);
  border: 3px solid var(--cr-outline); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(0,0,0,.2), 0 4px 0 var(--cr-outline);
  animation: badgeFloat 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.gtile-badge span { font-family: var(--display); font-weight: 800; font-size: 38px; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.gtile-price .gtile-badge, .gtile-quiz .gtile-badge, .gtile-mystery .gtile-badge { filter: saturate(1.15) brightness(1.08); }
.gtile-mystery .gtile-badge span { color: #fff7d0; }
.gtile-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gtile-title { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.1;
  text-shadow: 0 2px 0 var(--cr-outline), 1px 0 0 var(--cr-outline), -1px 0 0 var(--cr-outline), 0 -1px 0 var(--cr-outline); }
.gtile-desc { font-size: 14px; color: rgba(255,255,255,.88); font-weight: 600; line-height: 1.3; }
.gtile-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 4px; }
.gtile-pips { display: inline-flex; gap: 4px; padding: 4px 6px; border-radius: 999px; background: rgba(0,0,0,.25); }
.pip { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #9a5a00;
  background: radial-gradient(circle at 34% 30%, #fff8c9 0 14%, #ffd94a 32%, #ffb31a 64%, #c87800 100%); }
.pip.used { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.gtile-gain { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; background: rgba(0,0,0,.3); font-size: 14px; font-weight: 700; white-space: nowrap; }
.gtile-gain b { font-family: var(--display); font-size: 16px; color: #ffd84a; }
.gtile-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 13px;
  font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; border: 2px solid #5a3000;
  text-shadow: 0 2px 0 rgba(0,0,0,.4), 1px 1px 0 #5a3000, -1px 1px 0 #5a3000;
  background: linear-gradient(180deg, #fff09a 0%, #ffd23a 48%, #ffb300 52%, #f09400 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.75), 0 4px 0 #5a3000; animation: goPulse 2s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
.gtile-cta.is-off { animation: none; color: rgba(255,255,255,.8); border-color: rgba(0,0,0,.4); background: rgba(0,0,0,.28); box-shadow: none; text-shadow: none; font-size: 16px; }
.gtile.is-done { cursor: default; filter: saturate(.35) brightness(.85); }
.gtile.is-done .gtile-badge, .gtile.is-done .gtile-bg, .gtile.is-done .gtile-shine { animation: none; }
.gtile-stamp { position: absolute; right: 18px; top: 10px; transform: rotate(10deg); padding: 3px 10px; border: 2.5px solid #fff; border-radius: 8px;
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: .9; }

/* Boutique (en construction) */
.shop-wip { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 34px 22px 30px; border-radius: 24px; color: #fff; border: 3px solid var(--cr-outline);
  background: radial-gradient(120% 90% at 50% 0%, #5a3be0 0%, #2e1f8a 50%, #170f4a 100%); animation: heroIn .6s var(--ease-spring) both; }
.shop-build { position: relative; width: 150px; height: 110px; }
.shop-build i { position: absolute; width: 56px; height: 26px; border-radius: 5px; border: 2.5px solid var(--cr-outline); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.shop-build i::before, .shop-build i::after { content: ""; position: absolute; top: -8px; width: 14px; height: 8px; border-radius: 3px 3px 0 0; background: inherit; border: 2.5px solid var(--cr-outline); border-bottom: 0; }
.shop-build i::before { left: 8px; } .shop-build i::after { right: 8px; }
.shop-build .b1 { left: 20px; bottom: 0; background: #e3262f; }
.shop-build .b2 { left: 74px; bottom: 0; background: #2b63d9; }
.shop-build .b3 { left: 46px; bottom: 30px; background: #ffc72c; animation: brickDrop 2.4s var(--ease-spring) infinite; }
.shop-build .b4 { left: 46px; bottom: 62px; background: #1c9a58; animation: brickDrop 2.4s var(--ease-spring) .5s infinite; }
@keyframes brickDrop { 0% { transform: translateY(-60px); opacity: 0; } 25% { transform: translateY(0); opacity: 1; } 85% { transform: translateY(0); opacity: 1; } 100% { opacity: 0; } }
.shop-crane { position: absolute; right: -6px; top: -10px; width: 6px; height: 120px; background: #ffc72c; border: 2px solid var(--cr-outline); border-radius: 3px; }
.shop-crane::before { content: ""; position: absolute; top: 0; right: 0; width: 90px; height: 6px; background: #ffc72c; border: 2px solid var(--cr-outline); border-radius: 3px; }
.shop-title { font-size: 36px; }
.shop-badge { margin: 0; padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink);
  background: repeating-linear-gradient(-45deg, #ffd23a 0 12px, #ffb300 12px 24px); border: 2px solid var(--cr-outline); }
.shop-text { margin: 0; max-width: 420px; color: #ddd6ff; }

/* Set mystère : pile d'Or + barre */
.myst-top { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; }
.gold-pile { position: relative; width: 46px; height: 64px; }
.pile-coin { position: absolute; left: 50%; width: 40px; height: 13px; margin-left: -20px; border-radius: 50%; border: 2px solid #9a5a00;
  box-shadow: inset 0 -3px 0 rgba(150,80,0,.35), 0 1px 0 rgba(0,0,0,.25); transform: translateX(var(--x)); }
.pile-drop { position: absolute; left: 50%; width: 40px; height: 13px; margin-left: -20px; border-radius: 50%; border: 2px solid #9a5a00;
  background: radial-gradient(circle at 34% 30%, #fff8c9 0 14%, #ffd94a 32%, #ffb31a 64%, #c87800 100%); animation: pileDrop .6s ease-in forwards; }
@keyframes pileDrop { to { transform: translate(30px, 30px) rotate(70deg); opacity: 0; } }
.pile-empty { position: absolute; bottom: 0; left: 50%; width: 40px; height: 8px; margin-left: -20px; border-radius: 50%; background: rgba(255,255,255,.2); }
.myst-reward { display: flex; flex-direction: column; line-height: 1; }
.myst-reward small { font-size: 12px; color: #c9c1ff; font-weight: 700; }
.myst-reward b { font-family: var(--display); font-size: 34px; color: #ffd84a; text-shadow: 0 3px 0 #4a2300; font-variant-numeric: tabular-nums; }
.myst-reward b.tick { animation: rewardTick .3s ease; }
@keyframes rewardTick { 40% { transform: scale(.82); color: #ff8a3d; } }
.myst-bar { height: 16px; border-radius: 999px; background: rgba(0,0,0,.4); border: 2px solid var(--cr-outline); overflow: hidden; }
.myst-bar-fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(180deg, #fff09a, #ffc928 55%, #f09400); box-shadow: inset 0 2px 0 rgba(255,255,255,.6); }
.myst-media { max-height: 32dvh; }
.myst-img-wrap { width: 100%; height: 100%; display: grid; place-items: center; will-change: filter, transform; }
.myst-win-coins { position: relative; height: 70px; display: grid; place-items: center; }
.coin-big { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 3px solid #8a4e00; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35), 0 0 30px rgba(255,200,40,.7); animation: coinSpin 1.4s linear infinite; }
.coin-big::after { font-size: 28px; }

/* ---------- Mobile : jeu en (quasi) plein écran ---------- */
@media (max-width: 760px) {
  .game-overlay { padding: 16px 12px; }
  .game-card { width: 100%; max-height: calc(100dvh - 32px); border-radius: 22px; }
  .game-x { top: -10px; right: -6px; width: 38px; height: 38px; }
  .game-body { padding: 14px 12px 14px; gap: 8px; }
  .gs-head { min-height: 48px; gap: 8px; }
  .gs-timer { width: 46px; height: 46px; margin-right: 18px; }
  .t-num { font-size: 16px; }
  .gs-step { font-size: 16px; padding: 5px 10px; }
  .gs-title { font-size: 16px; }
  .gs-question { font-size: 18px; }
  .gs-opt { min-height: 54px; font-size: 14px; padding: 6px 8px; }
  .gs-opt.is-long { font-size: 12.5px; }
  .gs-opt.is-xl { font-size: 11.5px; }
  .gs-opt.is-price { font-size: 20px; }
  .rules-title { font-size: 26px; }
  .rules-list li { font-size: 14px; padding: 8px 10px; }
  .games-hero { padding: 22px 14px 18px; }
  .gtile { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .gtile-badge { width: 58px; height: 58px; border-radius: 17px; }
  .gtile-badge span { font-size: 30px; }
  .gtile-title { font-size: 19px; }
  .gtile-cta { grid-column: 1 / -1; width: 100%; }
  .gtile-bg { right: 10px; font-size: 120px; }
  .chest-wrap { width: 160px; height: 142px; }
  .chest { width: 140px; }
  .cr-plus { font-size: 40px; }
}
@media (max-height: 680px) {
  .gs-media { max-height: 26dvh; min-height: 80px; }
  .rules { gap: 8px; }
  .rules-top { height: 84px; }
  .rules-badge { width: 74px; height: 74px; }
  .rules-badge span { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-rays, .hero-coin, .gtile-shine, .gtile-bg, .gtile-badge, .gtile-cta, .wallet-shine::before, .wallet .spark, .wallet-coin, .sp { animation: none !important; }
}

/* v23 — retouches après tests */
.gs-timer { isolation: isolate; }
.t-cap, .t-nub { background: #ffd84a; }
.chest-hint.is-gone { display: none; }
.gs-layer.is-win { background: radial-gradient(circle at 50% 42%, #5a37dc 0%, #2a1a86 55%, #140c44 100%); }
.gs-layer.is-soft { background: linear-gradient(180deg, rgba(14,8,46,.25), rgba(14,8,46,.86) 30%, rgba(14,8,46,.86) 72%, rgba(14,8,46,.25)); }
.gs-answer { background: rgba(10,6,36,.92); border: 2px solid rgba(255,255,255,.2); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.jackpot-fx { place-items: start center; }
.jp-text { margin-top: max(9vh, 70px); }

/* =========================================================
   v24 — retouches Or
   ========================================================= */
/* Pastille agrandie */
.wallet { height: 40px; padding: 0 15px 0 35px; font-size: 18px; margin-left: 12px; }
.wallet-coin { width: 40px; height: 40px; margin-top: -20px; left: -10px; }
.wallet-coin::after { font-size: 17px; }
.wallet .s1 { top: -9px; }
@media (max-width: 760px) {
  .wallet { height: 35px; padding: 0 12px 0 30px; font-size: 16px; margin-left: auto; }
  .wallet-coin { width: 34px; height: 34px; margin-top: -17px; left: -9px; }
  .wallet-coin::after { font-size: 15px; }
}
.wallet-amount { white-space: nowrap; }

/* Nombres longs : la police se réduit pour rester dans le cadre */
.gstat b { white-space: nowrap; }
.gstat b[data-size="l"] { font-size: 17px; }
.gstat b[data-size="xl"] { font-size: 14px; }
.gstat { min-width: 0; max-width: 100%; }

/* « Votre Or » : plaque de trésor */
.gold-bank { position: relative; display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px;
  min-width: 184px; max-width: 100%; height: 54px; margin: 14px 0 4px 22px; padding: 0 20px 0 46px; border-radius: 16px;
  background: linear-gradient(180deg, #2a1a6e 0%, #170d48 60%, #0f0833 100%);
  border: 3px solid #ffcf3a; box-shadow: 0 0 0 3px var(--cr-outline), inset 0 4px 10px rgba(0,0,0,.5), inset 0 -2px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.35);
  animation: pageIn .4s ease both; }
.gb-coin { position: absolute; left: -26px; top: 50%; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; z-index: 2;
  border: 3px solid #8a4e00; background: radial-gradient(circle at 34% 30%, #fff8c9 0 14%, #ffd94a 32%, #ffb31a 64%, #c87800 100%);
  box-shadow: 0 0 0 3px var(--cr-outline), inset 0 0 0 4px rgba(255,255,255,.35), inset 0 -5px 0 rgba(150,80,0,.35), 0 6px 14px rgba(0,0,0,.4); }
.gb-coin::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: #b06400; font-size: 26px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.gb-label { position: absolute; top: -13px; left: 50%; transform: translateX(-38%); padding: 2px 12px; border-radius: 8px; white-space: nowrap;
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink);
  background: linear-gradient(180deg, #fff09a, #ffc928); border: 2px solid var(--cr-outline); }
.gb-num { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 3px 0 var(--cr-outline), 2px 0 0 var(--cr-outline), -2px 0 0 var(--cr-outline), 0 -2px 0 var(--cr-outline); }
.gb-num[data-size="l"] { font-size: 24px; }
.gb-num[data-size="xl"] { font-size: 19px; }
.gold-bank.is-gain { animation: bankGain .9s var(--ease-spring); }
.gold-bank.is-gain .gb-num { color: #ffe066; transition: color .9s; }
@keyframes bankGain { 0% { transform: scale(1); } 25% { transform: scale(1.12); box-shadow: 0 0 0 3px var(--cr-outline), 0 0 0 8px rgba(255,210,60,.45), 0 0 40px rgba(255,200,40,.7); } 100% { transform: scale(1); } }
.gold-bank .burst-coin { width: 18px; height: 18px; }

/* « Ouvre ton coffre » + 3 points dessous */
.chest-hint { flex-direction: column; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 18px; text-shadow: 0 2px 0 var(--cr-outline); }
.tap-dots i { width: 14px; height: 14px; }

/* Lumière du coffre ouvert plus lente */
.chest-wrap.is-open .chest-rays { animation-duration: 16s; }

/* 1er jeu un peu décalé du cadre du dessus */
.games-grid { margin-top: 10px; }
@media (max-width: 380px) {
  .topbar-inner { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .brand { gap: 6px; }
  .brand-name { font-size: clamp(13.5px, 4vw, 16px); }
  .notif { margin-left: 2px; }
  .notif-btn { width: 38px; height: 38px; }
  .wallet { padding: 0 10px 0 28px; }
}

/* =========================================================
   v25
   ========================================================= */
/* « Demande envoyée » : même hauteur que le bouton, sablier animé + Annuler */
.req-pending { display: inline-flex; flex-direction: row; align-items: stretch; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.req-pending-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px;
  background: linear-gradient(180deg, #FFF7E6, #FFEBC4); border: 1.5px solid #F2C46B; color: #7A4E00; font-weight: 800; font-size: 15px; white-space: nowrap;
  box-shadow: 0 2px 0 #E9B95A; animation: pageIn .35s var(--ease-out) both; }
.req-hourglass { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: hourglassFlip 2.4s ease-in-out infinite; }
@keyframes hourglassFlip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
.req-cancel { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid #F1B3B7; color: var(--red-dark); font-weight: 700; font-size: 14px; transition: background-color .15s, border-color .15s; }
.req-cancel:hover { background: var(--red-soft); border-color: var(--red); }
.req-cancel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.req-cancel:disabled { opacity: .6; cursor: default; }
.access-cta .req-pending { align-items: stretch; }
@media (max-width: 520px) {
  .req-pending { width: 100%; }
  .req-pending-chip { flex: 1 1 auto; justify-content: center; }
  .listing-actions .access-slot, .access-cta .access-slot { width: 100%; }
}
/* Case « Rester connecté » */
.remember { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); user-select: none; margin: -2px 0 2px; }
.remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.remember-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.remember input:checked + .remember-box { background: var(--red); border-color: var(--red); }
.remember input:checked + .remember-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(0, -1px) rotate(45deg); }
.remember input:focus-visible + .remember-box { outline: 3px solid rgba(215,38,46,.35); outline-offset: 2px; }
.remember small { color: var(--muted); font-weight: 500; }
/* Connexion : la carte ne bouge plus quand on passe à « Créer un compte » (formulaire plus haut) */
@media (min-width: 761px) {
  .auth-side { align-items: flex-start; padding-top: max(48px, 10vh); }
}
@media (max-width: 760px) {
  .auth { min-height: 100dvh; align-content: flex-start; }
  .auth-hero { flex: 0 0 100%; max-width: 100%; }
  .auth-side { flex: 1 0 100%; max-width: 100%; }
  .pop-brick { background-size: 32px 32px; background-image:
    radial-gradient(circle at 14px 13px, rgba(255,255,255,.35) 0 6px, transparent 7px),
    radial-gradient(circle at 17px 18px, rgba(0,0,0,.25) 0 7px, transparent 8px); border-radius: 3px; }
}

/* ---------- Illustrations des mini-jeux ---------- */
.art { position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; }
.art-set { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
.art-ph { display: block; }
.art-seams { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.art-seams path { fill: none; stroke: #fff; stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.art-burst { position: absolute; z-index: 3; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; overflow: visible; pointer-events: none; }
.art-burst line { stroke: #fff; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 0 #160a3d); }
.art-burst g { animation: burstPulse 2.4s ease-in-out infinite; transform-origin: 0 0; }
@keyframes burstPulse { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.1); opacity: 1; } }
.art-badge { position: absolute; z-index: 4; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 18px; display: grid; place-items: center;
  border: 3px solid var(--cr-outline); transform: rotate(-6deg);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -6px 0 rgba(0,0,0,.2), 0 5px 0 var(--cr-outline), 0 10px 18px rgba(0,0,0,.35);
  animation: badgeFloat 3s ease-in-out infinite; }
.art-badge span { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.3), 0 0 0 var(--cr-outline); }
.ab-quiz { background: linear-gradient(160deg, #7dff9a, #22c55e 55%, #13893f); }
.ab-price { background: linear-gradient(160deg, #8cc4ff, #2f74ec 55%, #1b4bb0); }

/* Quiz : 4 scènes séparées par des diagonales blanches (comme l'affiche) */
.art-panel { position: absolute; inset: 0; }
.art-quiz .ap0 { clip-path: polygon(0 0, 55% 0, 50% 49%, 0 53%); }
.art-quiz .ap1 { clip-path: polygon(55% 0, 100% 0, 100% 45%, 50% 49%); }
.art-quiz .ap2 { clip-path: polygon(0 53%, 50% 49%, 45% 100%, 0 100%); }
.art-quiz .ap3 { clip-path: polygon(50% 49%, 100% 45%, 100% 100%, 45% 100%); }
.art-quiz .art-set { width: 46%; height: 44%; }
.art-quiz .ap0 .art-set { left: 2%; top: 3%; }
.art-quiz .ap1 .art-set { left: 53%; top: 1%; }
.art-quiz .ap2 .art-set { left: 1%; top: 54%; }
.art-quiz .ap3 .art-set { left: 52%; top: 52%; }
.scene-sea { background: linear-gradient(180deg, #ffd59a 0%, #f7b7a3 30%, #9fcff3 55%, #4d8fd8 100%); }
.scene-space { background: radial-gradient(circle at 82% 18%, #f1eeff 0 6%, transparent 7%), radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 70%, #fff, transparent), radial-gradient(circle at 70% 30%, #dcd8ff, #a9a6ff 50%, #7d83e6 100%); }
.scene-sky { background: linear-gradient(180deg, #b9e1ff 0%, #e8f6ff 55%, #cdefc0 100%); }
.scene-sunset { background: linear-gradient(180deg, #ffd38e 0%, #ffa67d 45%, #b48ad0 100%); }

/* Prix : 2 voitures, l'une monte (vert), l'autre descend (rouge) */
.art-half { position: absolute; inset: 0; }
.ah-up { clip-path: polygon(0 0, 54% 0, 46% 100%, 0 100%); background: linear-gradient(160deg, #e3ffef, #a6f1c6); }
.ah-down { clip-path: polygon(54% 0, 100% 0, 100% 100%, 46% 100%); background: linear-gradient(160deg, #ffe8e8, #ffb9b9); }
.art-price .art-set { width: 44%; height: 66%; top: 26%; }
.ah-up .art-set { left: 1%; }
.ah-down .art-set { left: 54%; }
.art-arrow { position: absolute; z-index: 1; width: 34%; height: 40%; top: 6%; overflow: visible; }
.art-arrow polyline { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; animation: arrowDraw 3s ease-in-out infinite; }
.art-arrow .head { stroke-dasharray: none; animation: none; }
.art-arrow.up { left: 6%; } .art-arrow.up polyline { stroke: #16a34a; filter: drop-shadow(0 2px 0 #0b5a2a); }
.art-arrow.down { right: 6%; } .art-arrow.down polyline { stroke: #e11d48; filter: drop-shadow(0 2px 0 #7a0a22); }
@keyframes arrowDraw { 0% { stroke-dashoffset: 200; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -200; } }

/* Set mystère : photo floue, une loupe qui révèle un bout net, un sablier */
.art-mystery { background: radial-gradient(circle at 50% 40%, #6b46e6 0%, #3a2299 45%, #1a0f55 100%); }
.art-spot { position: absolute; left: 50%; top: -30%; width: 70%; height: 140%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0%, rgba(255,240,180,.35), transparent 65%); }
.art-stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 15%, #fff, transparent), radial-gradient(2px 2px at 90% 80%, #ffe680, transparent), radial-gradient(1.5px 1.5px at 8% 75%, #fff, transparent); }
.art-frame { position: absolute; z-index: 1; left: 50%; top: 50%; width: 56%; height: 74%; transform: translate(-50%, -50%) rotate(-2deg); }
.art-frame-in { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; background: #fff; border: 3px solid var(--cr-outline); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.art-mystery .art-set { mix-blend-mode: normal; left: 6%; top: 6%; width: 88%; height: 88%; }
.art-blur { filter: blur(6px) saturate(1.2); transform: scale(1.15); }
.art-sharp { clip-path: circle(17% at 30% 38%); animation: lensReveal 6s ease-in-out infinite; }
.art-q { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 42px; color: rgba(255,255,255,.85); text-shadow: 0 3px 0 rgba(22,10,61,.6); pointer-events: none; }
.art-lens { position: absolute; z-index: 2; left: 30%; top: 38%; width: 70px; height: 70px; margin: -26px 0 0 -26px; animation: lensMove 6s ease-in-out infinite; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.art-lens svg { width: 100%; height: 100%; }
@keyframes lensReveal { 0%, 100% { clip-path: circle(17% at 30% 38%); } 33% { clip-path: circle(17% at 68% 32%); } 66% { clip-path: circle(17% at 58% 68%); } }
@keyframes lensMove { 0%, 100% { left: 30%; top: 38%; } 33% { left: 68%; top: 32%; } 66% { left: 58%; top: 68%; } }
.art-hourglass { position: absolute; z-index: 3; right: 6%; bottom: 8%; width: 38px; height: 58px; animation: hgFlip 4s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0,0,0,.3)); }
.art-hourglass svg { width: 100%; height: 100%; }
.hg-top { transform-box: fill-box; transform-origin: 50% 100%; animation: hgTop 4s linear infinite; }
.hg-bot { transform-box: fill-box; transform-origin: 50% 100%; animation: hgBot 4s linear infinite; }
.hg-stream { animation: hgStream 4s linear infinite; }
@keyframes hgFlip { 0%, 84% { transform: rotate(0); } 96%, 100% { transform: rotate(180deg); } }
@keyframes hgTop { 0% { transform: scaleY(1); } 84%, 100% { transform: scaleY(.05); } }
@keyframes hgBot { 0% { transform: scaleY(.1); } 84%, 100% { transform: scaleY(1); } }
@keyframes hgStream { 0%, 82% { opacity: 1; } 84%, 100% { opacity: 0; } }

/* ---------- Tuiles de jeux avec illustration ---------- */
.gtile { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.gtile-art { position: relative; display: block; height: 136px; flex: none; border-bottom: 3px solid var(--cr-outline); background: #1a0f55; }
.gtile-main { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px 16px 16px; overflow: hidden; isolation: isolate; flex: 1 1 auto; }
.gtile-main .gtile-shine { z-index: -1; }
.gtile-stamp { top: auto; bottom: 64px; right: 14px; z-index: 5; }
.gtile.is-done .art * { animation: none !important; }
@media (max-width: 760px) {
  .gtile-main { grid-template-columns: 1fr; gap: 12px; padding: 12px 14px 14px; }
  .gtile-art { height: 128px; }
  .gtile-stamp { bottom: auto; top: 10px; }
}

/* Écran des règles : bandeau illustré */
.rules-art { position: relative; width: calc(100% + 36px); margin: -18px -18px 4px; height: 150px; border-radius: 21px 21px 0 0; overflow: hidden; border-bottom: 3px solid var(--cr-outline); animation: heroIn .55s var(--ease-spring) both; }
@media (max-width: 760px) { .rules-art { width: calc(100% + 24px); margin: -14px -12px 2px; height: 130px; } }
@media (max-height: 680px) { .rules-art { height: 104px; } .rules-art .art-burst, .rules-art .art-badge { transform: scale(.8); } }

/* ---------- Page Mini-jeux sur PC : vraie mise en page d'ordinateur ---------- */
@media (min-width: 900px) {
  .games-page { max-width: 1160px; }
  .games-tabs { max-width: 460px; }
  .games-hero { text-align: left; padding: 30px 34px; }
  .games-hero-in { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 8px; align-items: center; }
  .games-title, .games-tagline, .games-sub { grid-column: 1; justify-self: start; }
  .games-title { font-size: 56px; }
  .games-sub { max-width: 560px; font-size: 16px; }
  .games-stats { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: stretch; margin: 0; min-width: 250px; }
  .gstat { padding: 12px 18px 12px 12px; }
  .gstat b { font-size: 24px; }
  .hero-rays { left: 78%; top: 50%; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
  .gtile-art { height: 190px; }
  .gtile-main { grid-template-columns: 1fr; gap: 14px; padding: 16px 18px 18px; }
  .gtile-body { min-height: 96px; }
  .gtile-cta { width: 100%; min-height: 50px; font-size: 19px; }
  .gtile-stamp { bottom: auto; top: 12px; }
  .gtile:not(.is-done):hover { transform: translateY(-6px) rotate(0); }
  .shop-wip { padding: 48px 22px 44px; }
}
@media (max-width: 520px) {
  .listing-actions.is-wide { width: 100%; }
  .listing-actions.is-wide .access-slot, .listing-actions.is-wide .req-pending { width: 100%; }
}
.listing-top { flex-wrap: wrap; }
.listing-actions:not(.is-wide) { margin-left: auto; }
.member-card.vis-updated { animation: visUpdated .9s var(--ease-spring); }
@keyframes visUpdated { 30% { transform: scale(1.03); box-shadow: 0 0 0 3px rgba(255,201,40,.7), var(--shadow-lift); } }

/* =========================================================
   v26
   ========================================================= */
/* Images des jeux : toujours visibles en entier dans leur cadre */
.gs-media { flex: 0 1 auto; height: clamp(150px, 32dvh, 280px); min-height: 96px; max-height: none; }
.myst-media { height: clamp(150px, 30dvh, 260px); }
.gs-frame { position: relative; padding: 0; }
.gs-frame > .gs-img, .gs-frame > .gs-img-ph { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.myst-img-wrap { position: absolute; inset: 10px; width: auto; height: auto; }
.myst-img-wrap .gs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-height: 680px) { .gs-media { height: clamp(110px, 26dvh, 200px); } }

/* Rideau rouge qui s'ouvre sur le set ; les réponses arrivent quand il est ouvert */
.curtain { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 15px; overflow: hidden; }
.curtain .ct-l, .curtain .ct-r { position: absolute; top: 0; bottom: 0; width: 51%;
  background: repeating-linear-gradient(90deg, #8e0f1c 0 9px, #c81f2f 9px 18px, #a51424 18px 26px, #d6303f 26px 32px);
  box-shadow: inset 0 -16px 24px rgba(0,0,0,.35); transition: transform .62s cubic-bezier(.6,0,.2,1); }
.curtain .ct-l { left: 0; transform-origin: 0 0; border-right: 2px solid #5a0610; }
.curtain .ct-r { right: 0; transform-origin: 100% 0; border-left: 2px solid #5a0610; }
.curtain .ct-top { position: absolute; left: 0; right: 0; top: 0; height: 16px; z-index: 2;
  background: linear-gradient(180deg, #ffe27a, #e0a400); border-bottom: 2px solid #7a4600; box-shadow: 0 3px 6px rgba(0,0,0,.3); transition: transform .5s ease .25s; }
.curtain .ct-star { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 34px; color: #ffd84a;
  text-shadow: 0 2px 0 #5a0610, 0 0 14px rgba(255,210,60,.7); animation: ctStar 1s ease-in-out infinite; transition: opacity .2s; }
@keyframes ctStar { 50% { transform: translate(-50%, -50%) scale(1.15) rotate(12deg); } }
.curtain.is-open .ct-l { transform: translateX(-100%) scaleX(.6); }
.curtain.is-open .ct-r { transform: translateX(100%) scaleX(.6); }
.curtain.is-open .ct-top { transform: translateY(-100%); }
.curtain.is-open .ct-star { opacity: 0; }
.curtain.is-open { visibility: hidden; transition: visibility 0s .7s; }
.gs-play .game-body:not(.is-live) .gs-opt { opacity: 0; animation: none; pointer-events: none; }
.gs-play .game-body.is-live .gs-opt { animation: optIn .4s var(--ease-spring) both; animation-delay: calc(.07s * var(--i)); }
.gs-play .game-body:not(.is-live) .gs-timer .t-ring { stroke-dashoffset: 0; }

/* Coffre repris seul (après avoir quitté) */
.gs-chestonly .game-body { min-height: min(560px, calc(100dvh - 60px)); }

/* Liste des collections (catalogue) */
.tsel { position: relative; min-width: 0; }
.tsel-btn { display: inline-flex; align-items: center; text-align: left; min-width: 190px; max-width: 280px; }
.tsel-btn .tsel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsel-btn.has-value { border-color: var(--ink-2); color: var(--ink); }
.tsel-btn[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,23,46,.08); }
.tsel-panel { position: fixed; z-index: 1500; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); overflow: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .16s, transform .16s; }
.tsel-panel.is-open { opacity: 1; transform: none; }
.tsel-list { overflow-y: auto; overscroll-behavior: contain; padding: 6px; -webkit-overflow-scrolling: touch; }
.tsel-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tsel-opt small { flex: none; color: var(--muted); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.tsel-opt:hover, .tsel-opt:focus-visible { background: var(--surface-2); outline: none; }
.tsel-opt.is-on { background: var(--yellow); color: var(--ink); }
.tsel-opt.is-on small { color: var(--ink); }
.tsel-all { font-weight: 800; }
.tsel-group { padding: 12px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tsel-loading { padding: 14px; color: var(--muted); }
.tsel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 18px; border-bottom: 1px solid var(--line); }
.tsel-head strong { font-family: var(--display); font-size: 18px; }
.tsel-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; }
.tsel-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tsel-backdrop { position: fixed; inset: 0; z-index: 1499; background: rgba(10,14,34,.45); animation: fadeIn .18s ease; }
.tsel-panel.is-sheet { left: 0; right: 0; bottom: 0; max-height: 72dvh; border-radius: 20px 20px 0 0; transform: translateY(30px); padding-bottom: env(safe-area-inset-bottom); }
.tsel-panel.is-sheet.is-open { transform: none; }
.tsel-panel.is-sheet .tsel-opt { min-height: 46px; font-size: 16px; }
@media (max-width: 760px) { .tsel, .tsel-btn { width: 100%; max-width: none; } }
/* Connexion / inscription : même hauteur de carte, bouton toujours au même endroit */
.auth-card > .auth-form { flex: 1 1 auto; }
.auth-fields { display: flex; flex-direction: column; gap: inherit; animation: fadeIn .25s ease; }
.auth-form .auth-submit { margin-top: auto; }
.field-hint { font-weight: 500; color: var(--muted); font-size: 12px; }
.pw-rules { margin-top: -4px; font-size: 12.5px; }
@media (max-width: 400px) { .pw-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 8px; font-size: 12px; } }
.auth-new { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 4px; padding: 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }

/* =========================================================
   v27 — L'Arène, Boutique, personnalisation
   ========================================================= */
/* Pastille d'Or : taille fixe, chiffres qui rétrécissent avec la longueur du nombre */
.wallet { width: 104px; height: 42px; padding: 0 10px 0 34px; justify-content: center; font-size: 19px; }
.wallet-amount { flex: 1; text-align: center; min-width: 0; }
.wallet-amount[data-len="3"] { font-size: 18px; }
.wallet-amount[data-len="4"] { font-size: 16px; }
.wallet-amount[data-len="5"] { font-size: 14.5px; }
.wallet-amount[data-len="6"], .wallet-amount[data-len="7"] { font-size: 13px; }
@media (max-width: 760px) {
  .wallet { width: 88px; height: 36px; padding: 0 7px 0 28px; font-size: 16px; }
  .wallet-amount[data-len="3"] { font-size: 15.5px; }
  .wallet-amount[data-len="4"] { font-size: 14px; }
  .wallet-amount[data-len="5"] { font-size: 12.5px; }
  .wallet-amount[data-len="6"], .wallet-amount[data-len="7"] { font-size: 11.5px; }
}
@media (max-width: 380px) { .wallet { width: 82px; padding: 0 6px 0 27px; } }



@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* Jackpot : +50 sous le mot JACKPOT */
.jp-amount-in { display: inline-flex; align-items: center; gap: 10px; animation: winIn .7s var(--ease-spring) .55s both; }
.jp-amount-in .coin-ic { width: 52px; height: 52px; }

/* ---------- Matière du coffre ---------- */
.chest-mat { opacity: var(--mat, 0); transition: opacity .45s ease; }
.chest-facets { mix-blend-mode: soft-light; }
.chest-wrap.mat-step .chest-flash { animation: matFlash .55s ease-out; }
@keyframes matFlash { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(6); opacity: 0; } }
.tier-silver .chest-flash { background: radial-gradient(circle, #fff 0 30%, rgba(210,225,240,.85) 50%, transparent 70%); }
.tier-crystal .chest-flash { background: radial-gradient(circle, #fff 0 30%, rgba(140,235,255,.85) 50%, transparent 70%); }
.tier-diamond .chest-flash { background: radial-gradient(circle, #fff 0 30%, rgba(200,120,255,.9) 50%, transparent 70%); }
.tier-silver .chest-btn:not(.is-idle) .chest { filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)) drop-shadow(0 0 calc(var(--mat) * 14px) rgba(220,235,255,.9)); }
.tier-crystal .chest-btn:not(.is-idle) .chest { filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)) drop-shadow(0 0 calc(var(--mat) * 16px) rgba(110,230,255,.95)); }
.tier-gold .chest-btn:not(.is-idle) .chest { filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)) drop-shadow(0 0 calc(var(--mat) * 18px) rgba(255,200,40,.95)); }
.tier-diamond .chest-btn:not(.is-idle) .chest { filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)) drop-shadow(0 0 calc(var(--mat) * 22px) rgba(190,90,255,1)); }
.tier-diamond .chest-rays { background: repeating-conic-gradient(rgba(220,160,255,.6) 0deg 7deg, rgba(220,160,255,0) 7deg 20deg); }

/* ---------- Cadres d'avatar ---------- */
.afr { position: relative; display: inline-flex; flex: none; border-radius: 50%; isolation: isolate; vertical-align: middle; }
.afr > .avatar { box-shadow: none !important; position: relative; z-index: 1; }
.afr::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: 0; background: var(--ring); box-shadow: 0 0 0 1.5px rgba(20,10,50,.55); }
.afr::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: 2; pointer-events: none; }
.afr-gold { --ring: conic-gradient(#fff3a6, #e2a100, #fff3a6, #b97800, #fff3a6); }
.afr-red { --ring: conic-gradient(#ff8a8f, #d7262e, #8f0d14, #d7262e, #ff8a8f); }
.afr-ocean { --ring: conic-gradient(#9ff0ff, #1f8fff, #0b3fa8, #1f8fff, #9ff0ff); }
.afr-emerald { --ring: conic-gradient(#b4ffd8, #1c9a58, #075c31, #1c9a58, #b4ffd8); }
.afr-flames::before { inset: -5px; background: conic-gradient(from 0deg, #ffdf3b, #ff7a00, #e81a00, #ff7a00, #ffdf3b, #ff7a00, #e81a00, #ffdf3b); animation: afrSpin 2.4s linear infinite; }
.afr-flames::after { inset: -9px; background: radial-gradient(circle, transparent 55%, rgba(255,120,0,.55) 62%, transparent 72%); animation: flameFlick .45s ease-in-out infinite alternate; }
@keyframes flameFlick { from { transform: scale(.96); opacity: .65; } to { transform: scale(1.05); opacity: 1; } }
.afr-stars::before { background: conic-gradient(from 0deg, #2b1a8f, #6c5cff, #b8a8ff, #6c5cff, #2b1a8f); animation: afrSpin 6s linear infinite; }
.afr-bricks::before { inset: -5px; background: conic-gradient(#d7262e 0 25%, #ffc72c 0 50%, #2b63d9 0 75%, #1c9a58 0); animation: afrSpin 5s steps(8) infinite; }
.afr-bricks::after { inset: -5px; background: repeating-conic-gradient(rgba(0,0,0,.35) 0 2deg, transparent 2deg 45deg); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); animation: afrSpin 5s steps(8) infinite; }
.afr-legend::before { inset: -5px; background: conic-gradient(#ff3b6b, #ffc72c, #3bff9b, #3bc5ff, #b45cff, #ff3b6b); animation: afrSpin 3s linear infinite; }
.afr-legend::after { inset: -10px; background: radial-gradient(circle, transparent 52%, rgba(255,215,90,.6) 60%, transparent 72%); animation: legendGlow 1.6s ease-in-out infinite; }
@keyframes legendGlow { 50% { transform: scale(1.06); opacity: .5; } }
@keyframes afrSpin { to { transform: rotate(360deg); } }
.afr-sp { position: absolute; z-index: 3; width: 9px; height: 9px; pointer-events: none; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: afrTwinkle 1.8s ease-in-out infinite; }
.afr-sp.s1 { top: -6px; right: 2px; } .afr-sp.s2 { bottom: -4px; left: -2px; animation-delay: .6s; width: 7px; height: 7px; } .afr-sp.s3 { top: 40%; right: -8px; animation-delay: 1.2s; width: 6px; height: 6px; }
.afr-legend .afr-sp { background: #ffe680; }
@keyframes afrTwinkle { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.avatar-xl { }
.afr:has(.avatar-xl)::before, .afr:has(.avatar-listing)::before { inset: -5px; }
@media (prefers-reduced-motion: reduce) { .afr::before, .afr::after, .afr-sp { animation: none !important; } }

/* ---------- Pseudos ---------- */
.nm { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.nm-gold { background-image: linear-gradient(180deg, #ffe680 0%, #e7a400 55%, #a86a00 100%); }
.nm-shine { background-image: linear-gradient(100deg, #c08600 0%, #ffd23a 40%, #fffbe6 50%, #ffd23a 60%, #c08600 100%); background-size: 250% 100%; animation: nmShine 2.4s linear infinite; }
@keyframes nmShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.nm-rainbow { background-image: linear-gradient(90deg, #ff3b3b, #ff9f1a, #ffd200, #2ecc71, #1fa8ff, #8e5bff, #ff3bb0, #ff3b3b); background-size: 300% 100%; animation: nmRainbow 4s linear infinite; }
@keyframes nmRainbow { to { background-position: 300% 0; } }
.nm-fire { background-image: linear-gradient(0deg, #b51200 0%, #ff4d00 35%, #ffb300 70%, #fff3a0 100%); background-size: 100% 200%; animation: nmFire 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 0 4px rgba(255,100,0,.55)); }
@keyframes nmFire { to { background-position: 0 100%; } }
.listing-name .nm, .profile-name.nm { filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
@media (prefers-reduced-motion: reduce) { .nm { animation: none !important; } }
.u-title { display: inline-block; align-self: flex-start; max-width: 100%; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  color: #5a3200; background: linear-gradient(180deg, #fff1a8, #ffc928); border: 1px solid #c98a00; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-title { margin-top: 5px; font-size: 12.5px; }
.member-title { margin-top: -2px; }
.member-top .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-title { display: block; margin-top: 3px; }

/* ---------- Bandeaux de profil ---------- */
.bnr { background-color: #1b2240; background-repeat: no-repeat; background-size: cover; background-position: center; }
.bnr-city { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23372a8c'/%3E%3Cstop offset='.6' stop-color='%23d4557a'/%3E%3Cstop offset='1' stop-color='%23ffb35c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='400' height='120' fill='url(%23s)'/%3E%3Ccircle cx='320' cy='70' r='22' fill='%23ffd88a' opacity='.8'/%3E%3Cg fill='%23251a4a'%3E%3Crect x='0' y='70' width='34' height='50'/%3E%3Crect x='38' y='48' width='28' height='72'/%3E%3Crect x='70' y='62' width='40' height='58'/%3E%3Crect x='114' y='30' width='26' height='90'/%3E%3Crect x='144' y='56' width='36' height='64'/%3E%3Crect x='184' y='40' width='30' height='80'/%3E%3Crect x='218' y='68' width='44' height='52'/%3E%3Crect x='266' y='22' width='24' height='98'/%3E%3Crect x='294' y='58' width='38' height='62'/%3E%3Crect x='336' y='44' width='28' height='76'/%3E%3Crect x='368' y='66' width='32' height='54'/%3E%3C/g%3E%3Cg fill='%23ffd86b'%3E%3Crect x='44' y='56' width='4' height='5'/%3E%3Crect x='56' y='70' width='4' height='5'/%3E%3Crect x='120' y='40' width='4' height='5'/%3E%3Crect x='130' y='62' width='4' height='5'/%3E%3Crect x='190' y='50' width='4' height='5'/%3E%3Crect x='200' y='76' width='4' height='5'/%3E%3Crect x='272' y='34' width='4' height='5'/%3E%3Crect x='280' y='60' width='4' height='5'/%3E%3Crect x='342' y='54' width='4' height='5'/%3E%3Crect x='350' y='84' width='4' height='5'/%3E%3Crect x='300' y='70' width='4' height='5'/%3E%3Crect x='80' y='74' width='4' height='5'/%3E%3C/g%3E%3C/svg%3E"); }
.bnr-jungle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='400' height='120' fill='%230e4d2c'/%3E%3Ccircle cx='200' cy='10' r='90' fill='%2346a35a' opacity='.35'/%3E%3Cg fill='%23167a3e'%3E%3Cellipse cx='20' cy='20' rx='60' ry='22' transform='rotate(25 20 20)'/%3E%3Cellipse cx='380' cy='18' rx='64' ry='22' transform='rotate(-25 380 18)'/%3E%3Cellipse cx='60' cy='110' rx='70' ry='20' transform='rotate(-15 60 110)'/%3E%3Cellipse cx='340' cy='112' rx='70' ry='20' transform='rotate(15 340 112)'/%3E%3C/g%3E%3Cg fill='%232fa35a'%3E%3Cellipse cx='120' cy='0' rx='40' ry='14' transform='rotate(40 120 0)'/%3E%3Cellipse cx='280' cy='0' rx='40' ry='14' transform='rotate(-40 280 0)'/%3E%3Cellipse cx='200' cy='120' rx='60' ry='14'/%3E%3C/g%3E%3Cg stroke='%2363b04a' stroke-width='3' fill='none'%3E%3Cpath d='M150 0q-8 30 4 60t-2 50'/%3E%3Cpath d='M250 0q10 25-2 50t6 45'/%3E%3C/g%3E%3Cg fill='%23ff5c8a'%3E%3Ccircle cx='154' cy='60' r='4'/%3E%3Ccircle cx='252' cy='50' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.bnr-castle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='n' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23101a46'/%3E%3Cstop offset='1' stop-color='%23384a8c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='400' height='120' fill='url(%23n)'/%3E%3Ccircle cx='70' cy='34' r='16' fill='%23fff5c8'/%3E%3Ccircle cx='76' cy='30' r='14' fill='%23101a46' opacity='.0'/%3E%3Cg fill='%23fff' opacity='.7'%3E%3Ccircle cx='140' cy='18' r='1.2'/%3E%3Ccircle cx='330' cy='22' r='1.2'/%3E%3Ccircle cx='370' cy='50' r='1'/%3E%3Ccircle cx='30' cy='70' r='1'/%3E%3C/g%3E%3Cpath fill='%2321264a' d='M150 120V60h10v-8h8v8h10v-8h8v8h10V40h-6v-8h6v-8h8v8h8v-8h8v8h6v8h-6v20h10v-8h8v8h10v-8h8v8h10v60z'/%3E%3Cpath fill='%23d7262e' d='M204 24v-14l14 5-14 5z'/%3E%3Crect x='196' y='92' width='16' height='28' rx='8' fill='%23ffc95c' opacity='.85'/%3E%3Crect x='170' y='74' width='6' height='8' fill='%23ffc95c' opacity='.8'/%3E%3Crect x='232' y='74' width='6' height='8' fill='%23ffc95c' opacity='.8'/%3E%3Cpath fill='%23182040' d='M0 120q60-30 130-6t140 0q70-26 130 4z'/%3E%3C/svg%3E"); }
.bnr-space { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='400' height='120' fill='%23070a24'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='20' cy='20' r='1.2'/%3E%3Ccircle cx='60' cy='90' r='1'/%3E%3Ccircle cx='110' cy='40' r='1.4'/%3E%3Ccircle cx='170' cy='100' r='1'/%3E%3Ccircle cx='220' cy='20' r='1.2'/%3E%3Ccircle cx='260' cy='70' r='.9'/%3E%3Ccircle cx='300' cy='30' r='1.3'/%3E%3Ccircle cx='380' cy='96' r='1.1'/%3E%3Ccircle cx='140' cy='12' r='.8'/%3E%3Ccircle cx='350' cy='12' r='.9'/%3E%3C/g%3E%3Ccircle cx='330' cy='66' r='30' fill='%23e8743b'/%3E%3Cpath d='M300 60q30-6 60 6' stroke='%23b24a1b' stroke-width='4' fill='none'/%3E%3Cellipse cx='330' cy='66' rx='52' ry='10' fill='none' stroke='%23ffd27a' stroke-width='3' transform='rotate(-14 330 66)'/%3E%3Cg transform='translate(90 70) rotate(-30)'%3E%3Cpath d='M0-18q10 8 8 26h-16q-2-18 8-26z' fill='%23e9ecf5'/%3E%3Ccircle cy='-2' r='3' fill='%233ba1ff'/%3E%3Cpath d='M-8 8l-6 8h6zM8 8l6 8h-6z' fill='%23d7262e'/%3E%3Cpath d='M-4 10q4 14 8 0' fill='%23ffb300'/%3E%3C/g%3E%3C/svg%3E"); }
.bnr-galaxy { background-color: #12052e; background-image: radial-gradient(circle at 30% 50%, rgba(255,90,200,.55), transparent 35%), radial-gradient(circle at 70% 40%, rgba(90,140,255,.55), transparent 40%), radial-gradient(circle at 50% 60%, rgba(180,90,255,.6), transparent 45%), radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1.2px 1.2px at 80% 70%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(1px 1px at 40% 85%, #fff, transparent);
  background-size: 200% 200%, 200% 200%, 180% 180%, 100% 100%, 100% 100%, 100% 100%, 100% 100%; animation: galaxyDrift 9s ease-in-out infinite alternate; }
@keyframes galaxyDrift { from { background-position: 0% 50%, 100% 50%, 50% 0%, 0 0, 0 0, 0 0, 0 0; } to { background-position: 100% 50%, 0% 50%, 50% 100%, 0 0, 0 0, 0 0, 0 0; } }
.listing-hero.has-bnr { background-color: #1b2240; }
.listing-hero.has-bnr::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,10,30,.15) 0%, rgba(8,10,30,.55) 70%, rgba(8,10,30,.75) 100%); pointer-events: none; }
.listing-hero.has-bnr .listing-anim { display: none; }
.member-card { position: relative; overflow: hidden; }
.member-card.has-bnr { padding-top: 30px; }
.mc-bnr { position: absolute; left: 0; right: 0; top: 0; height: 22px; }

/* Vitrine sur le profil */
.vitrine { display: block; padding: 14px; border-radius: var(--radius); background: linear-gradient(180deg, #fffbea, #fff3c4); border: 2px solid #f0c64a; box-shadow: var(--shadow); color: #4a2c00; }
a.vitrine-empty { text-align: center; font-weight: 700; text-decoration: none; border-style: dashed; }
.vitrine-head { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.vitrine-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(180deg, #ffe066, #ffae00); color: #5a3200; font-size: 15px; }
.vitrine-edit { margin-left: auto; font-size: 13px; font-family: var(--body, inherit); font-weight: 700; color: #8a5a00; }
.vitrine-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vitrine-item { min-width: 0; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid #f3dc8c; display: flex; flex-direction: column; gap: 6px; }
.vitrine-img { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #fafafa; }
.vitrine-img img { width: 100%; height: 100%; object-fit: contain; }
.vitrine-cap { min-width: 0; display: flex; flex-direction: column; }
.vitrine-cap strong { font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitrine-cap small { color: #8a6a30; font-size: 11.5px; }
@media (max-width: 520px) { .vitrine-cap strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 12px; } }

/* Communauté : boutons du bandeau, notifications cliquables */
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-btns .btn-hero { margin-top: 0; }
.btn-hero-alt { background: rgba(255,201,40,.2); border-color: rgba(255,214,90,.6); }
.btn-hero-alt:hover { background: rgba(255,201,40,.32); }
.notif-who { display: inline-flex; flex: none; text-decoration: none; color: inherit; border-radius: 50%; }
.notif-who:hover .avatar, .notif-who:focus-visible .avatar { box-shadow: 0 0 0 2px var(--yellow); }
a.notif-name { border-radius: 4px; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.notif-name:hover strong { text-decoration: underline; }
.notif-gift .notif-info small { color: #b86a00; font-weight: 600; }

/* Coffres reçus */
.gift-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gift-card { flex: none; width: 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 16px; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 0%, #5a3be0, #2a1d7a); color: #fff; border: 2px solid var(--cr-outline); font: inherit; }
.gift-chest { width: 90px; display: block; animation: chestBob 1.6s ease-in-out infinite; }
.gift-chest .chest { width: 100%; }
.gift-chest.sm { width: 54px; }
.gift-from { font-size: 13px; }
.gift-open { min-height: 34px; padding: 0 14px; font-size: 15px; }
.gift-strip { margin-top: 12px; }
.gift-strip-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; cursor: pointer; font: inherit; text-align: left; color: #fff;
  background: linear-gradient(90deg, #6236e0, #8c5dff); border: 3px solid var(--cr-outline); box-shadow: 0 4px 0 rgba(22,10,61,.3); animation: heroIn .6s var(--ease-spring) both; }
.gift-strip-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gift-strip-txt b { font-family: var(--display); font-size: 17px; }
.gift-strip-txt small { opacity: .9; }
.gift-strip-btn .btn-cr { min-height: 38px; padding: 0 16px; font-size: 15px; }
.gift-word { font-size: 44px; }
.gift-sub { margin: 0; text-align: center; color: #e6e0ff; }
/* Choix des sets de la vitrine */
.vit-card .game-body { gap: 10px; }
.vit-title { margin: 0; text-align: center; font-size: 30px; }
.vit-help { margin: 0; text-align: center; color: #ddd6ff; font-size: 14px; }
.vit-search { background: #fff; border-radius: 12px; }
.vit-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: min(46vh, 420px); padding-right: 2px; }
.vit-opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; border: 2px solid transparent; background: rgba(255,255,255,.1); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.vit-opt.is-on { background: rgba(255,201,40,.22); border-color: #ffc928; }
.vit-thumb { width: 54px; height: 42px; flex: none; border-radius: 8px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.vit-thumb img { width: 100%; height: 100%; object-fit: contain; }
.vit-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vit-nm b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vit-nm small { opacity: .8; font-size: 12px; }
.vit-check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); display: grid; place-items: center; font-weight: 800; color: #5a3200; }
.vit-opt.is-on .vit-check { background: #ffc928; border-color: #fff3a6; }
.vit-empty { color: #ddd6ff; text-align: center; }
.vit-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vit-foot .btn-cr { min-height: 44px; padding: 0 20px; font-size: 17px; }
@media (max-width: 640px) {
  .offer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-row .sitem.is-medium { grid-column: 1 / -1; }
  .bonus-grid { grid-template-columns: 1fr; }
  .sitem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitem.is-big { flex-direction: column; text-align: center; }
  .sitem.is-big .sitem-prev { width: 100%; }
  .shop-head .shop-title { font-size: 26px; }
  .shop-sec { padding: 12px; }
}
/* v27 — retouches */
.sbuy s { text-shadow: none; color: rgba(255,255,255,.85); font-weight: 700; text-decoration-thickness: 2px; }
.sitem-deal.is-got { background: #1c9a58; }
.nm-rainbow { background-size: 200% 100%; animation-name: nmRainbow2; }
@keyframes nmRainbow2 { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.vitrine-img { aspect-ratio: auto; height: 130px; }
@media (max-width: 640px) { .vitrine-img { height: 76px; } }
.listing-hero.has-bnr::before { background: linear-gradient(180deg, rgba(8,10,30,0) 0%, rgba(8,10,30,.35) 55%, rgba(8,10,30,.7) 100%); }
.listing-hero.has-bnr .listing-name { text-shadow: 0 2px 6px rgba(0,0,0,.6); }

/* =========================================================
   v28 — Magasin façon Clash, Inventaire, barre du haut
   ========================================================= */
/* Barre du haut : resserrage par paliers (jamais de lien sous la pastille) */
.profile-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* paliers : 1 liens resserrés, 2 compteurs masqués, 3 nom du site masqué, 4 (dernier recours) pseudo masqué */
.topbar-inner.fit-1 { gap: 10px; }
.topbar-inner.fit-1 .mainnav a { padding: 0 9px; font-size: 14px; gap: 6px; }
.topbar-inner.fit-1 .notif { margin-left: 4px; }
.topbar-inner.fit-2 .mainnav .count { display: none; }
.topbar-inner.fit-3 .brand-name { display: none; }
.topbar-inner.fit-4 .profile-name { display: none !important; }
.topbar-inner.fit-4 .profile-btn { padding: 4px 8px 4px 4px; gap: 6px; }

/* Onglets de l'Arène : 3 onglets, couleurs d'origine (fond sombre, onglet actif doré) */
.games-tabs.tabs3 { grid-template-columns: repeat(3, 1fr); }
.tabs3 .gtab-slider { width: calc((100% - 10px) / 3); }
.games-tabs.tabs3.on-shop .gtab-slider { transform: translateX(100%); }
.games-tabs.tabs3.on-inv .gtab-slider { transform: translateX(200%); }
.gtab { color: #cfc8ff; }
.gtab.is-on { color: #1a0f00; }
.gtab-ic-inv { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3h8v3h4a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h4zm2 2v1h4V5zm-5 5v3h14v-3zm6 1h2v3h-2z'/%3E%3C/svg%3E"); }
@media (max-width: 520px) {
  .gtab { font-size: 14.5px; gap: 5px; min-height: 44px; }
  .gtab-ic { width: 16px; height: 16px; }
}
@media (max-width: 380px) { .gtab-ic { display: none; } .gtab { font-size: 14px; } }

/* Bonus journalier : petite croix ronde dans le coin de l'écran */
.daily-x { position: fixed; z-index: 30; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(10,6,40,.55); border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 4px 14px rgba(0,0,0,.35); backdrop-filter: blur(4px); animation: popIn .35s var(--ease-spring) both; transition: background .2s, transform .2s; }
.daily-x:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.daily-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

/* ---------- Magasin / Inventaire ---------- */
.shop-pane { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.shop-loading { display: grid; gap: 12px; }
/* Enseigne en bois + pièces et briques animées */
.shop-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 18px 18px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #6a4be8 0%, #3a26a8 55%, #1d1260 100%); border: 3px solid var(--cr-outline); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 6px 0 rgba(22,10,61,.25); }
.shop-sign { position: relative; z-index: 2; padding: 10px 46px 12px; border-radius: 10px; transform-origin: 50% -40px; animation: signSwing 3.8s ease-in-out infinite;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 22px, rgba(0,0,0,.06) 22px 24px), linear-gradient(180deg, #e0a160 0%, #c47a3a 48%, #9a5523 100%);
  border: 3px solid #4a2408; box-shadow: inset 0 3px 0 rgba(255,230,190,.55), inset 0 -5px 0 rgba(0,0,0,.2), 0 6px 0 #3a1a05, 0 12px 20px rgba(0,0,0,.35); }
.shop-sign h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: #5a2c0c; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(255,220,170,.55); }
.shop-sign .bolt { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9c2cc 45%, #6b7682); border: 2px solid #3a3f46; }
.shop-sign .bl { left: 14px; } .shop-sign .br { right: 14px; }
@keyframes signSwing { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.shop-top .gold-bank { position: relative; z-index: 2; }
.shop-coins { position: absolute; inset: 0; pointer-events: none; }
.sign-coin { position: absolute; bottom: -30px; width: 22px; height: 22px; border-radius: 50%; opacity: .75;
  background: radial-gradient(circle at 35% 30%, #fff6b0, #ffc928 45%, #c27c00); border: 2px solid #8a5200; animation: coinRise var(--d) linear var(--dl) infinite; }
@keyframes coinRise { 0% { transform: translateY(0) rotateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-190px) rotateY(720deg); opacity: 0; } }
.shop-bricks { position: absolute; right: 18%; bottom: 0; width: 90px; height: 70px; pointer-events: none; opacity: .9; }
.shop-bricks i { position: absolute; width: 34px; height: 16px; border-radius: 4px; border: 2px solid var(--cr-outline); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.shop-bricks i::before, .shop-bricks i::after { content: ""; position: absolute; top: -6px; width: 9px; height: 5px; border-radius: 2px 2px 0 0; background: inherit; border: 2px solid var(--cr-outline); border-bottom: 0; }
.shop-bricks i::before { left: 4px; } .shop-bricks i::after { right: 4px; }
.shop-bricks .sb1 { left: 0; bottom: 0; background: #e3262f; }
.shop-bricks .sb2 { left: 38px; bottom: 0; background: #2b63d9; }
.shop-bricks .sb3 { left: 19px; bottom: 22px; background: #ffc72c; animation: brickHop 2.6s var(--ease-spring) infinite; }
@keyframes brickHop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-16px) rotate(-6deg); } }
@media (max-width: 640px) {
  .shop-top { justify-content: center; padding: 18px 12px 14px; }
  .shop-sign h2 { font-size: 26px; }
  .shop-sign { padding: 8px 40px 10px; }
  .shop-bricks { display: none; }
}

/* Panneaux matelassés (style Clash) */
.quilt { position: relative; padding: 14px 12px 16px; border-radius: 22px; border: 3px solid var(--cr-outline);
  background-color: #5b3cc4;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.07) 75%),
    linear-gradient(-45deg, rgba(0,0,0,.09) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.09) 75%),
    radial-gradient(130% 80% at 50% 0%, rgba(255,255,255,.14), transparent 60%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -4px 0 rgba(0,0,0,.18), 0 6px 0 rgba(22,10,61,.22); }
.quilt-teal { background-color: #2f8a98; }
.quilt-rare { background-color: #6b2fa8; }
.quilt-gold { background-color: #b0721a; }
.quilt-empty { margin: 6px 4px 0; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
/* Ruban titre */
.ribbon-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -2px 0 14px; }
.ribbon { position: relative; width: min(100%, 460px); height: 46px; display: grid; place-items: center; padding: 0 30px;
  background: #0d2a66; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%); filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.ribbon::before { content: ""; position: absolute; inset: 3px 4px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  background: linear-gradient(180deg, #7cc0ff 0%, #3d8cf0 50%, #2a6fd6 52%, #2463c4 100%); }
.ribbon span { position: relative; font-family: var(--display); font-weight: 800; font-size: 21px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  text-shadow: 0 3px 0 #0d2a66, 2px 0 0 #0d2a66, -2px 0 0 #0d2a66, 0 -2px 0 #0d2a66, 2px 2px 0 #0d2a66, -2px 2px 0 #0d2a66; }
.ribbon-pink::before { background: linear-gradient(180deg, #ff9be6 0%, #e04fc4 50%, #c8309f 52%, #a52288 100%); }
.ribbon-pink { background: #4a0a3d; }
.ribbon-pink span { text-shadow: 0 3px 0 #4a0a3d, 2px 0 0 #4a0a3d, -2px 0 0 #4a0a3d, 0 -2px 0 #4a0a3d, 2px 2px 0 #4a0a3d, -2px 2px 0 #4a0a3d; }
.ribbon-gold::before { background: linear-gradient(180deg, #fff09a 0%, #ffd23a 50%, #ffb300 52%, #f09400 100%); }
.ribbon-gold { background: #5a3000; }
.ribbon-gold span { text-shadow: 0 3px 0 #5a3000, 2px 0 0 #5a3000, -2px 0 0 #5a3000, 0 -2px 0 #5a3000, 2px 2px 0 #5a3000, -2px 2px 0 #5a3000; }
.ribbon-sub { padding: 3px 14px; border-radius: 10px; background: rgba(10,6,40,.42); color: #ffe9a8; font-weight: 800; font-size: 13px; text-align: center; }
.ribbon-sub b { color: #fff; }
.ribbon-sm { height: 40px; }
.ribbon-sm span { font-size: 19px; }

/* Cartes d'articles (on touche la carte → fenêtre de détail) */
.scard-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 6px 10px; cursor: pointer; font: inherit; color: #fff; text-align: center;
  border-radius: 16px; border: 3px solid #283278; overflow: hidden;
  background: linear-gradient(180deg, #dbe3fb 0%, #c3cff3 60%, #aebde9 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.75), inset 0 -5px 0 rgba(40,50,120,.18), 0 5px 0 #1d2560, 0 9px 14px rgba(0,0,0,.25);
  transition: transform .15s var(--ease-out); animation: cardIn .5s var(--ease-spring) calc(var(--i, 0) * 60ms) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
.scard:hover { transform: translateY(-3px); }
.scard:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.75), 0 2px 0 #1d2560; }
.scard::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: cardShine 5s ease-in-out calc(var(--i, 0) * .4s) infinite; }
@keyframes cardShine { 0%, 70% { left: -60%; } 90%, 100% { left: 130%; } }
.scard-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .9; }
.scard-name, .scard-rar, .scard-price, .scard-free, .scard-state { font-family: var(--display); font-weight: 800; line-height: 1.1;
  text-shadow: 0 2px 0 #1d2560, 1.5px 0 0 #1d2560, -1.5px 0 0 #1d2560, 0 -1.5px 0 #1d2560, 1.5px 1.5px 0 #1d2560, -1.5px 1.5px 0 #1d2560; }
.scard-name { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.scard-rar { font-size: 13px; }
.r-common .scard-rar { color: #6fd0ff; }
.r-epic .scard-rar { color: #f08bff; }
.r-legend .scard-rar { background: linear-gradient(90deg, #ff6b6b, #ffd23a, #5cf08f, #5cc8ff, #c77dff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 1.5px 0 #1d2560) drop-shadow(0 -1px 0 #1d2560); }
.r-free .scard-rar, .r-bonus .scard-rar { color: #ffe066; }
.scard-art { position: relative; width: 100%; aspect-ratio: 1 / .86; margin: 5px 0 6px; display: grid; place-items: center; overflow: hidden; border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, #3b4fae, #1d2466 75%); border: 3px solid #4f8ff0; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), 0 3px 0 rgba(0,0,0,.2); }
.r-epic .scard-art { border-color: #c35cff; background: radial-gradient(circle at 50% 35%, #5a2fa8, #24104f 75%); }
.r-legend .scard-art { border-color: transparent; background: radial-gradient(circle at 50% 35%, #5a2fa8, #1e0d40 75%) padding-box, linear-gradient(var(--a, 0deg), #ff6b6b, #ffd23a, #5cf08f, #5cc8ff, #c77dff, #ff6b6b) border-box; animation: legendBorder 3s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes legendBorder { to { --a: 360deg; } }
.r-free .scard-art { border-color: #4be08a; background: radial-gradient(circle at 50% 35%, #2fa866, #0f4d2c 75%); }
.r-bonus .scard-art { border-color: #ffc928; background: radial-gradient(circle at 50% 35%, #3b4fae, #1d2466 75%); }
.scard-price { display: inline-flex; align-items: baseline; gap: 4px; font-size: 22px; }
.scard-price b { font-weight: 800; }
.scard-price s { font-size: 13px; opacity: .85; text-decoration-thickness: 2px; }
.scard-price .coin-ic { width: 20px; height: 20px; align-self: center; animation: coinSpin 4s ease-in-out infinite; }
@keyframes coinSpin { 0%, 80%, 100% { transform: rotateY(0); } 90% { transform: rotateY(180deg); } }
.scard-price.is-short b { color: #ffb4b4; }
.scard-free { font-size: 20px; color: #fff; letter-spacing: .03em; }
.scard.r-free { background: linear-gradient(180deg, #a6f5c1 0%, #5fd98e 60%, #3fbf72 100%); border-color: #0f5a2e; box-shadow: inset 0 3px 0 rgba(255,255,255,.7), inset 0 -5px 0 rgba(0,0,0,.15), 0 5px 0 #0b4423, 0 9px 14px rgba(0,0,0,.25); }
.scard.r-free:not(.is-claimed) { animation: cardIn .5s var(--ease-spring) both, freePulse 2s ease-in-out .6s infinite; }
@keyframes freePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.scard-state { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: #fff; }
.scard-state.is-on { color: #9dffbf; }
.scard-state svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3.2; filter: drop-shadow(0 1.5px 0 #1d2560); }
.scard.is-claimed { filter: grayscale(.55) brightness(.9); cursor: default; }
.scard.is-claimed::after { display: none; }
.scard-deal { position: absolute; z-index: 2; top: 0; left: 0; padding: 3px 9px 4px 7px; border-radius: 0 0 12px 0; background: linear-gradient(180deg, #ff5a63, #d7262e); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
/* Aperçus dans les cartes */
.scard-art .avatar-shop { width: 56%; height: auto; aspect-ratio: 1; font-size: 24px; }
.avatar-shop, .avatar-shop-xl { background: var(--red); color: #fff; }
.avatar-shop-xl { width: 116px; height: 116px; font-size: 46px; }
.afr:has(.avatar-shop-xl)::before { inset: -7px; }
.afr:has(.avatar-shop-xl)::after { inset: -10px; }
.scard-art .afr { width: 56%; }
.scard-art .afr .avatar-shop { width: 100%; }
.shop-nm { font-family: var(--display); font-weight: 800; font-size: clamp(15px, 4.4vw, 21px); max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.shop-nm.is-big { font-size: 38px; }
.shop-tt { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 92%; }
.shop-tt-name { font-weight: 800; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.shop-tt.is-big .shop-tt-name { font-size: 24px; font-family: var(--display); }
.shop-tt.is-big .u-title { font-size: 14px; padding: 4px 22px 5px; }
.shop-tt .u-title { align-self: center; }
.scard-art .shop-bnr { position: absolute; inset: 0; border-radius: 0; }
.shop-bnr { display: block; position: relative; }
.pop-art .shop-bnr { width: min(380px, 78vw); height: 130px; border-radius: 14px; border: 3px solid rgba(255,255,255,.7); box-shadow: 0 8px 20px rgba(0,0,0,.4); overflow: hidden; }
.shop-bnr-me { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
/* Présentoir de la Vitrine : 3 sets célèbres */
.va { position: relative; width: 92%; height: 76%; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 0 6% 10%;
  border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 2px solid rgba(255,255,255,.4); }
.va-glass { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 40%, transparent 50%); background-size: 260% 100%; animation: glassShine 4s ease-in-out infinite; pointer-events: none; }
@keyframes glassShine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.va-slot { position: relative; flex: 1; height: 62%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.va-slot.va-1 { height: 82%; }
.va-slot img { width: 100%; height: calc(100% - 7px); object-fit: contain; background: #fff; border-radius: 5px; padding: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.va-brick { width: 80%; height: 50%; border-radius: 4px; background: #e3262f; }
.va-ped { display: block; width: 115%; height: 7px; border-radius: 3px; background: linear-gradient(180deg, #fff1a8, #d99a12); box-shadow: 0 2px 0 #7a4a00; }
.va-gold { border-color: #ffd23a; background: linear-gradient(180deg, rgba(255,210,58,.35), rgba(255,170,0,.1)); box-shadow: 0 0 18px rgba(255,200,40,.55); }
.va-big { width: min(360px, 76vw); height: 170px; }

/* Légendaire de la semaine */
.rare-card { position: relative; width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px; cursor: pointer; font: inherit; color: #fff; text-align: left; overflow: hidden;
  border-radius: 18px; border: 3px solid transparent;
  background: linear-gradient(160deg, #3a1a7a, #1b0c45) padding-box, linear-gradient(var(--a, 0deg), #ff6b6b, #ffd23a, #5cf08f, #5cc8ff, #c77dff, #ff6b6b) border-box;
  animation: legendBorder 3s linear infinite; box-shadow: 0 5px 0 #1d0a40, 0 10px 18px rgba(0,0,0,.3); }
.rare-rays { position: absolute; left: 22%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,220,255,.16) 0deg 8deg, transparent 8deg 22deg); animation: raysSpin 14s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 60%); mask-image: radial-gradient(circle, #000 0 18%, transparent 60%); }
.rare-sp { position: absolute; inset: 0; pointer-events: none; }
.rare-art { position: relative; z-index: 1; flex: none; width: 46%; min-height: 150px; display: grid; place-items: center; }
.rare-art .shop-bnr { width: 100%; height: 120px; border-radius: 12px; border: 2px solid rgba(255,255,255,.6); }
.rare-art .va-big { width: 100%; height: 140px; }
.rare-info { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rare-info strong { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.rare-info small { color: #e4dcff; font-size: 13.5px; }
.rare-info .scard-price { font-size: 26px; margin-top: 4px; }
@media (max-width: 560px) {
  .rare-card { flex-direction: column; text-align: center; }
  .rare-art { width: 100%; min-height: 0; }
  .rare-info { align-items: center; }
}

/* Bonus : pile de pièces, ticket, coffre */
.coin-pile { position: relative; width: 70%; height: 70%; }
.coin-pile i { position: absolute; left: 50%; width: 46%; aspect-ratio: 1 / .42; margin-left: -23%; border-radius: 50%; background: linear-gradient(180deg, #fff3a0, #ffc928 55%, #c27c00); border: 2px solid #7a4600; }
.coin-pile i:nth-child(1) { bottom: 4%; } .coin-pile i:nth-child(2) { bottom: 16%; } .coin-pile i:nth-child(3) { bottom: 28%; }
.coin-pile i:nth-child(4) { bottom: 40%; left: 38%; } .coin-pile i:nth-child(5) { bottom: 6%; left: 72%; }
.scard.r-free:not(.is-claimed) .coin-pile i:nth-child(4) { animation: pileHop 1.8s ease-in-out infinite; }
@keyframes pileHop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
.ticket-art { position: relative; width: 74%; aspect-ratio: 2 / 1.1; display: grid; place-items: center; border-radius: 8px; transform: rotate(-8deg);
  background: linear-gradient(180deg, #ffe680, #ffb300); border: 3px solid #7a4600; box-shadow: 0 4px 0 rgba(0,0,0,.25);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 12%, #000 13%) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 12%, #000 13%) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 12%, #000 13%) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 12%, #000 13%) right / 51% 100% no-repeat; animation: ticketWiggle 3s ease-in-out infinite; }
.ticket-art b { font-family: var(--display); font-size: 24px; color: #5a2c00; }
.ticket-art.is-big { width: 170px; }
.ticket-art.is-big b { font-size: 46px; }
@keyframes ticketWiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-2deg) translateY(-3px); } }
.gift-art { width: 78%; display: block; }
.gift-art .chest { width: 100%; filter: none; }
.gift-art.is-big { width: 150px; }

/* Personnalisation / Inventaire : catégories à gauche, articles à droite */
.perso { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
.cat-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 78px; }
.cat-btn { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px; padding: 6px 10px; border-radius: 13px; cursor: pointer; font: inherit; color: #fff; text-align: left;
  background: rgba(10,6,40,.35); border: 2px solid rgba(255,255,255,.18); transition: background .2s, transform .15s; }
.cat-btn:hover { background: rgba(10,6,40,.5); }
.cat-btn.is-on { background: linear-gradient(180deg, #fff09a, #ffd23a 50%, #ffb300 52%, #f09400); border-color: #5a3000; color: #3a1d00; box-shadow: 0 3px 0 #5a3000; transform: translateX(4px); }
.cat-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.cat-btn.is-on .cat-ic { background: rgba(255,255,255,.45); }
.cat-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat-lbl { flex: 1; min-width: 0; font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-n { flex: none; min-width: 22px; padding: 1px 6px; border-radius: 999px; font-size: 12px; font-weight: 800; text-align: center; background: rgba(0,0,0,.3); }
.perso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.perso-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  .perso { grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
  .cat-btn { flex-direction: column; gap: 3px; padding: 7px 2px 6px; min-height: 0; text-align: center; }
  .cat-btn.is-on { transform: none; }
  .cat-lbl { font-size: 11.5px; width: 100%; }
  .cat-n { position: absolute; top: -5px; right: -4px; font-size: 10.5px; padding: 0 5px; min-width: 18px; background: #d7262e; color: #fff; }
  .perso-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .scard-row { gap: 7px; }
  .scard { padding: 7px 4px 9px; border-radius: 14px; }
  .scard-name { font-size: 13px; }
  .scard-rar { font-size: 11.5px; }
  .scard-price { font-size: 18px; }
  .scard-free { font-size: 16px; }
  .scard-state { font-size: 13px; }
  .quilt { padding: 12px 8px 14px; }
  .ribbon span { font-size: 18px; }
}

/* Inventaire */
.look-card { position: relative; overflow: hidden; border-radius: 16px; padding: 18px 16px; background: linear-gradient(135deg, var(--night), var(--night-2)); border: 3px solid rgba(255,255,255,.35); min-height: 110px; display: flex; align-items: center; }
.look-card.has-bnr::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(8,10,30,.6)); }
.look-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-width: 0; color: #fff; }
.avatar-look { width: 64px; height: 64px; font-size: 26px; background: var(--red); color: #fff; }
.look-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.look-name { font-family: var(--display); font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.look-txt small { color: #cfd4f0; }
.inv-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px; text-align: center; color: #fff; border-radius: 14px; background: rgba(10,6,40,.3); }
.inv-empty p { margin: 0; font-weight: 700; }
.inv-empty-ic svg { width: 42px; height: 42px; fill: none; stroke: #ffe066; stroke-width: 1.8; }
.inv-empty .btn-cr { min-height: 42px; font-size: 16px; padding: 0 18px; }
.vit-panel { margin-top: 0; background: rgba(255,248,220,.95); }

/* Fenêtre de détail d'un article */
.shop-pop .game-body { gap: 12px; padding-top: 22px; }
.pop-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pop-head { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.pop-rar { font-size: 16px; font-family: var(--display); font-weight: 800; }
.pop-item.r-common .pop-rar { color: #6fd0ff; } .pop-item.r-epic .pop-rar { color: #f08bff; } .pop-item.r-bonus .pop-rar { color: #ffe066; }
.pop-item.r-legend .pop-rar { background: linear-gradient(90deg, #ff6b6b, #ffd23a, #5cf08f, #5cc8ff, #c77dff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pop-stage { position: relative; width: 100%; min-height: 190px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.14), rgba(0,0,0,.15)); }
.pop-stage-sm { min-height: 150px; }
.pop-rays { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
.pop-art { position: relative; z-index: 1; display: grid; place-items: center; animation: popArt .55s var(--ease-spring) both; }
@keyframes popArt { from { transform: scale(.4) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-desc { margin: 0; color: #e6e0ff; font-size: 15px; max-width: 340px; }
.pop-deal { margin: -4px 0 0; color: #ffd23a; font-weight: 800; }
.pop-act { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.pop-act-2 { flex-direction: column; }
.pop-btn { min-width: 200px; font-size: 21px; }
.pop-btn s { font-size: 14px; opacity: .8; margin-right: 4px; }
.pop-btn .coin-ic { width: 24px; height: 24px; }
.pop-act-2 .pop-btn { width: 100%; max-width: 320px; font-size: 18px; }
.pop-btn.is-short { filter: grayscale(.6) brightness(.85); }
.pop-btn.shake { animation: btnShake .4s; }
@keyframes btnShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pop-short { margin: 0; color: #ffc4c4; font-size: 14px; }
.btn-cr-green { border-color: #0a4a22; background: linear-gradient(180deg, #9ef0b8 0%, #3ccf74 48%, #22b45a 52%, #179447 100%);
  text-shadow: 0 2px 0 rgba(0,0,0,.4), 1px 1px 0 #0a4a22, -1px 1px 0 #0a4a22, 1px -1px 0 #0a4a22, -1px -1px 0 #0a4a22;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -4px 0 rgba(0,0,0,.14), 0 5px 0 #0a4a22, 0 9px 16px rgba(0,0,0,.35); }
.pop-stamp { position: absolute; z-index: 3; left: 50%; top: 50%; padding: 8px 18px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; color: #fff;
  background: linear-gradient(180deg, #5fe08f, #22b45a); border: 3px solid #0a4a22; box-shadow: 0 5px 0 #0a4a22; transform: translate(-50%, -50%) rotate(-8deg); animation: stampIn .45s var(--ease-spring) both; }
@keyframes stampIn { from { transform: translate(-50%, -50%) scale(2.4) rotate(-8deg); opacity: 0; } to { transform: translate(-50%, -50%) scale(1) rotate(-8deg); opacity: 1; } }
.pop-stage.is-bought .pop-art { filter: brightness(1.15); }
.pop-friends { display: flex; flex-direction: column; gap: 6px; width: 100%; max-height: 40vh; overflow-y: auto; }
.pop-friend { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px; cursor: pointer; font: inherit; color: #fff; text-align: left;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.2); }
.pop-friend:hover { background: rgba(255,255,255,.18); }
.pop-friend b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-friend-go { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 10px; font-weight: 800; color: #3a1d00; background: linear-gradient(180deg, #fff09a, #ffb300); }
.pop-friend-go .coin-ic { width: 16px; height: 16px; }

/* Titres : ruban court, les légendaires brillent */
.u-title { position: relative; display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; min-width: 0; padding: 2px 15px 3px; border: 0; border-radius: 0;
  font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #4a2800;
  background: linear-gradient(180deg, #fff3b0, #ffcf3a 55%, #e8a400); clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%, 7px 50%); }
.u-title > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ut-rare { color: #fff; background: linear-gradient(90deg, #8e2de2, #ff4fb3, #ffb800, #8e2de2); background-size: 300% 100%; animation: utShine 4s linear infinite; text-shadow: 0 1px 0 rgba(0,0,0,.45); }
.ut-champion { background: linear-gradient(90deg, #c47a00, #ffe680, #c47a00, #ffe680); background-size: 300% 100%; color: #3a1d00; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
@keyframes utShine { to { background-position: 300% 0; } }
.listing-title { margin-top: 5px; font-size: 12px; }
.menu-title { margin-top: 3px; }

/* Nouveaux légendaires */
.afr-diamond::before { inset: -5px; background: conic-gradient(from 0deg, #f3d9ff, #b45cff, #5512b0, #e6b8ff, #8a2be2, #f3d9ff); animation: afrSpin 2.6s linear infinite; }
.afr-diamond::after { inset: -9px; background: radial-gradient(circle, transparent 54%, rgba(190,110,255,.6) 62%, transparent 72%); animation: legendGlow 1.4s ease-in-out infinite; }
.nm-ice { background-image: linear-gradient(100deg, #7fd7ff 0%, #e8fbff 40%, #ffffff 50%, #bdeeff 60%, #3fa9e6 100%); background-size: 250% 100%; animation: nmShine 2.8s linear infinite; filter: drop-shadow(0 0 4px rgba(120,220,255,.6)); }
.bnr-volcano { background-color: #2a0800; background-image: radial-gradient(60% 50% at 50% 110%, rgba(255,120,0,.95), transparent 70%), linear-gradient(0deg, #ff5a00 0%, #c41e00 18%, transparent 40%),
  radial-gradient(18px 18px at 22% 70%, rgba(255,200,0,.9), transparent), radial-gradient(14px 14px at 70% 76%, rgba(255,170,0,.9), transparent),
  linear-gradient(160deg, #3a0d02 0%, #1a0400 100%); background-size: 100% 100%, 100% 200%, 100% 100%, 100% 100%, 100% 100%; animation: lavaFlow 3s ease-in-out infinite alternate; }
@keyframes lavaFlow { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 -30px, 0 -8px, 0 -12px, 0 0; } }
/* Vitrine royale sur le profil */
.vitrine-royal { border-color: #ffb300; background: linear-gradient(180deg, #fff6c8, #ffe07a); box-shadow: 0 0 0 3px rgba(255,200,40,.35), 0 0 24px rgba(255,190,30,.45), var(--shadow); position: relative; overflow: hidden; }
.vitrine-royal::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-18deg); animation: cardShine 4.5s ease-in-out infinite; pointer-events: none; }

/* Administration : Or */
.adm-gold-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.adm-gold-row .field { flex: 1 1 180px; margin: 0; }
.adm-gold-row .btn { flex: none; }
@media (prefers-reduced-motion: reduce) { .scard, .scard::after, .shop-sign, .sign-coin, .ticket-art, .rare-card, .r-legend .scard-art { animation: none !important; } }
/* v28 — retouches */
.scard-row { grid-template-columns: repeat(3, minmax(0, 210px)); justify-content: center; }
.pop-stamp { white-space: nowrap; font-size: 21px; }
.scard-price s { text-shadow: none; color: #3a4486; opacity: 1; font-family: var(--body, inherit); font-weight: 800; }
@media (max-width: 640px) { .scard-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vit-panel { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: #fff8dc; border: 2px dashed #f0c64a; }
.vit-slots { display: flex; gap: 8px; }
.vit-slot { width: 76px; height: 76px; border-radius: 12px; background: #fff; border: 2px solid #f0c64a; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 4px; color: #4a2c00; }
.vit-slot img { width: 100%; height: 46px; object-fit: contain; }
.vit-slot small { font-size: 9.5px; line-height: 1.1; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vit-slot.is-empty span { font-size: 26px; color: #c98a00; font-weight: 800; }
.vit-acts { display: flex; flex-direction: column; gap: 6px; }
.vit-acts .btn-cr { min-height: 40px; padding: 0 14px; font-size: 15px; }
.vit-see { font-size: 13px; font-weight: 700; }
.perso { grid-template-columns: 168px minmax(0, 1fr); }
.cat-n { background: rgba(0,0,0,.28); color: inherit; }
.gtab { white-space: nowrap; }
@media (max-width: 640px) {
  .perso { grid-template-columns: 74px minmax(0, 1fr); }
  .vit-panel { flex-direction: column; align-items: stretch; }
  .vit-slots { justify-content: center; }
  .vit-slot { width: 30%; max-width: 76px; }
  .cat-n { background: #ffc928; color: #3a1d00; }
}
@media (max-width: 520px) { .gtab { font-size: 13.5px; gap: 4px; } .gtab-ic { display: none; } }
.adm-gold-row select { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line-2, #d5d9ea); background: var(--surface, #fff); font: inherit; font-weight: 600; color: inherit; }
.adm-gold-row { align-items: flex-end; }

/* =========================================================
   v29 — retouches Magasin / profil
   ========================================================= */
/* Pseudo en haut à droite : tronqué pour ne jamais pousser la pastille */
.profile-name { max-width: 110px; }
/* « Amis » : zone cliquable aussi large que les autres liens */
#nav-amis { min-width: 78px; justify-content: center; }
/* Enseigne centrée */
.shop-top { flex-direction: column; justify-content: center; align-items: center; gap: 14px; }
.shop-bricks { right: 6%; }
/* −20 % dans l'image (ne cache plus le nom) */
.scard-art .scard-deal { top: 0; left: 0; border-radius: 0 0 10px 0; font-size: 11.5px; padding: 2px 7px 3px 6px; }
@media (max-width: 640px) { .scard-art .scard-deal { font-size: 10px; padding: 1px 5px 2px 4px; } }
/* Grille de 6 cases : une ligne sur PC, 3 lignes de 2 sur téléphone (taille fixe) */
.perso-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.scard-ghost { visibility: visible; cursor: default; background: rgba(10,6,40,.18); border: 2px dashed rgba(255,255,255,.18); box-shadow: none; animation: none; }
.scard-ghost::after { display: none; }
@media (max-width: 900px) { .perso-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .perso-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 901px) { .perso .scard-name { font-size: 14px; } .perso .scard-price { font-size: 19px; } }
/* Fenêtre de détail : pseudo et titre en entier */
.pop-art { width: 100%; }
.pop-art .shop-nm.is-big { max-width: 100%; font-size: clamp(22px, 6.5vw, 36px); white-space: normal; overflow-wrap: anywhere; text-align: center; padding: 0 8px; }
.pop-art .shop-tt { max-width: 100%; padding: 0 8px; }
.pop-art .shop-tt-name { white-space: normal; overflow-wrap: anywhere; text-align: center; }
.pop-art .u-title { max-width: none; }
.pop-art .u-title > span { overflow: visible; text-overflow: clip; }
/* Vitrine du profil : photos entières */
.vitrine-img { display: flex; align-items: center; justify-content: center; padding: 6px; }
.vitrine-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
button.vitrine-empty { width: 100%; font: inherit; cursor: pointer; }
button.vitrine-edit { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; }
.scard-ghost > * { visibility: hidden; }

/* =========================================================
   v31 — pastille plus petite, Arène sur PC, couleurs
   ========================================================= */
/* Pseudo toujours visible sur PC (la barre se resserre d'abord ailleurs) */
@media (min-width: 761px) { .profile-name { display: inline-block; } }
/* Pastille d'Or : plus petite, aux couleurs du site (bleu nuit + jaune) */
.wallet { width: 92px; height: 34px; padding: 0 8px 0 28px; font-size: 16px; margin-left: 10px;
  background: linear-gradient(180deg, #2a3170 0%, #1c2252 100%); border: 2px solid var(--yellow, #FFC72C);
  box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.wallet:hover, .wallet:focus-visible { transform: translateY(-1px); filter: brightness(1.12); }
.wallet.is-active { box-shadow: 0 0 0 3px rgba(255,199,44,.35), 0 2px 0 rgba(0,0,0,.35); }
.wallet-coin { width: 32px; height: 32px; margin-top: -16px; left: -8px; }
.wallet-coin::after { font-size: 14px; }
.wallet-shine::before { background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); }
.wallet .spark { display: none; }
.wallet-amount[data-len="3"] { font-size: 15.5px; }
.wallet-amount[data-len="4"] { font-size: 14.5px; }
.wallet-amount[data-len="5"] { font-size: 13px; }
.wallet-amount[data-len="6"], .wallet-amount[data-len="7"] { font-size: 12px; }
@media (max-width: 760px) {
  .wallet { width: 80px; height: 30px; padding: 0 6px 0 24px; font-size: 14.5px; margin-left: auto; }
  .wallet-coin { width: 28px; height: 28px; margin-top: -14px; left: -7px; }
  .wallet-coin::after { font-size: 12px; }
  .wallet-amount[data-len="4"] { font-size: 13px; }
  .wallet-amount[data-len="5"] { font-size: 11.5px; }
  .wallet-amount[data-len="6"], .wallet-amount[data-len="7"] { font-size: 11px; }
}
@media (max-width: 380px) { .wallet { width: 76px; padding: 0 5px 0 23px; } }

/* Arène : « Votre Or » à côté des onglets (Magasin / Inventaire) ; sur PC plus d'enseigne en bois */
.arena-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.arena-top .games-tabs { flex: 0 1 auto; }
.arena-gold { margin-left: 6px; }
.arena-gold[hidden] { display: none; }
@media (min-width: 761px) {
  .games-tabs.tabs3 { min-width: 470px; }
  .shop-pane .shop-top { display: none; }
}
@media (max-width: 760px) {
  .arena-top { display: block; }
  .arena-gold { display: none !important; }
}

/* Inventaire : sections plus sombres */
.quilt-dark { background-color: #191b3d; }
.quilt-slate { background-color: #1b3346; }
.quilt-dark .look-card { background: linear-gradient(135deg, #0f1230, #22285a); }

/* Boutons de catégories (gauche) : plus de jaune doré */
.cat-btn.is-on { background: linear-gradient(180deg, #ffffff 0%, #e6e9ff 100%); border-color: #fff; color: #1c2252; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.cat-btn.is-on .cat-ic { background: #1c2252; color: #fff; }
.cat-btn.is-on .cat-n { background: #1c2252; color: #fff; }

/* =========================================================
   v32 — mode « pour le fun » après les parties du jour
   ========================================================= */
.gtile.is-fun { cursor: pointer; filter: saturate(.6) brightness(.92); }
.gtile.is-fun:hover { filter: none; transform: translateY(-3px); }

.gs-step.gs-fun { color: #9dffbf; border-color: rgba(157,255,191,.45); }
.fun-note { display: inline-block; padding: 6px 12px; border-radius: 12px; background: rgba(60,207,116,.18); border: 1px solid rgba(157,255,191,.4); color: #d9ffe6; }
.fun-sub { margin: 4px 0 6px; text-align: center; color: #e6e0ff; font-weight: 600; }
.fun-sub b { color: #ffe066; }
.gs-foot-fun { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gs-foot-fun .btn-cr { min-width: 130px; }

/* =========================================================
   v33 — « Jouer quand même ? » sombre et animé, pastille, sons
   ========================================================= */
.gtile-cta.is-fun, .btn-cr-night {
  color: #fff; border-color: #0a0c26;
  background: linear-gradient(110deg, #0f1235 0%, #262b6e 30%, #5236c9 50%, #262b6e 70%, #0f1235 100%);
  background-size: 300% 100%;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 1px 1px 0 #0a0c26, -1px 1px 0 #0a0c26, 1px -1px 0 #0a0c26, -1px -1px 0 #0a0c26;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -4px 0 rgba(0,0,0,.35), 0 5px 0 #06071a, 0 0 0 2px rgba(150,130,255,.35), 0 0 18px rgba(110,80,255,.45);
  animation: nightFlow 4s linear infinite, nightGlow 2.2s ease-in-out infinite;
}
@keyframes nightFlow { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@keyframes nightGlow {
  0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -4px 0 rgba(0,0,0,.35), 0 5px 0 #06071a, 0 0 0 2px rgba(150,130,255,.3), 0 0 10px rgba(110,80,255,.3); }
  50% { box-shadow: inset 0 2px 0 rgba(255,255,255,.22), inset 0 -4px 0 rgba(0,0,0,.35), 0 5px 0 #06071a, 0 0 0 2px rgba(190,170,255,.75), 0 0 26px rgba(130,100,255,.75); }
}
.gtile.is-fun .gtile-cta.is-fun { font-size: 18px; }
.next-left { color: #ffe066; font-variant-numeric: tabular-nums; }
.fun-note .next-left { color: #ffe066; }
.gs-step.gs-fun { color: #c9bcff; border-color: rgba(190,170,255,.5); }
.fun-note { background: rgba(82,54,201,.25); border-color: rgba(190,170,255,.45); color: #e6e0ff; }
@media (prefers-reduced-motion: reduce) { .gtile-cta.is-fun, .btn-cr-night { animation: none; } }

/* Pastille : la pièce étoilée est dans la pastille */
.wallet { padding-left: 33px; overflow: hidden; }
.wallet-coin { left: 3px; width: 26px; height: 26px; margin-top: -13px; border-width: 1.5px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -2px 0 rgba(150,80,0,.35); }
.wallet-coin::after { font-size: 13px; }
@media (max-width: 760px) {
  .wallet { padding-left: 29px; }
  .wallet-coin { left: 3px; width: 22px; height: 22px; margin-top: -11px; }
  .wallet-coin::after { font-size: 11px; }
}

/* Bouton son de l'Arène */
.sound-btn { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: rgba(10,6,40,.45); border: 2px solid rgba(255,255,255,.3); transition: background .2s, transform .15s; }
.sound-btn:hover { background: rgba(255,255,255,.18); }
.sound-btn:active { transform: scale(.92); }
.sound-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn svg path:first-child { fill: currentColor; }
.sound-btn[aria-pressed="false"] { color: #ff9d9d; }
.reauth-btn { margin-left: 6px; vertical-align: middle; }
.adm-sub { margin: 18px 0 0; font-size: 16px; }
.adm-qty { flex: 0 1 110px !important; }

/* =========================================================
   v40 — Saisons, En ligne, Duels
   ========================================================= */
/* Saison du mois */
.quilt-season { background-color: #7a3a10; }
.ribbon-season { background: #4a1d00; }
.ribbon-season::before { background: linear-gradient(180deg, #ffd08a 0%, #ff9a3c 50%, #f47b12 52%, #d65f00 100%); }
.ribbon-season span { text-shadow: 0 3px 0 #4a1d00, 2px 0 0 #4a1d00, -2px 0 0 #4a1d00, 0 -2px 0 #4a1d00, 2px 2px 0 #4a1d00, -2px 2px 0 #4a1d00; }
.season-row { display: grid; grid-template-columns: repeat(4, minmax(0, 190px)); gap: 10px; justify-content: center; }
.season-note { margin: 10px 0 0; text-align: center; color: #ffe2c2; font-size: 13px; font-weight: 600; }
.r-season .scard-rar, .pop-item.r-season .pop-rar { color: #ffb15c; }
.r-season .scard-art { border-color: #ff9a3c; background: radial-gradient(circle at 50% 35%, #6b3a1a, #2a1408 75%); }
@media (max-width: 640px) { .season-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.ut-season { color: #1a1030; }
/* En ligne */
.online-dot { position: absolute; z-index: 3; top: 8px; left: 8px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2.5px solid var(--surface, #fff); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: onlinePulse 2s ease-out infinite; }
.online-dot[hidden] { display: none; }
@keyframes onlinePulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.presence { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.presence[hidden] { display: none; }
.online-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #15803d; background: #dcfce7; border: 1px solid #86efac; white-space: nowrap; }
.online-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: onlinePulse 2s ease-out infinite; }
.btn-duel { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13.5px; color: #fff; white-space: nowrap;
  border: 2px solid #0a0c26; background: linear-gradient(110deg, #262b6e, #5236c9, #262b6e); background-size: 200% 100%; animation: nightFlow 4s linear infinite; box-shadow: 0 3px 0 #06071a; }
.btn-duel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-duel:active { transform: translateY(2px); box-shadow: 0 1px 0 #06071a; }
/* « En ligne » à côté du pseudo, « Défier » à gauche de « Voir ses listes » (la carte garde sa mise en page) */
.fi-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fi-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-top .online-pill { flex: none; padding: 1px 7px; font-size: 11px; gap: 4px; }
.fi-top .online-pill i { width: 6px; height: 6px; }
.online-pill[hidden], .btn-duel[hidden] { display: none !important; }
/* Carte ami (v41) : cartes plus larges sur PC pour que tout tienne sur UNE ligne comme avant :
   [avatar · pseudo + En ligne · compteurs] [Défier] [Voir ses listes] [×] */
.fi-top strong { flex: 0 1 auto; min-width: 2.5em; }
@media (min-width: 761px) {
  #friend-cards { grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); }
  #friend-cards .friend-card { flex-wrap: nowrap; }
  #friend-cards .fc-link { flex: 1 1 auto; min-width: 0; }
  .friend-card .btn-duel { flex: none; min-height: 40px; }
}
/* Mobile : ligne 1 = ami + croix ; ligne 2 = [Voir ses listes][Défier] */
@media (max-width: 760px) {
  #friend-cards .fc-link { flex: 1 1 calc(100% - 70px); min-width: 0; }
  #friend-cards .friend-card .btn { order: 3; flex: 1 1 0; }
  #friend-cards .friend-card .btn-duel { order: 4; flex: none; min-height: 44px; padding: 0 16px; }
  .follower-actions .btn-duel { flex: none; min-height: 40px; }
}
/* Duels */
.duel-card .game-body { gap: 12px; }
.duel-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; overflow: hidden; padding: 4px 0; }
.duel-head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.duel-head .avatar-sm { width: 46px; height: 46px; font-size: 18px; }
.duel-vs { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.duel-vs b { font-family: var(--display); font-size: 22px; color: #ffe066; text-shadow: 0 2px 0 var(--cr-outline); }
.duel-vs small { color: #d9d2ff; font-size: 12px; }
.duel-sword svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: swordPulse 1.4s ease-in-out infinite; }
@keyframes swordPulse { 50% { transform: scale(1.15) rotate(-6deg); } }
.duel-title { margin: 0; font-size: 30px; }
.duel-rules { margin: 0; color: #e6e0ff; font-size: 14px; max-width: 360px; }
.duel-rules b { color: #ffe066; }
.duel-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.duel-acts .btn-cr { min-width: 130px; }
.duel-exp { margin: 0; color: #cfc8ff; font-size: 13px; }
.duel-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; }
.duel-wait p { margin: 0; }
.duel-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: #ffd84a; animation: raysSpin .9s linear infinite; }
.duel-score { text-align: center; color: #e6e0ff; font-weight: 700; }
.duel-score b { color: #ffe066; font-size: 18px; }
.duel-word { font-size: 48px; position: relative; }
.duel-scores { position: relative; display: flex; align-items: center; gap: 16px; color: #fff; }
.duel-scores > span { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.duel-scores small { color: #cfc8ff; }
.duel-scores b { font-family: var(--display); font-size: 40px; line-height: 1; }
.duel-scores i { font-style: normal; color: #9b93d6; font-size: 24px; }
.duel-gold { position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 26px; color: #ffe066; }
.duel-result.is-lose .duel-gold { color: #ffb4b4; }
.duel-gold .coin-ic { width: 26px; height: 26px; }
.look-bnr { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.look-card.has-bnr::before { z-index: 0; }

/* v41 — duels mélangés */
.duel-kind{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em;background:rgba(255,255,255,.12);vertical-align:middle}
.duel-kind-price{background:#2f7d32;color:#fff}
.duel-kind-photo{background:#1f5fa8;color:#fff}
.duel-kind-mystery{background:#7a3db8;color:#fff}

/* v42 — point vert « en ligne » à côté du pseudo (page Les listes de …) */
.listing-online { display: inline-block; width: 13px; height: 13px; margin-left: 10px; border-radius: 50%; background: #22c55e; vertical-align: middle; position: relative; top: -2px; box-shadow: 0 0 0 3px rgba(255,255,255,.85); animation: onlinePulse 2s ease-out infinite; }
.listing-online[hidden] { display: none; }

/* =========================================================
   v43
   ========================================================= */
/* Mes Défis : nouvelle police (titre, accroche, onglets) */
@font-face { font-family: 'Heroes Legend'; src: url('/fonts/heroes-legend.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --game-font: 'Heroes Legend', 'Bricolage Grotesque', system-ui, sans-serif; }
.games-title, .gtab { font-family: var(--game-font); font-weight: 400; letter-spacing: .01em; }
.games-title { letter-spacing: .03em; }
/* Ton Or + Nouvelles parties : côte à côte sur téléphone, l'un sur l'autre sur PC (comme avant) */
@media (max-width: 899px) {
  .games-stats { flex-direction: row; flex-wrap: nowrap; justify-content: center; }
  .games-stats .gstat { flex: 1 1 0; min-width: 0; }
}
/* Téléphone : bandeau compact (sans l'accroche ni le texte) */
@media (max-width: 899px) {
  .games-hero .games-tagline, .games-hero .games-sub { display: none; }
  .games-hero { padding: 16px 12px 14px; }
  .games-title { font-size: 34px; }
  .games-hero-in { gap: 6px; }
  .games-stats { gap: 8px; margin-top: 4px; }
  .games-stats .gstat { padding: 7px 10px 7px 8px; gap: 8px; }
  .games-stats .gstat small { font-size: 11px; }
  .games-stats .gstat b { font-size: 17px; }
  .games-stats .gstat-coin, .games-stats .gstat-clock { width: 28px; height: 28px; }
}
/* Les listes de … : « sets possédés » et « sets souhaités » alignés, bulles de prix alignées */
.listing-sub .sub-row { display: inline-flex; align-items: center; gap: 8px; }
.listing-sub .sub-row > span { display: inline-block; }
.listing-sub .sub-txt { min-width: 8.6em; }
/* « Défie un ami » (en 1er dans Défis du jour) */
.duel-hub { margin-top: 16px; padding: 16px 18px; border-radius: 20px; color: #fff; border: 3px solid #0a0c26;
  background: radial-gradient(120% 140% at 0% 0%, #5a3df0 0%, #2b2a8f 45%, #17184f 100%); box-shadow: 0 6px 0 #06071a, 0 14px 30px rgba(20,16,80,.25); }
.dh-head { display: flex; align-items: center; gap: 14px; }
.dh-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe066, #ffb81f); border: 2px solid #4a2300; color: #3a1a05; box-shadow: 0 3px 0 #2a1200; }
.dh-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.dh-head h2 { margin: 0; font-family: var(--game-font); font-weight: 400; font-size: 24px; letter-spacing: .02em; text-shadow: 0 2px 0 #0a0c26; }
.dh-head p { margin: 2px 0 0; color: #d9d2ff; font-size: 14px; }
.dh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; margin-top: 14px; }
.dh-friend { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); min-width: 0; }
.dh-friend[hidden], .dh-empty[hidden] { display: none; }
.dh-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.dh-name { min-width: 0; display: flex; flex-direction: column; }
.dh-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-name small { display: inline-flex; align-items: center; gap: 5px; color: #86efac; font-size: 12px; font-weight: 700; }
.dh-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.dh-friend .btn-duel { flex: none; min-height: 38px; border-color: #4a2300; color: #3a1a05; background: linear-gradient(180deg, #ffe98a, #ffc928 55%, #f0a500); box-shadow: 0 3px 0 #2a1200; animation: none; }
.dh-empty { grid-column: 1 / -1; color: #d9d2ff; font-size: 14px; padding: 6px 2px; }
.dh-empty a { color: #ffe066; font-weight: 700; }
/* Choix du défi */
.duel-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.duel-mode { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 16px; cursor: pointer; font: inherit; color: #fff; border: 3px solid #0a0c26; box-shadow: 0 5px 0 #06071a; transition: transform .12s; }
.duel-mode:active:not([disabled]) { transform: translateY(3px); box-shadow: 0 2px 0 #06071a; }
.duel-mode .dm-top { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.duel-mode .dm-top .coin-ic { width: 22px; height: 22px; }
.duel-mode small { font-size: 12.5px; opacity: .9; }
.duel-mode.is-bet { background: linear-gradient(180deg, #ffd84a, #f59e0b 60%, #d97706); color: #3a1a05; border-color: #4a2300; }
.duel-mode.is-bet .dm-top { text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.duel-mode.is-simple { background: linear-gradient(180deg, #6d5cff, #4b3bd6 60%, #3524a8); }
.duel-mode[disabled] { opacity: .45; filter: grayscale(.6); cursor: not-allowed; }
.duel-mode.is-loading { animation: pulse 1s ease-in-out infinite; }
.duel-err { margin: 0; min-height: 1em; color: #fecaca; font-weight: 700; font-size: 13.5px; }
.duel-err:empty { display: none; }
.duel-stake-row { display: flex; justify-content: center; }
.duel-stake { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .01em; color: #3a1a05; background: linear-gradient(180deg, #ffe98a, #ffc928); border: 2px solid #4a2300; }
.duel-stake .coin-ic { width: 18px; height: 18px; }
.duel-stake.is-simple { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
@media (max-width: 420px) { .duel-modes { grid-template-columns: 1fr; } }
/* 3… 2… 1… C'EST PARTI ! */
.duel-countdown { min-height: 260px; justify-content: center; }
.duel-cd { font-family: var(--display); font-weight: 800; font-size: 110px; line-height: 1; color: #ffe066; text-shadow: 0 6px 0 #4a2300, 0 0 30px rgba(255,200,40,.5); }
.duel-cd.is-go { font-size: clamp(40px, 11vw, 64px); color: #86efac; text-shadow: 0 5px 0 #0a4a22, 0 0 30px rgba(34,197,94,.5); text-align: center; }
.duel-cd.pop { animation: cdPop .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cdPop { 0% { transform: scale(2.2); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 50% { opacity: .6; } }
/* Catalogue : « Dernières sorties » (ligne qui glisse) + défilement infini */
.latest { margin: 4px 0 6px; min-width: 0; }
.latest[hidden] { display: none; }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.latest-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.latest-hint { color: var(--muted); font-size: 13px; font-weight: 700; }
.latest-row { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.latest-row > .card { flex: 0 0 clamp(200px, 26vw, 240px); scroll-snap-align: start; }
@media (max-width: 760px) { .latest-row > .card { flex-basis: 72vw; max-width: 260px; } .latest-row { gap: 12px; } }
.cat-sentinel { height: 1px; }
/* Visiteur sans compte */
.guest-login { margin-left: auto; min-height: 40px; padding: 0 16px; white-space: nowrap; }
.guest-login[hidden] { display: none; }
body.is-guest .count { display: none; }
.login-card { max-width: 420px; }
.login-pop, .login-gate { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.login-pop h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; }
.login-pop p { margin: 0; color: #e6e0ff; font-size: 15px; }
.login-pop-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow, #ffcf2e); color: #1a1a3a; }
.login-pop-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.login-choices { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 6px; }
.login-gate .page-sub { margin: 0 0 4px; }

/* Piège à robots du formulaire d'inscription (hors écran, jamais visible) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* =========================================================
   Mode sombre (Paramètres → Mode sombre)
   ========================================================= */
html.dark {
  color-scheme: dark;
  --bg: #0B0E22;
  --surface: #161A35;
  --surface-2: #1C2142;
  --ink: #EEF0FA;
  --ink-2: #CDD2EC;
  --muted: #9CA3C8;
  --line: #2A3060;
  --line-2: #3B4275;
  --chip: #252B55;
  --blue: #7AA2FF;
  --red-soft: #3A1620;
  --green: #4ADE80;
  --green-soft: #12301F;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.35);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 14px 32px rgba(0,0,0,.5);
}
html.theme-switching * { transition: background-color .35s, color .35s, border-color .35s !important; }
html.dark body { background-image: radial-gradient(circle at 12px 12px, rgba(255,255,255,.035) 5px, transparent 5.5px); }
html.dark a:hover { color: #A9C1FF; }
/* les photos des sets sont sur fond blanc : on garde un cadre clair et doux */
html.dark .card-media, html.dark .sheet-media, html.dark .row-media { background: #E9ECF5; }
html.dark .card-tag { background: rgba(11,14,34,.85); color: #fff; }
html.dark .select, html.dark .search, html.dark .search input, html.dark .field input, html.dark textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
html.dark .search input::placeholder, html.dark .field input::placeholder { color: #7B83AD; }
html.dark .btn-google { background: #fff; color: #1F1F1F; }
html.dark .vis-badge.amis, html.dark .vis-opt.is-on span { background: var(--surface-2); color: var(--ink); }
html.dark .banner.warn, html.dark .access-cta.pending, html.dark .readonly { background: #33280A; color: #FFE7A3; border-color: #8A6A10; }
html.dark .banner.info, html.dark .notif-link.is-new { background: #17264A; color: #C9D8FF; border-color: #2D4A8A; }
html.dark .vis-badge.wait, html.dark .pending-chip { background: #3A2C0B; color: #FFD98A; }
html.dark .vis-badge.friend { background: #1E2B55; color: #A9C1FF; }
html.dark .remember-box { background: var(--surface-2); }
html.dark .skeleton { background: linear-gradient(90deg, #1A1F3D 0%, #232A52 50%, #1A1F3D 100%); background-size: 200% 100%; }
html.dark .empty { color: var(--muted); }
html.dark .page-title, html.dark h1, html.dark h2 { color: var(--ink); }
html.dark .footer-note { color: var(--muted); }
html.dark .toast { background: #EEF0FA; color: #12172E; }

.community-top.no-vis { grid-template-columns: 1fr; grid-template-areas: "hero" "filters"; }
@media (max-width: 760px) {
  .latest-row > .card { flex-basis: 56vw; max-width: 230px; }
  .latest-row .card-actions .btn { font-size: 14px; }
  .guest-login { min-height: 38px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 899px) { .games-stats { width: 100%; } .games-stats .gstat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* Titres dans le Magasin / l'Inventaire : toujours tronqués (…) dans la carte, jamais débordants */
.scard .shop-tt, .look-card .shop-tt { width: 92%; min-width: 0; }
.shop-tt .u-title { max-width: 100%; min-width: 0; }
.shop-tt .u-title > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard-art { min-width: 0; overflow: hidden; }
/* Mode sombre : le texte posé sur du jaune reste foncé */
html.dark .mainnav a.is-active, html.dark .code-big, html.dark .vis-badge.me, html.dark .badge.admin, html.dark .tsel-opt.is-on, html.dark #avatar, html.dark #menu-avatar { color: #12172E; }
html.dark .mainnav a.is-active .count { background: #12172E; color: #fff; }
/* v44 — Défie un ami : tous les amis (hors ligne grisés), pastille verte, recherche si beaucoup d'amis */
.dh-tools { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dh-tools[hidden] { display: none; }
.dh-search { flex: 1 1 220px; max-width: 320px; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 40px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.dh-search svg { width: 17px; height: 17px; fill: none; stroke: #d9d2ff; stroke-width: 2.2; flex: none; }
.dh-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; outline: none; font-size: 14px; }
.dh-search input::placeholder { color: #b9b2e8; }
.dh-count { color: #d9d2ff; font-size: 13px; font-weight: 700; }
.dh-av { position: relative; flex: none; display: inline-flex; }
.dh-pip { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2.5px solid #2b2a8f; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: onlinePulse 2s ease-out infinite; }
.dh-friend.is-off { opacity: .5; filter: grayscale(.85); }
.dh-friend.is-off .dh-name small { color: #b9b2e8; }
.dh-name small { gap: 0 !important; }
.dh-off-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 10px; font-weight: 800; font-size: 13.5px; color: #c9c3ee; border: 2px dashed rgba(255,255,255,.3); cursor: not-allowed; }
.dh-off-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dh-more { grid-column: 1 / -1; justify-self: center; margin-top: 4px; min-height: 38px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-weight: 800; cursor: pointer; }
.dh-more:hover { background: rgba(255,255,255,.16); }
.dh-dot { display: none; }
/* Mode maintenance */
.maint-ribbon { display: none; }
body.maint-admin .maint-ribbon { display: block; position: sticky; top: 0; z-index: 70; padding: 7px 14px; text-align: center; font-weight: 800; font-size: 13.5px; color: #3a1a05; text-decoration: none;
  background: repeating-linear-gradient(135deg, #ffd84a 0 18px, #ffc928 18px 36px); border-bottom: 2px solid #4a2300; }
body.is-maint { padding-bottom: 0; }
.maint-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.maint-card { position: relative; overflow: hidden; width: min(520px, 100%); padding: 40px 28px 30px; border-radius: 26px; text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 50% 0%, #4b3bd6 0%, #1F2758 55%, #13183A 100%); border: 3px solid #0a0c26; box-shadow: 0 8px 0 #06071a, 0 24px 60px rgba(0,0,0,.35); }
.maint-card h1 { margin: 14px 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 7vw, 38px); }
.maint-card p { margin: 0 auto 10px; max-width: 420px; color: #e6e0ff; font-size: 16px; line-height: 1.5; }
.maint-card .maint-small { color: #b9b2e8; font-size: 13.5px; }
.maint-mark { display: inline-flex; transform: scale(1.8); margin-top: 6px; }
.maint-bricks { position: absolute; inset: auto 0 -6px 0; height: 26px; display: flex; justify-content: center; gap: 10px; opacity: .55; }
.maint-bricks i { width: 54px; height: 22px; border-radius: 5px; background: #D7262E; animation: maintHop 1.6s ease-in-out infinite; }
.maint-bricks i:nth-child(2) { background: #FFC72C; animation-delay: .2s; }
.maint-bricks i:nth-child(3) { background: #2B63D9; animation-delay: .4s; }
@keyframes maintHop { 50% { transform: translateY(-8px); } }
.maint-admin-link { display: inline-block; margin-top: 8px; color: #b9b2e8; font-size: 13px; }
.maint-panel textarea { width: 100%; min-height: 64px; padding: 10px 14px; border: 2px solid var(--line-2); border-radius: 12px; font: inherit; background: var(--surface); color: var(--ink); resize: vertical; }

/* Police « Heroes Legend » (Mes Défis, onglets, Défie un ami) : très large, tailles adaptées */
.games-tabs .gtab { font-size: 13.5px; letter-spacing: 0; gap: 6px; }
.games-title { font-size: clamp(30px, 7vw, 46px) !important; line-height: 1.05; padding-right: 44px; }
.dh-head h2 { font-size: 21px; letter-spacing: .01em; }
@media (min-width: 900px) { .games-tabs { max-width: 600px; } .games-tabs .gtab { font-size: 15px; } }
@media (max-width: 520px) { .games-tabs .gtab { font-size: 10.5px; } .games-title { padding-right: 40px; } .dh-head h2 { font-size: 17px; } }
@media (max-width: 380px) { .games-tabs .gtab { font-size: 9.5px; } }
@media (max-width: 520px) { .games-tabs .gtab { font-size: 10px; letter-spacing: -.01em; gap: 2px; padding: 0 4px; } }
body.maint-admin .maint-ribbon { position: fixed; top: auto; left: 12px; right: auto; bottom: calc(var(--tabbar-h, 0px) + 12px); z-index: 80; max-width: calc(100vw - 24px);
  padding: 8px 14px; border-radius: 999px; border: 2px solid #4a2300; box-shadow: 0 6px 18px rgba(0,0,0,.25); font-size: 12.5px; }

/* v45 */
/* Communauté : badge « Ami » en bas à gauche de la carte (sous la photo), sans ajouter de ligne */
.member-card .mc-ami { position: absolute; left: 14px; bottom: 7px; width: 52px; justify-content: center; padding: 2px 0; font-size: 11px; z-index: 2; }
/* Onglets Défis du jour / Magasin / Inventaire : de nouveau la première police (Lilita One) */
.games-tabs .gtab { font-family: 'Lilita One', 'Bricolage Grotesque', system-ui, sans-serif !important; font-weight: 400; font-size: 17px; letter-spacing: .02em; padding: 0 6px; gap: 6px; }
@media (min-width: 900px) { .games-tabs { max-width: 520px; } .games-tabs .gtab { font-size: 17px; } }
@media (max-width: 760px) { .games-tabs .gtab { font-size: 15px; letter-spacing: .01em; } }
@media (max-width: 520px) { .games-tabs .gtab { font-size: 14px; letter-spacing: 0; gap: 4px; padding: 0 4px; } }
@media (max-width: 380px) { .games-tabs .gtab { font-size: 13px; } }
/* « MES DÉFIS » plus petit */
.games-title { font-size: clamp(24px, 5.2vw, 36px) !important; }
/* Résultat du duel : la photo de chacun sous son score */
.duel-scores > span { gap: 4px; }
.duel-sc-ava { width: 38px !important; height: 38px !important; font-size: 15px; margin-top: 4px; }
.duel-scores .afr { margin-top: 4px; }
/* Dernières sorties : glisser à la souris */
@media (hover: hover) and (pointer: fine) { .latest-row { cursor: grab; } }
.latest-row.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.latest-row.is-dragging * { pointer-events: none; }
.member-card:has(.mc-ami) .member-ava { transform: translateY(-10px); }

/* =========================================================
   v46
   ========================================================= */
/* Onglets Défis du jour / Magasin / Inventaire : même police que « Devine le prix » / « Quiz photo » */
.games-tabs .gtab { font-family: var(--display) !important; font-weight: 800; letter-spacing: 0; }
/* « MES DÉFIS » plus petit et plus éloigné du bord */
.games-title { font-size: clamp(20px, 4vw, 30px) !important; }
.games-hero { padding-left: 26px; padding-right: 26px; }
@media (min-width: 900px) { .games-hero { padding: 30px 40px; } }
@media (max-width: 899px) { .games-hero { padding: 18px 18px 16px; } .games-title { padding: 0 44px; } }
/* Fenêtre « tous mes amis » : liste qu'on fait défiler */
.dh-pop { display: flex; flex-direction: column; gap: 10px; width: 100%; color: #fff; }
.dh-pop-title { margin: 0; text-align: center; font-family: var(--game-font); font-weight: 400; font-size: 22px; text-shadow: 0 2px 0 #0a0c26; }
.dh-pop-search { max-width: none; }
.dh-pop .dh-count { margin: 0; text-align: center; }
.dh-pop-list { display: flex; flex-direction: column; gap: 8px; max-height: min(56vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.dh-pop-card { max-width: 460px; }
/* Ma collection / Mes souhaits : courbe de la valeur */
.stat-chart { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-chart .line-chart { width: 100%; height: 56px; }
.chart-cap, .chart-empty { color: var(--muted); font-size: 12px; }
.line-chart { display: block; overflow: visible; }
.line-chart .ch-line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .ch-area { fill: rgba(215,38,46,.10); stroke: none; }
.line-chart .ch-dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.line-chart .ch-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.line-chart .ch-lbl { fill: var(--muted); font-size: 11px; font-family: var(--body); }
/* Flèche de tendance du prix (catalogue, fiche) */
.trend { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; vertical-align: -2px; }
.trend svg { width: 10px; height: 10px; fill: currentColor; }
.trend.is-down { color: #fff; background: #16a34a; }
.trend.is-up { color: #fff; background: #dc2626; }
.trend-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 4px; border-radius: 999px; font-size: 12.5px; font-weight: 800; vertical-align: 2px; }
.trend-chip.is-down { background: #dcfce7; color: #166534; }
.trend-chip.is-up { background: #fee2e2; color: #991b1b; }
/* Fiche d'un set : la fenêtre reste fixe, on fait défiler à l'intérieur */
.sheet { max-height: min(92vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
body:has(#set-dialog[open]) { overflow: hidden; }
.sheet-prices { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 4px; }
@media (max-width: 760px) { .sheet-prices { grid-template-columns: 1fr; } }
.sp-block { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface-2); }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sp-head h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 18px; }
.sp-head small { color: var(--muted); font-size: 12.5px; }
.sp-now { font-family: var(--display); font-weight: 800; font-size: 20px; }
.sp-chart .line-chart { width: 100%; height: auto; }
.offers { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.offer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.offer:hover { border-color: var(--ink-2); color: var(--ink); transform: translateY(-1px); }
.offer.is-best { border: 2px solid #16a34a; background: linear-gradient(90deg, rgba(22,163,74,.08), transparent 60%); }
.offer.is-out { opacity: .6; }
.offer-shop { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.offer-shop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-shop small { color: var(--muted); font-size: 12.5px; }
.offer-badge { flex: none; padding: 2px 8px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 800; }
.offer-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.offer-price b { font-family: var(--display); font-size: 17px; }
.offer-price small { color: var(--muted); font-size: 11px; }
.offer-go { flex: none; font-size: 22px; color: var(--muted); }
.offer.is-link { border-style: dashed; }
.sp-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.chart-empty { margin: 8px 0; }
html.dark .trend-chip.is-down { background: #12301f; color: #86efac; }
html.dark .trend-chip.is-up { background: #3a1620; color: #fca5a5; }

/* Admin : flux marchands */
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.feed-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.feed-row small { color: var(--muted); font-size: 12.5px; }
.feed-row .feed-err { color: var(--red); }
.feed-form { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.feed-ship { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .feed-ship { grid-template-columns: 1fr; } }
.price small.from { margin: 0 4px 0 0; font-size: 11px; color: var(--muted); font-weight: 700; }
.price.is-best-price { color: #15803d; }
html.dark .price.is-best-price { color: #4ade80; }
.sheet-prices { align-items: start; }
.dh-pop .dh-search { flex: none; min-height: 42px; max-width: none; }

/* v47 : légende des courbes de prix */
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }

/* v48 : suivi de prix par lien (admin, dans la fiche) */
.sp-admin { grid-column: 1 / -1; border-style: dashed; border-color: var(--yellow, #ffc72c); }
.watch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.watch-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.watch-row small { color: var(--muted); font-size: 12.5px; }

/* v52 : pied de page + pages Mentions légales / Confidentialité */
.site-foot { max-width: 1240px; margin: 0 auto; padding: 18px 24px 28px; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; font-size: 12.5px; color: var(--muted); text-align: center; }
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-foot a:hover { color: var(--ink, inherit); }
body.is-maint .site-foot { display: none; }
.legal-page { max-width: 760px; }
.legal-page { display: flex; flex-direction: column; gap: 16px; }
.legal-page .panel { flex: none; gap: 8px; padding: 22px 24px; }
.legal-page .panel > * { margin: 0; }
.legal-page h2 { font-family: var(--display); font-size: 20px; margin: 0 0 4px; }
.legal-page h3 { font-size: 16px; margin: 18px 0 6px; }
.legal-page p, .legal-page li { line-height: 1.6; }
.legal-page ul { padding-left: 20px; margin: 6px 0 10px; }
.legal-page .legal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.legal-page .legal-todo { background: #fff4d6; color: #6b4a00; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
html.dark .legal-page .legal-todo { background: #3a2f12; color: #ffd97a; }
.legal-page .legal-updated { color: var(--muted); font-size: 13px; }
.auth-legal { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.auth-legal a { color: inherit; text-decoration: underline; }
/* v52b : la page de connexion doit tenir dans l'écran, sans défilement : pas de pied de page ici */
body.is-authpage .site-foot { display: none; }
/* v52b : connexion / inscription — tout tient dans l'écran, sans défilement */
body.is-authpage { padding-bottom: 0; }
.auth { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.auth-side { min-height: 0; overflow-y: auto; }
@media (min-width: 761px) {
  .auth { flex-wrap: nowrap; }
  .auth-side { align-items: center; padding: 24px; }
  .auth-hero { overflow: hidden; }
}
@media (max-width: 760px) {
  .auth { flex-direction: column; flex-wrap: nowrap; min-height: 0; }
  .auth-hero { flex: none; }
  .auth-side { flex: 1 1 auto; padding: 10px 12px 12px; }
}
.auth-ami { margin: 0; }
.auth-legal { margin: 0; }
/* Palier 1 : espacements resserrés, encart « Nouveau sur BriqueThèque » retiré (l'onglet « Créer un compte » suffit) */
body.auth-fit-1 .auth-opt, body.auth-fit-2 .auth-opt, body.auth-fit-3 .auth-opt { display: none; }
body.auth-fit-1 .auth-card, body.auth-fit-2 .auth-card, body.auth-fit-3 .auth-card { padding: 16px; gap: 10px; }
body.auth-fit-1 .auth-form, body.auth-fit-2 .auth-form, body.auth-fit-3 .auth-form { gap: 10px; }
body.auth-fit-1 .auth-title { font-size: 21px; }
body.auth-fit-1 .field, body.auth-fit-2 .field, body.auth-fit-3 .field { gap: 4px; font-size: 13px; }
body.auth-fit-1 .auth-card .field input, body.auth-fit-2 .auth-card .field input { min-height: 42px; }
body.auth-fit-1 .auth-card .btn-tall, body.auth-fit-2 .auth-card .btn-tall { min-height: 46px; }
body.auth-fit-1 .auth-card .segmented button, body.auth-fit-2 .auth-card .segmented button, body.auth-fit-3 .auth-card .segmented button { min-height: 38px; }
body.auth-fit-1 .auth-card .btn-google, body.auth-fit-2 .auth-card .btn-google, body.auth-fit-3 .auth-card .btn-google { min-height: 42px; }
body.auth-fit-1 .pw-rules, body.auth-fit-2 .pw-rules, body.auth-fit-3 .pw-rules { margin-top: -4px; font-size: 12px; gap: 2px 10px; }
/* Palier 2 : sans titre (les onglets le disent déjà), bandeau du haut réduit au logo sur téléphone */
body.auth-fit-2 .auth-title, body.auth-fit-3 .auth-title { display: none; }
body.auth-fit-2 .mode-signup .auth-ami, body.auth-fit-3 .mode-signup .auth-ami { display: none; }
@media (max-width: 760px) {
  body.auth-fit-2 .auth-hero .carousel, body.auth-fit-3 .auth-hero .carousel { display: none; }
  body.auth-fit-2 .auth-hero, body.auth-fit-3 .auth-hero { padding: 10px 16px; }
}
/* Palier 3 : très petits écrans */
body.auth-fit-3 .auth-card { padding: 12px; gap: 8px; }
body.auth-fit-3 .auth-form { gap: 8px; }
body.auth-fit-3 .auth-card .field input { min-height: 40px; font-size: 16px; }
body.auth-fit-3 .auth-card .btn-tall { min-height: 42px; }
body.auth-fit-3 .auth-card .remember { font-size: 14px; }
body.auth-fit-3 .auth-card .notice, body.auth-fit-3 .auth-legal { font-size: 12px; }
@media (max-width: 760px) { body.auth-fit-3 .auth-side { padding: 6px 8px 8px; } }
@media (max-width: 760px) { body.auth-fit-3 .auth-hero { padding: 6px 14px; } body.auth-fit-3 .auth-hero .brand-name { font-size: 16px; } }
body.auth-fit-3 .auth-card .or { font-size: 12px; }
