:root {
  --ink: #061725;
  --ink-2: #0a2636;
  --ink-3: #12384a;
  --panel: rgba(8, 30, 43, 0.82);
  --panel-solid: #0d2939;
  --ivory: #fff8e9;
  --paper: #f5e7c9;
  --muted: #9db0b8;
  --gold: #e7bd62;
  --gold-light: #ffe6a0;
  --gold-dark: #98651f;
  --border: rgba(230, 190, 102, 0.22);
  --danger: #ff7382;
  --success: #63d89a;
  --radius: 18px;
  --nav-height: 68px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--ink); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, rgba(3, 16, 27, 0.1), rgba(3, 16, 27, 0.83)), url("/assets/antoine-night.webp") center top / cover fixed, var(--ink);
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 30%, transparent 0 30%, rgba(0, 7, 13, 0.46) 100%); z-index: -1; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }

/* Shell */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: calc(8px + env(safe-area-inset-top)) 18px 8px; background: rgba(4, 19, 29, 0.78); border-bottom: 1px solid rgba(231, 189, 98, 0.16); backdrop-filter: blur(18px) saturate(130%); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); font-family: var(--serif); font-size: 18px; text-decoration: none; letter-spacing: -0.03em; }
.brand strong { color: var(--gold); font-weight: 700; }
.topbar-user { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.topbar-name { max-width: 30vw; padding: 2px 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; border-bottom: 1px dotted rgba(231, 189, 98, 0.45); cursor: pointer; }
.topbar-name:hover { color: var(--gold-light); }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; color: var(--gold-light); background: rgba(255,255,255,0.04); cursor: pointer; }
.main { position: relative; width: min(1120px, 100%); min-height: calc(100vh - 64px); margin: 0 auto; padding: 20px 16px calc(var(--nav-height) + 28px); }
.bottom-nav { position: fixed; z-index: 40; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); left: 12px; display: flex; justify-content: center; min-height: var(--nav-height); padding: 5px; background: rgba(7, 27, 39, 0.9); border: 1px solid rgba(231, 189, 98, 0.2); border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.45); backdrop-filter: blur(20px); }
.bottom-nav a { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; max-width: 150px; border-radius: 17px; color: #8fa4ad; font-size: 10px; text-decoration: none; transition: color .2s, background .2s; }
.bottom-nav a b { font-size: 22px; line-height: 1; font-family: var(--serif); font-weight: 400; }
.bottom-nav a.active { color: var(--gold-light); background: linear-gradient(180deg, rgba(231,189,98,.16), rgba(231,189,98,.04)); }
.bottom-nav a.active::after { content: ""; position: absolute; bottom: 2px; width: 20px; height: 2px; border-radius: 2px; background: var(--gold); }

/* Logo */
.am-logo { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 86px; height: 86px; }
.am-logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 7px rgba(69,40,0,.45)); }
.am-logo-compact { width: 38px; height: 38px; }

