/* ==========================================================================
   LOT 49 — feuille de style unique (v1.4)
   Remplace styles.css, horizon-ui.css, menu-original.css, release-polish.css,
   mobile-landscape.css et mobile-console.css.

   Principe : acier nocturne pour l'interface, papier de lot pour ce qui se
   gagne et se décide (box, révélations, bouton principal), rouge de la faille
   réservé à l'urgence (chrono d'enchère, alertes).
   Conçu d'abord pour le portrait mobile, puis élargi.
   ========================================================================== */

:root {
  --bg: #121821;
  --bg-2: #19212c;
  --bg-3: #202a37;
  --bg-4: #293443;
  --line: #2b3746;
  --line-2: #3a4757;
  --text: #e8ecf1;
  --muted: #9ba7b7;
  --faint: #6f7b8d;

  --paper: #e8ddc2;
  --paper-hover: #f1e8d1;
  --paper-ink: #2b241a;
  --paper-muted: #6c604d;
  --paper-line: #c7b78f;

  --red: #e5484d;
  --red-text: #ff8b8e;
  --good: #4dbf89;
  --warn: #e2a23b;
  --info: #84a9e6;

  --r-common: #a3adbb;
  --r-uncommon: #59c28c;
  --r-rare: #5a9ef0;
  --r-mythic: #ae82f5;
  --r-unique: #f08d3e;
  --r-legendary: #f3cb4a;
  --r-eternal: #ff5c86;

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', 'Barlow', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar: 252px;
  --tab-h: 62px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.has-modal { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; display: block; -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--paper); color: var(--paper-ink); }
strong { font-weight: 600; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* chiffres : condensés et alignés */
.hud-stat strong, .fact strong, .row-value strong, .ticket-price strong, .ticket-stub strong,
.auction-price strong, .prestige-num strong, .progress-card-num strong, .loan-preview strong,
.reveal-value, .public-prestige strong, .offer-card strong, .property footer strong {
  font-family: var(--font-cond);
  font-variant-numeric: tabular-nums;
  letter-spacing: .005em;
}

/* ---------- raretés ---------- */
.rarity-common { --rar: var(--r-common); }
.rarity-uncommon { --rar: var(--r-uncommon); }
.rarity-rare { --rar: var(--r-rare); }
.rarity-mythic { --rar: var(--r-mythic); }
.rarity-unique { --rar: var(--r-unique); }
.rarity-legendary { --rar: var(--r-legendary); }
.rarity-eternal { --rar: var(--r-eternal); }
.rarity-unknown { --rar: var(--faint); }

/* ---------- boutons ---------- */
.primary-btn, .secondary-btn, .ghost-btn, .danger-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; line-height: 1.2;
  white-space: nowrap; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.primary-btn { background: var(--paper); color: var(--paper-ink); }
.primary-btn:hover:not(:disabled) { background: var(--paper-hover); }
.secondary-btn { background: var(--bg-4); border-color: var(--line-2); }
.secondary-btn:hover:not(:disabled) { background: #33404f; }
.ghost-btn { border-color: var(--line-2); color: var(--text); }
.ghost-btn:hover:not(:disabled) { background: var(--bg-3); }
.ghost-btn.is-on { border-color: var(--r-legendary); color: var(--r-legendary); }
.danger-btn { border-color: rgba(229, 72, 77, .55); color: var(--red-text); }
.danger-btn:hover:not(:disabled) { background: rgba(229, 72, 77, .12); }
.primary-btn:disabled, .secondary-btn:disabled, .ghost-btn:disabled, .danger-btn:disabled { opacity: .42; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }
.primary-btn .ic, .secondary-btn .ic { width: 18px; height: 18px; }
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 8px;
  border: 1px solid var(--line-2); color: var(--text); font-size: 20px; line-height: 1;
}
.icon-btn:hover:not(:disabled) { background: var(--bg-3); }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--paper); }

/* ---------- puces, badges, jauges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.chip-accent { background: rgba(232, 221, 194, .12); border-color: rgba(232, 221, 194, .28); color: var(--paper); }
.chip-good { background: rgba(77, 191, 137, .13); border-color: transparent; color: var(--good); }
.chip-warn { background: rgba(226, 162, 59, .14); border-color: transparent; color: var(--warn); }
.chip-bad, .chip-alert { background: rgba(229, 72, 77, .14); border-color: transparent; color: var(--red-text); }
.chip-info { background: rgba(132, 169, 230, .13); border-color: transparent; color: var(--info); }
.chip-rar { color: var(--rar); background: color-mix(in srgb, var(--rar) 13%, transparent); border-color: color-mix(in srgb, var(--rar) 34%, transparent); }
.chip-paper { background: rgba(43, 36, 26, .07); border-color: rgba(43, 36, 26, .2); color: var(--paper-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.nbadge { display: none; }
.nbadge[class*="tone-"] {
  display: inline-grid; place-items: center; flex: none;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font: 700 11.5px/1 var(--font);
}
.nbadge[class*="tone-"]:empty { min-width: 9px; width: 9px; height: 9px; padding: 0; }
.tone-ready { background: var(--good); color: #0b2619; }
.tone-alert { background: var(--red); color: #fff; }
.tone-info { background: var(--bg-4); color: var(--text); border: 1px solid var(--line-2); }
.tone-dot { background: var(--paper); }
.nbadge.tone-dot { min-width: 7px; width: 7px; height: 7px; padding: 0; }

.meter { display: block; height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--muted); transition: width .4s ease; }
.meter-accent > i { background: var(--paper); }
.meter-good > i { background: var(--good); }
.meter-warn > i { background: var(--warn); }
.meter-bad > i { background: var(--red); }
.meter-live > i { background: var(--info); }

.money-in { color: var(--good); }
.money-out { color: var(--red-text); }
.note { color: var(--muted); font-size: 13.5px; margin-top: 10px; max-width: 72ch; }

/* ---------- champs ---------- */
.input {
  width: 100%; min-height: 44px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-3);
  font-size: 15px; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--paper); }
