/* FC DAYOUTH — application du club (0.17.0).
   Charte : la palette de ses visuels (noir chaud #090701, or #E0C17B / #C49844), une seule famille de
   caractères condensée façon habillage de match (Barlow Condensed), des angles coupés plutôt que des
   coins arrondis, des filets plutôt que des cadres. L'appli occupe tout l'écran (encoche et barre
   d'accueil comprises) ; seules les listes défilent. */
:root{color-scheme:dark;
  --ink:#090701;--ink-2:#0f0b05;--ink-3:#17120a;--ink-4:#211a0f;
  --gold:#e0c17b;--gold-deep:#c49844;--gold-hi:#f3dfa6;
  --text:#f2ecdf;--muted:#a1957f;--faint:#62584a;--rule:#e0c17b29;--rule-soft:#ffffff12;
  --win:#8cc084;--loss:#e2553f;--away:#e2553f;
  --font:'Barlow Condensed','Arial Narrow',Arial,sans-serif;--cut:10px;--gutter:16px;
  font-family:var(--font);font-weight:500;font-synthesis:none;
  /* Zone sûre : env() de WebKit, ou les marges que l'appli iPhone transmet (--native-*). */
  --safe-top:max(env(safe-area-inset-top),var(--native-top,0px));--safe-bottom:max(env(safe-area-inset-bottom),var(--native-bottom,0px))}