/* Coins Antoinistes */
.coin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; color: var(--gold-light); font-size: 12px; font-weight: 700; background: rgba(231,189,98,.1); border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.coin-pill-big { padding: 8px 13px; font-size: 14px; }
.coin-pill-big b { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.coin-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffeaa6, #d9a13a 65%, #98651f); box-shadow: inset 0 0 0 1px rgba(80,51,10,.5); }

/* Generic UI */
.panel { margin-bottom: 16px; padding: 18px; background: linear-gradient(145deg, rgba(15,47,63,.88), rgba(6,27,40,.88)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 42px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.03); backdrop-filter: blur(12px); }
.panel h1, .panel h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; }
.panel h1 { font-size: 27px; }
.panel h2 { font-size: 21px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.stat { padding: 13px 7px; text-align: center; background: rgba(10,37,51,.72); border: 1px solid var(--border); border-radius: 14px; }
.stat strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.stat span { color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 17px; color: var(--ivory); font-size: 14px; font-weight: 700; text-decoration: none; background: rgba(255,255,255,.05); border: 1px solid rgba(231,189,98,.38); border-radius: 999px; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { background: rgba(231,189,98,.12); transform: translateY(-1px); }
.btn:disabled { opacity: .48; cursor: default; transform: none; }
.btn-primary { color: #231704; background: linear-gradient(180deg, #f4d782, #ce9637); border-color: #ffe5a0; box-shadow: 0 8px 24px rgba(204,145,43,.22); }
.btn-danger { min-height: 34px; padding: 7px 12px; color: var(--danger); background: rgba(255,70,90,.04); border-color: rgba(255,115,130,.45); font-size: 12px; }
.btn-small { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.form { display: flex; flex-direction: column; gap: 13px; margin-top: 14px; }
.form label, .filters label, .field-inline { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ivory); font-size: 15px; background: rgba(2,15,24,.58); border: 1px solid rgba(231,189,98,.25); border-radius: 12px; }
input:focus, select:focus { outline: 2px solid rgba(231,189,98,.65); outline-offset: 1px; }
input[type="checkbox"] { width: auto; min-height: 0; padding: 0; accent-color: var(--gold); }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.tabs, .quick-filters, .pack-controls, .cards-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs { margin-top: 14px; }
.tab { padding: 8px 14px; color: var(--muted); font-size: 12px; background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.tab.active { color: #271b06; font-weight: 800; background: var(--gold); border-color: var(--gold); }

/* Authentication */
.auth-shell { width: min(470px, 100%); margin: 4vh auto; }
.auth-brand { padding: 20px 10px 30px; text-align: center; }
.auth-brand .am-logo { margin-bottom: 25px; }
.auth-brand h1 { margin: 0 0 7px; font-family: var(--serif); font-size: clamp(38px, 11vw, 56px); font-weight: 500; letter-spacing: -.055em; }
.auth-brand h1 span { color: var(--gold); }
.auth-brand p { margin-top: 8px; }
.auth-panel { padding: 22px; }

/* Home and pack */
.home-hero { display: grid; min-height: min(620px, calc(100vh - 170px)); margin: -20px -16px 14px; padding: 38px 22px 22px; overflow: hidden; text-align: center; background: linear-gradient(180deg, rgba(4,22,34,.1), rgba(4,22,34,.55)); border-bottom: 1px solid rgba(231,189,98,.12); }
.hero-copy { position: relative; z-index: 2; align-self: start; }
.hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 10.4vw, 54px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.hero-copy h1 em { color: var(--gold-light); font-weight: 500; }
.hero-copy > p:last-child { max-width: 500px; margin: 15px auto 0; color: #b7c6cc; font-size: 13px; line-height: 1.55; }
.pack-zone { position: relative; display: grid; place-items: center; align-content: center; min-height: 380px; perspective: 1000px; }
.pack-aura { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(246,200,101,.34), rgba(246,200,101,.08) 35%, transparent 68%); filter: blur(4px); animation: aura 3s ease-in-out infinite; }
.booster { position: relative; z-index: 2; width: 205px; aspect-ratio: 2 / 3; padding: 0; overflow: hidden; color: var(--gold-light); border: 0; background: transparent; filter: drop-shadow(0 24px 28px rgba(0,0,0,.58)) drop-shadow(0 0 20px rgba(232,190,96,.24)); cursor: pointer; transform: rotate(2deg); transition: transform .25s, filter .25s; }
.pack-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s, transform .45s; }
.pack-art-closed { left: -10px; width: calc(100% + 20px); max-width: none; }
.pack-art-open { opacity: 0; transform: scale(.96); }
.booster:hover { transform: rotate(0) translateY(-5px) scale(1.02); }.booster:disabled { opacity: 1; }
.pack-wordmark { position: absolute; z-index: 3; right: 0; bottom: 17%; left: 0; display: block; color: #fff5d6; font-family: var(--serif); font-size: 18px; text-shadow: 0 2px 5px #56131a; }
.pack-wordmark strong { color: var(--gold-light); }.pack-series { position: absolute; z-index: 3; right: 0; bottom: 11.8%; left: 0; color: rgba(255,255,255,.9); font-family: var(--serif); font-size: 11px; }
.pack-shine { position: absolute; z-index: 2; inset: 0; background: linear-gradient(108deg, transparent 43%, rgba(255,255,255,.32) 50%, transparent 57%) 0 0 / 250% 100% no-repeat; -webkit-mask: url("/assets/pack-front-logo-v4.webp") center / 100% 100% no-repeat; mask: url("/assets/pack-front-logo-v4.webp") center / 100% 100% no-repeat; animation: shine 3.5s ease-in-out infinite; pointer-events: none; transition: opacity .2s; }
.tap-hint { z-index: 2; margin: 16px 0 7px; color: #d7e1e2; font-family: var(--serif); font-size: 14px; }.pack-note { z-index: 2; margin: 0; color: var(--muted); font-size: 11px; }
.pack-zone.is-opening .booster { animation: openPack 1.1s cubic-bezier(.5,0,.2,1) forwards; }.pack-zone.is-opening .pack-art-closed { opacity: 0; transform: scale(.96); }.pack-zone.is-opening .pack-art-open { z-index: 4; opacity: 1 !important; filter: saturate(1.18) brightness(1.2); transform: scale(1.08) translateY(-5%); }.pack-zone.is-opening .pack-wordmark,.pack-zone.is-opening .pack-series { opacity: 0; }.pack-zone.is-opening .pack-shine { opacity: 0; }.pack-zone.is-opening .pack-aura { animation: burst 1s ease-out forwards; }.home-stats { position: relative; z-index: 3; margin-top: -39px; }
.pack-reveal { scroll-margin-top: 76px; padding: 27px 0 10px; text-align: center; }.pack-reveal h2 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(30px, 8vw, 46px); font-weight: 500; }
.reveal-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0; padding: 16px; color: var(--muted); font-size: 12px; background: rgba(7,28,40,.64); border: 1px solid var(--border); border-radius: 16px; }.reveal-footer p { margin: 0; }

/* Récompenses quotidiennes */
.daily-panel { display: grid; gap: 12px; }
.daily-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.daily-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; }
.daily-panel > p { margin: 0; }
.daily-slots { display: grid; gap: 10px; }
.daily-slot { display: flex; flex-direction: column; gap: 9px; padding: 13px; background: rgba(10,37,51,.62); border: 1px solid var(--border); border-radius: 14px; }
.daily-slot-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.daily-slot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.daily-slot.is-claimed { background: rgba(99,216,154,.06); border-color: rgba(99,216,154,.35); }
.daily-slot-result { color: var(--success); font-size: 14px; }

/* Boutique */
.shop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shop-item { display: grid; gap: 10px; justify-items: center; margin-bottom: 0; text-align: center; }
.shop-item-art { width: 130px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.shop-item-info h2 { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; }
.shop-item-info p { margin: 0; }
.shop-price { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px !important; color: var(--gold-light); font-size: 13px; }
.shop-price strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }

/* Place de marché */
.market-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.market-item { display: flex; flex-direction: column; gap: 8px; }
.market-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.market-price { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-light); font-family: var(--serif); font-size: 17px; }
.collection-item { display: flex; flex-direction: column; gap: 8px; }
.sell-btn { width: 100%; }

/* Fiche admin : données en base */
.details-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 12px; }
.details-table th, .details-table td { padding: 7px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(231,189,98,.12); }
.details-table tr:last-child th, .details-table tr:last-child td { border-bottom: 0; }
.details-table th { width: 38%; color: var(--muted); font-weight: 600; white-space: normal; background: none; }
.details-table td { color: var(--ivory); overflow-wrap: anywhere; }
.details-table code { font-size: 11px; }
.details-wrap { display: inline-block; max-width: 100%; white-space: normal; }

/* Collectible card */
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.card { position: relative; width: 100%; aspect-ratio: .71; padding: 5px; overflow: hidden; color: #2e241a; background: linear-gradient(145deg, #bac1c6, #505961 45%, #dce1e3); border: 1px solid #d7dadd; border-radius: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.32), inset 0 0 0 2px rgba(255,255,255,.33); }
.card::before { content: ""; position: absolute; inset: -70%; background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.55) 49%, transparent 56%); transform: rotate(12deg); opacity: .35; pointer-events: none; }
.card-frame { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(#fff9ea, #ead5ae); border: 1px solid rgba(77,56,28,.55); border-radius: 9px; box-shadow: inset 0 0 0 2px rgba(255,248,220,.6); }
.card-frame::after { content: ""; position: absolute; z-index: 9; inset: 0; background: url("/assets/card-frame-common.svg") center / 100% 100% no-repeat; pointer-events: none; }
.card-rare .card-frame::after { background-image: url("/assets/card-frame-rare.svg"); }.card-epic .card-frame::after { background-image: url("/assets/card-frame-epic.svg"); }.card-legendary .card-frame::after,.card-star .card-frame::after { background-image: url("/assets/card-frame-legendary.svg"); }
.card-rare { color: #277bcc; background: linear-gradient(145deg, #8fd5ff, #165dba 48%, #c2ecff); border-color: #a5e4ff; box-shadow: 0 12px 32px rgba(15,100,222,.32), 0 0 16px rgba(59,154,255,.28); }
.card-epic { color: #9f35dc; background: linear-gradient(145deg, #dfa0ff, #7026ad 48%, #f5c3ff); border-color: #e9aaff; box-shadow: 0 12px 32px rgba(131,31,206,.38), 0 0 18px rgba(214,76,255,.3); }
.card-legendary, .card-star { color: #b37516; background: linear-gradient(145deg, #fff1a8, #c78316 45%, #ffe788); border-color: #fff2a5; box-shadow: 0 14px 35px rgba(192,124,19,.42), 0 0 22px rgba(255,198,56,.38); }
.card-antoinette.card-epic { color: #c64497; background: linear-gradient(145deg, #ffc2eb, #9d246f 48%, #ffd6f1); }.card-wtf.card-epic { color: #743ee7; }
.card-crest { position: absolute; z-index: 11; top: 2px; left: 50%; width: 28px; height: 28px; padding: 2px; background: #fff4d4; border: 1px solid currentColor; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.22); transform: translateX(-50%); }.card-crest .am-logo { width: 100%; height: 100%; }.card-crest img { filter: contrast(1.9) brightness(.43) drop-shadow(0 1px 1px rgba(80,45,0,.2)); }
.card-crown { position: absolute; z-index: 7; top: 5px; right: 9px; color: currentColor; font-size: 16px; text-shadow: 0 1px 0 #fff7c6; }
.card-photo { position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 0; margin: 32px 7px 0; overflow: hidden; background: linear-gradient(145deg, #d8dde0, #8a959b); border: 2px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 68%, rgba(9,14,15,.33)); pointer-events: none; }.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-initials { color: rgba(255,255,255,.7); font-family: var(--serif); font-size: clamp(30px, 10vw, 58px); font-weight: 700; }.card-copies { position: absolute; z-index: 3; top: 7px; left: 7px; padding: 3px 7px; color: #2a1e0b; font-size: 10px; font-weight: 900; background: var(--gold-light); border: 1px solid rgba(80,51,10,.3); border-radius: 999px; }
.card-body { flex: 0 0 auto; min-height: 40%; padding: 6px 8px 7px; background: linear-gradient(180deg, #fffaf0, #ecd9b5); border-top: 2px solid currentColor; }.card-rarity { display: none; margin: 0; }.card-name { margin: 0 0 6px; overflow: hidden; color: #231b13; font-family: var(--serif); font-size: clamp(12px, 3.8vw, 18px); line-height: 1.1; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }.card-stat { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; column-gap: 4px; padding: 3px 2px; color: #453824; background: rgba(138,91,28,.08); border: 1px solid rgba(93,64,27,.18); border-radius: 5px; }.card-stat img { grid-row: 1 / 3; width: 17px; height: 17px; }.card-stat b { font-size: 12px; line-height: 1; }.card-stat small { font-size: 7px; line-height: 1; text-transform: uppercase; }
.card-tags { display: flex; justify-content: center; gap: 3px; overflow: hidden; }.tag { max-width: 100%; padding: 2px 5px; overflow: hidden; color: #67553b; font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; background: rgba(255,255,255,.4); border: 1px solid rgba(95,68,31,.22); border-radius: 999px; }.tag-specialiste,.tag-star { color: #8b5909; border-color: #b98a36; }.tag-modo { color: #276c91; }.tag-admin { color: #a4343a; }.tag-antoinette { color: #a72e79; }.tag-wtf { color: #5d3bb2; }
.card-meta { display: flex; justify-content: space-between; gap: 5px; margin-top: 5px; overflow: hidden; color: #74644e; font-size: 7px; white-space: nowrap; }.card-points, .card-seniority { color: #6d5631; font-size: 9px; }
.modal-card .card-meta { flex-direction: column; gap: 2px; overflow: visible; white-space: normal; text-align: center; }

/* Flip sequence */
.card-flip { aspect-ratio: .71; perspective: 1000px; }.card-flip-inner { position: relative; width: 100%; height: 100%; transition: transform .85s cubic-bezier(.2,.75,.2,1); transition-delay: var(--delay); transform-style: preserve-3d; }.card-flip.is-revealed .card-flip-inner { transform: rotateY(180deg); }.card-back, .card-face { position: absolute; inset: 0; overflow: hidden; border-radius: 13px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-back { display: grid; place-items: center; background: #08233d url("/assets/card-back-official.webp") center / cover no-repeat; border: 0; box-shadow: 0 14px 35px rgba(0,0,0,.4); }.card-face { transform: rotateY(180deg); }.card-face > .card { height: 100%; }

/* Collection */
.collection-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 18px; margin: 0 0 20px; padding: 12px 3px 18px; border-bottom: 1px solid var(--border); }.collection-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 10vw, 52px); font-weight: 500; letter-spacing: -.04em; }.collection-head > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }.collection-count { display: flex; flex-direction: column; align-items: center; min-width: 70px; padding: 8px; color: var(--gold-light); background: rgba(231,189,98,.08); border: 1px solid var(--border); border-radius: 13px; }.collection-count strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }.collection-count span { color: var(--muted); font-size: 9px; text-transform: uppercase; }

/* Admin */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px,1fr)); gap: 10px; align-items: end; }.filters .filter-search { grid-column: 1 / -1; }.filters .filter-actions { display: flex; gap: 8px; align-items: center; }.quick-filters { margin-top: 12px; }.panel-actions { display: flex; justify-content: flex-end; margin-top: 12px; }.cards-toolbar { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.admin-card { position: relative; }.admin-card.selected .card { outline: 3px solid var(--gold); outline-offset: 2px; }.admin-card-pick { position: absolute; z-index: 12; top: 8px; left: 8px; padding: 5px; background: rgba(4,18,28,.85); border-radius: 7px; cursor: pointer; }.admin-card-pick input { display: block; width: 16px; height: 16px; }.admin-card-edit { position: absolute; z-index: 12; right: 8px; bottom: 8px; }.admin-card-warning { margin-top: 7px; color: var(--danger); font-size: 10px; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 20px 12px; overflow-y: auto; background: rgba(1,8,14,.83); backdrop-filter: blur(8px); }.modal { width: min(650px,100%); padding: 18px; background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 25px 80px #000; }.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.modal-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; }.modal-card { width: 210px; margin: 0 auto 18px; }.modal fieldset { margin: 0 0 10px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; }.modal legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.tag-choices { display: flex; flex-wrap: wrap; gap: 8px; }.tag-choice { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; cursor: pointer; }.tag-choice.disabled { opacity: .4; cursor: default; }.tag-choice-auto { color: var(--gold); font-size: 9px; }.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }.field-inline input { width: 110px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; }table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }th,td { padding: 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(231,189,98,.12); }th { color: var(--gold-light); font-weight: 600; white-space: nowrap; background: rgba(1,15,24,.48); }tr:last-child td { border-bottom: 0; }.cell-actions { white-space: nowrap; }

/* Toast */
.toast { position: fixed; z-index: 200; right: 18px; bottom: calc(var(--nav-height) + 26px); left: 18px; max-width: 460px; margin: auto; padding: 13px 17px; color: var(--ivory); font-size: 13px; text-align: center; background: rgba(8,34,48,.96); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 15px 45px rgba(0,0,0,.45); backdrop-filter: blur(12px); }.toast-error { border-color: var(--danger); }.toast-success { border-color: var(--success); }

/* Hors ligne, mises à jour, installation */
.net-banner { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; color: #ffd9a0; font-size: 12px; font-weight: 600; text-align: center; background: rgba(60, 34, 6, .96); border-bottom: 1px solid rgba(255, 190, 92, .35); }
.update-banner { position: fixed; z-index: 250; right: 14px; bottom: calc(var(--nav-height) + 20px); left: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 460px; margin: auto; padding: 11px 15px; color: var(--ivory); font-size: 13px; background: rgba(10, 44, 62, .97); border: 1px solid var(--gold); border-radius: 14px; box-shadow: 0 15px 45px rgba(0,0,0,.5); }
.update-banner button { min-height: 32px; padding: 5px 13px; color: #271b06; font-size: 12px; font-weight: 800; background: var(--gold); border: 0; border-radius: 999px; cursor: pointer; }
.offline-note { margin: 9px 0 0; padding: 9px 11px; color: #ffd9a0; font-size: 12px; line-height: 1.5; background: rgba(120, 74, 12, .16); border: 1px solid rgba(255, 190, 92, .35); border-radius: 11px; }
.offline-panel h2 { color: var(--gold-light); }
.install-sheet { position: fixed; z-index: 400; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 10px; background: rgba(1, 8, 14, .74); backdrop-filter: blur(8px); }
.install-card { position: relative; width: min(470px, 100%); max-height: 92vh; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; text-align: center; background: linear-gradient(160deg, #144157, #08202f 72%); border: 1px solid var(--border); border-radius: 24px 24px 18px 18px; box-shadow: 0 -14px 60px rgba(0,0,0,.6); animation: sheet-up .32s cubic-bezier(.2,.8,.3,1); }
.install-logo { width: 92px; height: 92px; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.install-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.12; }
.install-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; color: var(--muted); font-size: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; }
.install-steps { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; text-align: left; counter-reset: install-step; }
.install-steps li { position: relative; padding: 11px 12px 11px 42px; color: #cdd9dd; font-size: 13px; line-height: 1.5; background: rgba(4,22,34,.5); border: 1px solid var(--border); border-radius: 13px; counter-increment: install-step; }
.install-steps li::before { content: counter(install-step); position: absolute; top: 11px; left: 12px; display: grid; place-items: center; width: 20px; height: 20px; color: #271b06; font-size: 11px; font-weight: 800; background: var(--gold); border-radius: 50%; }
.install-steps strong { color: var(--ivory); }
.share-icon { display: inline-grid; place-items: center; width: 19px; height: 19px; margin: 0 2px; color: var(--gold-light); font-size: 12px; line-height: 1; background: rgba(231,189,98,.16); border: 1px solid var(--border); border-radius: 5px; }
.install-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 4px; }
.install-actions .btn { width: 100%; }
.link-btn { padding: 2px; color: var(--gold-light); font-size: 12px; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.install-hint { margin: 14px 0 0; text-align: center; }
@keyframes sheet-up { from { transform: translateY(26px); opacity: 0; } }
@media (min-width: 540px) { .install-sheet { align-items: center; } .install-card { border-radius: var(--radius); } }

/* Appareils connectés */
.session-list { display: grid; gap: 9px; margin: 14px 0; padding: 0; list-style: none; }
.session-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: rgba(4, 22, 34, .5); border: 1px solid var(--border); border-radius: 13px; }
.session-item.is-current { background: rgba(99, 216, 154, .06); border-color: rgba(99, 216, 154, .4); }
.session-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.session-current-tag { padding: 1px 7px; color: #072418; font-size: 9px; font-weight: 800; text-transform: uppercase; vertical-align: middle; background: var(--success); border-radius: 999px; }

@keyframes aura { 50% { transform: scale(1.15); opacity: .72; } }
@keyframes shine { 0%,35% { background-position: 100% 0; } 65%,100% { background-position: 0% 0; } }
@keyframes openPack { 0% { transform: rotate(2deg); } 18% { transform: rotate(-5deg) scale(1.04); } 36% { transform: rotate(5deg) scale(1.07); } 57% { transform: rotate(-3deg) scale(1.1); filter: brightness(1.1); } 76% { transform: translateY(-10px) scale(1.13); filter: brightness(1.55); } 100% { transform: translateY(-70px) scale(.74); opacity: 0; filter: brightness(2.2); } }
@keyframes burst { 60% { transform: scale(1.45); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

@media (min-width: 540px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }.home-hero { border-radius: 0 0 26px 26px; }.card-name { font-size: 16px; }.card-stat b { font-size: 14px; }.card-stat small { font-size: 8px; }.tag { font-size: 8px; }.card-meta { font-size: 8px; }.daily-slots { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .topbar { padding-right: 28px; padding-left: 28px; }.main { padding: 28px 28px 55px; }.bottom-nav { position: sticky; top: 65px; right: auto; bottom: auto; left: auto; z-index: 25; width: max-content; min-width: 280px; margin: -7px auto 0; border-radius: 0 0 18px 18px; }.bottom-nav a { min-width: 116px; min-height: 53px; }.home-hero { grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 590px; margin: -28px -28px 16px; padding: 45px 7vw; text-align: left; }.hero-copy h1 { font-size: clamp(50px,6vw,75px); }.hero-copy > p:last-child { margin-left: 0; font-size: 15px; }.pack-zone { min-height: 500px; }.booster { width: 250px; }.pack-wordmark { font-size: 22px; }.pack-series { font-size: 12px; }.home-stats { width: min(500px,55%); margin: -65px 0 25px; }.cards-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }.reveal-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }.toast { bottom: 25px; }
}
@media (min-width: 1100px) { .cards-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }.reveal-grid { grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 850px; margin: auto; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