select.input {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba7b7' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
input[type="search"]::-webkit-search-cancel-button { filter: invert(.7); }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field small { font-weight: 500; color: var(--faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-stack { display: grid; gap: 14px; }
.form-error { min-height: 1.2em; color: var(--red-text); font-size: 13.5px; }
.form-error:empty { min-height: 0; }
.address-preview { padding: 12px 14px; border-radius: 8px; background: var(--bg-3); display: grid; gap: 2px; }
.address-preview span { font-size: 12.5px; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
input[type="range"] { width: 100%; accent-color: var(--paper); height: 28px; cursor: pointer; }

.search { position: relative; display: block; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; pointer-events: none; }
.search .input { padding-left: 38px; }

.shop-stepper { display: inline-flex; align-items: stretch; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.shop-stepper-btn { width: 40px; display: grid; place-items: center; font-size: 19px; color: var(--muted); }
.shop-stepper-btn:hover { background: var(--bg-4); color: var(--text); }
.shop-price-input { width: 86px; border: 0; border-inline: 1px solid var(--line-2); background: transparent; text-align: center; font: 600 16px var(--font-cond); font-variant-numeric: tabular-nums; outline: none; }
.shop-price-input:focus { background: var(--bg-4); }
.stepper-field { display: inline-grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   MENU PRINCIPAL — fidèle au menu d'origine
   ========================================================================== */
.main-menu { position: fixed; inset: 0; z-index: 50; overflow: hidden; background: #090b0e; --gold: #d9af63; }
.menu-bg { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2,4,7,.06) 0%, rgba(2,4,7,.04) 57%, rgba(2,4,7,.10) 74%, rgba(2,4,7,.18) 100%),
    linear-gradient(0deg, rgba(2,4,7,.16), transparent 34%),
    url("lot49.webp") center center / cover no-repeat; }
.menu-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 56%, rgba(217,175,99,.04), transparent 22%), linear-gradient(180deg, rgba(0,0,0,.02), transparent 72%, rgba(0,0,0,.18)); }
.menu-content { position: absolute; z-index: 2; right: 6.4vw; top: 42.2vh; width: clamp(300px, 25vw, 380px); }
.menu-logo { display: none; }
.menu-status {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px; padding: 0 2px;
  color: #9299a2; font-size: 11px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase;
}
.menu-status::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #777e87; box-shadow: 0 0 0 4px rgba(119,126,135,.08); }
.menu-status.is-on { color: #b9c8bd; }
.menu-status.is-on::before { background: #77c695; box-shadow: 0 0 0 4px rgba(119,198,149,.10); }
.menu-status.is-off { color: #ba8c8c; }
.menu-status.is-off::before { background: #c26f6f; }
.menu-status.is-loading::before { animation: pulse 1.2s ease-in-out infinite; }
.menu-actions { display: grid; gap: 6px; }
.menu-btn {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  min-height: 50px; padding: 9px 16px 9px 19px;
  border: 1px solid rgba(236,229,216,.09); border-radius: 7px;
  background: rgba(8,10,13,.62); color: #d8d8d4; text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .16s ease, background .16s ease, transform .16s ease, color .16s ease;
}
.menu-btn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(217,175,99,.18); transition: .16s ease; }
.menu-btn > span { font-size: 12.5px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
.menu-btn > small { color: #7d848d; font-size: 10.5px; letter-spacing: .03em; text-align: right; }
.menu-btn:hover:not(:disabled), .menu-btn:focus-visible:not(:disabled) { transform: translateX(5px); border-color: rgba(217,175,99,.30); background: rgba(27,28,29,.86); color: #fff; outline: none; }
.menu-btn:hover:not(:disabled)::before, .menu-btn:focus-visible:not(:disabled)::before { width: 5px; background: var(--gold); }
.menu-btn.is-primary { border-color: rgba(217,175,99,.32); background: linear-gradient(90deg, rgba(217,175,99,.16), rgba(18,19,21,.82) 62%); color: #f2eadb; }
.menu-btn.is-primary::before { background: var(--gold); }
.menu-btn:disabled { cursor: not-allowed; opacity: .47; filter: saturate(.5); }
.menu-version { margin-top: 12px; padding-left: 2px; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #59616b; }

.lot-patch-toggle {
  position: fixed; z-index: 3;
  top: max(22px, calc(var(--safe-t) + 14px)); left: max(24px, calc(var(--safe-l) + 14px));
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
  border: 1px solid rgba(202,166,102,.34); border-radius: 999px;
  color: rgba(239,230,211,.88); background: rgba(8,10,13,.62);
  box-shadow: 0 12px 30px rgba(0,0,0,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 700 .72rem/1 Georgia, "Times New Roman", serif; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.lot-patch-toggle:hover, .lot-patch-toggle:focus-visible, .lot-patch-toggle[aria-expanded="true"] { border-color: rgba(229,194,129,.72); color: #fff; background: rgba(30,25,18,.84); transform: translateY(-1px); outline: none; }
.lot-patch-toggle-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7af69; box-shadow: 0 0 12px rgba(215,175,105,.88); }

.notes-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(3,4,6,.72); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.notes-panel {
  position: fixed; z-index: 61; left: 50%; top: 50%;
  width: min(720px, calc(100vw - 48px)); max-height: min(78dvh, 780px);
  display: flex; flex-direction: column;
  border: 1px solid rgba(202,166,102,.42); color: #f4efe5;
  background: linear-gradient(120deg, rgba(181,135,72,.14), transparent 38%), linear-gradient(180deg, rgba(19,20,22,.985), rgba(8,10,13,.995));
  box-shadow: 0 34px 100px rgba(0,0,0,.72), inset 4px 0 0 rgba(181,135,72,.72);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transform: translate(-50%, -47%) scale(.985); opacity: 0; visibility: hidden;
  transition: opacity .22s, transform .22s, visibility .22s;
}
.main-menu.notes-open .notes-backdrop { opacity: 1; visibility: visible; }
.main-menu.notes-open .notes-panel { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.notes-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 26px 26px 14px 32px; }
.notes-head span { font: 700 11px Georgia, serif; letter-spacing: .16em; text-transform: uppercase; color: #c9a46a; }
.notes-head h2 { font: 600 30px/1.1 'Cormorant Garamond', Georgia, serif; margin-top: 4px; }
.notes-scroll { overflow-y: auto; padding: 0 32px 30px; }
.notes-scroll .lot-patch-version { font: 700 12px Georgia, serif; letter-spacing: .14em; color: #c9a46a; margin: 18px 0 10px; display: flex; gap: 10px; align-items: baseline; }
.notes-scroll .lot-patch-version span { color: #7d848d; letter-spacing: .05em; }
.notes-scroll ul { display: grid; gap: 9px; padding-left: 18px; list-style: disc; color: #c4c0b6; font-size: 14px; }
.notes-scroll li::marker { color: #8a6d3b; }
.notes-scroll strong { color: #f4efe5; }
.notes-scroll hr { border: 0; border-top: 1px solid rgba(202,166,102,.2); margin: 22px 0 6px; }

.menu-subscreen { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(5, 7, 10, .72); }
.subscreen-panel {
  width: min(680px, 100%); max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column;
  background: linear-gradient(120deg, rgba(181,135,72,.10), transparent 40%), var(--bg-2);
  border: 1px solid rgba(202,166,102,.32); border-radius: 10px; overflow: hidden;
  box-shadow: 0 34px 100px rgba(0,0,0,.6), inset 3px 0 0 rgba(181,135,72,.6);
}
.subscreen-wide { width: min(1040px, 100%); }
.subscreen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--safe-t) * 0 + 16px) 18px 14px 22px; border-bottom: 1px solid var(--line); }
.subscreen-head h2 { font: 600 30px/1.1 'Cormorant Garamond', Georgia, serif; }
.subscreen-body { overflow-y: auto; padding: 20px 22px calc(var(--safe-b) + 24px); }

.option-list { display: grid; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.option:first-child { padding-top: 0; }
.option:last-child { border-bottom: 0; }
.option strong { font-size: 16px; }
.option p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.option-audio { flex-wrap: wrap; }
.audio-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.volume { display: grid; gap: 2px; min-width: 200px; font-size: 13px; color: var(--muted); }
.volume b { color: var(--text); font-weight: 600; }

.rules-lead { font-size: 17px; max-width: 64ch; margin-bottom: 22px; }
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.rules-chapters { display: grid; gap: 18px; }
.rules-chapters h3 { font: 700 20px/1.2 var(--font-cond); margin-bottom: 4px; }
.rules-chapters p { color: var(--muted); max-width: 70ch; }
.rules-memo { padding: 18px; border-radius: var(--radius); background: var(--paper); color: var(--paper-ink); position: sticky; top: 0; }
.rules-memo h3 { font: 700 20px var(--font-cond); margin-bottom: 10px; }
.rules-memo ul { display: grid; gap: 10px; padding-left: 18px; list-style: disc; font-size: 14px; }

.credits { text-align: center; display: grid; justify-items: center; gap: 14px; }
.credits-logo { width: 140px; }
.credits-lead { color: var(--muted); max-width: 40ch; }
.credits-list { margin: 8px 0 0; width: 100%; max-width: 440px; display: grid; }
.credits-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); text-align: left; }
.credits-list dt { color: var(--muted); }
.credits-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ==========================================================================
   COQUE DU JEU
   ========================================================================== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}
.sidebar {
  grid-row: 1 / 3; position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 12px 14px; background: #0f141c; border-right: 1px solid var(--line);
  overflow-y: auto; scrollbar-width: thin;
}
.brand { display: block; width: 100%; padding: 6px 10px 10px; margin-bottom: 4px; border-radius: 8px; }
.brand img { width: 100%; max-width: 140px; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
.brand:hover img { filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)) brightness(1.08); }
.side-nav { display: grid; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 40px; padding: 7px 10px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 14.5px;
}
.side-link:hover { background: var(--bg-2); color: var(--text); }
.side-link.active { background: var(--bg-3); color: var(--text); box-shadow: inset 3px 0 0 var(--paper); }
.side-label { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.side-link .nbadge { margin-left: auto; }
.side-label small { font-weight: 500; font-size: 12.5px; color: var(--faint); }
.side-group { margin-top: 12px; display: grid; gap: 2px; }
.side-group-label { display: flex; align-items: center; gap: 10px; padding: 4px 10px 6px; color: var(--faint); font-size: 13px; font-weight: 600; }
.side-group-label .ic { width: 18px; height: 18px; }
.side-group .side-link { padding-left: 38px; }
.side-account { margin-top: auto; display: grid; gap: 0; padding: 10px; border-radius: 8px; border: 1px solid var(--line); text-align: left; }
.side-account span { font-size: 12px; color: var(--faint); }
.side-account strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-account:hover { background: var(--bg-2); }

.hud {
  grid-column: 2; position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 28px;
  background: rgba(18, 24, 33, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hud-day { display: grid; line-height: 1.15; padding: 4px 8px; margin-left: -8px; border-radius: 8px; text-align: left; }
.hud-day strong { font: 700 22px/1 var(--font-cond); font-variant-numeric: tabular-nums; }
.hud-day span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.hud-day:hover, .hud-event:hover { background: var(--bg-3); }
.hud-event {
  min-width: 0; max-width: 260px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hud-money { display: flex; gap: 22px; margin-left: auto; }
.hud-stat { display: grid; line-height: 1.1; }
.hud-stat span { font-size: 12px; color: var(--faint); }
.hud-stat strong { font-size: 21px; font-weight: 700; white-space: nowrap; }
.hud-level { display: grid; gap: 5px; padding: 6px 8px; border-radius: 8px; min-width: 76px; }
.hud-level span { font-size: 13px; color: var(--muted); }
.hud-level span strong { color: var(--text); font: 700 17px var(--font-cond); }
.hud-level .xp { display: block; height: 4px; border-radius: 9px; background: var(--bg-4); overflow: hidden; }
.hud-level .xp i { display: block; height: 100%; background: var(--paper); }
.hud-level:hover { background: var(--bg-3); }

.view { grid-column: 2; width: 100%; max-width: 1240px; padding: 28px 32px 72px; }
.tabbar { display: none; }
.subnav { display: none; }

/* ---------- en-têtes de page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-head-copy { display: grid; gap: 4px; min-width: 0; }
.page-head h1 { font: 700 34px/1.05 var(--font-cond); letter-spacing: .005em; }
.page-head p { color: var(--muted); max-width: 66ch; }
.page-place { font-size: 13.5px; color: var(--faint); }
.page-head-aside { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; flex: none; max-width: 50%; }
.page-head.has-person {
  position: relative; overflow: hidden; isolation: isolate;
  align-items: flex-end; justify-content: flex-start;
  min-height: 210px; padding: 26px 28px; border-radius: var(--radius-lg);
  background: #0e131a; border: 1px solid var(--line);
}
.page-head.has-person .page-head-copy { max-width: 58%; }
.page-head.has-person .page-head-aside { margin-left: auto; align-self: flex-start; }
.person {
  position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 56%; height: 100%;
  object-fit: cover; object-position: center 24%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  opacity: .92;
}
.quote { font-style: italic; color: #cfd5dd !important; }
.quote span { font-style: normal; color: var(--faint); margin-left: 4px; }
.quote span::before { content: "— "; }

/* ---------- blocs & listes ---------- */
.block { margin-top: 28px; }
.page-head + .block, .segmented + .block, .filters + .block { margin-top: 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 34px; }
.block-head h2 { font: 700 21px/1.15 var(--font-cond); }
.block-aside { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.block-ready .rows { border-color: rgba(77, 191, 137, .4); }

.empty { padding: 26px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; display: grid; justify-items: center; gap: 6px; }
.empty strong { font-size: 16px; }
.empty p { color: var(--muted); max-width: 52ch; font-size: 14px; }
.empty .primary-btn { margin-top: 8px; }

.rows { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.row {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 20px;
  padding: 13px 16px 13px 18px;
}
.row + .row { border-top: 1px solid var(--line); }
.row.item::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rar); }
.row.is-ready::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--good); }
.row.is-owned { background: rgba(77, 191, 137, .04); }
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-title { font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; justify-self: start; }
button.row-title { text-decoration: none; }
button.row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-sub { color: var(--muted); font-size: 13.5px; }
.row .tags { margin-top: 3px; }
.row-value { display: grid; justify-items: end; line-height: 1.15; text-align: right; }
.row-value span { font-size: 12px; color: var(--faint); }
.row-value strong { font-size: 19px; font-weight: 700; white-space: nowrap; }
.row-value small { font-size: 12px; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.row-actions-price { align-items: center; }
.row-meter { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.row-meter .meter { flex: 1; }
.row-meter small { font-variant-numeric: tabular-nums; color: var(--muted); width: 38px; text-align: right; }

.mini-rows { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.mini-rows > li + li { border-top: 1px solid var(--line); }
.mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: baseline; width: 100%; padding: 11px 14px; text-align: left; }
button.mini-row:hover { background: var(--bg-3); }
.mini-row strong { grid-column: 2; font-size: 14.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row small { grid-column: 2; color: var(--muted); font-size: 13px; }
.mini-row .meter { grid-column: 1 / -1; margin-top: 7px; height: 4px; }
.mini-row b { grid-column: 3; grid-row: 1 / 3; align-self: center; font: 700 16px var(--font-cond); }
.mini-who { grid-column: 1; grid-row: 1 / 3; align-self: start; font-size: 12px; font-weight: 600; color: var(--faint); min-width: 58px; padding-top: 2px; }
.mini-row:not(:has(.mini-who)) strong, .mini-row:not(:has(.mini-who)) small { grid-column: 1 / 3; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { background: var(--bg-2); box-shadow: 1px 1px 0 var(--line); padding: 10px 13px; display: grid; gap: 2px; min-width: 0; }
.fact span { font-size: 12.5px; color: var(--muted); }
.fact strong { font-size: 18px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.fact .chip { justify-self: start; }
.facts-compact .fact strong { font-size: 16px; }

.segmented { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding-bottom: 2px; }
.segmented::-webkit-scrollbar { display: none; }
.seg {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.seg:hover { color: var(--text); background: var(--bg-2); }
.seg.active { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); }
.seg b { font-weight: 700; font-size: 12.5px; opacity: .75; font-variant-numeric: tabular-nums; }
.seg.has-alert:not(.active)::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.segmented-full { display: grid; grid-template-columns: 1fr 1fr; }
.segmented-full .seg { justify-content: center; }

.filters { display: grid; grid-template-columns: minmax(220px, 1fr) 220px 170px; gap: 10px; margin-bottom: 12px; }
.block .filters { margin-bottom: 12px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.upgrade { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.upgrade div { display: grid; }
.upgrade span { color: var(--muted); font-size: 13.5px; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.offer-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 24px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line-2); }
.offer-card > div { display: grid; gap: 2px; }
.offer-card span { font-size: 13px; color: var(--muted); }
.offer-card strong { font-size: 30px; font-weight: 700; line-height: 1.05; }
.offer-card p { color: var(--muted); max-width: 60ch; font-size: 14px; }
.offer-card.is-alert { border-color: rgba(229, 72, 77, .5); background: linear-gradient(0deg, rgba(229, 72, 77, .07), rgba(229, 72, 77, .07)), var(--bg-2); }

.trends { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.trends li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 14px; }
.trends li + li { border-top: 1px solid var(--line); }
.trends strong { font: 700 16px var(--font-cond); font-variant-numeric: tabular-nums; }
.trends .up strong { color: var(--good); }
.trends .down strong { color: var(--red-text); }
.trends-inline { display: flex; flex-wrap: wrap; gap: 8px; border: 0; background: none; margin: 0 0 6px; }
.trends-inline li { border: 1px solid var(--line) !important; border-radius: 999px; padding: 5px 12px; background: var(--bg-2); }

/* ==========================================================================
   JOURNÉE
   ========================================================================== */
.today { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 0 28px; align-items: start; }
.today-side > .block:first-child { margin-top: 0; }
.day-card { display: grid; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.day-card-date span { font-size: 13.5px; color: var(--faint); font-weight: 600; }
.day-card-date h1 { font: 700 34px/1.05 var(--font-cond); margin: 2px 0 4px; }
.day-card-date h1::first-letter { text-transform: uppercase; }
.day-card-date p { color: var(--muted); font-size: 14px; }
.day-card-event { padding-left: 14px; border-left: 3px solid var(--paper); }
.day-card-event h2 { font: 700 19px/1.2 var(--font-cond); }
.day-card-event p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.day-card-next { justify-self: start; }
.objective { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--bg-3); }
.objective-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.objective small { color: var(--muted); font-variant-numeric: tabular-nums; }

.tasks { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px 13px 30px; position: relative; }
.task + .task { border-top: 1px solid var(--line); }
.task::before { content: ""; position: absolute; left: 14px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.task.tone-alert::before { background: var(--red); }
.task.tone-ready::before { background: var(--good); }
.task.tone-todo::before { background: var(--paper); opacity: .55; }
.task.tone-ready, .task.tone-alert { background: none; }
.task-copy { display: grid; gap: 1px; min-width: 0; }
.task-copy strong { font-size: 15px; }
.task-copy span { color: var(--muted); font-size: 13.5px; }
.task-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.network { display: grid; gap: 14px; }
.network-city h3 { font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 4px; }
.network-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 10px; margin-left: -10px; border-radius: 8px; font-size: 14.5px; }
.network-link:hover { background: var(--bg-2); }

.event-card { padding: 14px 16px; border-left: 3px solid var(--paper); background: var(--bg-3); border-radius: 0 var(--radius) var(--radius) 0; margin: 10px 0 14px; }
.event-card h3 { font: 700 19px var(--font-cond); }
.event-card p { color: var(--muted); font-size: 14.5px; }
.sheet-date { color: var(--muted); }
.sheet-date::first-letter { text-transform: uppercase; }

/* ==========================================================================
   ENCHÈRES — tickets de lot
   ========================================================================== */
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 18px; }
.ticket {
  --stub: 96px;
  position: relative; display: grid;
  grid-template-columns: var(--stub) minmax(0, 1fr); grid-template-rows: 1fr auto;
  background: var(--paper); color: var(--paper-ink); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -14px rgba(0, 0, 0, .7);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: calc(var(--stub) - 9px);
  width: 18px; height: 18px; border-radius: 50%; background: var(--bg);
}
.ticket::before { top: -9px; }
.ticket::after { bottom: -9px; }
.ticket-stub {
  grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 8px; border-right: 2px dashed var(--paper-line); text-align: center;
}
.ticket-stub::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); margin-bottom: 14px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.ticket-stub span { font-size: 12.5px; color: var(--paper-muted); font-weight: 600; }
.ticket-stub strong { font-size: 58px; line-height: .9; font-weight: 700; }
.ticket-stub em { font-style: normal; font-size: 13px; color: var(--paper-muted); margin-top: auto; padding-top: 10px; }
.ticket-body { padding: 16px 18px 14px; display: grid; gap: 10px; align-content: start; }
.ticket-head h3 { font: 700 25px/1.05 var(--font-cond); }
.ticket-head p { color: var(--paper-muted); font-size: 13.5px; margin-top: 2px; }
.ticket-line { font-size: 14.5px; }
.ticket-hint { font-size: 13px; color: var(--paper-muted); }
.ticket-foot { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--paper-line); }
.ticket-price { display: grid; line-height: 1.05; }
.ticket-price span { font-size: 12.5px; color: var(--paper-muted); font-weight: 600; }
.ticket-price strong { font-size: 30px; font-weight: 700; }
.ticket .primary-btn { background: var(--paper-ink); color: var(--paper); }
.ticket .primary-btn:hover:not(:disabled) { background: #3d3426; }

.odds { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: rgba(43, 36, 26, .06); }
.odds-title { font-size: 12.5px; font-weight: 600; color: var(--paper-muted); }
.odd { display: grid; grid-template-columns: 140px 1fr 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.odd .meter { background: rgba(43, 36, 26, .12); }
.odd .meter > i { background: var(--rar); filter: saturate(1.2) brightness(.82); }
.odd b { white-space: nowrap; text-align: right; font: 700 15px var(--font-cond); font-variant-numeric: tabular-nums; }

/* salle de vente */
.auction { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.auction-main { display: grid; gap: 18px; }
.auction-lot { display: grid; gap: 4px; }
.auction-level { font-size: 13.5px; color: var(--faint); font-weight: 600; }
.auction-lot h1 { font: 700 32px/1.05 var(--font-cond); }
.auction-lot p { color: var(--muted); font-size: 14px; }
.auction-lot .tags { margin-top: 6px; }
.auction-lot .chip-paper { background: rgba(232, 221, 194, .1); border-color: rgba(232, 221, 194, .25); color: var(--paper); }
.auction-price { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.auction-price span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.auction-price strong { font-size: clamp(56px, 8vw, 92px); line-height: .92; font-weight: 700; }
.auction-price em { font-style: normal; color: var(--muted); font-size: 15px; }
.auction-price.is-you { border-color: rgba(77, 191, 137, .55); }
.auction-price.is-you em { color: var(--good); }
.auction-clock { display: grid; gap: 8px; }
.auction-clock-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 14px; }
.auction-clock-head strong { font: 700 24px var(--font-cond); color: var(--text); font-variant-numeric: tabular-nums; }
.auction-clock-track { height: 10px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.auction-clock-track i { display: block; height: 100%; background: var(--paper); border-radius: inherit; transition: width .05s linear, background-color .2s; }
.auction-clock.urgent .auction-clock-track i { background: var(--red); }
.auction-clock.urgent .auction-clock-head strong { color: var(--red-text); }
.auction-bids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
.auction-bids.is-ended { grid-template-columns: 1fr; }
.auction-bids.is-ended .primary-btn { min-height: 56px; font-size: 17px; }
.bid-btn {
  display: grid; gap: 1px; place-content: center; text-align: center;
  min-height: 66px; padding: 8px; border-radius: 10px;
  background: var(--paper); color: var(--paper-ink); transition: background-color .12s, transform .06s;
}
.bid-btn span { font: 700 22px/1 var(--font-cond); font-variant-numeric: tabular-nums; }
.bid-btn small { font-size: 12.5px; color: var(--paper-muted); }
.bid-btn:hover:not(:disabled) { background: var(--paper-hover); }
.bid-btn:active:not(:disabled) { transform: scale(.98); }
.bid-btn:disabled { background: var(--bg-3); color: var(--faint); }
.bid-btn:disabled small { color: var(--faint); }
.bid-leave { min-height: 66px; }
.auction-note { color: var(--faint); font-size: 13.5px; }
.auction-side { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.auction-side h2 { font: 700 18px var(--font-cond); }
.auction-side h2 + * { margin-bottom: 8px; }
.bidders { display: grid; gap: 2px; }
.bidders li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.bidders li:first-child { grid-template-columns: minmax(0, 1fr) auto; }
.bidders i { width: 10px; height: 10px; border-radius: 50%; }
.bidders span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bidders li.leading { background: var(--bg-3); }
.bidders li.leading span { color: var(--good); font-weight: 600; }
.bidders li.is-out { opacity: .5; }
.bid-log { display: grid; gap: 0; }
.bid-log li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bid-log li:last-child { border-bottom: 0; }
.bid-log li:first-child { font-weight: 600; }
.bid-log b { font: 600 15px var(--font-cond); font-variant-numeric: tabular-nums; }

/* révélations : tickets qui se retournent l'un après l'autre */
.reveals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 4px; }
.reveal {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  min-height: 210px; padding: 0 16px 16px; border-radius: 10px;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.8);
  animation: reveal-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
.reveal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--rar); }
.reveal header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 0 6px; margin-bottom: 4px; border-bottom: 1px dashed var(--paper-line); }
.reveal-no { font: 700 14px var(--font-cond); color: var(--paper-muted); }
.reveal-rar { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--rar) 82%, #000); }
.rarity-unknown .reveal-rar { background: #8b8170; }
.reveal.is-safe { --rar: #6b6f76; background: #d8d1c2; }
.reveal.is-safe .reveal-rar { background: #5d6168; }
.reveal-type { font-size: 12.5px; color: var(--paper-muted); }
.reveal h4 { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.reveal p { font-size: 13px; color: var(--paper-muted); }
.reveal.is-broken p { color: #a1372f; font-weight: 600; }
.reveal-value { margin-top: auto; padding-top: 12px; font-size: 28px; font-weight: 700; line-height: 1; }
.reveal.rarity-legendary, .reveal.rarity-unique, .reveal.rarity-mythic { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rar) 70%, transparent), 0 14px 40px -12px color-mix(in srgb, var(--rar) 60%, transparent); }
.reveal.rarity-legendary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%); animation: shine 1.6s ease .9s 1 both; pointer-events: none; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(14px) rotateX(35deg); } }
@keyframes shine { to { transform: translateX(120%); } }

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.result { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--bg-3); border-top: 4px solid var(--rar); }
.result-kind { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.result h3 { font-size: 17px; line-height: 1.25; }
.result > p { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }

/* ==========================================================================
   COLLECTION, BOUTIQUE, COMPÉTENCES, REGISTRE
   ========================================================================== */
.progress-card { display: grid; gap: 12px; padding: 18px 20px; margin-bottom: 22px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.progress-card-num { display: flex; align-items: baseline; gap: 10px; }
.progress-card-num strong { font-size: 40px; line-height: 1; font-weight: 700; }
.progress-card-num span { color: var(--muted); }
.crows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.crow { position: relative; display: grid; gap: 3px; align-content: start; padding: 11px 14px 12px 16px; background: var(--bg-2); min-width: 0; }
.crow::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rar); }
.crow strong { font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.crow > span { color: var(--muted); font-size: 13px; }
.crow .tags { margin-top: 4px; }
.crow.is-unknown { background: #161d27; }
.crow.is-unknown::before { display: none; }
.crow.is-unknown strong { color: var(--faint); letter-spacing: .2em; }
.crow.is-unknown > span { color: var(--faint); }

.visitor-list { display: grid; gap: 14px; }
.visitor { padding: 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line-2); display: grid; gap: 10px; }
.visitor-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.visitor-head h3 { font: 700 22px var(--font-cond); }
.visitor-head span { color: var(--muted); font-size: 13.5px; }
.visitor-line { font-size: 16px; }
.visitor-meta { color: var(--faint); font-size: 13.5px; }
.visitor-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.counter { display: flex; align-items: flex-end; gap: 8px; }

.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.skill { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.skill header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.skill h3 { font: 700 21px/1.1 var(--font-cond); }
.skill > p { color: var(--muted); font-size: 14px; }
.skill.is-locked { opacity: .7; }
.skill.is-on { border-color: rgba(77, 191, 137, .45); }
.pips { display: flex; gap: 4px; }
.pips i { width: 16px; height: 6px; border-radius: 3px; background: var(--bg-4); }
.pips i.on { background: var(--paper); }
.skill-effects { display: grid; gap: 8px; margin: 0; }
.skill-effects div { padding: 10px 12px; border-radius: 8px; background: var(--bg-3); }
.skill-effects .next { background: none; border: 1px dashed var(--line-2); }
.skill-effects dt { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.skill-effects dd { margin: 2px 0 0; font-size: 14px; }
.skill footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.skill footer small { color: var(--muted); font-size: 13px; }

.stat-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.stat-groups .block:first-child, .stat-groups .block { margin-top: 0; }
.stat-groups .facts { grid-template-columns: 1fr 1fr; }
.journal { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.journal li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 10px 14px; font-size: 14px; }
.journal li + li { border-top: 1px solid var(--line); }
.journal time { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.journal b { font-weight: 600; margin-right: 6px; }
.journal strong { font: 700 15.5px var(--font-cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(229, 72, 77, .35); }
.danger-zone p { color: var(--muted); font-size: 14px; }

.loan-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; align-items: end; }
.loan-preview { grid-column: 1 / -1; display: grid; padding: 12px 14px; border-radius: 8px; background: var(--bg-3); }
.loan-preview span { font-size: 12.5px; color: var(--muted); }
.loan-preview strong { font-size: 26px; font-weight: 700; line-height: 1.1; }
.loan-preview small { color: var(--muted); }
.loan-form .primary-btn { grid-column: 1 / -1; }

/* ==========================================================================
   RÉSIDENCE
   ========================================================================== */
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid rgba(255, 255, 255, .14); }
.decor-raw { background: linear-gradient(135deg, #4b5563 50%, #737d8b 50%); }
.decor-warm { background: linear-gradient(135deg, #6f4322 50%, #c48c50 50%); }
.decor-industrial { background: linear-gradient(135deg, #22282f 50%, #6a7480 50%); }
.decor-japan { background: linear-gradient(135deg, #1b1920 50%, #b33a3a 50%); }
.decor-retro { background: linear-gradient(135deg, #3a2a5c 50%, #e0668f 50%); }
.decor-museum { background: linear-gradient(135deg, #bfb9ab 50%, #f1ede3 50%); }
.decor-nox { background: linear-gradient(135deg, #0f0a16 50%, #5d2c7e 50%); }

.prestige-card { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.prestige-num { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prestige-num span { color: var(--muted); font-weight: 600; }
.prestige-num strong { font-size: 52px; line-height: .95; font-weight: 700; }
.prestige-num small { color: var(--muted); font-size: 14px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.room { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-align: left; }
.room:hover { border-color: var(--line-2); background: var(--bg-3); }
.room strong { font-size: 15.5px; }
.room span { grid-column: 2; color: var(--muted); font-size: 13px; }
.room-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.room-head .swatch { width: 40px; height: 40px; border-radius: 10px; }
.room-head h2 { font: 700 28px/1.1 var(--font-cond); }
.room-head p { color: var(--muted); }
.room-head .chip { margin-left: auto; }
.decors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.decor { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-align: left; }
.decor .swatch { width: 22px; height: 22px; grid-row: 1 / 3; }
.decor strong { font-size: 15px; }
.decor span { grid-column: 2; color: var(--muted); font-size: 13px; }
.decor em { grid-column: 2; font-style: normal; font-weight: 600; font-size: 13.5px; margin-top: 6px; color: var(--paper); }
.decor:hover:not(:disabled) { border-color: var(--line-2); }
.decor.is-active { border-color: var(--paper); cursor: default; }
.decor.is-active em { color: var(--good); }
.segmented .seg .swatch { width: 12px; height: 12px; }
.properties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 16px; }
.property { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.property header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.property h3 { font: 700 23px/1.1 var(--font-cond); }
.property.is-owned { border-color: var(--paper); }
.property-rooms { color: var(--muted); font-size: 13.5px; }
.property-new { color: var(--good); font-size: 13.5px; font-weight: 600; }
.property footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.property footer div { display: grid; line-height: 1.1; }
.property footer span { font-size: 12.5px; color: var(--muted); }
.property footer strong { font-size: 24px; font-weight: 700; }
.property footer small { font-size: 12px; color: var(--faint); }
.series { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.serie { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-align: left; }
.serie:hover { border-color: var(--line-2); }
.serie strong { font-size: 15px; }
.serie span { color: var(--muted); font-size: 13px; }
.serie.is-complete { border-color: rgba(77, 191, 137, .5); }
.block .facts + .series, .block .facts + .empty { margin-top: 12px; }

.player { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.player-art img { width: 180px; height: 180px; object-fit: cover; border-radius: 8px; }
.player-disc { display: block; width: 180px; height: 180px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #1c1c1c 2px 4px); position: relative; }
.player-disc::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--paper); }
.player-body { display: grid; gap: 4px; min-width: 0; }
.player-state { color: var(--faint); font-size: 13px; font-weight: 600; }
.player.is-playing .player-state { color: var(--good); }
.player-body > strong { font: 700 26px/1.1 var(--font-cond); }
.player-body > small { color: var(--muted); }
.player-time { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.albums { display: grid; gap: 14px; }
.album { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.album img { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; }
.album.is-locked img { filter: grayscale(.7) brightness(.7); }
.album-body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.album h3 { font: 700 19px/1.15 var(--font-cond); }
.album p { color: var(--muted); font-size: 13.5px; }
.album .primary-btn { justify-self: start; }
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2px 12px; }
.track { display: flex; gap: 10px; align-items: baseline; width: 100%; padding: 6px 8px; border-radius: 6px; font-size: 14px; text-align: left; }
.track span { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.track:hover { background: var(--bg-3); }
.track.is-playing { background: var(--bg-3); color: var(--paper); font-weight: 600; }
.track em { margin-left: auto; font-style: normal; }

.public-home { display: grid; gap: 14px; }
.public-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.public-head div:first-child { display: grid; }
.public-head span { font-size: 13px; color: var(--muted); }
.public-head strong { font: 700 28px/1.1 var(--font-cond); }
.public-head small { color: var(--muted); }
.public-prestige { text-align: right; display: grid; }
.public-prestige strong { font-size: 36px; line-height: 1; }
.public-welcome { font-style: italic; font-size: 16px; }
.public-welcome.is-empty { color: var(--faint); font-style: normal; }
.tour { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.tour-room { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--bg-3); }
.tour-room h3 { font-size: 15px; }
.tour-room small { grid-column: 2; color: var(--faint); font-size: 12.5px; }
.tour-room ul { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 8px; font-size: 13.5px; }
.tour-room li { display: grid; }
.tour-room li small { color: var(--muted); }
.tour-room li.is-empty { color: var(--faint); }
.account-card { padding: 18px; border-radius: var(--radius); background: var(--paper); color: var(--paper-ink); display: grid; gap: 2px; }
.account-card span { font-size: 13px; color: var(--paper-muted); }
.account-card strong { font: 700 30px/1.1 var(--font-cond); }
.account-card p { color: var(--paper-muted); font-size: 14px; margin-top: 4px; }

/* ==========================================================================
   MODALES, MENUS, NOTIFICATIONS
   ========================================================================== */
#modalRoot { position: relative; z-index: 90; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 7, 10, .68); animation: fade .15s ease; }
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(580px, calc(100vw - 32px)); max-height: min(86dvh, 860px);
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); outline: none; overflow: hidden;
  animation: pop .18s ease;
}
.modal.sheet-wide { width: min(920px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font: 700 23px/1.15 var(--font-cond); min-width: 0; overflow-wrap: anywhere; }
.modal-body { overflow-y: auto; padding: 18px 22px 22px; overscroll-behavior: contain; }
.sheet-lead { color: var(--muted); margin-bottom: 14px; }
.sheet-lead strong { color: var(--text); }
.sheet-actions, .modal-action-footer {
  position: sticky; bottom: -22px; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
  margin: 18px -22px -22px; padding: 14px 22px calc(var(--safe-b) * 0 + 18px);
  background: var(--bg-2); border-top: 1px solid var(--line);
}
.sheet-item { display: grid; gap: 12px; margin-bottom: 16px; }
.sheet-item-type { color: var(--muted); }
.sheet-item.rarity-common, .sheet-item.rarity-uncommon, .sheet-item.rarity-rare, .sheet-item.rarity-mythic, .sheet-item.rarity-unique, .sheet-item.rarity-legendary { border-left: 3px solid var(--rar); padding-left: 12px; }

.menu-list { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-row { display: grid; gap: 2px; padding: 13px 16px; text-align: left; position: relative; }
.menu-row + .menu-row { border-top: 1px solid var(--line); }
.menu-row:hover:not(:disabled) { background: var(--bg-3); }
.menu-row strong { font-size: 15px; }
.menu-row span { color: var(--muted); font-size: 13.5px; }
.menu-row em { font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--paper); }
.menu-row:disabled { opacity: .45; }
.menu-row.is-current { background: var(--bg-3); }
.menu-row.pick { grid-template-columns: minmax(0, 1fr) auto; }
.menu-row.pick span { grid-column: 1; }
.menu-row.pick em { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.menu-row.pick[class*="rarity-"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rar); }
.menu-list + .sheet-actions { margin-top: 16px; }

.toasts { position: fixed; z-index: 100; top: 76px; right: 20px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius);
  background: #263140; border: 1px solid var(--line-2); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7);
  animation: toast-in .2s ease; cursor: pointer;
}
.toast strong { font-size: 14.5px; }
.toast span { color: var(--muted); font-size: 13.5px; }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
body:not(.in-game) .toasts { top: 20px; }

/* tutoriel */
.tutorial { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
.tutorial-index { display: grid; gap: 4px; align-content: start; }
.tutorial-step { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: left; }
.tutorial-step:hover { background: var(--bg-3); color: var(--text); }
.tutorial-step.active { background: var(--paper); color: var(--paper-ink); }
.tutorial-content { display: grid; gap: 12px; align-content: start; }
.tutorial-content h3 { font: 700 26px/1.1 var(--font-cond); }
.tutorial-content p { color: var(--muted); }
.tutorial-content b { color: var(--text); font-weight: 600; }
.modal:has(.tutorial) { width: min(860px, calc(100vw - 32px)); }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes pulse { 50% { opacity: .3; } }

/* ==========================================================================
   TABLETTE
   ========================================================================== */
@media (max-width: 1180px) {
  :root { --sidebar: 224px; }
  .hud { gap: 12px; padding-inline: 20px; }
  .hud-event { display: none; }
  .view { padding: 24px 22px 64px; }
  .today { grid-template-columns: 1fr; }
  .today-side > .block:first-child { margin-top: 28px; }
  .stat-groups { grid-template-columns: 1fr; }
  .stat-groups .block + .block { margin-top: 24px; }
  .auction { grid-template-columns: minmax(0, 1fr) 280px; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
}

/* ==========================================================================
   MOBILE (portrait d'abord)
   ========================================================================== */
@media (max-width: 899px) {
  body { font-size: 15px; }
  .app { display: block; min-height: 100dvh; }
  .sidebar { display: none; }

  .hud {
    position: sticky; top: 0; gap: 8px;
    min-height: 0; padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 12px) 8px calc(var(--safe-l) + 12px);
  }
  .hud-day { margin-left: -4px; padding: 4px 6px; }
  .hud-day strong { font-size: 20px; }
  .hud-day span { font-size: 12px; }
  .hud-networth, .hud-next, .hud-event { display: none; }
  .hud-money { margin-left: auto; }
  .hud-stat { text-align: right; }
  .hud-stat strong { font-size: 20px; }
  .hud-level { min-width: 58px; padding: 4px 6px; }

  .view { padding: 14px calc(var(--safe-r) + 14px) calc(var(--tab-h) + var(--safe-b) + 32px) calc(var(--safe-l) + 14px); }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(var(--tab-h) + var(--safe-b)); padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
    background: rgba(15, 20, 28, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: 11.5px; font-weight: 600; }
  .tab .ic { width: 23px; height: 23px; }
  .tab.active { color: var(--text); }
  .tab.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; border-radius: 0 0 2px 2px; background: var(--paper); }
  .tab .nbadge { position: absolute; top: 7px; left: calc(50% + 7px); }
  .tab .nbadge[class*="tone-"]:not(:empty) { min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  body.in-auction .tabbar { display: none; }

  .subnav {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: -2px -14px 16px; padding: 0 14px 2px;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav-link { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; }
  .subnav-link.active { background: var(--paper); border-color: var(--paper); color: var(--paper-ink); }
  .subnav-link .nbadge[class*="tone-"]:not(:empty) { min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }

  .page-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 18px; }
  .page-head h1 { font-size: 29px; }
  .page-head p { font-size: 14.5px; }
  .page-head-aside { justify-content: flex-start; max-width: none; }
  .page-head.has-person { min-height: 250px; padding: 18px; justify-content: flex-end; }
  .page-head.has-person .page-head-copy { max-width: none; }
  .page-head.has-person .page-head-aside { margin-left: 0; align-self: flex-start; order: -1; margin-bottom: auto; }
  .person { width: 100%; -webkit-mask-image: linear-gradient(0deg, transparent 18%, #000 70%); mask-image: linear-gradient(0deg, transparent 18%, #000 70%); object-position: center 18%; }
  .quote { font-size: 14px; }

  .block { margin-top: 24px; }
  .block-head h2 { font-size: 20px; }

  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 13px 14px 13px 16px; }
  .row-actions { grid-column: 1 / -1; justify-content: stretch; }
  .row-actions > .primary-btn, .row-actions > .ghost-btn, .row-actions > .secondary-btn { flex: 1 1 auto; min-height: 44px; }
  .row-actions > .icon-btn { width: 44px; height: 44px; }
  .row-actions-price { flex-wrap: nowrap; }
  .row-actions-price .stepper-field { flex: none; }
  .row-meter { grid-column: 1 / -1; min-width: 0; }
  .row:not(:has(.row-value)) .row-actions { grid-column: 1 / -1; }

  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .facts-3, .facts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .two-col > .block + .block { margin-top: 24px; }
  .field-row { grid-template-columns: 1fr; }

  .day-card { padding: 18px; }
  .day-card-date h1 { font-size: 29px; }
  .day-card-next { justify-self: stretch; min-height: 46px; }
  .task { flex-direction: column; align-items: stretch; gap: 10px; }
  .task-actions { justify-content: stretch; }
  .task-actions > button { flex: 1; min-height: 44px; }
  .task::before { top: 20px; }

  .lots { grid-template-columns: 1fr; gap: 16px; }
  .ticket { --stub: 76px; }
  .ticket-stub { padding: 16px 6px; }
  .ticket-stub strong { font-size: 46px; }
  .ticket-head h3 { font-size: 23px; }
  .ticket-foot { grid-column: 1 / -1; border-top: 2px dashed var(--paper-line); padding: 14px 16px; flex-wrap: wrap; }
  .ticket-foot .primary-btn { flex: 1; min-height: 46px; }
  .ticket-stub { grid-row: 1; }
  .odd { grid-template-columns: 1fr 60px 58px; }

  .auction { grid-template-columns: 1fr; gap: 16px; }
  .auction-lot h1 { font-size: 27px; }
  .auction-price { padding: 18px; }
  .auction-price strong { font-size: clamp(52px, 17vw, 76px); }
  .auction-bids {
    position: sticky; bottom: 0; z-index: 5;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 -14px; padding: 12px 14px calc(var(--safe-b) + 12px);
    background: rgba(18, 24, 33, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .auction-bids .bid-leave { grid-column: 1 / -1; min-height: 42px; }
  .auction-bids.is-ended { grid-template-columns: 1fr; }
  .bid-btn { min-height: 70px; }
  .auction-side { padding: 14px; }
  .bidders { display: flex; flex-wrap: wrap; gap: 6px; }
  .bidders li, .bidders li:first-child { display: inline-flex; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
  .bidders li span { display: none; }
  .bidders li.leading { border-color: var(--good); }
  .bidders li.leading span { display: inline; }
  .bid-log li:nth-child(n+4) { display: none; }
  body.in-auction .view { padding-bottom: 0; }

  .reveals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reveal { min-height: 190px; padding: 0 12px 12px; }
  .reveal-value { font-size: 23px; }
  .crows { grid-template-columns: 1fr; }
  .pager { font-size: 13px; }
  .pager .ghost-btn { min-height: 40px; padding: 0 12px; }
  .journal li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .journal time { grid-column: 1 / -1; }
  .player { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .player-art img, .player-disc { width: 96px; height: 96px; }
  .player-time, .player-controls { grid-column: 1 / -1; }
  .player-body { display: contents; }
  .player-body > span, .player-body > strong, .player-body > small { grid-column: 2; }
  .player-body > strong { font-size: 21px; }
  .album { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .album img { width: 76px; height: 76px; }
  .album .tracks { grid-column: 1 / -1; }
  .album-body { display: contents; }
  .album-body > h3, .album-body > p, .album-body > .primary-btn { grid-column: 2; }
  .prestige-num strong { font-size: 44px; }
  .offer-card { padding: 16px; }
  .offer-card > button { width: 100%; min-height: 46px; }
  .visitor-actions { display: grid; grid-template-columns: 1fr; }
  .counter { display: grid; grid-template-columns: auto 1fr; }
  .counter .secondary-btn { min-height: 42px; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-memo { position: static; }
  .tutorial { grid-template-columns: 1fr; gap: 14px; }
  .tutorial-index { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .tutorial-step { flex: none; white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; }
  .danger-zone .danger-btn { width: 100%; }

  /* modales en feuilles qui montent du bas */
  .modal, .modal.sheet-wide, .modal:has(.tutorial) {
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    width: 100%; max-height: calc(100dvh - var(--safe-t) - 24px);
    border-radius: 18px 18px 0 0; border-bottom: 0;
    padding-bottom: var(--safe-b);
    animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1);
  }
  .modal-head { padding: 14px 12px 10px 18px; }
  .modal-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--line-2); }
  .modal-body { padding: 16px 18px 18px; }
  .sheet-actions, .modal-action-footer { margin: 16px -18px -18px; padding: 12px 18px 16px; bottom: -18px; }
  .sheet-actions > button, .modal-action-footer > button { flex: 1 1 140px; min-height: 46px; }

  .toasts { top: auto; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); right: 12px; left: 12px; width: auto; }
  body.in-auction .toasts { bottom: calc(var(--safe-b) + 150px); }
  body:not(.in-game) .toasts { top: auto; bottom: calc(var(--safe-b) + 16px); }
  .toast.leaving { transform: translateY(6px); }

  /* menu principal */
  .menu-bg { background-position: 99% 32%; }
  .menu-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,5,8,.96) 0%, rgba(4,5,8,.82) 42%, rgba(4,5,8,0) 72%); }
  .menu-content { left: calc(var(--safe-l) + 20px); right: calc(var(--safe-r) + 20px); top: auto; bottom: calc(var(--safe-b) + 22px); width: auto; }
  .menu-btn { min-height: 52px; }
  .menu-btn:hover:not(:disabled) { transform: none; }
  .menu-subscreen { padding: 0; place-items: stretch; }
  .subscreen-panel, .subscreen-wide { width: 100%; max-height: none; height: 100dvh; border-radius: 0; border: 0; }
  .subscreen-head { padding-top: calc(var(--safe-t) + 12px); }
  .option { flex-direction: column; align-items: stretch; gap: 10px; }
  .option .secondary-btn, .option .danger-btn { min-height: 46px; }
  .audio-controls { display: grid; }
  .volume { min-width: 0; }
  .notes-panel .subscreen-head { padding-top: calc(var(--safe-t) + 12px); }
}

/* très petits écrans */
@media (max-width: 380px) {
  .hud-level { display: none; }
  .tab span { font-size: 10.5px; }
  .facts-2, .facts-3, .facts-4 { grid-template-columns: 1fr 1fr; }
  .bid-btn span { font-size: 19px; }
}

/* mobile en paysage : la barre d'onglets devient un rail vertical */
@media (max-width: 999px) and (orientation: landscape) and (max-height: 540px) {
  :root { --rail: 76px; }
  .app { display: block; }
  .sidebar { display: none; }
  .tabbar {
    display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr;
    position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; right: auto;
    width: calc(var(--rail) + var(--safe-l)); height: auto;
    padding: calc(var(--safe-t) + 6px) 0 calc(var(--safe-b) + 6px) var(--safe-l);
    border-top: 0; border-right: 1px solid var(--line);
    background: rgba(15, 20, 28, .97);
  }
  .tab { display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--faint); font-size: 11px; font-weight: 600; position: relative; }
  .tab.active { color: var(--text); }
  .tab.active::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; background: var(--paper); border-radius: 0 2px 2px 0; }
  .tab .nbadge { position: absolute; top: 4px; left: calc(50% + 6px); }
  .hud { margin-left: calc(var(--rail) + var(--safe-l)); padding-left: 16px; padding-top: calc(var(--safe-t) + 6px); padding-bottom: 6px; }
  .view { margin-left: calc(var(--rail) + var(--safe-l)); width: auto; padding: 14px calc(var(--safe-r) + 18px) calc(var(--safe-b) + 28px) 18px; }
  .hud-networth { display: grid; }
  .hud-next { display: inline-flex; min-height: 36px; }
  body.in-auction .tabbar { display: none; }
  body.in-auction .hud, body.in-auction .view { margin-left: 0; }
  .auction { grid-template-columns: minmax(0, 1fr) 260px; }
  .auction-bids { position: static; margin: 0; padding: 0; background: none; border: 0; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .auction-bids .bid-leave { grid-column: auto; min-height: 60px; }
  .auction-price strong { font-size: 54px; }
  .bid-btn { min-height: 60px; }
  .toasts { bottom: calc(var(--safe-b) + 12px); left: auto; width: 340px; }
  .modal, .modal.sheet-wide, .modal:has(.tutorial) { max-height: calc(100dvh - 12px); width: min(720px, 100%); left: 50%; transform: translateX(-50%); }
  .menu-content { top: auto; bottom: calc(var(--safe-b) + 14px); left: auto; right: calc(var(--safe-r) + 5vw); width: min(320px, 38vw); }
  .menu-btn { min-height: 40px; }
  .menu-bg { background-position: center; }
  .menu-bg::before { display: none; }
}



/* ==========================================================================
   RÉSIDENCE — ambiance cocooning
   La maison quitte l'acier nocturne pour des tons chauds, une lumière de
   lampe et une typographie à empattements. L'ambiance de la pièce choisie
   teinte toute la page.
   ========================================================================== */
body.in-home {
  --bg: #16110d; --bg-2: #201812; --bg-3: #2a2018; --bg-4: #352920;
  --line: #3a2d22; --line-2: #4d3c2e; --text: #f3ebe0; --muted: #bba997; --faint: #8b7a6a;
  --home-glow: #ffc677; --home-accent: #e3a55e;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(1100px 620px at 78% -8%, color-mix(in srgb, var(--home-glow) 13%, transparent), transparent 70%),
    radial-gradient(900px 600px at 0% 100%, color-mix(in srgb, var(--home-accent) 8%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body[data-decor="raw"] { --home-glow: #ffd9a0; --home-accent: #c9b48a; }
body[data-decor="warm"] { --home-glow: #ffc677; --home-accent: #e3a55e; }
body[data-decor="industrial"] { --home-glow: #ffd096; --home-accent: #cf8c45; }
body[data-decor="japan"] { --home-glow: #ffcf98; --home-accent: #cf4741; }
body[data-decor="retro"] { --home-glow: #ffbfd6; --home-accent: #ec6d9a; }
body[data-decor="museum"] { --home-glow: #fff4d8; --home-accent: #c7a76b; }
body[data-decor="nox"] { --home-glow: #dcb7ff; --home-accent: #9d5ed8; }
body.in-home .hud { background: rgba(22, 17, 13, .9); }
body.in-home .sidebar { background: #120e0b; }
body.in-home .block-head h2, body.in-home .page-head h1 { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: 0; }
body.in-home .page-head h1 { font-size: 40px; }
body.in-home .rows, body.in-home .mini-rows, body.in-home .facts { background: rgba(32, 24, 18, .82); }
body.in-home .fact { background: transparent; }
body.in-home .seg.active, body.in-home .subnav-link.active { background: var(--home-accent); border-color: var(--home-accent); color: #1c130c; }
body.in-home .meter-accent > i { background: linear-gradient(90deg, var(--home-accent), var(--home-glow)); }

.home-intro { margin: 6px 0 26px; max-width: 70ch; }
.home-intro h1 { font: 600 52px/1 var(--serif); margin: 4px 0 10px; }
.home-intro p { color: var(--muted); font-size: 16px; }
.home-intro.is-small { margin-bottom: 18px; }
.home-intro.is-small h1 { font-size: 40px; margin-bottom: 0; }
.home-greet { font: italic 500 19px/1.3 var(--serif); color: var(--home-glow); }
.home-greet span { color: var(--muted); }

.home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--home-glow) 22%, transparent);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 6px rgba(0,0,0,.18);
  aspect-ratio: 1200 / 560; min-height: 340px; max-height: 620px;
}
.home-hero.is-compact { aspect-ratio: 1200 / 480; min-height: 280px; }
.home-scene, .home-scene .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,7,5,.78) 0%, rgba(10,7,5,.15) 34%, transparent 55%, rgba(10,7,5,.55) 100%); }
.home-hero-top { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px 28px; }
.home-hero-title {
  max-width: min(560px, 62%); padding: 16px 20px 16px; border-radius: 14px;
  background: rgba(16,11,7,.72); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255,220,170,.14); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
}
.home-hero-title h1 { font: 600 clamp(34px, 4vw, 54px)/1 var(--serif); margin: 2px 0 6px; }
.home-address { color: #e2d6c6; font-size: 14.5px; line-height: 1.45; }
.home-hero::after { background: linear-gradient(180deg, rgba(10,7,5,.35) 0%, transparent 30%, transparent 62%, rgba(10,7,5,.5) 100%) !important; }
.home-prestige { display: grid; gap: 4px; min-width: 180px; padding: 12px 16px; border-radius: 12px; background: rgba(18,12,8,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,220,170,.16); text-align: right; }
.home-prestige strong { font: 600 44px/1 var(--serif); color: var(--home-glow); }
.home-prestige span { font-size: 12.5px; color: #d9cbb9; }
.home-nowplaying { position: absolute; z-index: 2; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 999px; background: rgba(18,12,8,.68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,220,170,.16); max-width: calc(100% - 48px); }
.home-nowplaying div { display: grid; line-height: 1.15; min-width: 0; }
.home-nowplaying span { font-size: 11.5px; color: var(--home-glow); }
.home-nowplaying strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-play { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--home-glow); color: #1c130c; font-size: 13px; }
.np-link { font-size: 13px; color: #d9cbb9; padding: 6px 10px; border-radius: 999px; }
.np-link:hover { background: rgba(255,255,255,.08); }

.scene .scene-ghost { cursor: pointer; }
.scene .scene-ghost .ghost-area { fill: rgba(255,236,200,.04); stroke: rgba(255,226,180,.5); stroke-width: 2; stroke-dasharray: 9 8; transition: fill .2s, stroke .2s; }
.scene .scene-ghost .ghost-pill { fill: rgba(20,14,9,.86); stroke: rgba(255,214,160,.45); stroke-width: 1.5; }
.scene .scene-ghost text { fill: #f6ead6; font: 600 15px var(--font); pointer-events: none; }
.scene .scene-ghost:hover .ghost-area, .scene .scene-ghost:focus .ghost-area { fill: rgba(255,236,200,.12); stroke: var(--home-glow); }
.scene .scene-ghost:hover .ghost-pill, .scene .scene-ghost:focus .ghost-pill { fill: var(--home-glow); }
.scene .scene-ghost:hover text, .scene .scene-ghost:focus text { fill: #1c130c; }
.scene .scene-ghost:focus { outline: none; }
.scene .scene-hint { fill: rgba(255,236,206,.45); font: italic 600 24px var(--serif); }
.scene .scene-q { fill: #3b2a18; font: 700 20px var(--font); }
.scene .scene-item { transition: transform .3s; }
.scene .spin { transform-box: fill-box; transform-origin: center; animation: wobble 2.4s linear infinite; }
.scene .notes text { fill: var(--home-glow); font-size: 30px; animation: float-note 3s ease-in-out infinite; }
.scene .notes text:nth-child(2) { animation-delay: 1s; }
.scene .notes text:nth-child(3) { animation-delay: 2s; }
@keyframes float-note { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-50px); } }
@keyframes wobble { 50% { transform: scaleX(.96); } }

.room-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 22px; padding-bottom: 2px; }
.room-tabs::-webkit-scrollbar { display: none; }
.room-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 15px 0 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; background: rgba(32,24,18,.6); }
.room-tab:hover { color: var(--text); }
.room-tab.active { color: #1c130c; background: var(--home-glow); border-color: var(--home-glow); }
.home-tabs { margin-top: 0; }

.home-visit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 22px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--home-glow) 16%, transparent), transparent), var(--bg-2); border: 1px solid color-mix(in srgb, var(--home-glow) 35%, transparent); }
.home-visit span { font: italic 500 16px var(--serif); color: var(--home-glow); }
.home-visit strong { display: block; font: 600 30px/1.1 var(--serif); }
.home-visit p { color: var(--muted); }

.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-card { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; text-align: left; background: linear-gradient(160deg, rgba(255,214,160,.07), transparent 60%), var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.home-card:hover { border-color: color-mix(in srgb, var(--home-glow) 40%, transparent); transform: translateY(-2px); }
.home-card span { font: italic 500 16px var(--serif); color: var(--home-glow); }
.home-card strong { font: 600 40px/1 var(--serif); }
.home-card strong small { font-size: 20px; color: var(--muted); }
.home-card p { color: var(--muted); font-size: 13px; }
.home-wish { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted); }
.home-wish strong { color: var(--text); }

.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.showpiece { position: relative; overflow: hidden; display: grid; gap: 3px; padding: 70px 18px 18px; border-radius: 14px; background: linear-gradient(180deg, #0e0a08, var(--bg-2)); border: 1px solid var(--line); }
.showpiece-light { position: absolute; left: 50%; top: -40px; width: 180px; height: 160px; margin-left: -90px; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--rar) 55%, transparent), transparent 70%); pointer-events: none; }
.showpiece::before { content: ""; position: absolute; left: 50%; top: 26px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--rar); box-shadow: 0 0 24px var(--rar); }
.showpiece-room { font-size: 12px; color: var(--faint); }
.showpiece strong { font: 600 20px/1.15 var(--serif); }
.showpiece small { color: var(--muted); font-size: 13px; }
.showpiece b { position: absolute; top: 14px; right: 16px; font: 600 20px var(--serif); color: var(--home-glow); }

.furniture { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.furniture-item { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.furniture-item span { font: italic 500 15px var(--serif); color: var(--home-glow); }
.furniture-item strong { display: block; font: 600 22px/1.15 var(--serif); }
.furniture-item p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.furniture-item > .primary-btn, .furniture-item > .chip { align-self: flex-start; }
.furniture-item.is-owned { border-color: rgba(77,191,137,.4); }
body.in-home .primary-btn { background: var(--home-glow); color: #1c130c; }
body.in-home .primary-btn:hover:not(:disabled) { filter: brightness(1.08); }

.property { overflow: hidden; padding: 0; gap: 0; }
.property .facade { display: block; width: 100%; height: auto; aspect-ratio: 200 / 140; max-height: 170px; object-fit: cover; }
.property-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
body.in-home .property h3 { font: 600 28px/1.05 var(--serif); }
.property-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.property-specs b { color: var(--text); font-weight: 600; }

@media (max-width: 1180px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  body.in-home .page-head h1, .home-intro h1 { font-size: 38px; }
  .home-hero, .home-hero.is-compact { aspect-ratio: auto; height: auto; min-height: 0; max-height: none; margin: 0 -14px; border-radius: 0; border-inline: 0; display: flex; flex-direction: column; overflow: hidden; }
  /* La pièce entière, sans rognage : même proportion que le dessin. */
  .home-scene { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1200 / 560; min-height: 0; order: 0; }
  .home-hero::after { display: none; }
  .home-hero-top { position: static; order: 1; flex-direction: column; gap: 10px; padding: 14px 14px 4px; background: var(--bg); }
  .home-hero-title { max-width: 100%; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .home-hero-title h1 { font-size: 38px; }
  .home-greet { font-size: 16px; }
  .home-address { font-size: 13.5px; color: var(--muted); }
  .home-prestige { position: static; display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; padding: 6px 12px; text-align: left; align-self: flex-start; background: var(--bg-2); }
  .home-prestige strong { font-size: 24px; }
  .home-prestige .meter { display: none; }
  .home-greet span { display: none; }
  .home-nowplaying { position: static; order: 2; align-self: flex-start; margin: 10px 14px 4px; max-width: calc(100% - 28px); background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .np-link { display: none; }
  .scene .ghost-label { transform-box: fill-box; transform-origin: center; transform: scale(2.5); }
  .room-tabs { margin: 12px -14px 18px; padding: 0 14px 2px; }
  .home-cards { gap: 10px; }
  .home-card { padding: 14px; }
  .home-card strong { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   VENTES — fenêtre comparative, sélection groupée
   ========================================================================== */
.sale-item { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0 16px 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.sale-item::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--rar); }
.sale-item div:first-child { display: grid; gap: 2px; min-width: 0; }
.sale-item strong { font-size: 17px; }
.sale-item span { color: var(--muted); font-size: 13.5px; }
.sale-item-value { display: grid; justify-items: end; flex: none; }
.sale-item-value strong { font: 700 22px var(--font-cond); font-variant-numeric: tabular-nums; }
.sale-warning { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 8px; background: rgba(226,162,59,.1); border: 1px solid rgba(226,162,59,.3); font-size: 14px; }
.sale-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sale-option { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); }
.sale-option header { display: grid; gap: 1px; }
.sale-option header strong { font: 700 20px var(--font-cond); }
.sale-option header span { font-size: 12.5px; color: var(--faint); }
.sale-price { font: 700 32px/1 var(--font-cond); font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.sale-hint { color: var(--muted); font-size: 13.5px; }
.sale-meta { color: var(--faint); font-size: 12.5px; }
.sale-option > button { margin-top: auto; }
.sale-option .stepper-field { margin-top: 2px; }
.sale-option.is-off { background: transparent; border-style: dashed; }
.sale-option.is-off p { color: var(--muted); font-size: 13.5px; }
.sale-option.is-off > button { align-self: flex-start; }

.quick-select { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 12px; font-size: 13.5px; color: var(--faint); }
.quick-select .link { font-size: 13.5px; color: var(--muted); }
.row.sale-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.check { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; transition: background .12s, border-color .12s; }
.check::after { content: ""; width: 10px; height: 6px; border: solid transparent; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check:hover { border-color: var(--paper); }
.check[aria-checked="true"] { background: var(--paper); border-color: var(--paper); }
.check[aria-checked="true"]::after { border-color: var(--paper-ink); }
.row.is-selected { background: rgba(232,221,194,.06); }
.selection-bar {
  position: sticky; bottom: 16px; z-index: 20; margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px 12px 18px; border-radius: 14px;
  background: rgba(36,46,59,.97); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0,0,0,.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: toast-in .2s ease;
}
.selection-bar > div:first-child { display: grid; line-height: 1.25; }
.selection-bar span { color: var(--muted); font-size: 13.5px; }
.selection-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 899px) {
  .sale-options { grid-template-columns: 1fr; }
  .sale-option { padding: 14px; }
  .sale-price { font-size: 28px; }
  .sale-option > button { min-height: 46px; }
  .row.sale-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .row.sale-row .row-actions { grid-column: 2 / -1; }
  .selection-bar { bottom: calc(var(--tab-h) + var(--safe-b) + 10px); padding: 10px 12px; }
  .selection-actions { width: 100%; }
  .selection-actions > button { flex: 1; min-height: 44px; }
}

.sale-option .stepper-field { display: grid; }
.sale-option .shop-stepper { width: 100%; }
.sale-option .shop-price-input { flex: 1; width: auto; min-width: 0; }
@media (max-width: 899px) {
  .trends-inline { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 8px; padding: 0 14px 2px; }
  .trends-inline::-webkit-scrollbar { display: none; }
  .trends-inline li { flex: none; }
  .toasts, body.in-auction .toasts { top: calc(var(--safe-t) + 64px); bottom: auto; }
  .toast.leaving { transform: translateY(-6px); }
}

/* Garde-fous mobiles : rien ne doit élargir la page */
@media (max-width: 899px) {
  .block-head { flex-wrap: wrap; row-gap: 6px; }
  .block-aside { flex-wrap: wrap; justify-content: flex-start; }
  .block-aside .chip { white-space: normal; }
  .view { overflow-x: clip; }
  .scene .scene-hint { font-size: 40px; }
}
.modal .stepper-field { display: grid; }
.modal .shop-stepper { width: 100%; }
.modal .shop-price-input { flex: 1; width: auto; min-width: 0; }
.sale-advised { font-size: 14px; color: var(--muted); }
.sale-advised strong { color: var(--text); font: 700 17px var(--font-cond); font-variant-numeric: tabular-nums; }

/* Fenêtre du compte */
.account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account-avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--paper-ink); font: 700 30px/1 var(--font-cond); box-shadow: 0 0 0 4px rgba(232,221,194,.12); }
.account-head > div { display: grid; gap: 2px; min-width: 0; }
.account-head strong { font: 700 30px/1.05 var(--font-cond); overflow-wrap: anywhere; }
.account-sync { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.account-sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.account-sync.is-on::before { background: var(--good); box-shadow: 0 0 0 3px rgba(77,191,137,.16); }
.account-note { margin-top: 14px; font-size: 13px; color: var(--faint); }
.facts.account-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   LES ROYAUMES — vue légère du réseau
   ========================================================================== */
.realms { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 14px; align-items: start; }
.realm { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 18px 18px 16px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.realm::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--realm, #c9a46a); }
.realm-naastica { --realm: #6fae9b; }
.realm-novandria { --realm: #e5484d; background: linear-gradient(180deg, rgba(229,72,77,.06), transparent 40%), var(--bg-2); }
.realm-ildoria { --realm: #84a9e6; }
.realm header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.realm header span { white-space: nowrap; }
.realm h3 { font: 600 28px/1 'Cormorant Garamond', Georgia, serif; letter-spacing: .02em; }
.realm header span { font: italic 500 15px 'Cormorant Garamond', Georgia, serif; color: var(--muted); }
.realm-naastica .realm-city + .realm-city, .realm .realm-city + .realm-city { border-top: 1px solid var(--line); padding-top: 12px; }
.realm-naastica { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.realm-naastica header { grid-column: 1 / -1; }
.realm-naastica .realm-city:nth-child(3) { border-top: 0; padding-top: 0; }
.realm-city { display: grid; gap: 8px; align-content: start; }
.realm-city-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.realm-city-head strong { font-size: 15.5px; }
.realm-lots { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); }
.realm-lots:hover { background: var(--paper-hover); }
.realm-venues { display: grid; gap: 4px; }
.realm-venue { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; background: var(--bg-3); text-align: left; transition: background .15s; }
.realm-venue:hover { background: var(--bg-4); }
.realm-venue span { display: grid; font-size: 14px; font-weight: 600; line-height: 1.25; }
.realm-venue small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.realm-quiet { font-size: 13px; color: var(--faint); }
@media (max-width: 1180px) { .realms { grid-template-columns: 1fr 1fr; } .realm-naastica { grid-column: 1 / -1; } }
@media (max-width: 899px) {
  .realms { grid-template-columns: 1fr; }
  .realm-naastica { grid-template-columns: 1fr; }
  .realm-naastica .realm-city:nth-child(3) { border-top: 1px solid var(--line); padding-top: 12px; }
}

/* Résidence : les panneaux d'information ne bloquent plus les clics sur la scène */
.home-hero-top, .home-hero-title, .home-prestige { pointer-events: none; }
.home-nowplaying, .home-nowplaying * { pointer-events: auto; }

/* L'Atelier d'Orsane */
.person-emblem { display: grid; place-items: center; background: radial-gradient(circle at 70% 40%, rgba(227,165,94,.12), transparent 60%); }
.person-emblem .emblem { width: min(240px, 80%); height: auto; opacity: .95; }
.page-head.has-person .person-emblem { -webkit-mask-image: none; mask-image: none; }
.restore-change { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; font-size: 15px; }
.restore-change span { color: var(--muted); }
.restore-change i { font-style: normal; color: var(--faint); }
.restore-change strong { font-weight: 700; }
.restore-change.is-up strong { color: var(--good); }
.menu-row.is-note { cursor: default; }
.menu-row.is-note:hover { background: none; }
@media (max-width: 899px) { .page-head.has-person .person-emblem { opacity: .55; } }

/* Vente automatique à l'ouverture d'un box */
.sheet-actions-split { justify-content: space-between; align-items: stretch; }
.sheet-actions-end { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.auto-sell {
  display: grid; gap: 1px; justify-items: start; text-align: left;
  min-height: 56px; padding: 8px 22px; border-radius: 10px;
  background: var(--good); color: #0b2619; transition: filter .15s, opacity .15s;
}
.auto-sell span { font: 700 19px/1.1 var(--font-cond); letter-spacing: .01em; }
.auto-sell small { font-size: 13px; font-weight: 600; opacity: .8; }
.auto-sell:hover:not(:disabled) { filter: brightness(1.08); }
.auto-sell:disabled { background: var(--bg-4); color: var(--muted); }
.reveal.is-sold { opacity: .55; filter: grayscale(.5); }
.reveal-sold { position: absolute; right: 10px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: #0b2619; color: #7fe0b0; font-size: 12px; font-weight: 700; }
@media (max-width: 899px) {
  .sheet-actions-split { flex-direction: column; }
  .auto-sell { width: 100%; justify-items: center; text-align: center; }
  .sheet-actions-end > button { flex: 1 1 140px; min-height: 46px; }
}
.sheet-actions-split > .auto-sell { flex: none; }
@media (max-width: 899px) { .sheet-actions-split > .auto-sell { min-height: 58px; } }

/* Rareté « Éternel » — au-dessus de Légendaire */
.chip-rar.rarity-eternal { color: #fff; border-color: transparent; background: linear-gradient(110deg, #ff3b6b, #b14bff 45%, #ffb36b 90%); background-size: 200% 100%; animation: eternal-shift 6s linear infinite; }
.row.item.rarity-eternal::before, .crow.rarity-eternal::before { background: linear-gradient(180deg, #ff3b6b, #b14bff, #ffb36b); width: 4px; }
.reveal.rarity-eternal { box-shadow: 0 0 0 2px #ff5c86, 0 0 32px -4px rgba(255,92,134,.75), 0 0 60px -10px rgba(177,75,255,.6); }
.reveal.rarity-eternal::before { background: linear-gradient(90deg, #ff3b6b, #b14bff, #ffb36b, #ff3b6b); background-size: 200% 100%; animation: eternal-shift 4s linear infinite; height: 6px; }
.reveal.rarity-eternal .reveal-rar { background: linear-gradient(110deg, #ff3b6b, #b14bff); }
.reveal.rarity-eternal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.6) 45%, transparent 60%); transform: translateX(-120%); animation: shine 1.4s ease .9s 2 both; pointer-events: none; }
.showpiece.rarity-eternal::before { box-shadow: 0 0 30px #ff5c86, 0 0 60px #b14bff; }
@keyframes eternal-shift { to { background-position: -200% 0; } }

/* Heure de clôture des ventes */
.ticket-close { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(43,36,26,.1); color: var(--paper-ink); }
.ticket-close.is-soon { background: #b8322f; color: #fff; }
.ticket-head { display: flex; flex-direction: column; }
.ticket.is-closed { filter: grayscale(.85); opacity: .62; }
.ticket.is-closed .ticket-close { background: rgba(43,36,26,.18); }
.ticket-stamp {
  position: absolute; z-index: 2; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  padding: 6px 18px; border: 3px solid #8e2b28; border-radius: 6px; color: #8e2b28;
  font: 700 22px/1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: rgba(232,221,194,.75); pointer-events: none;
}

/* Vente automatique : alerte manga */
.auto-sell-warn { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: rgba(226,162,59,.14); border: 1px solid rgba(226,162,59,.5); }
.auto-sell-warn > div:first-child { display: grid; gap: 2px; min-width: 0; }
.auto-sell-warn strong { color: var(--warn); font-size: 15px; }
.auto-sell-warn span { color: var(--muted); font-size: 13px; }
.auto-sell-warn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 899px) { .auto-sell-warn { width: 100%; } .auto-sell-warn-actions { width: 100%; } .auto-sell-warn-actions > button { flex: 1; min-height: 44px; } }

/* Portrait de Rynn : cadrage un peu plus bas pour garder le menton */
@media (min-width: 900px) { .person.person-specialist { object-position: center 34%; } }

/* Nouvelles ambiances de la résidence */
.decor-nordic { background: linear-gradient(135deg, #cfc8bb 50%, #c9a978 50%); }
.decor-library { background: linear-gradient(135deg, #23352b 50%, #b8894a 50%); }
.decor-riviera { background: linear-gradient(135deg, #e8ddc8 50%, #2f6f9a 50%); }
.decor-celestial { background: linear-gradient(135deg, #16203a 50%, #c9d8ff 50%); }
.decor-artdeco { background: linear-gradient(135deg, #111 50%, #d4af37 50%); }
.decor-faille { background: linear-gradient(135deg, #1a1416 50%, #e5383b 50%); }
body[data-decor="nordic"] { --home-glow: #fff1d6; --home-accent: #7f9a8a; }
body[data-decor="library"] { --home-glow: #ffd08a; --home-accent: #b8894a; }
body[data-decor="riviera"] { --home-glow: #fff0cf; --home-accent: #3f86b8; }
body[data-decor="celestial"] { --home-glow: #c9d8ff; --home-accent: #9fb6ff; }
body[data-decor="artdeco"] { --home-glow: #ffe2a0; --home-accent: #d4af37; }
body[data-decor="faille"] { --home-glow: #ff8080; --home-accent: #e5383b; }

/* Salle des ventes vivante */
.auction-price { position: relative; overflow: visible; }
.auction-price.bump strong { animation: bid-bump .38s cubic-bezier(.2,.9,.3,1.4); }
.price-pop { position: absolute; right: 18px; top: 14px; padding: 4px 10px; border-radius: 999px; background: var(--bg-4); color: var(--text); font-size: 13px; font-weight: 700; animation: price-pop 1.6s ease-out both; pointer-events: none; }
.price-pop.is-you { background: var(--good); color: #0b2619; }
.gavel-stamp { position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(-6deg); padding: 7px 16px; border: 2px solid var(--paper); border-radius: 6px; color: var(--paper); font: 700 18px/1 var(--font); text-transform: uppercase; letter-spacing: .14em; animation: gavel .45s cubic-bezier(.2,.9,.3,1.3) both; }
.auction-price.is-you .gavel-stamp { border-color: var(--good); color: var(--good); }
.auction-call { margin: -8px 0 0; text-align: center; font: 600 15px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 22px; }
.auction-call.flash { animation: call-flash .5s ease-out; }
.auction-clock.urgent .auction-clock-track { animation: clock-pulse .7s ease-in-out infinite; }
.auction-clock.urgent ~ .auction-call, .auction-main:has(.auction-clock.urgent) .auction-call { color: var(--red-text); }
.bidders li.just-bid { animation: bidder-flash 1.1s ease-out; }
.bid-log li.is-new { animation: log-in .35s ease-out; }
.bid-log em { font-style: normal; color: var(--faint); font-size: 12.5px; }
@keyframes bid-bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); color: var(--paper); } 100% { transform: scale(1); } }
@keyframes price-pop { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: translateY(0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes gavel { from { opacity: 0; transform: translateY(-50%) rotate(-10deg) scale(1.6); } }
@keyframes call-flash { from { opacity: .2; transform: translateY(4px); } }
@keyframes clock-pulse { 50% { box-shadow: 0 0 0 4px rgba(229,72,77,.25); } }
@keyframes bidder-flash { 0% { background: rgba(232,221,194,.28); } 100% { background: transparent; } }
@keyframes log-in { from { opacity: 0; transform: translateX(-10px); } }
@media (max-width: 899px) { .auction-call { font-size: 13.5px; margin: -6px 0 0; } .price-pop { top: 10px; right: 12px; } .gavel-stamp { font-size: 20px; right: 12px; } }

/* Visiteurs à événements */
.home-visit.is-event { border-color: rgba(255,214,160,.45); }
.event-line { font: italic 500 19px/1.45 'Cormorant Garamond', Georgia, serif; color: var(--text); margin-bottom: 16px; }
.event-outcome { font-size: 15.5px; line-height: 1.55; margin-bottom: 6px; }
.event-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 10px; background: var(--bg-3); margin-bottom: 10px; }
.event-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rar); }
.event-item > div { display: grid; gap: 2px; min-width: 0; }
.event-item strong { font-size: 15.5px; }
.event-item span { color: var(--muted); font-size: 13px; }
.event-item > b { font: 700 20px var(--font-cond); white-space: nowrap; }
.event-item .event-free { color: var(--good); }
.event-item-buy { display: flex !important; align-items: center; gap: 10px; flex: none; }
.event-item-buy b { font: 700 18px var(--font-cond); color: var(--text); }
.event-items { display: grid; }
.event-bets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.event-bets > span { color: var(--muted); font-size: 13.5px; margin-right: 4px; }
.event-roll { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 8px; background: rgba(77,191,137,.18); color: var(--good); font: 700 20px var(--font-cond); animation: gavel .4s cubic-bezier(.2,.9,.3,1.3) both; }
.event-roll.is-lose { background: rgba(229,72,77,.16); color: var(--red-text); }
.event-vip { display: grid; gap: 2px; padding: 16px 18px; border-radius: 12px; background: linear-gradient(120deg, #1b1712, #0f0d0a); border: 1px solid #c9a24a; color: #f3e6c4; }
.event-vip span { font: italic 600 15px 'Cormorant Garamond', Georgia, serif; color: #d4af37; }
.event-vip strong { font: 700 26px var(--font-cond); }
.event-vip small { color: #bfb39a; }
@media (max-width: 899px) { .event-item { flex-wrap: wrap; } .event-item-buy { width: 100%; justify-content: space-between; } }

/* Impôts à régler */
.block-alert .rows { border-color: rgba(229,72,77,.45); }
.row.is-due::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }

/* Échange d'un tome de la bibliothèque */
.swap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 4px; }
.swap > i { font-style: normal; color: var(--faint); font-size: 22px; }
.swap-side { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); text-align: center; }
.swap-side span { font-size: 12.5px; color: var(--muted); }
.swap-side strong { font: 700 22px var(--font-cond); }
.swap-side small { font-size: 12.5px; color: var(--faint); }
.swap-side.is-better { border-color: rgba(77,191,137,.55); }
.swap-side.is-better strong { color: var(--good); }

/* ==========================================================================
   SOUS-ÉCRANS DU MENU — plein écran sur le fond du menu
   ========================================================================== */
.menu-subscreen.ss-full { padding: 0; place-items: stretch; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ss-full::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,9,.78), rgba(5,6,9,.94)), url("lot49.webp") center / cover no-repeat; filter: saturate(.8); }
.ss-full::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ss-frame { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; height: 100dvh; max-height: none; background: none; border: 0; border-radius: 0; box-shadow: none; animation: ss-in .35s ease both; }
@keyframes ss-in { from { opacity: 0; transform: translateY(10px); } }
.ss-bar { display: flex; align-items: center; gap: 24px; padding: calc(var(--safe-t) + 22px) clamp(20px, 5vw, 64px) 18px; border-bottom: 1px solid rgba(202,166,102,.2); background: linear-gradient(180deg, rgba(8,9,12,.75), rgba(8,9,12,.35)); }
.ss-title { min-width: 0; }
.ss-kicker { display: block; font: 700 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #c9a46a; margin-bottom: 8px; }
.ss-title h2 { font: 600 clamp(32px, 4vw, 46px)/1 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; }
.ss-close { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid rgba(202,166,102,.35); color: #eadfc6; font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; background: rgba(8,9,12,.4); transition: background .15s, border-color .15s; }
.ss-close:hover { background: rgba(202,166,102,.14); border-color: rgba(229,194,129,.7); }
.ss-close .ic { width: 18px; height: 18px; }
.ss-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 36px clamp(20px, 5vw, 64px) calc(var(--safe-b) + 60px); scroll-behavior: smooth; }

/* Onglets */
.ss-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(202,166,102,.18); margin-left: auto; }
.ss-tabs + .ss-close { margin-left: 0; }
.ss-tab { padding: 10px 18px; border-radius: 999px; color: #aab1ba; font: 600 14px/1 var(--font); white-space: nowrap; transition: background .15s, color .15s; }
.ss-tab:hover { color: #f2ede4; }
.ss-tab.is-active { background: linear-gradient(180deg, #e3c27f, #c9a04f); color: #1b140a; }
.rules-panel { display: none; max-width: 980px; margin: 0 auto; }
.rules-panel.is-active { display: block; animation: ss-in .3s ease both; }
.ss-next { display: inline-flex; margin-top: 30px; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(202,166,102,.4); color: #e3c27f; font: 700 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.ss-next:hover { background: rgba(202,166,102,.12); }

/* Le récit */
.lore-hero { text-align: center; padding: 18px 0 44px; margin-bottom: 40px; border-bottom: 1px solid rgba(202,166,102,.18); }
.lore-hero-kicker { font: 700 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #c9a46a; }
.lore-hero p { margin: 18px auto 0; max-width: 30ch; font: italic 500 clamp(24px, 3vw, 34px)/1.35 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; }
.lore-ch { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 24px; margin-bottom: 48px; }
.lore-ch-num { font: 600 56px/1 'Cormorant Garamond', Georgia, serif; color: rgba(217,175,99,.55); text-align: right; padding-top: 2px; }
.lore-ch-body h3 { font: 600 34px/1.1 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; margin-bottom: 14px; }
.lore-ch-body > p { color: #c9ced5; font-size: 16px; line-height: 1.8; max-width: 70ch; }
.lore-ch-body > p + p { margin-top: 14px; }
.lore-ch-body strong { color: #f2ede4; }
.lore-ch-body em { color: #e8d3a8; }
.dropcap::first-letter { float: left; font: 600 64px/.8 'Cormorant Garamond', Georgia, serif; color: #d9af63; margin: 8px 12px 0 0; }
.scholar-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.scholar { position: relative; padding: 18px 18px 20px; border-radius: 4px; background: linear-gradient(180deg, #e9dfc6, #ddd0b0); color: #2b241a; box-shadow: 0 16px 30px -18px rgba(0,0,0,.9); transform: rotate(-.6deg); }
.scholar:nth-child(2) { transform: rotate(.5deg); }
.scholar:nth-child(3) { transform: rotate(-.3deg); }
.scholar span { font: 700 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #8a6d3b; }
.scholar h4 { font: 600 22px/1.15 'Cormorant Garamond', Georgia, serif; margin: 8px 0 6px; }
.scholar p { font: italic 500 16px/1.45 'Cormorant Garamond', Georgia, serif; color: #4a3e2c; }
.cast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.cast-card { margin: 0; overflow: hidden; border-radius: 12px; background: #101216; border: 1px solid rgba(202,166,102,.22); display: flex; flex-direction: column; }
.cast-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
.cast-card figcaption { display: grid; gap: 3px; padding: 12px 12px 14px; }
.cast-card strong { font: 600 19px/1.1 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; }
.cast-card span { font: 700 10px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #c9a46a; }
.cast-card em { font-style: normal; font-size: 12.5px; color: #a9b0ba; line-height: 1.45; margin-top: 4px; }

/* Comment jouer */
.play-intro { margin-bottom: 22px; }
.play-intro h3 { font: 600 34px/1.1 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; }
.play-intro p { color: #aeb5bf; margin-top: 6px; max-width: 64ch; }
.steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: s; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 22px; border-radius: 14px; background: rgba(13,15,19,.72); border: 1px solid rgba(255,255,255,.07); }
.step-n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(202,166,102,.5); font: 600 26px/1 'Cormorant Garamond', Georgia, serif; color: #e3c27f; background: radial-gradient(circle, rgba(217,175,99,.14), transparent 70%); }
.step h4 { font: 600 24px/1.1 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; margin-bottom: 6px; }
.step p { color: #c4cad1; font-size: 15px; line-height: 1.6; }
.step strong { color: #f2ede4; }
.step small { display: block; margin-top: 8px; color: #c9a46a; font-size: 13px; }
.rynn-tip { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 16px 20px; border-radius: 14px; background: linear-gradient(90deg, rgba(181,135,72,.16), rgba(13,15,19,.6)); border: 1px solid rgba(202,166,102,.3); }
.rynn-tip img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 2px solid rgba(217,175,99,.6); flex: none; }
.rynn-tip strong { font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #c9a46a; }
.rynn-tip p { font: italic 500 20px/1.35 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; margin-top: 6px; }

/* Raretés & lexique */
.rarity-ladder { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; height: 260px; padding: 20px; margin-bottom: 40px; border-radius: 14px; background: rgba(13,15,19,.72); border: 1px solid rgba(255,255,255,.07); }
.rung { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; height: 100%; }
.rung i { display: block; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 85%, #fff), color-mix(in srgb, var(--rar) 55%, #000)); box-shadow: 0 0 24px -6px var(--rar); }
.rung span { text-align: center; font: 700 12px/1.2 var(--font); color: var(--rar); }
.rung.rarity-eternal i { background: linear-gradient(180deg, #ffb36b, #ff3b6b 45%, #b14bff); box-shadow: 0 0 34px -4px #ff5c86; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.glossary div { padding: 16px 18px; border-radius: 12px; background: rgba(13,15,19,.72); border: 1px solid rgba(255,255,255,.07); }
.glossary dt { font: 600 21px/1.1 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; }
.glossary dd { margin: 6px 0 0; color: #aeb5bf; font-size: 14px; }

/* Options */
.ss-narrow .ss-scroll { padding-top: 30px; }
.opt-sheet { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.opt-card { padding: 6px 22px 8px; border-radius: 16px; background: rgba(13,15,19,.78); border: 1px solid rgba(255,255,255,.07); }
.opt-card header { display: flex; align-items: center; gap: 10px; padding: 14px 0 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.opt-card header .ic { width: 18px; height: 18px; color: #c9a46a; }
.opt-card h3 { font: 700 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #d8cdb6; }
.opt-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.opt-line + .opt-line { border-top: 1px solid rgba(255,255,255,.05); }
.opt-line > div { display: grid; gap: 3px; min-width: 0; }
.opt-line strong { font-size: 16px; color: #f2ede4; }
.opt-line p { font-size: 13.5px; color: #98a0ab; }
.opt-line-col { flex-direction: column; align-items: stretch; gap: 12px; }
.opt-vol-head { display: flex !important; justify-content: space-between; align-items: baseline; }
.opt-vol-head b { font: 700 18px var(--font-cond); color: #e3c27f; font-variant-numeric: tabular-nums; }
.opt-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #d9af63 var(--lot49-volume, 35%), rgba(255,255,255,.12) var(--lot49-volume, 35%)); outline: none; }
.opt-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #f4e3bd; border: 3px solid #b58748; box-shadow: 0 2px 10px rgba(0,0,0,.5); cursor: pointer; }
.opt-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #f4e3bd; border: 3px solid #b58748; cursor: pointer; }
.opt-btn { min-width: 140px; }
.switch { position: relative; flex: none; width: 58px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); font-size: 0; color: transparent; transition: background .2s, border-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #d7dbe0; box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .2s cubic-bezier(.3,.9,.4,1.2), background .2s; }
.switch[aria-checked="true"] { background: linear-gradient(90deg, #b58748, #d9af63); border-color: transparent; }
.switch[aria-checked="true"]::after { transform: translateX(26px); background: #fff7e6; }
.opt-card.is-danger { border-color: rgba(229,72,77,.32); background: linear-gradient(180deg, rgba(229,72,77,.06), rgba(13,15,19,.8)); }
.opt-card.is-danger header .ic, .opt-card.is-danger h3 { color: #e58a8c; }

/* Crédits */
.credits-roll { max-width: 640px; margin: 0 auto; text-align: center; padding: 10px 0 20px; }
.credits-logo { width: 190px; margin: 0 auto; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); filter: drop-shadow(0 20px 50px rgba(229,72,77,.3)); }
.credits-tag { margin-top: 6px; font: italic 500 22px/1.4 'Cormorant Garamond', Georgia, serif; color: #e9e2d4; }
.credits-sep { width: 120px; height: 1px; margin: 34px auto; background: linear-gradient(90deg, transparent, #c9a46a, transparent); }
.credits-list2 { display: grid; gap: 30px; margin: 0; }
.credits-list2 dt { font: 700 11px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: #c9a46a; margin-bottom: 10px; }
.credits-list2 dd { margin: 0; font: 600 28px/1.25 'Cormorant Garamond', Georgia, serif; color: #f6f0e4; }
.credits-thanks { font: italic 500 19px/1.5 'Cormorant Garamond', Georgia, serif; color: #cfc6b4; }
.credits-meta { margin-top: 26px; font-size: 12px; letter-spacing: .06em; color: #7d848d; }

@media (max-width: 899px) {
  .ss-bar { flex-wrap: wrap; gap: 14px; padding: calc(var(--safe-t) + 14px) 16px 12px; }
  .ss-title h2 { font-size: 30px; }
  .ss-close { padding: 9px 12px; }
  .ss-close span { display: none; }
  .ss-tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .ss-tabs::-webkit-scrollbar { display: none; }
  .ss-tab { flex: 1; padding: 10px 12px; font-size: 13px; }
  .ss-scroll { padding: 22px 16px calc(var(--safe-b) + 40px); }
  .lore-hero { padding-bottom: 28px; margin-bottom: 28px; }
  .lore-ch { grid-template-columns: 1fr; margin-bottom: 34px; }
  .lore-ch-num { text-align: left; font-size: 34px; margin-bottom: 2px; }
  .lore-ch-body h3 { font-size: 28px; }
  .lore-ch-body > p { font-size: 15px; }
  .scholar-cards { grid-template-columns: 1fr; }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .step-n { width: 42px; height: 42px; font-size: 22px; }
  .rarity-ladder { gap: 4px; padding: 14px 8px; height: 220px; }
  .rung span { font-size: 9.5px; writing-mode: initial; }
  .glossary { grid-template-columns: 1fr; }
  .opt-line { flex-wrap: wrap; }
  .opt-line > div { flex: 1; }
  .opt-btn { width: 100%; min-height: 46px; }
  .credits-list2 dd { font-size: 23px; }
}
input.opt-range[type="range"] { height: 6px; margin: 10px 0; }
.ss-frame { min-width: 0; max-width: 100vw; }
.ss-bar, .ss-scroll, .ss-tabs, .rules-panel { min-width: 0; }
@media (max-width: 899px) {
  .ss-close, .ss-tabs + .ss-close { order: 2; margin-left: auto; }
  .ss-title { order: 1; flex: 1; }
  .ss-tabs { order: 3; flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 899px) {
  .ss-tab { padding: 9px 8px; font-size: 12.5px; }
  .rung span { font-size: 8.5px; }
}
.ss-tab .t-short { display: none; }
@media (max-width: 420px) { .ss-tab .t-long { display: none; } .ss-tab .t-short { display: inline; } .ss-tab { font-size: 13px; } }

/* Box de Nausalia (forêt des Lumo) et ventes privées */
.ticket-tag { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ticket.is-nausalia { background: linear-gradient(160deg, #e3efe0, #d2e6d6); box-shadow: 0 0 0 1px rgba(80,200,160,.55), 0 0 34px -6px rgba(80,220,170,.55); }
.ticket.is-nausalia .ticket-tag { background: #12453a; color: #9ff2d3; }
.ticket.is-nausalia .ticket-stub { background: linear-gradient(180deg, #cfe5d7, #bcdccb); }
.ticket.is-vip { box-shadow: 0 0 0 1px #c9a24a, 0 0 30px -8px rgba(212,175,55,.6); }
.ticket.is-vip .ticket-tag { background: #1b1712; color: #e8c867; }

/* Éternel : arc-en-ciel nacré, sans défilement */
:root { --eternal-rainbow: linear-gradient(100deg, #ff7a7a 0%, #ffb86b 17%, #ffe27a 33%, #8ff0a4 50%, #7fd4ff 67%, #9a8cff 83%, #f08cff 100%); }
.chip-rar.rarity-eternal, .reveal.rarity-eternal .reveal-rar, .rarity-scale .rarity-eternal {
  background: var(--eternal-rainbow) !important; background-size: 100% 100% !important; animation: none !important;
  color: #fff !important; text-shadow: 0 1px 2px rgba(40,20,60,.6); border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 12px -2px rgba(190,150,255,.55);
}
.reveal.rarity-eternal::before { background: var(--eternal-rainbow) !important; background-size: 100% 100% !important; animation: none !important; }
.reveal.rarity-eternal { box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 26px -4px rgba(255,180,120,.6), 0 0 40px -8px rgba(140,170,255,.65) !important; }
.row.item.rarity-eternal::before, .crow.rarity-eternal::before { background: linear-gradient(180deg, #ff7a7a, #ffe27a, #8ff0a4, #7fd4ff, #f08cff) !important; }
.rung.rarity-eternal i { background: linear-gradient(180deg, #ff7a7a, #ffb86b, #ffe27a, #8ff0a4, #7fd4ff, #9a8cff, #f08cff) !important; box-shadow: 0 0 26px -6px rgba(190,150,255,.8) !important; }
.rung.rarity-eternal span { background: var(--eternal-rainbow); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.showpiece.rarity-eternal::before { box-shadow: 0 0 30px rgba(255,200,120,.7), 0 0 60px rgba(140,170,255,.6) !important; }

/* Collections thématiques et hauts faits */
.sets-head { margin: 4px 0 14px; color: var(--muted); font-size: 14px; }
.sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.set-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.set-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.set-card h3 { font: 700 18px/1.2 var(--font-cond); }
.set-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.set-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.set-card.is-ready { border-color: rgba(77,191,137,.55); box-shadow: 0 0 0 1px rgba(77,191,137,.25), 0 10px 30px -18px rgba(77,191,137,.6); }
.set-card.is-claimed { opacity: .72; }
.set-reward { font-size: 13px; color: var(--paper); font-weight: 700; }
.set-meter { display: flex; align-items: center; gap: 10px; }
.set-meter .meter { flex: 1; }
.set-meter span { font: 700 14px var(--font-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.set-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px; margin: 16px 0 4px; padding: 0; list-style: none; max-height: 46vh; overflow: auto; }
.set-slots li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg-3); color: var(--faint); font-size: 13.5px; }
.set-slots li i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); font-style: normal; font-size: 11px; flex: none; }
.set-slots li.is-found { color: var(--text); }
.set-slots li.is-found i { background: var(--good); border-color: var(--good); color: #0b2619; }
.feats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); opacity: .55; }
.feat.is-on { opacity: 1; border-color: rgba(217,175,99,.45); background: linear-gradient(135deg, rgba(217,175,99,.10), var(--bg-2) 60%); }
.feat-medal { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; font-size: 20px; color: var(--faint); background: var(--bg-3); }
.feat.is-on .feat-medal { color: #1b140a; background: radial-gradient(circle at 35% 30%, #fff1c4, #d9af63 60%, #a77c33); box-shadow: 0 6px 16px -6px rgba(217,175,99,.8); }
.feat > div { display: grid; gap: 2px; }
.feat strong { font-size: 15px; }
.feat span { color: var(--muted); font-size: 13px; }
.feat small { color: #d9af63; font-size: 12px; margin-top: 2px; }
.sheet-sub { margin: 18px 0 8px; font: 700 11.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.fact small.fact-sub { display: block; margin-top: 3px; font: 500 12.5px/1.35 var(--font); color: var(--muted); }

/* Codes secrets */
.code-box .field { display: grid; gap: 6px; margin-top: 4px; }
.code-box .field span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.code-input { height: 54px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text); font: 700 20px var(--font-cond); letter-spacing: .14em; text-transform: uppercase; }
.code-input:focus { outline: none; border-color: var(--paper); box-shadow: 0 0 0 3px rgba(232,221,194,.15); }
.code-msg { min-height: 20px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.code-msg.is-error { color: var(--red-text); }
.code-success { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 8px; text-align: center; }
.code-success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--good); color: #0b2619; font-size: 28px; font-weight: 800; animation: gavel .4s cubic-bezier(.2,.9,.3,1.3) both; }
.code-success strong { font-size: 17px; margin-top: 6px; }
.code-success b { font: 700 34px var(--font-cond); color: var(--good); }
.code-success p { color: var(--muted); font-size: 13.5px; }

/* Résidence — scène en perspective */
.scene-v2 .hs-dust circle { opacity: 0; animation: hs-dust 9s ease-in-out infinite; }
@keyframes hs-dust { 0% { opacity: 0; transform: translate(0,0); } 20% { opacity: .55; } 80% { opacity: .4; } 100% { opacity: 0; transform: translate(18px,-26px); } }
.scene-v2 .hs-spin { animation: hs-spin 1.8s linear infinite; transform-box: view-box; }
@keyframes hs-spin { to { transform: rotate(360deg) scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .scene-v2 .hs-dust circle, .scene-v2 .hs-spin { animation: none; } }

/* Résidence v3 — éléments vivants */
.scene-v3 .hs-flame, .scene-v3 .hs-candle, .scene-v3 .hs-breathe, .scene-v3 .hs-tail, .scene-v3 .hs-sparkle, .scene-v3 .hs-sway-tree, .scene-v3 .hs-curtain, .scene-v3 .hs-vu { transform-box: fill-box; }
.scene-v3 .hs-flame { transform-origin: 50% 100%; animation: hs-flame .9s ease-in-out infinite alternate; }
.scene-v3 .hs-flame2 { animation-duration: .7s; animation-delay: -.3s; }
.scene-v3 .hs-flame3 { animation-duration: .55s; animation-delay: -.2s; }
@keyframes hs-flame { 0% { transform: scale(1,1) skewX(0); } 50% { transform: scale(.94,1.08) skewX(2deg); } 100% { transform: scale(1.04,.93) skewX(-2deg); } }
.scene-v3 .hs-candle { transform-origin: 50% 100%; animation: hs-flame .4s ease-in-out infinite alternate; }
.scene-v3 .hs-flicker { animation: hs-flicker 2.4s ease-in-out infinite; }
@keyframes hs-flicker { 0%,100% { opacity: 1; } 30% { opacity: .82; } 55% { opacity: .95; } 70% { opacity: .78; } }
.scene-v3 .hs-breathe { transform-origin: 50% 100%; animation: hs-breathe 3.6s ease-in-out infinite; }
@keyframes hs-breathe { 50% { transform: scale(1.025,1.07); } }
.scene-v3 .hs-tail { transform-origin: 100% 50%; animation: hs-tail 5s ease-in-out infinite; }
@keyframes hs-tail { 0%,70%,100% { transform: rotate(0); } 80% { transform: rotate(-7deg); } 90% { transform: rotate(4deg); } }
.scene-v3 .hs-zzz { fill: #fff; opacity: 0; font-weight: 700; animation: hs-zzz 4s ease-in-out infinite; }
@keyframes hs-zzz { 0% { opacity: 0; transform: translate(0,0); } 30% { opacity: .7; } 100% { opacity: 0; transform: translate(10px,-22px); } }
.scene-v3 .hs-steam path { opacity: 0; animation: hs-steam 3.2s ease-in-out infinite; }
@keyframes hs-steam { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14px); } }
.scene-v3 .hs-smoke { animation: hs-smoke 6s ease-out infinite; }
@keyframes hs-smoke { 0% { opacity: 0; transform: translate(0,0) scale(.6); } 25% { opacity: .7; } 100% { opacity: 0; transform: translate(14px,-30px) scale(2.4); } }
.scene-v3 .hs-swing { transform-box: view-box; animation: hs-swing 2s ease-in-out infinite alternate; }
@keyframes hs-swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.scene-v3 .hs-cloud { animation: hs-cloud 60s linear infinite; }
@keyframes hs-cloud { from { transform: translateX(0); } to { transform: translateX(900px); } }
.scene-v3 .hs-birds { animation: hs-birds 22s linear infinite; }
@keyframes hs-birds { from { transform: translate(-60px,10px); } to { transform: translate(700px,-20px); } }
.scene-v3 .hs-rain { animation: hs-rain .7s linear infinite; }
@keyframes hs-rain { from { transform: translateY(0); } to { transform: translateY(60px); } }
.scene-v3 .hs-twinkle { animation: hs-twinkle 3s ease-in-out infinite; }
@keyframes hs-twinkle { 50% { opacity: .15; } }
.scene-v3 .hs-float { animation: hs-float 7s ease-in-out infinite alternate; }
@keyframes hs-float { to { transform: translateY(-4px); } }
.scene-v3 .hs-sway-tree { transform-origin: 50% 100%; animation: hs-sway 5s ease-in-out infinite alternate; }
@keyframes hs-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.scene-v3 .hs-curtain { transform-origin: 50% 0; animation: hs-curtain 7s ease-in-out infinite alternate; }
@keyframes hs-curtain { from { transform: skewX(-.6deg); } to { transform: skewX(.6deg); } }
.scene-v3 .hs-blink { animation: hs-blink 1.6s steps(2) infinite; }
@keyframes hs-blink { 50% { opacity: .25; } }
.scene-v3 .hs-laser { animation: hs-laser 2.2s ease-in-out infinite; }
@keyframes hs-laser { 0%,100% { opacity: .35; } 50% { opacity: .9; } }
.scene-v3 .hs-sparkle { transform-origin: 50% 50%; animation: hs-sparkle 2.6s ease-in-out infinite; }
@keyframes hs-sparkle { 0%,100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.scene-v3 .hs-shaft { animation: hs-shaft 8s ease-in-out infinite alternate; }
@keyframes hs-shaft { to { opacity: .2; } }
.scene-v3 .hs-rift { animation: hs-rift 4s ease-in-out infinite; }
@keyframes hs-rift { 50% { opacity: .45; } }
.scene-v3 .hs-ticker { stroke-dasharray: 6 4; animation: hs-ticker 1.5s linear infinite; }
@keyframes hs-ticker { to { stroke-dashoffset: -20; } }
.scene-v3 .hs-vu { transform-origin: 0 100%; animation: hs-vu .35s ease-in-out infinite alternate; }
@keyframes hs-vu { to { transform: rotate(-24deg); } }
@media (prefers-reduced-motion: reduce) { .scene-v3 * { animation: none !important; } }

/* Visites guidées des lieux */
.pt { position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.pt.open { pointer-events: auto; opacity: 1; }
.pt-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(4,6,10,.74), 0 0 0 2px rgba(232,221,194,.85), 0 0 30px 4px rgba(232,221,194,.25); transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; cursor: pointer; }
.pt-bubble { position: fixed; width: min(440px, calc(100vw - 32px)); padding: 18px 18px 14px; border-radius: 16px; background: linear-gradient(180deg, #1d222a, #151920); border: 1px solid rgba(232,221,194,.3); box-shadow: 0 24px 60px rgba(0,0,0,.6); color: var(--text); transition: left .35s ease, top .35s ease; }
.pt-bubble.pt-pop { animation: pt-pop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pt-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.pt-bubble.pt-center { box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(232,221,194,.35); }
.pt-who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pt-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid rgba(232,221,194,.7); flex: none; background: #0d0f13; }
.pt-who span { display: block; font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #c9a46a; margin-bottom: 4px; }
.pt-who strong { font: 700 19px/1.15 var(--font-cond); }
.pt-bubble p { font-size: 14.5px; line-height: 1.55; color: #cfd4da; }
.pt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pt-dots { display: flex; gap: 6px; }
.pt-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); transition: background .2s, transform .2s; }
.pt-dots i.done { background: rgba(232,221,194,.45); }
.pt-dots i.on { background: var(--paper); transform: scale(1.3); }
.pt-btns { display: flex; gap: 8px; }
@media (max-width: 899px) {
  .pt-bubble { left: 12px !important; right: 12px; bottom: calc(var(--safe-b) + 84px); top: auto !important; width: auto !important; }
  .pt-bubble.pt-center { bottom: 50%; transform: translateY(50%); }
  .pt-btns .btn-sm { min-height: 42px; padding: 0 16px; }
}

/* ==========================================================================
   SENSATION DE JEU — pas de zoom, pas de sélection, retours tactiles
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Écrans tactiles uniquement : pas de double-tapotement pour zoomer, pas de « tirer pour rafraîchir » */
@media (hover: none) and (pointer: coarse) {
  html { touch-action: manipulation; overscroll-behavior-y: none; }
  body { touch-action: manipulation; }
}
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: default; }
input, textarea, select, [contenteditable="true"], .allow-select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; cursor: auto; }
img, svg, image, picture, video { -webkit-user-drag: none; -webkit-touch-callout: none; }
a, button, [role="button"], [data-act], label { -webkit-tap-highlight-color: transparent; }
.primary-btn, .secondary-btn, .ghost-btn, .danger-btn, .icon-btn, .menu-row, .seg, .ss-tab, .ss-close, .bid-btn, [data-act="bid"] { transition: transform .08s ease, filter .12s ease; }
.primary-btn:active:not(:disabled), .secondary-btn:active:not(:disabled), .ghost-btn:active:not(:disabled), .danger-btn:active:not(:disabled), .icon-btn:active:not(:disabled), .menu-row:active, .seg:active, .ss-tab:active, [data-act="bid"]:active:not(:disabled) { transform: scale(.965); filter: brightness(1.08); }
:focus:not(:focus-visible) { outline: none; }
/* Barres de défilement aux couleurs du jeu */
* { scrollbar-width: thin; scrollbar-color: rgba(232,221,194,.28) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(232,221,194,.22); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,221,194,.38); background-clip: padding-box; }

/* Ordinateur : la page ne défile plus en bloc. Seule la colonne de contenu défile,
   dans son propre cadre — le menu et la barre du haut restent parfaitement immobiles. */
@media (min-width: 900px) {
  body.in-game { height: 100dvh; overflow: hidden; }
  body.in-game .app { height: 100dvh; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  body.in-game .sidebar { position: relative; height: 100dvh; overscroll-behavior: contain; }
  body.in-game .hud { position: relative; }
  body.in-game #viewRoot { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
}

/* Vendre depuis une fenêtre de résultats */
.result-sell { margin-top: 12px; display: flex; }
.result-sell .secondary-btn { flex: 1; }
.result-sell-done { flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; background: rgba(77,191,137,.12); color: var(--good); font-weight: 700; font-size: 13px; }
.result-sell-done:not(.is-sold) { background: rgba(232,221,194,.10); color: var(--paper); }
.reveals > * > .result-sell { padding: 0 14px 14px; }

/* ==========================================================================
   MARCHÉ DE STRATOSIA
   ========================================================================== */
.bz-head-aside { display: grid; justify-items: end; }
.bz-head-aside strong { font: 700 34px/1 var(--font-cond); color: var(--paper); }
.bz-head-aside span { font-size: 12.5px; color: var(--muted); }
.bz-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.bz-note { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.bz-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.bz-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bz-new { background: rgba(243,203,74,.14); color: #f3cb4a; }
.bz-known { background: rgba(255,255,255,.07); color: #9aa3ad; }
.bz-mystery { background: rgba(176,122,214,.16); color: #c9a2ec; }
.bz-home { background: rgba(77,191,137,.14); color: #6fd3a3; }
.bz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bz-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.bz-card:hover { transform: translateY(-2px); border-color: rgba(232,221,194,.28); }
.bz-card.is-sold { opacity: .45; filter: grayscale(.6); }
.bz-card.bz-is-mystery { background: linear-gradient(160deg, rgba(176,122,214,.12), var(--bg-2) 55%); }
.bz-card.bz-is-home { background: linear-gradient(160deg, rgba(77,191,137,.10), var(--bg-2) 55%); }
.bz-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 22px; }
.bz-card h3 { font: 700 16.5px/1.25 var(--font-cond); margin-top: 2px; }
.bz-sub { font-size: 12.5px; color: var(--muted); }
.bz-cond { font-size: 12.5px; color: var(--muted); }
.bz-cond b { color: var(--text); }
.bz-cover { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.bz-seller { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.bz-seller strong { display: block; font-size: 13px; }
.bz-seller span { font-size: 11.5px; color: var(--muted); }
.bz-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bz) 70%, #fff), var(--bz)); color: #14100c; font: 800 12.5px var(--font-cond); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.bz-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bz-price span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.bz-price strong { font: 700 20px var(--font-cond); }
.bz-sold { font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.bz-deal-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-3); margin-bottom: 12px; }
.bz-deal-item strong { display: block; font-size: 15px; }
.bz-deal-item span { font-size: 12.5px; color: var(--muted); }
.bz-deal-value { text-align: right; }
.bz-deal { display: flex; align-items: center; gap: 12px; }
.bz-deal strong { display: block; }
.bz-deal > div span { font-size: 12.5px; color: var(--muted); }
.bz-ask { margin-left: auto; text-align: right; }
.bz-ask strong { font: 700 24px var(--font-cond); color: var(--paper); }
.bz-log { list-style: none; display: grid; gap: 8px; margin: 14px 0; max-height: 230px; overflow-y: auto; padding-right: 4px; }
.bz-line { max-width: 85%; padding: 9px 12px; border-radius: 12px 12px 12px 4px; background: var(--bg-3); font-size: 14px; animation: pt-pop .25s ease; }
.bz-line b { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.bz-line.is-me { justify-self: end; border-radius: 12px 12px 4px 12px; background: rgba(232,221,194,.12); }
.bz-counter { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.bz-counter > :first-child { flex: 1; min-width: 180px; }
@media (max-width: 600px) { .bz-grid { grid-template-columns: 1fr; } .bz-note { margin-left: 0; } }
.bz-over { margin-top: 4px; padding: 12px 14px; border-radius: 10px; background: rgba(232,221,194,.08); border: 1px dashed rgba(232,221,194,.35); }
.bz-over p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.bz-over > div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Catalogue : décompte par rareté */
.rarity-breakdown { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; margin-top: 12px; }
.rarity-breakdown button { width: 100%; display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); text-align: left; cursor: pointer; }
.rarity-breakdown button:hover { border-color: rgba(232,221,194,.35); }
.rarity-breakdown span { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--rarity, var(--muted)); }
.rarity-breakdown strong { font: 700 16px var(--font-cond); }
.rarity-breakdown small { font-size: 11px; color: var(--muted); font-weight: 600; }
.rarity-breakdown .rarity-common span { color: #a7adb5; } .rarity-breakdown .rarity-uncommon span { color: #6fd3a3; } .rarity-breakdown .rarity-rare span { color: #6fa8ff; }
.rarity-breakdown .rarity-mythic span { color: #c9a2ec; } .rarity-breakdown .rarity-unique span { color: #f0a35a; } .rarity-breakdown .rarity-legendary span { color: #f3cb4a; }
.rarity-breakdown .rarity-eternal span { background: linear-gradient(90deg,#ff9ad5,#9ad7ff,#c3ffb0,#ffe59a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.crow.is-unknown .chip.is-muted { opacity: .55; }
@media (max-width: 900px) { .rarity-breakdown { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 480px) { .rarity-breakdown { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Ventes : case « Tout sélectionner » */
.select-all-row { display: flex; align-items: center; margin: -4px 0 10px; }
.select-all { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.select-all:hover { border-color: rgba(232,221,194,.35); }
.select-all small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.sa-box { position: relative; width: 20px; height: 20px; border-radius: 5px; border: 2px solid rgba(232,221,194,.55); background: transparent; transition: background .12s, border-color .12s; }
.select-all[aria-checked="true"] .sa-box { background: var(--paper); border-color: var(--paper); }
.select-all[aria-checked="true"] .sa-box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #1a1712; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.select-all[aria-checked="mixed"] .sa-box { border-color: var(--paper); }
.select-all[aria-checked="mixed"] .sa-box::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 2.5px; border-radius: 2px; background: var(--paper); }

/* ==========================================================================
   CARTES DIES NOX — Boutique de Talyne, ouverture, classeur
   ========================================================================== */
:root { --tcg-commun:#b9bec7; --tcg-non-commun:#67bd68; --tcg-rare:#5c9eff; --tcg-mythique:#ad6cff; --tcg-legendaire:#e6bd4c; --tcg-eternel:#f6e7ff; }
.tcg-kicker { display: block; font: 700 11px/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #c9a46a; }
.tcg-hero { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 22px; align-items: stretch; padding: 18px; border-radius: var(--radius); background: radial-gradient(120% 140% at 0% 0%, rgba(173,108,255,.14), transparent 55%), linear-gradient(160deg, #1c1830, var(--bg-2) 60%); border: 1px solid rgba(201,164,106,.25); margin-bottom: 16px; }
.tcg-hero-portrait { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.tcg-hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.tcg-hero-portrait span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(10,8,20,.75); font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; color: #f3cb4a; }
.tcg-hero-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tcg-hero-body h1 { font: 800 clamp(26px,3.4vw,38px)/1.05 var(--font-cond); }
.tcg-gossip { position: relative; padding: 16px 18px; border-radius: 14px 14px 14px 4px; background: rgba(232,221,194,.07); border: 1px solid rgba(232,221,194,.16); }
.tcg-gossip span { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c9a2ec; margin-bottom: 6px; }
.tcg-gossip blockquote { font: italic 17px/1.5 var(--font-serif, Georgia, serif); color: #efe6d2; }
.tcg-gossip blockquote.is-changing { animation: pt-pop .35s ease; }
.tcg-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tcg-shop { display: grid; gap: 14px; }
.tcg-booster-card { display: grid; grid-template-columns: 230px 1fr; gap: 22px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.tcg-booster-visual { position: relative; display: grid; place-items: center; aspect-ratio: 3/4.2; border-radius: 12px; background: radial-gradient(circle at 50% 40%, rgba(173,108,255,.35), transparent 65%); }
.tcg-booster-visual img { max-width: 92%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); animation: tcg-float 4s ease-in-out infinite; }
.tcg-booster-fallback, .tcg-pack-fallback { display: none; }
.tcg-booster-visual.no-art .tcg-booster-fallback, .tcg-pack.no-art .tcg-pack-fallback { display: grid; place-content: center; text-align: center; width: 78%; height: 92%; border-radius: 10px; background: linear-gradient(160deg,#2b1e4f,#0e0b1d 70%); border: 2px solid rgba(243,203,74,.55); font: 800 26px var(--font-cond); letter-spacing: .1em; color: #f3cb4a; box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.tcg-booster-fallback small { display: block; font: 600 12px var(--font); letter-spacing: .04em; color: #d7cbe9; margin-top: 6px; }
@keyframes tcg-float { 50% { transform: translateY(-6px) rotate(-1deg); } }
.tcg-booster-info { display: flex; flex-direction: column; gap: 10px; }
.tcg-booster-info h2 { font: 800 24px var(--font-cond); }
.tcg-booster-info > p { color: var(--muted); line-height: 1.5; }
.tcg-price span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tcg-price strong { font: 800 30px var(--font-cond); color: var(--paper); }
.tcg-buy { align-self: flex-start; min-height: 48px; padding: 0 22px; font-size: 15px; }
.tcg-rates { border-top: 1px dashed var(--line); padding-top: 10px; }
.tcg-rates summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.tcg-rates table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 13.5px; }
.tcg-rates th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 6px; }
.tcg-rates td { padding: 6px; border-top: 1px solid var(--line); }
.tcg-sym { display: inline-block; width: 16px; color: #c9a46a; }
.tcg-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.album-gift { font-size: 12.5px; color: #c9a2ec; }
@media (max-width: 760px) {
  .tcg-hero { grid-template-columns: 1fr; } .tcg-hero-portrait { max-width: 220px; }
  .tcg-booster-card { grid-template-columns: 1fr; } .tcg-booster-visual { max-width: 220px; margin: 0 auto; width: 100%; }
  .tcg-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* ----- Ouverture ----- */
.tcg-open { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; overflow-y: auto; padding: calc(var(--safe-t,0px) + 16px) 16px calc(var(--safe-b,0px) + 16px); }
.tcg-open.is-open { display: grid; animation: tcg-fade .3s ease; }
@keyframes tcg-fade { from { opacity: 0; } }
.tcg-open-bg { position: fixed; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(60,40,110,.85), rgba(4,4,10,.96) 70%); }
.tcg-open.is-god .tcg-open-bg { background: radial-gradient(circle at 50% 40%, rgba(243,203,74,.55), rgba(60,30,4,.9) 45%, rgba(4,4,10,.97) 80%); }
.tcg-open.is-shaking { animation: tcg-shake .6s cubic-bezier(.36,.07,.19,.97); }
.tcg-open.is-flash::after { content: ""; position: fixed; inset: 0; background: radial-gradient(circle, rgba(255,230,160,.65), transparent 65%); animation: tcg-flash .6s ease forwards; pointer-events: none; }
@keyframes tcg-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes tcg-shake { 10%,90% { transform: translate(-2px,0); } 20%,80% { transform: translate(4px,1px); } 30%,50%,70% { transform: translate(-7px,-1px); } 40%,60% { transform: translate(7px,1px); } }
.tcg-stage { position: relative; z-index: 1; width: min(980px,100%); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tcg-pack { position: relative; width: min(260px,60vw); aspect-ratio: 3/4.2; display: grid; place-items: center; }
.tcg-pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
.tcg-pack-top { clip-path: inset(0 0 82% 0); transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease; }
.tcg-pack-body { clip-path: inset(18% 0 0 0); }
.tcg-pack-glow { position: absolute; inset: -30%; background: radial-gradient(circle, rgba(255,240,200,.55), transparent 60%); opacity: 0; transition: opacity .5s ease; }
.tcg-pack.is-shaking { animation: tcg-shake .55s ease-in-out 2; }
.tcg-pack.is-torn .tcg-pack-top { transform: translate(40px,-120px) rotate(18deg); opacity: 0; }
.tcg-pack.is-torn .tcg-pack-glow { opacity: 1; }
.tcg-open.is-god .tcg-pack-glow { background: radial-gradient(circle, rgba(255,215,90,.9), transparent 62%); opacity: .8; }
.tcg-god-banner { font: 900 clamp(34px,8vw,64px)/1 var(--font-cond); letter-spacing: .12em; background: linear-gradient(90deg,#fff3b0,#f3cb4a,#fff,#f3cb4a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(243,203,74,.8)); animation: pt-pop .5s ease; }
.tcg-instruction { color: #e9e2f5; font-weight: 700; letter-spacing: .04em; text-align: center; }
.tcg-deal { display: flex; justify-content: center; gap: clamp(10px,2.4vw,26px); flex-wrap: wrap; }
.tcg-deal-card { --c: var(--tcg-commun); position: relative; width: clamp(150px,26vw,250px); aspect-ratio: 5/7; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; opacity: 0; transform: translateY(80px) scale(.6) rotate(-6deg); transition: opacity .45s ease calc(var(--i)*.14s), transform .55s cubic-bezier(.2,.9,.3,1.15) calc(var(--i)*.14s); }
.tcg-deal-card.is-dealt { opacity: 1; transform: none; }
.tcg-deal-card.r-non-commun { --c: var(--tcg-non-commun); } .tcg-deal-card.r-rare { --c: var(--tcg-rare); } .tcg-deal-card.r-mythique { --c: var(--tcg-mythique); } .tcg-deal-card.r-legendaire { --c: var(--tcg-legendaire); } .tcg-deal-card.r-eternel { --c: var(--tcg-eternel); }
.tcg-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.9,.3,1.05); }
.tcg-deal-card.is-revealed .tcg-flip { transform: rotateY(180deg); }
.tcg-deal-card:not(.is-revealed):hover .tcg-flip { transform: translateY(-6px) rotateZ(-1deg); }
.tcg-face { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 34px rgba(0,0,0,.55); }
.tcg-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcg-back { background: linear-gradient(160deg,#2b1e4f,#0e0b1d 70%); border: 2px solid rgba(243,203,74,.45); }
.tcg-back.no-art::after { content: "DIES NOX"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 20px var(--font-cond); letter-spacing: .14em; color: #f3cb4a; }
.tcg-front { transform: rotateY(180deg); background: #0e0b1d; }
.tcg-deal-card.is-revealed .tcg-front { box-shadow: 0 0 0 2px var(--c), 0 0 26px 2px color-mix(in srgb, var(--c) 60%, transparent), 0 18px 34px rgba(0,0,0,.55); }
.tcg-deal-card.r-mythique.is-revealed .tcg-front { box-shadow: 0 0 0 2px var(--c), 0 0 40px 6px rgba(173,108,255,.55); }
.tcg-deal-card.r-legendaire.is-revealed .tcg-front { box-shadow: 0 0 0 3px var(--c), 0 0 60px 14px rgba(230,189,76,.6); animation: tcg-pulse 1.6s ease-in-out infinite; }
.tcg-deal-card.r-legendaire.v-eclipse.is-revealed .tcg-front { box-shadow: 0 0 0 3px #f2d06e, 0 0 0 9px rgba(20,10,30,.9), 0 0 70px 18px rgba(242,208,110,.55); }
.tcg-deal-card.r-eternel.is-revealed .tcg-front { box-shadow: 0 0 0 3px #fff, 0 0 70px 18px rgba(255,180,240,.55), 0 0 120px 30px rgba(150,220,255,.35); animation: tcg-pulse 1.4s ease-in-out infinite; }
.tcg-deal-card.r-legendaire.is-revealed .tcg-front::after, .tcg-deal-card.r-eternel.is-revealed .tcg-front::after, .tcg-deal-card.r-mythique.is-revealed .tcg-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); background-size: 250% 100%; animation: tcg-shine 2.4s ease-in-out infinite; mix-blend-mode: screen; }
.tcg-deal-card.r-eternel.is-revealed .tcg-front::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(130deg, rgba(255,154,213,.35), rgba(154,215,255,.35), rgba(195,255,176,.35), rgba(255,229,154,.35)); mix-blend-mode: color-dodge; pointer-events: none; }
@keyframes tcg-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes tcg-pulse { 50% { filter: brightness(1.12); } }
.tcg-badge { position: absolute; z-index: 2; top: 8px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px; background: rgba(10,8,20,.82); font: 800 11px var(--font); letter-spacing: .1em; text-transform: uppercase; color: #d7cbe9; white-space: nowrap; }
.tcg-badge.is-new { background: #f3cb4a; color: #1a1408; }
.tcg-caption { position: absolute; left: 0; right: 0; bottom: -46px; text-align: center; opacity: 0; transition: opacity .4s ease .35s; }
.tcg-deal-card.is-revealed .tcg-caption { opacity: 1; }
.tcg-caption b { display: block; color: #fff; font-size: 14px; }
.tcg-caption small { color: var(--c); font-weight: 700; font-size: 12px; }
.tcg-open-actions { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.tcg-talyne-says { display: flex; align-items: center; gap: 12px; max-width: 640px; padding: 12px 16px; border-radius: 14px; background: rgba(20,14,36,.85); border: 1px solid rgba(201,164,106,.3); animation: pt-pop .35s ease; }
.tcg-talyne-says.is-big { border-color: rgba(243,203,74,.7); box-shadow: 0 0 30px rgba(243,203,74,.25); }
.tcg-talyne-says img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #c9a46a; flex: none; }
.tcg-talyne-says p { font: italic 15px/1.45 var(--font-serif, Georgia, serif); color: #f1e8d4; }
.tcg-open-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 600px) { .tcg-deal-card { width: 29vw; } .tcg-caption b { font-size: 12px; } .tcg-caption small { font-size: 10.5px; } .tcg-badge { font-size: 9px; padding: 2px 6px; } }

/* ----- Aperçu agrandi ----- */
.tcg-preview { position: fixed; inset: 0; z-index: 600; display: none; place-items: center; padding: 16px; }
.tcg-preview.is-open { display: grid; animation: tcg-fade .25s ease; }
.tcg-preview-bg { position: fixed; inset: 0; background: rgba(4,4,10,.86); }
.tcg-preview-box { position: relative; display: flex; gap: 26px; align-items: center; max-width: 920px; width: 100%; flex-wrap: wrap; justify-content: center; }
.tcg-preview-card { --sx: 50%; --sy: 50%; width: min(360px, 78vw); aspect-ratio: 5/7; perspective: 1400px; touch-action: none; }
.tcg-preview-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .25s ease-out; }
.tcg-preview-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.tcg-pb { transform: rotateY(180deg); background: #1b1530; }
.tcg-shine { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; background: radial-gradient(circle at var(--sx) var(--sy), rgba(255,255,255,.28), transparent 45%); mix-blend-mode: screen; backface-visibility: hidden; }
.tcg-preview-card.r-legendaire .tcg-pf, .tcg-preview-card.r-eternel .tcg-pf { box-shadow: 0 0 0 3px var(--tcg-legendaire), 0 0 60px rgba(230,189,76,.45), 0 30px 60px rgba(0,0,0,.6); }
.tcg-preview-card.r-eternel .tcg-pf { box-shadow: 0 0 0 3px #fff, 0 0 70px rgba(255,180,240,.5), 0 30px 60px rgba(0,0,0,.6); }
.tcg-preview-info { flex: 1; min-width: 240px; max-width: 420px; display: grid; gap: 8px; }
.tcg-preview-info h3 { font: 800 28px var(--font-cond); }
.tcg-preview-info > p { color: var(--muted); font-style: italic; }
.tcg-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ----- Classeur ----- */
.tcg-binder { display: grid; gap: 14px; }
.tcg-binder-head { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.tcg-binder-cover { position: relative; aspect-ratio: 3/4; border-radius: 10px 14px 14px 10px; background: var(--binder) center/cover no-repeat, linear-gradient(160deg,#3a1f5c,#140b24 70%); box-shadow: inset 10px 0 0 rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.45); border: 1px solid rgba(243,203,74,.35); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; overflow: hidden; }
.tcg-binder-cover span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #d7cbe9; text-shadow: 0 1px 6px #000; }
.tcg-binder-cover strong { font: 800 24px var(--font-cond); color: #f3cb4a; text-shadow: 0 2px 8px #000; }
.tcg-binder-stats { display: grid; gap: 10px; }
.tcg-progress strong { font: 800 34px var(--font-cond); }
.tcg-progress small { font-size: 16px; color: var(--muted); }
.tcg-progress span { display: block; color: var(--muted); font-size: 13px; }
.tcg-binder-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.tcg-binder-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.tcg-binder-tools .search { flex: 1; min-width: 200px; max-width: 360px; }
.tcg-book { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 18px; border-radius: 16px; background: linear-gradient(90deg,#241634 0%,#1b1128 48%,#0d0816 50%,#1b1128 52%,#241634 100%); box-shadow: 0 24px 50px rgba(0,0,0,.45), inset 0 0 0 1px rgba(243,203,74,.18); }
.tcg-book.is-single { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.tcg-page { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px; border-radius: 10px; background: linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015)); }
.tcg-book:not(.is-single) .tcg-page:first-child { margin-right: 10px; } .tcg-book:not(.is-single) .tcg-page:last-child { margin-left: 10px; }
.tcg-slot { --c: var(--tcg-commun); position: relative; aspect-ratio: 5/7; border-radius: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); padding: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.tcg-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcg-slot:not(.is-locked):hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 0 2px var(--c), 0 12px 24px rgba(0,0,0,.45); }
.tcg-slot.r-non-commun { --c: var(--tcg-non-commun); } .tcg-slot.r-rare { --c: var(--tcg-rare); } .tcg-slot.r-mythique { --c: var(--tcg-mythique); } .tcg-slot.r-legendaire { --c: var(--tcg-legendaire); box-shadow: 0 0 0 1px rgba(230,189,76,.6); } .tcg-slot.r-eternel { --c: var(--tcg-eternel); box-shadow: 0 0 0 1px #fff, 0 0 14px rgba(255,180,240,.45); }
.tcg-slot.is-empty img { filter: grayscale(1) brightness(.45); }
.tcg-slot.is-locked { cursor: default; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px), #120d1d; }
.tcg-slot.is-locked img { position: absolute; inset: 0; opacity: .55; }
.tcg-lock svg { width: 26px; height: 26px; fill: none; stroke: rgba(232,221,194,.45); stroke-width: 2; position: relative; }
.tcg-slot-num { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(10,8,20,.8); font: 700 10.5px var(--font); color: #d7cbe9; }
.tcg-slot-count { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 99px; background: #f3cb4a; color: #1a1408; font: 800 11px var(--font); }
.tcg-slot-none { position: absolute; left: 0; right: 0; top: 42%; text-align: center; font: 700 10.5px var(--font); letter-spacing: .06em; text-transform: uppercase; color: #d7cbe9; }
.tcg-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tcg-pager span { font-weight: 700; color: var(--muted); }
.tcg-binder-modal .modal { max-width: 1100px; }
@media (max-width: 760px) {
  .tcg-binder-head { grid-template-columns: 96px 1fr; } .tcg-binder-cover strong { font-size: 16px; }
  .tcg-binder-facts { grid-template-columns: 1fr 1fr; } .tcg-book { padding: 10px; } .tcg-page { gap: 8px; padding: 8px; }
}

/* ----- Carte trouvée dans un box, dialogue de Talyne ----- */
.tcg-lot-find { --c: var(--tcg-commun); display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px; background: linear-gradient(120deg, rgba(173,108,255,.16), var(--bg-3)); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); color: var(--text); text-align: left; cursor: pointer; animation: pt-pop .4s ease; }
.tcg-lot-find.r-rare { --c: var(--tcg-rare); } .tcg-lot-find.r-mythique { --c: var(--tcg-mythique); } .tcg-lot-find.r-legendaire { --c: var(--tcg-legendaire); } .tcg-lot-find.r-eternel { --c: #fff; }
.tcg-lot-find img { width: 64px; aspect-ratio: 5/7; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--c); }
.tcg-lot-find strong { display: block; font-size: 16px; }
.tcg-lot-find small { color: var(--muted); }
.talyne-dialog { display: flex; gap: 16px; align-items: flex-start; }
.talyne-dialog img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; border: 2px solid #c9a46a; }
.talyne-dialog h3 { font: 800 21px var(--font-cond); margin: 4px 0 6px; }
.talyne-dialog p { line-height: 1.55; color: #e6dfcf; }
/* Correctifs mobile : trois cartes côte à côte, classeur pleine largeur */
.tcg-book { width: 100%; box-sizing: border-box; }
.tcg-book.is-single { width: 100%; }
@media (max-width: 600px) {
  .tcg-deal { flex-wrap: nowrap; gap: 8px; }
  .tcg-deal-card { width: calc((100vw - 56px) / 3); }
  .tcg-caption { bottom: -40px; }
  .tcg-open-actions { margin-top: 54px; }
  .tcg-slot-num { font-size: 9px; padding: 1px 4px; left: 4px; bottom: 4px; }
  .tcg-lock svg { width: 20px; height: 20px; }
}
.tcg-binder, .tcg-binder-head, .tcg-binder-stats, .tcg-binder-tools { min-width: 0; max-width: 100%; }
.tcg-binder-tools .segmented { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
@media (max-width: 600px) {
  .tcg-binder-head { grid-template-columns: 1fr; } .tcg-binder-cover { width: 110px; aspect-ratio: 3/4; }
  .tcg-binder-tools .search { max-width: none; width: 100%; }
}
.tcg-pager span { white-space: nowrap; }
@media (max-width: 600px) { .tcg-pager { gap: 8px; } .tcg-pager .ghost-btn { padding: 0 12px; font-size: 13px; } }
/* Couverture du classeur dessinée en code (aucune image nécessaire) */
.tcg-binder-cover { background:
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.08), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #3b2160, #1d1032 55%, #120a22);
  align-items: center; justify-content: center; text-align: center; gap: 2px; padding: 14px 10px 12px 22px;
  box-shadow: inset 0 0 0 3px rgba(18,10,34,.9), inset 0 0 0 4px rgba(243,203,74,.45), inset 14px 0 0 rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.45); }
.tcg-binder-cover::after { content: ""; position: absolute; inset: 9px 9px 9px 19px; border: 1px dashed rgba(243,203,74,.35); border-radius: 6px; pointer-events: none; }
.tcg-rings { position: absolute; left: 4px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; }
.tcg-rings i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cf, #b8923d 55%, #5c4420); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.tcg-emblem { width: 58%; max-width: 92px; fill: none; stroke: #f3cb4a; stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(243,203,74,.45)); margin-bottom: 6px; }
.tcg-emblem path { fill: rgba(243,203,74,.18); }
.tcg-cover-label { font-size: 10px !important; letter-spacing: .22em !important; text-transform: uppercase; color: #d7cbe9; }
.tcg-binder-cover strong { font-size: 22px; letter-spacing: .06em; }
.tcg-binder-cover small { font: 700 11px var(--font); color: #c9a2ec; }
@media (max-width: 600px) { .tcg-binder-cover { width: 120px; } .tcg-binder-cover strong { font-size: 17px; } }

/* ==========================================================================
   CARTES DIES NOX — style sobre, aux couleurs standard du jeu
   ========================================================================== */
.tcg-gossip { border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); margin-bottom: 12px; }
.tcg-gossip span { color: var(--muted); }
.tcg-gossip blockquote { color: var(--text); }
.tcg-booster-card { background: var(--bg-2); }
.tcg-booster-visual { background: none; }
.tcg-booster-visual.no-art .tcg-booster-fallback, .tcg-pack.no-art .tcg-pack-fallback { background: var(--bg-3); border: 1px solid var(--line); color: var(--paper); }
.tcg-booster-fallback small { color: var(--muted); }
.tcg-booster-card { margin-bottom: 16px; }
.tcg-stats { margin-top: 16px; }
/* Ouverture : fond sombre uni, plus de dégradé coloré */
.tcg-open-bg, .tcg-open.is-god .tcg-open-bg { background: rgba(7,9,13,.95); }
.tcg-pack-glow { background: radial-gradient(circle, rgba(255,255,255,.22), transparent 60%); }
.tcg-open.is-god .tcg-pack-glow { background: radial-gradient(circle, rgba(255,226,140,.5), transparent 62%); }
.tcg-back { background: var(--bg-3); border: 1px solid var(--line); }
.tcg-back.no-art::after { color: var(--paper); }
.tcg-talyne-says { background: var(--bg-2); border-color: var(--line); }
.tcg-talyne-says.is-big { border-color: rgba(230,189,76,.6); box-shadow: none; }
.tcg-talyne-says p { color: var(--text); }
/* Cartes affichées entières, sans découpe */
.tcg-face, .tcg-front { background: transparent; }
.tcg-face img, .tcg-slot img, .tcg-preview-inner img, .tcg-lot-find img { object-fit: contain; }
.tcg-deal-card, .tcg-slot, .tcg-preview-card { aspect-ratio: 0.7; }
.tcg-face { box-shadow: none; }
.tcg-front img { filter: drop-shadow(0 16px 26px rgba(0,0,0,.55)); }
.tcg-deal-card.is-revealed .tcg-front, .tcg-deal-card.r-mythique.is-revealed .tcg-front, .tcg-deal-card.r-legendaire.is-revealed .tcg-front, .tcg-deal-card.r-legendaire.v-eclipse.is-revealed .tcg-front, .tcg-deal-card.r-eternel.is-revealed .tcg-front { box-shadow: none; }
.tcg-deal-card.r-rare.is-revealed .tcg-front img { filter: drop-shadow(0 0 14px rgba(92,158,255,.55)); }
.tcg-deal-card.r-mythique.is-revealed .tcg-front img { filter: drop-shadow(0 0 18px rgba(173,108,255,.6)); }
.tcg-deal-card.r-legendaire.is-revealed .tcg-front img { filter: drop-shadow(0 0 26px rgba(230,189,76,.75)); }
.tcg-deal-card.r-eternel.is-revealed .tcg-front img { filter: drop-shadow(0 0 22px rgba(255,190,240,.75)) drop-shadow(0 0 40px rgba(150,220,255,.5)); }
.tcg-deal-card.is-revealed .tcg-front::before, .tcg-deal-card.is-revealed .tcg-front::after { display: none; }
.tcg-pb { background: transparent; }
.tcg-preview-inner img { box-shadow: none; filter: drop-shadow(0 26px 40px rgba(0,0,0,.6)); border-radius: 0; }
.tcg-preview-card.r-legendaire .tcg-pf, .tcg-preview-card.r-eternel .tcg-pf { box-shadow: none; }
.tcg-preview-card.r-legendaire .tcg-pf { filter: drop-shadow(0 0 22px rgba(230,189,76,.55)); }
.tcg-preview-card.r-eternel .tcg-pf { filter: drop-shadow(0 0 24px rgba(255,190,240,.6)); }
.tcg-shine { display: none; }
/* Classeur : sans couverture, fonds standard */
.tcg-binder-head { grid-template-columns: 1fr; background: var(--bg-2); }
.tcg-book { background: var(--bg-2); border: 1px solid var(--line); box-shadow: none; }
.tcg-page { background: var(--bg-3); }
.tcg-slot { background: transparent; border: 0; border-radius: 6px; }
.tcg-slot.is-locked { background: var(--bg-2); border: 1px dashed var(--line); }
.tcg-slot.r-legendaire, .tcg-slot.r-eternel { box-shadow: none; }
.tcg-slot:not(.is-locked):hover { box-shadow: none; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.tcg-slot-num { background: rgba(0,0,0,.65); color: var(--text); }
.tcg-slot-lock { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.7); }
.tcg-slot-lock svg { width: 13px; height: 13px; fill: none; stroke: var(--paper); stroke-width: 2.4; }
.tcg-lock svg { stroke: var(--faint); }
.tcg-preview-actions .is-on { border-color: var(--paper); color: var(--paper); }
/* Carte trouvée dans un box */
.tcg-lot-find { background: var(--bg-3); border: 1px solid var(--line); }
.tcg-lot-find img { box-shadow: none; }
/* Badge « Nouveau » au-dessus de la carte, sans masquer son nom */
.tcg-deal-card > .tcg-badge { top: -13px; z-index: 3; opacity: 0; transition: opacity .3s ease .35s; }
.tcg-deal-card.is-revealed > .tcg-badge { opacity: 1; }
.tcg-deal { padding-top: 16px; }
/* Comptoir : potin et bulle de dialogue */
.tcg-gossip-row { display: flex; align-items: center; gap: 14px; }
.tcg-gossip-row .tcg-gossip { flex: 1; margin-bottom: 0; }
.tcg-talk { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3); color: var(--paper); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.tcg-talk:hover { border-color: rgba(232,221,194,.45); transform: translateY(-2px); }
.tcg-talk:active { transform: scale(.94); }
.tcg-talk svg { width: 28px; height: 28px; }
.tcg-talk path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; }
.tcg-talk circle { fill: currentColor; }
/* Respiration entre le comptoir et le booster */
#viewRoot > .block + .tcg-booster-card { margin-top: 18px; }
.tcg-booster-card + .block { margin-top: 18px; }

/* ==========================================================================
   OUVERTURE DU BOOSTER — déchirure à la main
   ========================================================================== */
.tcg-pack { transform-origin: 50% 70%; transition: transform .35s cubic-bezier(.3,.8,.3,1); }
.tcg-pack img { clip-path: none; }
.tcg-pack .tcg-pack-top, .tcg-pack .tcg-pack-body { transition: none; }
/* 1. On saisit le paquet : il se tend légèrement */
.tcg-pack.is-grip { transform: scale(1.05) rotate(-2.5deg); }
.tcg-pack.is-grip:not(.is-tearing) { animation: tcg-tension .42s ease-in-out infinite; }
@keyframes tcg-tension { 50% { transform: scale(1.055) rotate(-1.8deg) translateX(1px); } }
/* 2. Déchirure : le rabat se soulève depuis le coin droit, par à-coups, encore attaché à gauche */
.tcg-pack-top { transform-origin: 2% var(--tear); }
.tcg-pack.is-tearing .tcg-pack-top { animation: tcg-rip .64s steps(1,end) forwards, tcg-rip-smooth .64s cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes tcg-rip-smooth { 0% { transform: rotate(0); } 30% { transform: rotate(-4deg) translate(1px,-2px); } 34% { transform: rotate(-3.2deg) translate(1px,-1px); } 62% { transform: rotate(-10deg) translate(3px,-6px); } 66% { transform: rotate(-9deg) translate(3px,-5px); } 100% { transform: rotate(-17deg) translate(6px,-12px); } }
@keyframes tcg-rip { 0% { filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); } 100% { filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)) brightness(1.04); } }
/* Filet de lumière le long de la déchirure, qui s'étire de droite à gauche */
.tcg-tear-light { position: absolute; left: 0; right: 0; top: calc(var(--tear) - 1.4%); height: 2.8%; background: linear-gradient(90deg, transparent, rgba(255,247,225,.95) 18%, #fff 50%, rgba(255,247,225,.95) 82%, transparent); filter: blur(2px); opacity: 0; transform-origin: 100% 50%; transform: scaleX(0); pointer-events: none; }
.tcg-pack.is-tearing .tcg-tear-light { animation: tcg-light .64s cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes tcg-light { 0% { opacity: 0; transform: scaleX(0); } 20% { opacity: .9; } 100% { opacity: 1; transform: scaleX(1); } }
.tcg-open.is-god .tcg-tear-light { background: linear-gradient(90deg, transparent, #ffe28a 20%, #fff7cf 50%, #ffe28a 80%, transparent); filter: blur(3px); }
/* 3. Le rabat est arraché et jeté de côté */
.tcg-pack.is-ripped .tcg-pack-top { animation: tcg-throw .55s cubic-bezier(.25,.6,.3,1) forwards; }
@keyframes tcg-throw { from { transform: rotate(-17deg) translate(6px,-12px); opacity: 1; } to { transform: translate(190px,-170px) rotate(48deg) scale(.92); opacity: 0; } }
.tcg-pack.is-ripped { transform: scale(1.02) rotate(-1deg); }
.tcg-pack.is-ripped .tcg-tear-light { animation: tcg-light-open .7s ease forwards; }
@keyframes tcg-light-open { from { opacity: 1; transform: scaleX(1); } to { opacity: .55; transform: scaleX(1) scaleY(2.6); filter: blur(10px); } }
/* Petits fragments de papier */
.tcg-bit { position: absolute; width: 9px; height: 6px; background: #e9e4d6; opacity: 0; clip-path: polygon(0 20%, 35% 0, 70% 30%, 100% 10%, 85% 80%, 40% 100%, 10% 75%); transform: translate(-50%,-50%) scale(var(--s)); pointer-events: none; }
.tcg-pack.is-ripped .tcg-bit { animation: tcg-bit .8s cubic-bezier(.2,.7,.3,1) var(--d) forwards; }
@keyframes tcg-bit { 0% { opacity: 1; transform: translate(-50%,-50%) scale(var(--s)); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) rotate(var(--r)) scale(var(--s)); } }
/* 4. Le haut des cartes apparaît dans le paquet ouvert */
.tcg-peek { position: absolute; left: 14%; right: 14%; top: calc(var(--tear) + 1%); height: 34%; display: flex; justify-content: center; pointer-events: none; z-index: 0; }
.tcg-peek span { position: absolute; width: 62%; aspect-ratio: .7; top: 0; transform: translateY(18%); transition: transform .55s cubic-bezier(.3,.9,.3,1.1) calc(var(--k) * 70ms); }
.tcg-peek span:nth-child(1) { transform: translate(-16%,18%) rotate(-5deg); } .tcg-peek span:nth-child(3) { transform: translate(16%,18%) rotate(5deg); }
.tcg-peek img { width: 100%; height: 100%; object-fit: contain; filter: brightness(.9); }
.tcg-pack .tcg-pack-body { z-index: 1; } .tcg-pack .tcg-pack-top { z-index: 3; } .tcg-tear-light { z-index: 2; } .tcg-bit { z-index: 4; }
.tcg-pack.is-peeking .tcg-peek span:nth-child(1) { transform: translate(-16%,-26%) rotate(-5deg); }
.tcg-pack.is-peeking .tcg-peek span:nth-child(2) { transform: translateY(-34%); }
.tcg-pack.is-peeking .tcg-peek span:nth-child(3) { transform: translate(16%,-26%) rotate(5deg); }
.tcg-pack.is-peeking .tcg-peek { z-index: 0; }
@media (prefers-reduced-motion: reduce) { .tcg-pack *, .tcg-pack { animation-duration: .01s !important; transition-duration: .01s !important; } }
/* Paquet intact jusqu'au geste : la découpe n'apparaît qu'au moment de déchirer */
.tcg-pack .tcg-pack-top, .tcg-pack .tcg-pack-body { clip-path: none !important; }
.tcg-pack.is-tearing .tcg-pack-top { clip-path: var(--top-clip) !important; }
.tcg-pack.is-tearing .tcg-pack-body { clip-path: var(--body-clip) !important; }
.tcg-pack:not(.is-tearing) .tcg-pack-body { visibility: hidden; }
.tcg-pack.is-peeking .tcg-peek span:nth-child(1) { transform: translate(-18%,-44%) rotate(-6deg); }
.tcg-pack.is-peeking .tcg-peek span:nth-child(2) { transform: translateY(-56%); }
.tcg-pack.is-peeking .tcg-peek span:nth-child(3) { transform: translate(18%,-44%) rotate(6deg); }
/* Bouton « Vendre » sur les tickets papier (coffres, révélations) : encre sur papier, toujours lisible */
.reveal .result-sell .secondary-btn, .reveals .result-sell .secondary-btn { background: var(--paper-ink, #2b241a); color: var(--paper, #e8ddc2); border: 1px solid transparent; }
.reveal .result-sell .secondary-btn:hover, .reveals .result-sell .secondary-btn:hover { background: #3a3125; color: #fff7e6; }
.reveal .result-sell-done, .reveals .result-sell-done { background: rgba(43,36,26,.12); color: var(--paper-ink, #2b241a); }
.reveal .result-sell-done.is-sold, .reveals .result-sell-done.is-sold { background: rgba(46,125,82,.16); color: #1f6b44; }

/* ==========================================================================
   DÉCHIRURE RÉALISTE — sans lumière, avec bord fibreux et contre-traction
   ========================================================================== */
.tcg-tear-light { display: none !important; }
.tcg-pack-bodywrap, .tcg-pack-topwrap { position: absolute; inset: 0; }
.tcg-pack-bodywrap { z-index: 1; } .tcg-pack-topwrap { z-index: 3; }
.tcg-pack-bodywrap img, .tcg-pack-topwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Les animations du rabat passent de l'image à son conteneur (l'image et son bord fibreux bougent ensemble) */
.tcg-pack.is-tearing .tcg-pack-top, .tcg-pack.is-ripped .tcg-pack-top { animation: none !important; transform: none !important; }
.tcg-pack-topwrap { transform-origin: 2% var(--tear); }
.tcg-pack.is-tearing .tcg-pack-topwrap { animation: tcg-rip-smooth .64s cubic-bezier(.4,.1,.3,1) forwards; }
.tcg-pack.is-tearing .tcg-pack-topwrap img { filter: drop-shadow(0 6px 5px rgba(0,0,0,.45)); }
.tcg-pack.is-ripped .tcg-pack-topwrap { animation: tcg-throw .55s cubic-bezier(.25,.6,.3,1) forwards; }
/* Le paquet intact cache tout : ni découpe ni fibres avant le geste */
.tcg-pack:not(.is-tearing) .tcg-pack-bodywrap { visibility: hidden; }
.tcg-fibers { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; clip-path: inset(0 0 0 100%); }
.tcg-fibers polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.tcg-fibers .f1 { stroke: #f2eee6; stroke-width: 3.2; stroke-dasharray: 7 1.5 3 1 11 2 4 1; }
.tcg-fibers .f2 { stroke: rgba(160,152,140,.75); stroke-width: 1.1; stroke-dasharray: 2 3 6 2 1 4; }
/* La déchirure se propage du coin droit vers la gauche */
.tcg-pack.is-tearing .tcg-fibers { opacity: 1; animation: tcg-fiber-run .64s cubic-bezier(.45,.05,.3,1) forwards; }
@keyframes tcg-fiber-run { 0% { clip-path: inset(0 0 0 100%); } 30% { clip-path: inset(0 0 0 68%); } 34% { clip-path: inset(0 0 0 64%); } 62% { clip-path: inset(0 0 0 30%); } 66% { clip-path: inset(0 0 0 26%); } 100% { clip-path: inset(0 0 0 0); } }
.tcg-pack.is-ripped .tcg-fibers.is-body { clip-path: none; animation: none; opacity: 1; }
/* Contre-traction : le paquet est tiré dans l'autre sens à chaque à-coup */
.tcg-pack.is-tearing .tcg-pack-bodywrap { animation: tcg-counter .64s ease-out forwards; transform-origin: 50% 100%; }
@keyframes tcg-counter { 0% { transform: none; } 30% { transform: translate(-2px,2px) rotate(.6deg); } 36% { transform: translate(-1px,1px) rotate(.3deg); } 62% { transform: translate(-3px,3px) rotate(.9deg); } 68% { transform: translate(-1px,1px) rotate(.4deg); } 100% { transform: translate(0,1px) rotate(.2deg); } }
.tcg-pack.is-ripped .tcg-pack-bodywrap { transform: translate(0,1px) rotate(.2deg); transition: transform .4s ease; }
/* Fragments : de vrais petits bouts de film, irréguliers */
.tcg-bit { background: #ece7dc; box-shadow: inset 0 0 0 1px rgba(150,140,125,.35); }
@media (prefers-reduced-motion: reduce) { .tcg-fibers { animation-duration: .01s !important; } }
/* Le paquet épouse exactement son visuel : la déchirure et ses fibres restent à l'intérieur */
.tcg-pack { width: auto; height: min(52vh, 420px); max-width: 70vw; }
.tcg-pack-bodywrap, .tcg-pack-topwrap { overflow: hidden; }
.tcg-pack-bodywrap img, .tcg-pack-topwrap img { object-fit: fill; }
.tcg-fibers { overflow: hidden; }
/* Les fibres n'existent que là où le paquet est réellement dessiné :
   elles sont masquées par le visuel du booster lui-même (zones transparentes = aucune fibre). */
.tcg-fibers {
  -webkit-mask-image: var(--pack-mask); mask-image: var(--pack-mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-mode: alpha; mask-mode: alpha;
}
/* Les cartes qui sortent du paquet restent dans sa largeur réelle */
.tcg-bit { display: none !important; }
.tcg-peek { left: calc(var(--pk-l, 0%) + (var(--pk-r, 100%) - var(--pk-l, 0%)) * .12); right: calc(100% - var(--pk-r, 100%) + (var(--pk-r, 100%) - var(--pk-l, 0%)) * .12); }
.tcg-peek span { width: 70%; }
.tcg-pack.is-peeking .tcg-peek span:nth-child(1) { transform: translate(-12%,-44%) rotate(-4deg); }
.tcg-pack.is-peeking .tcg-peek span:nth-child(3) { transform: translate(12%,-44%) rotate(4deg); }
/* Rareté Unique (anciennes Légendaires) et cartes secrètes */
:root { --tcg-unique: #f0a35a; }
.tcg-deal-card.r-unique { --c: var(--tcg-unique); }
.tcg-deal-card.r-unique.is-revealed .tcg-front img { filter: drop-shadow(0 0 20px rgba(240,163,90,.65)); }
.tcg-slot.r-unique { --c: var(--tcg-unique); }
.tcg-preview-card.r-unique .tcg-pf { filter: drop-shadow(0 0 20px rgba(240,163,90,.5)); }
.tcg-lot-find.r-unique { --c: var(--tcg-unique); }
.tcg-slot.is-secret { border-style: dashed; border-color: rgba(232,221,194,.35); }
.tcg-slot.is-secret .tcg-lock { font: 800 28px var(--font-cond); color: var(--faint); }

/* ==========================================================================
   REFLETS HOLOGRAPHIQUES — repris de The Last Horizon (style.css)
   ========================================================================== */
@property --holo-x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --holo-y { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --holo-angle { syntax: '<angle>'; inherits: true; initial-value: 115deg; }
@property --holo-strength { syntax: '<number>'; inherits: true; initial-value: .36; }
.tcg-holo-host { --holo-x: 50%; --holo-y: 50%; --holo-angle: 115deg; --holo-strength: .36; isolation: isolate; }
.tcg-holo-host img { position: relative; z-index: 1; }
.tcg-card-holo {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity .22s ease; mix-blend-mode: screen;
  -webkit-mask-image: var(--card-mask, linear-gradient(#000,#000)); mask-image: var(--card-mask, linear-gradient(#000,#000));
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.tcg-holo-host:not(.is-back-visible).rarity-rare .tcg-card-holo,
.tcg-holo-host:not(.is-back-visible).rarity-mythic .tcg-card-holo,
.tcg-holo-host:not(.is-back-visible).rarity-legendary .tcg-card-holo,
.tcg-holo-host:not(.is-back-visible).rarity-duo .tcg-card-holo,
.tcg-holo-host:not(.is-back-visible).rarity-eclipse .tcg-card-holo { opacity: calc(var(--holo-strength) * .72); }
.tcg-card-holo-spectrum {
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255,255,255,.78) 0 3%, rgba(255,255,255,.2) 10%, transparent 31%),
    linear-gradient(var(--holo-angle), transparent 22%, rgba(255,255,255,.68) 43%, rgba(255,255,255,.16) 50%, transparent 68%);
  filter: saturate(1.25) contrast(1.08);
}
.tcg-card-holo-glare { background: radial-gradient(ellipse at var(--holo-x) var(--holo-y), rgba(255,255,255,.42), transparent 48%); mix-blend-mode: soft-light; }
.tcg-card-holo-stars {
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 1px, transparent 1.8px), radial-gradient(circle, rgba(255,255,255,.8) 0 1.2px, transparent 2px);
  background-size: 37px 41px, 61px 53px;
  background-position: calc(var(--holo-x) * .16) calc(var(--holo-y) * .12), calc(var(--holo-x) * -.1) calc(var(--holo-y) * .18);
  opacity: 0 !important; filter: drop-shadow(0 0 3px rgba(255,255,255,.7));
}
/* Rare : reflet froid, propre et discret. */
.tcg-holo-host.rarity-rare .tcg-card-holo-spectrum {
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(225,246,255,.7), transparent 29%),
    linear-gradient(var(--holo-angle), transparent 28%, rgba(105,190,255,.08) 35%, rgba(235,250,255,.72) 47%, rgba(88,155,255,.13) 58%, transparent 70%);
}
.tcg-holo-host.rarity-rare:not(.is-back-visible) .tcg-card-holo { opacity: calc(var(--holo-strength) * .52); }
/* Mythique : irisation violette et cyan. */
.tcg-holo-host.rarity-mythic .tcg-card-holo-spectrum {
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255,255,255,.82), rgba(193,120,255,.3) 13%, transparent 33%),
    linear-gradient(var(--holo-angle), transparent 14%, rgba(102,215,255,.2) 28%, rgba(196,90,255,.48) 41%, rgba(255,255,255,.72) 49%, rgba(91,130,255,.34) 58%, rgba(255,79,205,.2) 72%, transparent 85%);
}
.tcg-holo-host.rarity-mythic:not(.is-back-visible) .tcg-card-holo-stars { opacity: calc(var(--holo-strength) * .26) !important; }
/* Unique (ancienne Légendaire) : balayage or, lumière chaude et éclats. */
.tcg-holo-host.rarity-legendary .tcg-card-holo-spectrum {
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255,255,255,.95), rgba(255,212,91,.48) 14%, transparent 35%),
    linear-gradient(var(--holo-angle), transparent 11%, rgba(255,180,40,.2) 26%, rgba(255,240,173,.74) 45%, rgba(255,255,255,.9) 50%, rgba(255,187,45,.4) 61%, transparent 84%);
}
.tcg-holo-host.rarity-legendary:not(.is-back-visible) .tcg-card-holo { opacity: calc(var(--holo-strength) * .9); }
.tcg-holo-host.rarity-legendary:not(.is-back-visible) .tcg-card-holo-stars { opacity: calc(var(--holo-strength) * .52) !important; }
/* Éternelle (Duo) : doré avec chaleur rose et cuivre. */
.tcg-holo-host.rarity-duo .tcg-card-holo-spectrum {
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255,255,255,.92), rgba(255,198,117,.42) 13%, transparent 34%),
    linear-gradient(var(--holo-angle), transparent 10%, rgba(255,143,116,.22) 24%, rgba(255,225,145,.72) 43%, rgba(255,255,255,.88) 50%, rgba(255,114,181,.26) 63%, transparent 86%);
}
.tcg-holo-host.rarity-duo:not(.is-back-visible) .tcg-card-holo { opacity: calc(var(--holo-strength) * .88); }
.tcg-holo-host.rarity-duo:not(.is-back-visible) .tcg-card-holo-stars { opacity: calc(var(--holo-strength) * .46) !important; }
/* Légendaire Éclipse : halo circulaire sombre avec couronne irisée. */
.tcg-holo-host.rarity-eclipse .tcg-card-holo-spectrum {
  background:
    radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(8,9,18,.1) 0 8%, rgba(8,9,18,.84) 12%, rgba(255,215,109,.76) 15%, rgba(116,84,255,.42) 19%, transparent 31%),
    conic-gradient(from var(--holo-angle) at var(--holo-x) var(--holo-y), transparent, rgba(83,176,255,.34), rgba(255,107,216,.38), rgba(255,220,105,.62), transparent 58%);
}
.tcg-holo-host.rarity-eclipse:not(.is-back-visible) .tcg-card-holo { opacity: calc(var(--holo-strength) * .94); }
.tcg-holo-host.rarity-eclipse:not(.is-back-visible) .tcg-card-holo-stars { opacity: calc(var(--holo-strength) * .62) !important; }
/* Le dos reste toujours propre et sans reflet de rareté. */
.tcg-holo-host.is-back-visible .tcg-card-holo { opacity: 0 !important; }
/* Balayage lent et automatique sur les cartes révélées et dans le classeur */
.tcg-holo-host.is-auto { animation: tcg-holo-sweep 7s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes tcg-holo-sweep {
  0%   { --holo-x: 18%; --holo-y: 24%; --holo-angle: 98deg;  --holo-strength: .42; }
  50%  { --holo-x: 58%; --holo-y: 46%; --holo-angle: 118deg; --holo-strength: .62; }
  100% { --holo-x: 86%; --holo-y: 78%; --holo-angle: 136deg; --holo-strength: .48; }
}
.tcg-deal-card:not(.is-revealed) .tcg-card-holo { display: none; }
/* Aperçu : couches posées sur la face avant uniquement */
.tcg-pf-wrap { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tcg-pf-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tcg-slot.tcg-holo-host { position: relative; }
@media (prefers-reduced-motion: reduce) { .tcg-card-holo { transition: none; } .tcg-holo-host.is-auto { animation: none; } }

/* ==========================================================================
   Correctifs : classeur, comptoir mobile, aperçu
   ========================================================================== */
/* Les dernières cartes s'enchaînent à la suite, sans s'étirer sur la page */
.tcg-page { align-content: start; align-items: start; }
/* Comptoir : citation sans retrait */
.tcg-gossip blockquote { margin: 0; }
@media (max-width: 600px) {
  .tcg-gossip-row { position: relative; display: block; }
  .tcg-gossip-row .tcg-gossip { padding: 14px 16px 16px; padding-right: 64px; }
  .tcg-gossip blockquote { font-size: 15.5px; line-height: 1.5; }
  .tcg-talk { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; }
  .tcg-talk svg { width: 22px; height: 22px; }
}
/* Aperçu : défilement si l'écran est petit, croix de fermeture toujours visible */
.tcg-preview { overflow-y: auto; align-items: start; place-items: start center; padding: calc(var(--safe-t, 0px) + 20px) 16px calc(var(--safe-b, 0px) + 24px); }
.tcg-preview-box { margin: auto 0; padding-top: 8px; }
.tcg-preview-x { position: fixed; top: calc(var(--safe-t, 0px) + 14px); right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 18px; cursor: pointer; }
.tcg-preview-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tcg-preview-actions .tcg-preview-close { grid-column: 1 / -1; }
.tcg-preview-actions button { min-height: 44px; white-space: nowrap; }
@media (max-width: 760px) {
  .tcg-preview-box { flex-direction: column; gap: 16px; }
  .tcg-preview-card { width: min(300px, 72vw); }
  .tcg-preview-info { min-width: 0; width: 100%; max-width: 420px; }
  .tcg-preview-info h3 { font-size: 24px; }
}

/* ==========================================================================
   Boutique : produits, comptoir cliquable
   ========================================================================== */
.tcg-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tcg-product { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.tcg-product .tcg-booster-visual { width: 100%; max-width: 200px; aspect-ratio: 3 / 4.2; margin-bottom: 6px; }
.tcg-product .tcg-booster-visual.is-wide { max-width: 300px; aspect-ratio: 4 / 3; }
.tcg-product .tcg-booster-visual img { animation: none; }
.tcg-product h2 { font: 800 22px var(--font-cond); }
.tcg-product p { color: var(--muted); line-height: 1.5; font-size: 14px; max-width: 360px; }
.tcg-product .tcg-price strong { font: 800 28px var(--font-cond); color: var(--paper); }
.tcg-product .tcg-buy { align-self: center; min-width: 220px; margin-top: auto; }
.tcg-rates { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
@media (max-width: 760px) { .tcg-products { grid-template-columns: 1fr; } .tcg-product .tcg-buy { width: 100%; max-width: 320px; } }
/* Comptoir : la citation elle-même change le potin au toucher */
button.tcg-gossip { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 16px 18px; margin: 0; transition: border-color .15s ease, background .15s ease; }
button.tcg-gossip:hover { border-color: rgba(232,221,194,.35); }
button.tcg-gossip:active { transform: scale(.995); }
.tcg-talk, .tcg-gossip-row { display: none; }
@media (max-width: 600px) { button.tcg-gossip { padding: 14px 16px; } }

/* ==========================================================================
   Aperçu : outils, bloc de revente, croix centrée
   ========================================================================== */
.tcg-preview-actions { display: none; }
.tcg-preview-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.tcg-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.tcg-tool:hover { border-color: rgba(232,221,194,.4); }
.tcg-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tcg-tool.is-on { border-color: var(--paper); color: var(--paper); }
.tcg-sell-box { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.tcg-sell-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tcg-sell-head span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tcg-sell-head strong { font: 800 20px var(--font-cond); }
.tcg-sell-head small { font: 600 12px var(--font); color: var(--muted); }
.tcg-sell-box .note { margin: 0; }
.tcg-sell-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.tcg-sell-actions button { min-height: 42px; }
.tcg-preview-info > .tcg-preview-close { width: 100%; min-height: 46px; margin-top: 4px; }
.tcg-preview-x { display: grid; place-items: center; padding: 0; line-height: 1; }
.tcg-preview-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; display: block; }

/* ==========================================================================
   Display : compteur et récapitulatif
   ========================================================================== */
.tcg-display-count { font: 800 13px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }
.tcg-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 14px 0; }
.tcg-summary-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; text-align: center; }
.tcg-summary-card img { width: 100%; aspect-ratio: .7; object-fit: contain; }
.tcg-summary-card .tcg-card-holo { bottom: auto; height: calc(100% - 40px); }
.tcg-summary-card span { font-weight: 700; font-size: 13px; }
.tcg-summary-card small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.tcg-open > .tcg-display-count { position: fixed; z-index: 2; top: calc(var(--safe-t, 0px) + 16px); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
/* Vignettes produits calées sur les proportions exactes des visuels */
.tcg-product .tcg-booster-visual { display: block; position: relative; aspect-ratio: 743 / 1363; width: 100%; max-width: 170px; background: none; }
.tcg-product .tcg-booster-visual.is-wide { aspect-ratio: 1309 / 833; max-width: 300px; }
.tcg-product .tcg-booster-visual img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.tcg-products { align-items: stretch; }
.tcg-product { justify-content: flex-start; }
.tcg-product .tcg-booster-visual + h2 { margin-top: 6px; }
@media (max-width: 760px) { .tcg-product .tcg-booster-visual { max-width: 150px; } .tcg-product .tcg-booster-visual.is-wide { max-width: 260px; } }
/* Visuels dans une zone de même hauteur : titres, prix et boutons alignés */
.tcg-product .tcg-booster-visual, .tcg-product .tcg-booster-visual.is-wide { aspect-ratio: auto; height: 300px; width: 100%; max-width: 340px; }
@media (max-width: 760px) { .tcg-product .tcg-booster-visual, .tcg-product .tcg-booster-visual.is-wide { height: 230px; } }

/* Face visible pilotée par l'angle : jamais de recto en miroir */
.tcg-preview-card .tcg-pf-wrap, .tcg-preview-card .tcg-pb { transition: opacity .08s linear; }
.tcg-preview-card.show-back .tcg-pf-wrap { opacity: 0; visibility: hidden; }
.tcg-preview-card:not(.show-back) .tcg-pb { opacity: 0; visibility: hidden; }
.tcg-preview-card .tcg-pf-wrap { transform: translateZ(1px); }
.tcg-preview-card .tcg-pb { transform: rotateY(180deg) translateZ(1px); }

/* Éclipse et Duo : plus de rond, des bandes irisées qui balaient la carte */
.tcg-holo-host.rarity-eclipse .tcg-card-holo-spectrum {
  background:
    linear-gradient(var(--holo-angle), transparent 16%, rgba(83,176,255,.22) 30%, rgba(255,107,216,.28) 39%, rgba(255,226,140,.7) 47%, rgba(255,255,255,.85) 50%, rgba(255,226,140,.55) 54%, rgba(116,84,255,.3) 63%, transparent 80%),
    linear-gradient(calc(var(--holo-angle) + 64deg), transparent 34%, rgba(255,215,109,.22) 48%, transparent 62%);
}
.tcg-holo-host.rarity-duo .tcg-card-holo-spectrum {
  background:
    linear-gradient(var(--holo-angle), transparent 12%, rgba(255,143,116,.22) 27%, rgba(255,225,145,.66) 44%, rgba(255,255,255,.86) 50%, rgba(255,225,145,.5) 55%, rgba(255,114,181,.26) 66%, transparent 86%),
    linear-gradient(calc(var(--holo-angle) - 58deg), transparent 36%, rgba(255,198,117,.2) 50%, transparent 64%);
}
.tcg-holo-host.rarity-eclipse .tcg-card-holo-glare, .tcg-holo-host.rarity-duo .tcg-card-holo-glare { background: linear-gradient(var(--holo-angle), transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); }

/* Courriers et visite de Grivok */
.grivok-letter { display: flex; gap: 16px; align-items: flex-start; padding: 4px 0 12px; }
.grivok-letter img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.grivok-line { font: italic 17px/1.5 var(--font-serif, Georgia, serif); color: var(--text); margin: 4px 0 6px; }
.grivok-sign { font-size: 12.5px; color: var(--muted); }
.grivok-taken { margin: 6px 0 10px; }
@media (max-width: 520px) { .grivok-letter img { width: 64px; height: 64px; } .grivok-line { font-size: 15.5px; } }

/* ==========================================================================
   MENU CIRCULAIRE DE LA VILLE (mobile)
   ========================================================================== */
.tabbar, .tabbar .tab { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.radial-menu { position: fixed; inset: 0; z-index: 700; pointer-events: none; }
.radial-backdrop { position: absolute; inset: 0; background: rgba(6,8,12,.55); opacity: 0; transition: opacity .18s ease; }
.radial-menu.is-open .radial-backdrop { opacity: 1; }
.radial-hub { position: absolute; transform: translate(-50%, -100%) translateY(-12px) scale(.9); padding: 7px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); text-align: center; white-space: nowrap; opacity: 0; transition: opacity .18s ease, transform .18s ease; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.radial-menu.is-open .radial-hub { opacity: 1; transform: translate(-50%, -100%) translateY(-12px) scale(1); }
.radial-hub strong { display: block; font: 800 16px var(--font-cond); color: var(--paper); }
.radial-hub span { display: block; font-size: 11.5px; color: var(--muted); }
.radial-hub.has-target { border-color: rgba(232,221,194,.55); }
.radial-item { position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--line); box-shadow: 0 8px 18px rgba(0,0,0,.45);
  transform: scale(.3); opacity: 0; transition: transform .22s cubic-bezier(.3,1.5,.5,1) var(--d), opacity .16s ease var(--d), border-color .12s ease, box-shadow .12s ease; }
.radial-menu.is-open .radial-item { transform: scale(1); opacity: 1; }
.radial-item img { width: 100%; height: 100%; object-fit: cover; }
.radial-glyph svg { width: 26px; height: 26px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.radial-menu.is-open .radial-item.is-active { transform: scale(1.22); border-color: var(--paper); box-shadow: 0 0 0 3px rgba(232,221,194,.25), 0 12px 24px rgba(0,0,0,.5); transition-delay: 0s; }
.radial-menu.is-closing .radial-item, .radial-menu.is-closing .radial-hub, .radial-menu.is-closing .radial-backdrop { opacity: 0; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .radial-item, .radial-hub, .radial-backdrop { transition: none !important; } }

/* ==========================================================================
   Menu circulaire : indice visuel, astuce, bulles
   ========================================================================== */
.radial-item { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
/* Trois points en arc au-dessus de l'icône Ville : on devine qu'il y a « plus » */
@media (max-width: 900px) {
  .tabbar [data-nav-section-tab="city"] { position: relative; }
  .tabbar [data-nav-section-tab="city"]::before {
    content: ""; position: absolute; left: 50%; top: 3px; width: 18px; height: 4px; transform: translateX(-50%);
    background:
      radial-gradient(circle, currentColor 1.4px, transparent 1.8px) 0 1px / 6px 4px no-repeat,
      radial-gradient(circle, currentColor 1.4px, transparent 1.8px) 6px 0 / 6px 4px no-repeat,
      radial-gradient(circle, currentColor 1.4px, transparent 1.8px) 12px 1px / 6px 4px no-repeat;
    opacity: .55;
  }
}
.radial-hint { position: fixed; z-index: 650; left: 12px; right: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid rgba(232,221,194,.35); box-shadow: 0 14px 30px rgba(0,0,0,.5); animation: pt-pop .3s ease; }
.radial-hint::after { content: ""; position: absolute; bottom: -7px; left: calc(var(--tx) - 12px - 7px); width: 14px; height: 14px; transform: rotate(45deg); background: var(--bg-2); border-right: 1px solid rgba(232,221,194,.35); border-bottom: 1px solid rgba(232,221,194,.35); }
.radial-hint p { flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--text); margin: 0; }
.radial-hint strong { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-bottom: 2px; }
.radial-hint b { color: var(--paper); }
.radial-hint button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-weight: 700; }

/* ==========================================================================
   Intérieur de la boutique : enseigne dans le cartouche, initiales dans le médaillon
   ========================================================================== */
.shop-scene { position: relative; margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; container-type: inline-size; }
.shop-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-scene-medal { position: absolute; left: 51.8%; top: 29.7%; width: 12.4%; aspect-ratio: 1; transform: translate(-50%,-50%); display: grid; place-items: center; border-radius: 50%;
  font: 700 6.2cqw/1 'Cinzel', Georgia, 'Times New Roman', serif; letter-spacing: .04em; color: #1f2a52;
  background: radial-gradient(circle, rgba(246,236,214,.0) 60%, rgba(246,236,214,0) 70%); text-shadow: 0 1px 0 rgba(255,255,255,.5), 0 0 1.2cqw rgba(196,152,64,.45); }
.shop-scene-plaque { position: absolute; left: 51.8%; top: 52.4%; width: 14.6%; transform: translate(-50%,-50%); text-align: center;
  font: 700 1.55cqw/1.15 'Cinzel', Georgia, 'Times New Roman', serif; letter-spacing: .06em; text-transform: uppercase; color: #1f2a52;
  text-shadow: 0 1px 0 rgba(255,255,255,.45); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ==========================================================================
   En-têtes illustrés : textes lisibles sur toutes les images
   ========================================================================== */
.page-head.has-person .page-place {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-bottom: 6px;
  padding: 4px 11px 4px 9px; border-radius: 99px;
  background: rgba(8,10,14,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; text-shadow: none;
}
.page-head.has-person .page-place::before {
  content: ""; width: 11px; height: 11px; flex: none; background: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.page-head.has-person .page-place:empty { display: none; }
.page-head.has-person h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.page-head.has-person .quote { color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.page-head.has-person .quote span { color: rgba(255,255,255,.72); }
/* Voile sombre qui monte depuis le bas, derrière le titre et la citation */
.page-head.has-person::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 70%; pointer-events: none;
  background: linear-gradient(to top, rgba(10,13,18,.9) 0%, rgba(10,13,18,.62) 45%, rgba(10,13,18,0) 100%);
}
@media (min-width: 901px) {
  .page-head.has-person::after { height: 100%; width: 70%; right: auto; background: linear-gradient(to right, rgba(14,19,26,.85) 0%, rgba(14,19,26,.5) 55%, rgba(14,19,26,0) 100%); }
}
/* Éventails : pastilles de notification et indice sur « Moi » */
.radial-item { overflow: visible; }
.radial-item img { border-radius: 50%; }
.radial-item.tone-ready { border-color: #4dbf89; box-shadow: 0 0 0 3px rgba(77,191,137,.35), 0 8px 18px rgba(0,0,0,.45); }
.radial-item.tone-alert { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229,72,77,.38), 0 8px 18px rgba(0,0,0,.45); }
.radial-item.tone-info  { border-color: #e2b85c; box-shadow: 0 0 0 3px rgba(226,184,92,.3), 0 8px 18px rgba(0,0,0,.45); }
.radial-item.tone-dot   { border-color: rgba(232,221,194,.6); }
.radial-menu.is-open .radial-item.tone-ready.is-active { border-color: #4dbf89; }
.radial-menu.is-open .radial-item.tone-alert.is-active { border-color: #e5484d; }
.radial-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  font: 800 11px/1 var(--font); color: #fff; background: #4dbf89; border: 2px solid var(--bg); }
.radial-item.tone-alert .radial-count { background: #e5484d; }
.radial-item.tone-info .radial-count { background: #c9952f; }
.radial-glyph { font: 800 22px var(--font-cond); color: var(--paper); }
@media (max-width: 900px) {
  .tabbar [data-nav-section-tab="me"] { position: relative; }
  .tabbar [data-nav-section-tab="me"]::before {
    content: ""; position: absolute; left: 50%; top: 3px; width: 18px; height: 4px; transform: translateX(-50%);
    background:
      radial-gradient(circle, currentColor 1.4px, transparent 1.8px) 0 1px / 6px 4px no-repeat,
      radial-gradient(circle, currentColor 1.4px, transparent 1.8px) 6px 0 / 6px 4px no-repeat,
      radial-gradient(circle, currentColor 1.4px, transparent 1.8px) 12px 1px / 6px 4px no-repeat;
    opacity: .55;
  }
}
/* Étiquettes d'information sur les en-têtes illustrés : fond sombre flouté, toujours lisibles */
.page-head.has-person .page-head-aside .chip {
  background: rgba(8,10,14,.68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14); text-shadow: none;
}
.page-head.has-person .page-head-aside .chip:not([class*="tone"]):not(.good):not(.bad):not(.accent):not(.info) { color: #fff; }
/* Registre : cadrage plus bas pour garder la scribe entière */
.person.person-stats { object-position: center 62%; }
@media (max-width: 900px) { .person.person-stats { top: -66%; bottom: auto; height: 175%; object-position: 30% center; } }

/* Compétences : filtres par catégorie */
.skill-filters { margin: 0 0 6px; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.skill-filters .seg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font: 800 11px/1 var(--font); background: #c9952f; color: #1a1408; }
.skill-group + .skill-group { margin-top: 6px; }
.skill-cat { font: 800 20px var(--font-cond); margin: 22px 0 10px; color: var(--paper); }
/* Porte-bonheur : avantage affiché sur chaque souvenir, booster offert par Talyne */
.keepsake-perk { color: #6fd3a3; font-weight: 700; }
.tcg-free { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid rgba(77,191,137,.55); box-shadow: 0 0 0 3px rgba(77,191,137,.12); }
.tcg-free strong { display: block; font: 800 20px var(--font-cond); margin: 2px 0 4px; }
.tcg-free p { color: var(--muted); font-style: italic; margin: 0; max-width: 60ch; }
/* Marché : offre de carte Dies Nox */
.bz-card-pill { background: rgba(92,158,255,.16); color: #8fbaff; }
.bz-is-card .bz-cover { width: 76px; height: auto; aspect-ratio: .7; object-fit: contain; border-radius: 4px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }

/* Renommée */
.renown-head { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.renown-head > div { padding: 10px 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.renown-head span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.renown-head strong { font: 800 18px var(--font-cond); color: var(--paper); }
.renown-tiers { list-style: none; display: grid; gap: 8px; margin: 0 0 10px; padding: 0; }
.renown-tiers li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); opacity: .6; }
.renown-tiers li.is-on { opacity: 1; border-color: rgba(77,191,137,.5); background: rgba(77,191,137,.06); }
.renown-tiers b { flex: none; min-width: 58px; font: 800 15px var(--font-cond); color: var(--paper); }
.renown-tiers strong { display: block; }
.renown-tiers span { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .renown-head { grid-template-columns: 1fr 1fr; } .renown-head > div:last-child { grid-column: 1 / -1; } }
/* Règles : paliers de renommée */
.renown-rules { list-style: none; display: grid; gap: 6px; margin: 4px 0 8px; padding: 0; }
.renown-rules li { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; }
.renown-rules b { display: inline-block; min-width: 54px; color: var(--paper); }
.renown-rules-note { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