*{box-sizing:border-box}[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;overflow:hidden;background:#050403;color:var(--text);-webkit-text-size-adjust:100%;overscroll-behavior:none;font-size:15px;line-height:1.3}
button,input,select{font:inherit;color:inherit;letter-spacing:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;border:0;background:none;padding:0}
button:disabled{opacity:.4;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
img{-webkit-user-drag:none}
svg{width:24px;height:24px;fill:currentColor;flex:none}
svg.hair{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden}
h1,h2,h3,p,dl,dd,ol,ul{margin:0;padding:0}
ol,ul{list-style:none}

/* ---------- Typographie ---------- */
.label{font-size:11px;font-weight:600;letter-spacing:1.6px;text-transform:uppercase;color:var(--gold-deep);line-height:1.2}
.page-title{font-size:28px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;line-height:1}
.section-title{font-size:13px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--gold);padding:14px 0 6px;border-bottom:1px solid var(--rule)}
.lead{font-size:16px;line-height:1.4;color:var(--text)}
.fine{font-size:13px;line-height:1.4;color:var(--muted)}
.fine.centered{text-align:center}
.form-error{font-size:14px;line-height:1.4;color:#f0a493}
.count{flex:none;font-size:12px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}

/* ---------- Boutons : angles coupés ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 20px;background:var(--gold);color:var(--ink);
  font-size:16px;font-weight:700;letter-spacing:1px;text-transform:uppercase;white-space:nowrap;
  clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}
.btn:active:not(:disabled){background:var(--gold-hi)}
.btn.dark{background:var(--ink-4);color:var(--gold-hi)}
.btn.dark:active:not(:disabled){background:#2c2314}
.btn.full{width:100%;display:flex}
.btn svg{width:18px;height:18px}
.link{min-height:40px;color:var(--gold);font-size:14px;font-weight:600;letter-spacing:.8px;text-transform:uppercase}
.link.quiet{color:var(--faint);font-size:13px}
.notice{position:fixed;z-index:100;top:calc(10px + var(--safe-top));left:50%;transform:translateX(-50%);width:min(390px,calc(100% - 24px));padding:12px 14px;
  background:var(--ink-4);border-left:3px solid var(--gold);color:var(--text);box-shadow:0 12px 30px #000c;font-size:15px;line-height:1.35}
.notice.error{border-left-color:var(--loss)}

/* ---------- Coque : en-tête, contenu, navigation ---------- */
.club-app{height:100%;max-width:430px;margin:0 auto;display:flex;flex-direction:column;position:relative;
  background:linear-gradient(180deg,#171107 0,var(--ink) 260px),var(--ink);box-shadow:0 0 80px #000}
body[data-state=auth] .club-app{display:none}
.app-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;height:calc(56px + var(--safe-top));padding:var(--safe-top) var(--gutter) 0;border-bottom:1px solid var(--rule)}
.club-id{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;text-align:left}
.crest{flex:none;width:28px;height:34px;display:grid;place-items:center;background:linear-gradient(160deg,var(--gold-hi),var(--gold-deep));clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%)}
.crest b{font-size:20px;font-weight:700;color:var(--ink);margin-top:-5px}
.crest.big{width:52px;height:64px}.crest.big b{font-size:38px;margin-top:-9px}
.club-id-text{min-width:0;display:flex;flex-direction:column}
.club-id-text b{font-size:18px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.05}
.club-id-text small{font-size:10px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hair-balance{flex:none;display:flex;align-items:center;gap:5px;min-height:44px;color:var(--gold)}
.hair-balance svg{width:20px;height:20px}
.hair-balance b{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
main{flex:1;min-height:0;position:relative}
.page{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;padding:14px var(--gutter) 12px;overflow:hidden}
.page:not([hidden]),.tab-panel:not([hidden]){animation:page-in .15s ease-out}
@keyframes page-in{from{opacity:0}}
.scroll-area{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin:0 calc(-1 * var(--gutter));padding:2px var(--gutter) 18px;scrollbar-width:none}
.scroll-area::-webkit-scrollbar{display:none}
.bottom-nav{flex:none;display:grid;grid-template-columns:repeat(5,1fr);padding:0 4px var(--safe-bottom);background:#0c0904;border-top:1px solid var(--rule)}
.bottom-nav button{min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#706653;position:relative;
  font-size:11px;font-weight:600;letter-spacing:1.1px;text-transform:uppercase}
.bottom-nav svg{width:23px;height:23px}
.bottom-nav button[aria-current=page]{color:var(--gold-hi)}
.bottom-nav button[aria-current=page]:before{content:'';position:absolute;top:-1px;left:22%;right:22%;height:2px;background:var(--gold)}

/* ---------- Onglets soulignés ---------- */
.tabs{flex:none;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border-bottom:1px solid var(--rule)}
.tabs button{min-height:42px;color:var(--muted);font-size:15px;font-weight:700;letter-spacing:1px;text-transform:uppercase;border-bottom:2px solid transparent;margin-bottom:-1px;
  display:flex;align-items:center;justify-content:center;gap:5px}
.tabs button[aria-selected=true]{color:var(--gold-hi);border-bottom-color:var(--gold)}
.tabs button small{font-size:11px;font-weight:600;color:var(--faint);letter-spacing:.4px}
.tabs button[aria-selected=true] small{color:var(--gold-deep)}
.tab-panel{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}

/* ---------- Accueil ---------- */
.home{gap:12px}
.hero{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;position:relative;isolation:isolate}
/* Bande oblique façon habillage de match, derrière la carte. */
.hero:before{content:'';position:absolute;inset:-14px calc(-1 * var(--gutter)) 0;z-index:-1;
  background:linear-gradient(112deg,transparent 52%,#e0c17b0f 52% 66%,transparent 66% 70%,#e0c17b08 70% 76%,transparent 76%)}
.hero-text{min-width:0;display:flex;flex-direction:column;gap:8px}
.hero-team{font-size:clamp(30px,min(10vw,5.4vh),42px);font-weight:700;text-transform:uppercase;line-height:.92;letter-spacing:.2px;
  overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hero-facts{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:16px;margin-top:4px}
.hero-facts dt{font-size:10px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted)}
.hero-facts dd{font-size:24px;font-weight:700;line-height:1.05;color:var(--gold-hi);font-variant-numeric:tabular-nums}
.hero-card{width:clamp(110px,min(40vw,25vh),176px);filter:drop-shadow(0 14px 18px #000d)}
.hero-card .placeholder{display:grid;place-items:center;aspect-ratio:1080/1500;background:var(--ink-3);color:var(--gold-deep);font-size:14px;font-weight:700;letter-spacing:1px;text-transform:uppercase;text-align:center;padding:12px;
  clip-path:polygon(12% 0,88% 0,100% 7%,100% 93%,88% 100%,12% 100%,0 93%,0 7%)}
.fixture{flex:none;display:flex;flex-direction:column;gap:8px;padding:14px 16px;text-align:left;background:var(--ink-3);border-top:2px solid var(--gold);
  clip-path:polygon(0 0,calc(100% - 16px) 0,100% 16px,100% 100%,0 100%)}
.fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px}
.fixture-teams b{font-size:21px;font-weight:700;text-transform:uppercase;line-height:1.05;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fixture-teams b:last-child{text-align:right}
.fixture-teams i{font-size:14px;font-weight:700;color:var(--gold);letter-spacing:1px}
.fixture-foot{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:var(--muted)}
.fixture-foot span:last-child{color:var(--gold-hi);font-weight:700;white-space:nowrap}
.fixture.empty .fixture-teams{display:none}
.result-line{flex:none;display:flex;align-items:center;gap:10px;min-height:44px;border-bottom:1px solid var(--rule-soft)}
.result-badge{flex:none;width:26px;height:26px;display:grid;place-items:center;font-size:15px;font-weight:700;color:var(--ink);background:var(--muted)}
.result-badge[data-result=V]{background:var(--win)}.result-badge[data-result=D]{background:var(--loss)}.result-badge[data-result=N]{background:#bdb19a}
.result-text{flex:1;min-width:0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daily{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px}
.daily-text b{display:block;font-size:26px;font-weight:700;line-height:1;color:var(--gold-hi)}
.daily-text small{display:block;font-size:11px;font-weight:600;letter-spacing:1.3px;color:var(--muted);margin-top:3px}

/* ---------- Ligue ---------- */
.league-none{display:flex;flex-direction:column;gap:16px;overflow-y:auto;flex:1;min-height:0}
.field-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.field-row label,.auth-form label{display:flex;flex-direction:column;gap:6px;min-width:0}
.split-rule{display:flex;align-items:center;gap:10px;color:var(--faint);font-size:12px;letter-spacing:1.4px;text-transform:uppercase}
.split-rule:before,.split-rule:after{content:'';flex:1;border-top:1px solid var(--rule-soft)}
.league-main{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}
.league-head{flex:none;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.league-title{min-width:0}.league-title .page-title{margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.code{flex:none;display:flex;flex-direction:column;align-items:flex-end;min-height:44px;justify-content:center}
.code small{font-size:10px;font-weight:600;letter-spacing:1.4px;color:var(--muted)}
.code b{font-size:20px;font-weight:700;letter-spacing:2.5px;color:var(--gold)}
.next-match{flex:none;display:flex;flex-direction:column;gap:10px;padding:12px 14px;background:var(--ink-3);border-left:3px solid var(--gold)}
.next-match .vs{display:flex;align-items:baseline;gap:8px;font-size:19px;font-weight:700;text-transform:uppercase;min-width:0}
.next-match .vs i{font-size:13px;color:var(--gold)}
.next-match .vs b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.engage{display:flex;align-items:center;gap:6px}
.engage .label{margin-right:auto}
.engage button{min-width:42px;min-height:34px;padding:0 8px;font-size:14px;font-weight:700;color:var(--muted);background:var(--ink-4);
  clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px)}
.engage button[aria-pressed=true]{background:var(--gold);color:var(--ink)}
.standings{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.standings th{font-size:11px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--muted);padding:8px 2px;border-bottom:1px solid var(--rule);text-align:center}
.standings td{font-size:16px;padding:11px 2px;border-bottom:1px solid var(--rule-soft);text-align:center}
.standings .rank{width:24px;color:var(--muted);font-weight:700}
.standings .team{text-align:left;font-weight:700;text-transform:uppercase;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:6px}
.standings td.team small{display:block;font-size:11px;font-weight:500;letter-spacing:.4px;text-transform:none;color:var(--muted)}
.standings .pts{color:var(--gold-hi);font-weight:700;width:34px}
.standings th:not(.team):not(.rank){width:31px}
.standings td:not(.team):not(.rank):not(.pts){color:#d6cab3}
.standings tr.me td{background:#e0c17b12}
.standings tr.me td:first-child{box-shadow:inset 3px 0 var(--gold);color:var(--gold)}
.standings tr.leader .rank{color:var(--gold)}
#league-rewards,#league-previous{margin-top:12px}
#league-leave{margin-top:12px}
.matchday{padding-top:14px}
.matchday h3{font-size:12px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;color:var(--gold-deep);padding-bottom:6px;border-bottom:1px solid var(--rule)}
.matchday.current h3{color:var(--gold-hi)}
.fixture-row{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr) 36px;align-items:center;gap:6px;min-height:46px;border-bottom:1px solid var(--rule-soft);font-size:15px}
.fixture-row .home{text-align:right}
.fixture-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;font-weight:600}
.fixture-row .score{text-align:center;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--gold-hi)}
.fixture-row .score.pending{font-size:13px;color:var(--faint);font-weight:600}
.fixture-row.mine{background:#e0c17b0d}
.fixture-row .watch{width:36px;height:36px;display:grid;place-items:center;color:var(--gold)}
.fixture-row .watch svg{width:18px;height:18px}
.exempt{font-size:13px;color:var(--muted);padding:8px 0;border-bottom:1px solid var(--rule-soft)}
.rows li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:56px;border-bottom:1px solid var(--rule-soft)}
.rows .who{min-width:0}
.rows .who b{display:block;font-size:17px;font-weight:700;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rows .who small{display:block;font-size:13px;color:var(--muted)}
.rows .btn{min-height:38px;padding:0 14px;font-size:14px}
.rows .result{display:flex;align-items:center;gap:10px}
.rows .result .score{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--gold-hi)}
.rows .empty-row{display:block;min-height:0;padding:14px 0;color:var(--muted);font-size:14px}

/* ---------- Champs ---------- */
input,select{width:100%;height:44px;background:var(--ink-3);color:var(--text);border:1px solid #2c2416;border-radius:0;padding:0 12px;font-size:16px;font-weight:500}
input:focus,select:focus{border-color:var(--gold-deep);outline:none}
select{padding:0 8px;font-size:15px}
input::placeholder{color:#7a705f}
input[type=search]{-webkit-appearance:none;appearance:none}

/* ---------- Équipe ---------- */
.team{gap:10px}
.team-head{flex:none;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.compo-tabs{min-width:186px}
.team-line{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px}
.team-summary{font-size:14px;color:var(--muted);line-height:1.3;min-width:0}
.team-summary b{color:var(--gold-hi);font-weight:700}
#team-engage{flex:none;font-size:13px}
#team-engage.engaged{color:var(--gold-hi);cursor:default}
.pitch{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:space-around;gap:6px;padding:10px 8px;position:relative;overflow:hidden;
  background:repeating-linear-gradient(180deg,#0f1c11 0 10%,#0c170e 10% 20%);border-top:2px solid var(--gold)}
.pitch:before{content:'';position:absolute;inset:8px;border:1px solid #ffffff1c;pointer-events:none}
.pitch:after{content:'';position:absolute;left:8px;right:8px;top:50%;border-top:1px solid #ffffff16;pointer-events:none}
.pitch-row{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;gap:8px;position:relative;z-index:1}
.slot{width:var(--card-w,90px);flex:none;display:flex;flex-direction:column;align-items:center}
.slot .fc,.slot .fc-figure{width:100%}
.slot>.fc{filter:drop-shadow(0 8px 10px #000a)}
.slot.empty{aspect-ratio:1080/1500;background:#05080566;border:1px dashed #e0c17b66;justify-content:center;gap:4px;color:var(--gold)}
.slot.empty svg{width:26px;height:26px}
.slot.empty span{font-size:13px;font-weight:700;letter-spacing:1.2px}
.pair{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pair .btn{width:100%}

/* ---------- Box et fusion ---------- */
.box{gap:10px}
.filters{flex:none;display:grid;gap:6px}
.filter-line{display:grid;grid-template-columns:1fr 136px;gap:6px}
.filter-line.three{grid-template-columns:repeat(3,1fr)}
.filter-line label{min-width:0}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px}
.card-tile{position:relative;padding:0;min-width:0;display:block}
.card-tile .fc{filter:drop-shadow(0 6px 8px #0008)}
.card-tile[aria-pressed=true] .fc{filter:drop-shadow(0 0 5px var(--gold)) drop-shadow(0 0 2px var(--gold))}
.card-tile[aria-pressed=true]:after{content:'✓';position:absolute;right:3px;top:13%;width:24px;height:24px;display:grid;place-items:center;background:var(--gold);color:var(--ink);font:700 16px/1 Arial,sans-serif;box-shadow:0 2px 6px #0009}
.card-tile[data-disabled=true]{opacity:.35}
.card-tile .tag{position:absolute;left:50%;bottom:3px;transform:translateX(-50%);font-size:11px;font-weight:700;letter-spacing:.8px;color:var(--ink);background:var(--gold);padding:1px 6px;white-space:nowrap}
.empty-state{text-align:center;padding:26px 12px;color:var(--muted);font-size:15px;display:flex;flex-direction:column;align-items:center;gap:14px}
.load-more{margin-top:14px}
.recipes{flex:none;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.recipes button{min-height:62px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:var(--ink-3);border-bottom:2px solid transparent}
.recipes button[aria-checked=true]{border-bottom-color:var(--gold);background:var(--ink-4)}
.recipes b{font-size:20px;font-weight:700;color:var(--gold);line-height:1}
.recipes small{font-size:11px;line-height:1.2;color:var(--muted);text-align:center}
.recipes button[aria-checked=true] small{color:var(--text)}
#fusion-rule.blocked{color:#f0a493}
.selection-bar{flex:none;display:flex;align-items:center;gap:12px}
.selection-bar p{flex:1;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}
.selection-bar b{font-size:19px;color:var(--gold-hi)}
#review-fusion{flex:none}

/* ---------- Packs ---------- */
.shop{gap:10px}
.shop-head{flex:none;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.purse{display:flex;align-items:center;gap:5px;color:var(--gold)}
.purse b{font-size:24px;font-weight:700;line-height:1}
.purse span{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-left:2px}
.offers{display:flex;flex-direction:column}
.offer{display:grid;grid-template-columns:86px minmax(0,1fr);gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--rule-soft)}
.offer-body{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.offer-body h2{font-size:21px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}
.offer-body p{font-size:14px;line-height:1.3;color:var(--muted)}
.offer-body .offer-meta{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--gold-deep)}
.offer-body .btn{margin-top:6px;min-height:40px;font-size:15px;padding:0 16px}
/* Packs dessinés : sachet métallisé, bords sertis haut et bas. */
.pack-art{position:relative;width:86px;aspect-ratio:155/220;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--gold);
  background:linear-gradient(118deg,#141008 8%,#4b3a1c 30%,#120f09 46%,#2f2516 78%,#0c0a06);
  clip-path:polygon(0 3%,6% 0,12% 3%,18% 0,24% 3%,30% 0,36% 3%,42% 0,48% 3%,54% 0,60% 3%,66% 0,72% 3%,78% 0,84% 3%,90% 0,96% 3%,100% 0,100% 100%,94% 97%,88% 100%,82% 97%,76% 100%,70% 97%,64% 100%,58% 97%,52% 100%,46% 97%,40% 100%,34% 97%,28% 100%,22% 97%,16% 100%,10% 97%,4% 100%,0 97%);
  filter:drop-shadow(0 10px 14px #000c);transform:rotate(-4deg)}
.pack-art:before{content:'';position:absolute;inset:7% 8%;border:1px solid #e0c17b55}
.pack-art b{font-size:28px;font-weight:700;font-style:italic;line-height:.85}
.pack-art strong{font-size:12px;font-weight:700;letter-spacing:1.6px}
.pack-art small{font-size:8px;font-weight:600;letter-spacing:1.2px;margin-top:8px;color:var(--gold-hi)}
.pack-crown{width:18px;height:11px;margin-bottom:6px;background:currentColor;clip-path:polygon(0 100%,0 15%,25% 55%,50% 0,75% 55%,100% 15%,100% 100%)}
.pack-standard{background:linear-gradient(118deg,#121212 8%,#3d3a33 30%,#101010 46%,#2a2823 78%,#0b0b0a);color:#e8e1cf}
.pack-standard small{color:#fff}
.pack-premium{background:linear-gradient(118deg,#8d6a2c 4%,#f6dc96 26%,#b88b3c 44%,#f3dfa6 64%,#9a7432 86%);color:#1d1407}
.pack-premium:before{border-color:#1d140755}
.pack-premium small{color:#1d1407}

/* ---------- Mon club ---------- */
.profile{gap:12px}
.profile-head{flex:none;display:flex;align-items:center;gap:14px}
.profile-head .page-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-head>div{min-width:0}
.facts{flex:none;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.facts div{padding:10px 4px;text-align:center}
.facts div+div{border-left:1px solid var(--rule-soft)}
.facts dt{font-size:10px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.facts dd{font-size:22px;font-weight:700;color:var(--gold-hi)}
.ledger li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;min-height:48px;border-bottom:1px solid var(--rule-soft)}
.ledger li b{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ledger li small{display:block;font-size:12px;color:var(--muted)}
.ledger .amount{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--gold-hi)}
.ledger .amount.spent{color:var(--muted)}

/* ---------- Création du club / connexion ---------- */
.auth{position:fixed;inset:0;z-index:40;max-width:430px;margin:0 auto;display:flex;flex-direction:column;gap:22px;overflow-y:auto;
  padding:calc(40px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));background:linear-gradient(180deg,#1b1408 0,var(--ink) 340px),var(--ink)}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.auth-brand h1{font-size:38px;font-weight:700;letter-spacing:5px;line-height:1;margin-top:6px}
.auth-brand p{font-size:14px;letter-spacing:3px;text-transform:uppercase;color:var(--gold-deep)}
.auth-form{display:flex;flex-direction:column;gap:14px}

/* ---------- Ouverture de pack (hors appli iPhone) ---------- */
/* Comme l'animation native qu'il a retenue : le pack s'illumine à la couleur de la meilleure carte, la
   carte se dévoile (type, classe, poste, GEN) puis tout le pack. --halo = couleur de la rareté. */
.opening{position:fixed;inset:0;z-index:70;max-width:430px;margin:0 auto;overflow:hidden;background:#050402;--halo:#d4af5f;
  display:flex;align-items:center;justify-content:center;padding:calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom))}
.opening:before{content:'';position:absolute;inset:-20%;background:radial-gradient(circle at 50% 46%,color-mix(in srgb,var(--halo) 45%,transparent),transparent 58%);opacity:.75;pointer-events:none}
.opening-rays{position:absolute;left:50%;top:46%;width:180vmax;height:180vmax;transform:translate(-50%,-50%);opacity:0;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--halo) 30%,transparent) 0 6deg,transparent 6deg 18deg);
  -webkit-mask:radial-gradient(circle,#000 0,transparent 55%);mask:radial-gradient(circle,#000 0,transparent 55%);transition:opacity .5s}
.opening[data-step=walkout] .opening-rays,.opening[data-step=card] .opening-rays{opacity:1;animation:rays 18s linear infinite}
@keyframes rays{to{transform:translate(-50%,-50%) rotate(360deg)}}
.opening-stage{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:18px;width:100%}
.opening-skip{position:absolute;z-index:5;top:calc(12px + var(--safe-top));right:14px;min-height:44px;padding:0 12px;color:var(--muted);font-size:14px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase}
.opening-hint{font-size:13px;font-weight:600;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted)}
.pack-big{width:min(56vw,230px);transform:none;animation:pack-float 3s ease-in-out infinite;
  filter:drop-shadow(0 0 22px color-mix(in srgb,var(--halo) 80%,transparent)) drop-shadow(0 22px 26px #000)}
.pack-big b{font-size:74px}.pack-big strong{font-size:30px;letter-spacing:4px}.pack-big small{font-size:14px;margin-top:20px}.pack-big .pack-crown{width:44px;height:27px;margin-bottom:14px}
@keyframes pack-float{50%{transform:translateY(-8px) rotate(-1.5deg)}}
.pack-big.shaking{animation:pack-shake .65s cubic-bezier(.36,.07,.19,.97) both}
@keyframes pack-shake{10%,90%{transform:translateX(-2px) rotate(-1deg)}20%,80%{transform:translateX(4px) rotate(2deg)}30%,50%,70%{transform:translateX(-7px) rotate(-3deg) scale(1.03)}40%,60%{transform:translateX(7px) rotate(3deg) scale(1.05)}}
.opening-flash{position:absolute;inset:0;z-index:6;background:#fff;opacity:0;pointer-events:none}
.opening-flash.on{animation:flash .55s ease-out}
@keyframes flash{0%{opacity:.85}100%{opacity:0}}
.walkout-badges{display:flex;gap:28px;justify-content:center;min-height:150px}
.walkout-badges figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:8px;animation:pop .45s cubic-bezier(.2,1.4,.4,1) both}
.walkout-badges img{width:104px;height:104px;object-fit:contain;filter:drop-shadow(0 0 16px color-mix(in srgb,var(--halo) 70%,transparent))}
.walkout-badges figcaption{font-size:20px;font-weight:700;letter-spacing:2px;text-transform:uppercase}
.walkout-pos{font-size:64px;font-weight:700;letter-spacing:6px;line-height:1;animation:pop .45s cubic-bezier(.2,1.4,.4,1) both}
.walkout-gen{font-size:132px;font-weight:700;line-height:.9;color:var(--halo);text-shadow:0 0 34px color-mix(in srgb,var(--halo) 70%,transparent);animation:pop .5s cubic-bezier(.2,1.5,.4,1) both}
@keyframes pop{from{opacity:0;transform:scale(.3)}}
.opening-card{gap:14px}
.walkout-rarity{font-size:22px;font-weight:700;letter-spacing:5px;text-transform:uppercase;color:var(--halo)}
#wo-card{display:block;width:min(74vw,320px);perspective:900px}
#wo-card .fc{animation:card-in .75s cubic-bezier(.2,1.2,.35,1) both;filter:drop-shadow(0 0 24px color-mix(in srgb,var(--halo) 75%,transparent)) drop-shadow(0 24px 30px #000)}
@keyframes card-in{from{opacity:0;transform:rotateY(100deg) scale(.6)}}
.opening-recap{gap:14px}
#recap-best{width:min(52vw,220px)}
#recap-best .fc{filter:drop-shadow(0 0 18px color-mix(in srgb,var(--halo) 60%,transparent))}
#recap-others{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;max-width:330px}
#recap-others .fc,#recap-best .fc{animation:pop .4s ease-out both}
#recap-others>*:nth-child(2) .fc{animation-delay:.08s}#recap-others>*:nth-child(3) .fc{animation-delay:.16s}
.opening-recap .btn{max-width:330px;margin-top:6px}
@media (max-height:700px){.walkout-gen{font-size:104px}.walkout-badges img{width:84px;height:84px}#wo-card{width:min(66vw,280px)}#recap-best{width:min(44vw,180px)}}
@media (prefers-reduced-motion:reduce){.opening *{animation:none!important}}
.auth .centered{text-align:center}

/* ---------- Lecteur de match au-dessus de l'appli ---------- */
.match-layer{position:fixed;inset:0;z-index:50;max-width:430px;margin:0 auto;background:var(--ink)}
#match-frame{border:0;display:block;width:100%;height:100%;background:var(--ink)}

/* ---------- Fiches en bas d'écran ---------- */
dialog{color:var(--text);background:var(--ink-2);border:0;border-top:2px solid var(--gold);padding:0;font-family:var(--font)}
dialog::backdrop{background:#030201d9}
dialog.sheet{margin:auto auto 0;width:100%;max-width:430px;max-height:92%;padding:20px var(--gutter) calc(16px + var(--safe-bottom));overflow:auto;overscroll-behavior:contain}
dialog.sheet[open]{display:flex;flex-direction:column;gap:12px}
.sheet-title{font-size:24px;font-weight:700;text-transform:uppercase;line-height:1.05}
.sheet-close{position:absolute;right:6px;top:6px;color:var(--muted);min-width:44px;min-height:44px;font-size:20px;z-index:5}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sheet-head .sheet-close{position:static}
.sheet-actions{display:grid;gap:8px;margin-top:4px}
.card-sheet #card-detail{display:flex;flex-direction:column;align-items:center;gap:12px;padding-top:8px}
.card-sheet #card-detail .fc{width:min(62vw,250px)}
.card-meta{width:100%;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:15px;border-top:1px solid var(--rule);padding-top:10px}
.card-meta dt{font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);align-self:center}
.card-meta dd{text-align:right;font-weight:600}
.picker-sheet{height:88%}
.picker-sheet .scroll-area{margin:0 calc(-1 * var(--gutter))}
.slot-sheet #slot-card{display:flex;justify-content:center;padding-top:6px}
.slot-sheet #slot-card .fc{width:min(52vw,210px)}
.mini-strip{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.mini-strip::-webkit-scrollbar{display:none}
.mini-strip .fc{width:58px;flex:none}

/* Petits écrans (iPhone SE, mini) : on resserre sans rien cacher d'important. */
@media (max-height:700px){
  .page{padding-top:10px;padding-bottom:8px;gap:9px}
  .hero-facts dd{font-size:20px}
  .fixture{padding:10px 14px;gap:6px}
  .fixture-teams b{font-size:18px}
  .daily-text b{font-size:22px}
  .recipes button{min-height:54px}
  .standings td{padding:9px 2px}
  .offer{padding:10px 0}
}
.sheet-close:focus:not(:focus-visible),dialog :focus:not(:focus-visible){outline:none}
@media (prefers-reduced-motion:reduce){.page:not([hidden]),.tab-panel:not([hidden]){animation:none}}
