@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #F1E3C2; --bg-dot: rgba(90,60,20,.10); --ink: #1E1512; --ink-soft: #5B4630;
  --panel: #FBF3DE; --line: rgba(30,21,18,.22);
  --red: #C8102E; --orange: #FF7A1A; --paper: #F6E7C1;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #15131F; --bg-dot: rgba(244,233,210,.06); --ink: #F4E9D2; --ink-soft: #BFAE92; --panel: #231E31; --line: rgba(244,233,210,.2); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #15131F; --bg-dot: rgba(244,233,210,.06); --ink: #F4E9D2; --ink-soft: #BFAE92; --panel: #231E31; --line: rgba(244,233,210,.2); color-scheme: dark; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); height: 100%; }
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100%; background-color: var(--bg); color: var(--ink);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; overflow-x: hidden;
  background-image: radial-gradient(var(--bg-dot) 1px, transparent 1.5px), radial-gradient(var(--bg-dot) 1px, transparent 1.5px);
  background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px;
}
body::before { content: '友'; position: fixed; right: -4vw; bottom: -12vh; z-index: -1; pointer-events: none; font-family: 'Yuji Syuku', serif; font-size: 70vh; line-height: 1; color: var(--ink); opacity: .045; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- En-tête et onglets ---------- */
.site-head { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; margin: 0; font-family: 'Bangers', sans-serif; font-size: 2rem; letter-spacing: .03em; line-height: 1; }
.hanko { font-family: 'Yuji Syuku', serif; font-size: 1.3rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--red); color: var(--paper); border-radius: 6px; transform: rotate(-6deg); box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 2px var(--red); }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab, .mute { border: 2px solid var(--ink); background: var(--panel); border-radius: 10px; padding: .35rem .85rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.tab { font-family: 'Bangers', sans-serif; font-size: 1.15rem; letter-spacing: .04em; }
.tab[aria-selected="true"] { background: var(--orange); color: #fff; -webkit-text-stroke: .02em #1E1512; }
.mute { font-weight: 700; font-size: .85rem; border-radius: 99px; }
.tab:active, .mute:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.panel { max-width: 1180px; margin: 0 auto; padding: .5rem 1.25rem 3rem; }
h1, h2 { font-family: 'Bangers', sans-serif; font-weight: 400; letter-spacing: .03em; }
h1 { font-size: clamp(3.2rem, 9vw, 6.2rem); line-height: .95; margin: .4rem 0 .5rem; color: var(--orange); -webkit-text-stroke: .035em #1E1512; text-shadow: .06em .07em 0 #1E1512; transform: rotate(-2deg); text-align: center; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; margin: .3rem 0; }
.lede { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.2rem; font-weight: 500; text-align: center; }
.intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 1.6rem; }

/* ---------- Scène du booster ---------- */
.stage { --cw: clamp(140px, 16vw, 198px); min-height: calc(var(--cw) * 1.4 + 4rem); display: grid; place-items: center; position: relative; isolation: isolate; }
.stage::before {
  content: ''; position: absolute; z-index: -1; width: min(780px, 120vw); aspect-ratio: 1; pointer-events: none;
  background: repeating-conic-gradient(from var(--ang), color-mix(in srgb, var(--ink) 16%, transparent) 0deg 1.1deg, transparent 1.1deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 16%, #000 30%, transparent 66%); mask: radial-gradient(circle, transparent 16%, #000 30%, transparent 66%);
  animation: spin 60s linear infinite;
}
.quake { animation: quake .5s; }
.bigquake { animation: quake .9s; }
@keyframes quake { 10% { transform: translate(-9px, 4px) rotate(-.5deg); } 25% { transform: translate(8px, -6px) rotate(.6deg); } 40% { transform: translate(-7px, -3px); } 55% { transform: translate(6px, 5px) rotate(-.4deg); } 70% { transform: translate(-4px, 2px); } 85% { transform: translate(3px, -2px); } }

.pack { --pw: clamp(190px, 24vw, 250px); width: var(--pw); aspect-ratio: 2 / 3; border: 0; padding: 0; background: none; cursor: pointer; position: relative; display: block; transition: transform .25s cubic-bezier(.2,.9,.3,1.4); }
.pack:hover { transform: translateY(-8px) rotate(-2deg) scale(1.02); }
.pack-top { position: absolute; left: 0; right: 0; top: 0; height: 8%; border-radius: 8px 8px 0 0; background: repeating-linear-gradient(90deg, #1E1512 0 7px, #3A2A22 7px 14px); box-shadow: 0 0 0 4px #1E1512; }
.pack-body { position: absolute; left: 0; right: 0; top: 8%; bottom: 0; border-radius: 0 0 16px 16px; overflow: hidden; color: #fff; background: linear-gradient(165deg, #FFA24A, #FF7A1A 32%, #C8102E 78%, #6E0918); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 12%; box-shadow: 0 0 0 4px #1E1512, 10px 12px 0 #1E1512; }
.pack-body::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,.14) 0deg 4deg, transparent 4deg 14deg); }
.pack-body::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.4) 50%, transparent 58%); animation: sheen 3.4s ease-in-out infinite; }
@keyframes sheen { 0%, 35% { transform: translateX(-55%); } 75%, 100% { transform: translateX(55%); } }
.pack-kanji { position: absolute; top: 10%; left: 0; right: 0; font-family: 'Yuji Syuku', serif; font-size: calc(var(--pw) * .42); line-height: 1; color: #1E1512; opacity: .85; }
.pack-name { position: relative; font-family: 'Bangers', sans-serif; font-size: calc(var(--pw) * .15); letter-spacing: .04em; line-height: 1; -webkit-text-stroke: .04em #1E1512; text-shadow: .05em .06em 0 #1E1512; }
.pack-count { position: relative; margin-top: .4rem; font-weight: 700; font-size: .8rem; background: #1E1512; padding: .15rem .65rem; border-radius: 99px; }
.ofuda { position: absolute; z-index: 2; left: 50%; top: -5%; height: 62%; width: 19%; transform: translateX(-50%) rotate(5deg); background: var(--paper); border: 2px solid #1E1512; display: flex; flex-direction: column; align-items: center; padding-top: 18%; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--red); }
.ofuda b { font-family: 'Yuji Syuku', serif; font-weight: 400; color: var(--red); font-size: calc(var(--pw) * .1); line-height: 1.1; }
.pack.shaking { animation: shake .6s cubic-bezier(.36,.07,.19,.97); }
.pack.shaking .ofuda { animation: ofudaGlow .6s ease-in both; }
@keyframes ofudaGlow { to { box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--red), 0 0 24px 8px #FFB300; filter: brightness(1.2); } }
.pack.burning .ofuda { animation: burn .45s ease-in forwards; }
@keyframes burn { 0% { clip-path: inset(0 0 0 0); box-shadow: 0 0 30px 10px #FF7A1A; } 100% { clip-path: inset(0 0 100% 0); box-shadow: 0 0 40px 16px #FF3000; } }
.pack.poofed { animation: poofOut .4s ease-in forwards; }
@keyframes poofOut { to { transform: scale(1.35); opacity: 0; filter: blur(6px); } }
@keyframes shake { 10%, 90% { transform: translateX(-3px) rotate(-1deg); } 20%, 80% { transform: translateX(5px) rotate(2deg); } 30%, 50%, 70% { transform: translateX(-9px) rotate(-4deg) scale(1.04); } 40%, 60% { transform: translateX(9px) rotate(4deg) scale(1.04); } }

.puff { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); z-index: 8; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--pc, #E6DED0) 55%, color-mix(in srgb, var(--pc, #CFC6B8) 75%, #000) 70%, transparent 72%); transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(.2); animation: puff .9s ease-out forwards; }
@keyframes puff { 35% { opacity: 1; } 100% { transform: translate(-50%, -50%) translate(calc(var(--dx) * 2.3), calc(var(--dy) * 2.3)) scale(1.5); opacity: 0; } }

.reveal { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.6rem, 1.5vw, 1.1rem); }
.reveal .card { animation: deal .6s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: calc(var(--i) * 100ms); cursor: pointer; }
@keyframes deal { from { opacity: 0; transform: scale(.25) rotate(-25deg); } }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.8rem; min-height: 3.2rem; }
.btn { border: 3px solid #1E1512; border-radius: 12px; padding: .6rem 1.3rem; cursor: pointer; font-family: 'Bangers', sans-serif; font-size: 1.3rem; letter-spacing: .05em; background: var(--orange); color: #fff; -webkit-text-stroke: .02em #1E1512; box-shadow: 5px 5px 0 #1E1512; transition: transform .1s, box-shadow .1s; }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 #1E1512; }
.btn.alt { background: var(--paper); color: #1E1512; -webkit-text-stroke: 0; }
.btn.small { font-size: 1.02rem; padding: .4rem .85rem; box-shadow: 4px 4px 0 #1E1512; }

/* ---------- La carte ---------- */
.card { --cw: 190px; --tc: #888; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; width: var(--cw); aspect-ratio: 5 / 7; position: relative; perspective: 1000px; font-size: calc(var(--cw) * .056); text-align: left; flex: none; }
.stage .card { --cw: inherit; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s ease, opacity .18s; }
.card.tracking .tilt { transition: transform .06s linear; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.8,.25,1.25); }
.card.flipped .flip { transform: rotateY(180deg); }
.card.instant .flip { transition: none; }
.face { position: absolute; inset: 0; border-radius: .9em; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.front { transform: rotateY(180deg); padding: .34em; background: var(--border); }
.back { padding: .34em; background: linear-gradient(145deg, #4A4060, #1E1512); }
.back-in { position: relative; height: 100%; border-radius: .6em; background: repeating-linear-gradient(45deg, rgba(246,231,193,.05) 0 .3em, transparent .3em .9em), repeating-linear-gradient(-45deg, rgba(246,231,193,.05) 0 .3em, transparent .3em .9em), #1C1830; box-shadow: inset 0 0 0 .15em rgba(246,231,193,.25); }
.back-seal { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: 2.7em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--paper); font-family: 'Yuji Syuku', serif; box-shadow: 0 0 0 .07em var(--paper), 0 0 0 .13em var(--red); }
.back-sub { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font-family: 'Bangers', sans-serif; font-size: 1.15em; letter-spacing: .08em; color: var(--paper); }

/* Effets sur la carte dans la rangée */
.card.charging { animation: charge 1s ease-in both !important; }
.card.charging .back { animation: chargeGlow 1s ease-in both; }
.card.charging.red { animation-duration: 1.4s !important; }
.card.charging.red .back { animation: chargeRed 1.4s ease-in both; }
@keyframes charge { 15% { transform: translate(-2px, 1px) rotate(-1deg); } 30% { transform: translate(3px, -2px) rotate(1.5deg) scale(1.03); } 45% { transform: translate(-4px, 2px) rotate(-2deg) scale(1.06); } 60% { transform: translate(6px, -3px) rotate(3deg) scale(1.09); } 75% { transform: translate(-7px, 3px) rotate(-3.5deg) scale(1.12); } 90% { transform: translate(8px, -4px) rotate(4deg) scale(1.15); } 100% { transform: scale(1.12); } }
@keyframes chargeGlow { to { box-shadow: 0 0 0 .25em #fff, 0 0 3em 1.2em #fff; } }
@keyframes chargeRed { to { box-shadow: 0 0 0 .25em #FF2E4D, 0 0 3.5em 1.4em #C8102E; } }
.card.bounce { animation: bounce .85s cubic-bezier(.3,1.5,.5,1) !important; }
@keyframes bounce { 20% { transform: translateY(8px) scale(1.1, .88); } 45% { transform: translateY(-46px) scale(.93, 1.1) rotate(-5deg); } 65% { transform: translateY(0) scale(1.07, .93); } 80% { transform: translateY(-12px) rotate(2deg); } 100% { transform: none; } }
.ring { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; border: .35em solid var(--tc); border-radius: 50%; transform: translate(-50%, -50%) scale(.3); animation: ring .7s ease-out forwards; pointer-events: none; z-index: 9; }
@keyframes ring { to { transform: translate(-50%, -50%) scale(1.9); opacity: 0; } }
.card.vanish .tilt { opacity: 0; transform: scale(.4) rotate(-25deg); transition: transform .18s, opacity .18s; }
.card.popin .tilt { animation: popin .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes popin { from { transform: scale(.3) rotate(15deg); } }
.log { position: absolute; left: 50%; top: 45%; font-size: calc(var(--cw) * .55); line-height: 1; transform: translate(-50%, -50%); animation: logDrop .45s cubic-bezier(.3,1.6,.5,1) both; z-index: 9; pointer-events: none; }
@keyframes logDrop { from { transform: translate(-50%, -190%) rotate(-50deg); opacity: 0; } }
.bubble { position: absolute; left: 50%; top: 2%; transform: translateX(-50%) rotate(-6deg); background: #fff; color: #1E1512; border: 3px solid #1E1512; border-radius: 1em; padding: .15em .6em; font-family: 'Bangers', sans-serif; font-size: calc(var(--cw) * .11); letter-spacing: .03em; white-space: nowrap; z-index: 10; animation: bubbleIn .35s cubic-bezier(.2,1.8,.4,1) .2s both; }
@keyframes bubbleIn { from { transform: translateX(-50%) scale(3) rotate(-20deg); opacity: 0; } }
.newtag { position: absolute; top: -.7em; right: -.6em; z-index: 12; font-family: 'Bangers', sans-serif; letter-spacing: .04em; font-size: 1.1em; background: var(--orange); color: #fff; border: 2px solid #1E1512; padding: .05em .45em; border-radius: .4em; transform: rotate(8deg); animation: newIn .4s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes newIn { from { transform: scale(3) rotate(-20deg); opacity: 0; } }

/* Face avant */
.frame { position: relative; height: 100%; border-radius: .62em; overflow: hidden; background: var(--fbg); color: var(--fink); display: flex; flex-direction: column; gap: .38em; padding: .55em; }
.top { display: flex; justify-content: space-between; align-items: center; gap: .4em; position: relative; z-index: 2; }
.name { font-family: 'Bangers', sans-serif; font-size: 1.45em; letter-spacing: .03em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gems { font-size: .9em; letter-spacing: .05em; color: var(--gem); flex: none; }
.art { position: relative; flex: 1 1 auto; border-radius: .45em; overflow: hidden; background: radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--tc) 30%, white), transparent 55%), radial-gradient(circle at 78% 85%, color-mix(in srgb, var(--tc) 55%, black), transparent 60%), var(--tc); box-shadow: inset 0 0 0 .12em rgba(0,0,0,.2); }
.art.pixel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, rgba(0,0,0,.09) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.09) 75%) 0 0 / 1.3em 1.3em, linear-gradient(45deg, rgba(0,0,0,.09) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.09) 75%) .65em .65em / 1.3em 1.3em; }
.kj { position: absolute; right: .15em; top: .05em; z-index: 1; font-family: 'Yuji Syuku', serif; font-size: 2.3em; line-height: 1; color: rgba(0,0,0,.25); }
.emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.2em; z-index: 1; filter: drop-shadow(0 .08em 0 rgba(0,0,0,.3)); }
.test { position: absolute; left: .45em; bottom: .4em; z-index: 2; font-size: .55em; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: .1em .5em; border-radius: 1em; }
.desc { position: relative; z-index: 2; margin: 0; font-size: .66em; line-height: 1.32; min-height: 2.64em; }
.bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: .6em; font-weight: 700; opacity: .85; }
.holo, .glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3; }
.holo { opacity: var(--holo); mix-blend-mode: color-dodge; background: repeating-linear-gradient(115deg, #FF5F6D 0%, #FFC371 7%, #7CF29A 14%, #5AC8FA 21%, #B388FF 28%, #FF5F6D 35%); background-size: 320% 320%; background-position: var(--mx) var(--my); filter: brightness(.75) contrast(1.35); }
.glare { opacity: var(--glare); mix-blend-mode: overlay; background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.75), transparent 48%); }

.r-base   { --border: linear-gradient(145deg, #F0F2F7, #A9B0BF 45%, #E4E7EF 60%, #8E96A8); --fbg: #F8F0DC; --fink: #1E1512; --gem: #8E96A8; --holo: 0; --glare: .2; }
.r-rare   { --border: linear-gradient(145deg, color-mix(in srgb, var(--tc) 50%, white), var(--tc) 50%, color-mix(in srgb, var(--tc) 60%, black)); --fbg: color-mix(in srgb, var(--tc) 14%, #FBF3DE); --fink: #1E1512; --gem: color-mix(in srgb, var(--tc) 75%, black); --holo: .12; --glare: .35; }
.r-epic   { --border: linear-gradient(145deg, #EDE0FF, #9B6BFF 30%, #4C1D95 70%, #D6C2FF); --fbg: linear-gradient(170deg, #43207F, #1B0E38); --fink: #fff; --gem: #D6C2FF; --holo: .45; --glare: .45; }
.r-legend { --fbg: linear-gradient(170deg, #4A2E0B, #170C03 72%); --fink: #FFE7A3; --gem: #FFD24A; --holo: .55; --glare: .5; }
.r-secret { --fbg: #000; --fink: #fff; --gem: #fff; --holo: .75; --glare: .5; }
.r-serial { --fbg: repeating-linear-gradient(128deg, transparent 0 1.4em, rgba(200,16,46,.14) 1.4em 1.47em, transparent 1.47em 2.3em), radial-gradient(ellipse at 18% 25%, rgba(200,16,46,.45), transparent 42%), radial-gradient(ellipse at 85% 80%, rgba(120,0,20,.55), transparent 48%), linear-gradient(160deg, #1C0B0F, #060304); --fink: #FFD9DE; --gem: #FF2E4D; --holo: .3; --glare: .4; }
.card.flipped.r-epic .front { box-shadow: 0 0 1.4em rgba(155,107,255,.75); }
.r-legend .front { background: conic-gradient(from var(--ang), #FFF3B0, #E8B64C, #8A5A12, #FFE27A, #C98F1E, #FFF3B0); animation: spin 3.5s linear infinite; }
.card.flipped.r-legend .front { box-shadow: 0 0 1.8em rgba(255,200,60,.65); }
.r-secret .front { background: conic-gradient(from var(--ang), #FF4FA3, #FFC371, #3DDC97, #2F7BFF, #B388FF, #FF4FA3); animation: spin 2.4s linear infinite; }
.card.flipped.r-secret .front { box-shadow: 0 0 2em rgba(179,136,255,.7); }
.r-serial .front { background: conic-gradient(from var(--ang), #050203, #C8102E 10%, #050203 22%, #3A0710 50%, #FF2E4D 60%, #050203 72%, #050203); animation: spin 3s linear infinite; }
.card.flipped.r-serial .front { box-shadow: 0 0 2.2em rgba(200,16,46,.8); }
@keyframes spin { to { --ang: 360deg; } }
.r-serial .art { background: radial-gradient(circle at 30% 25%, #FF4D63, transparent 50%), linear-gradient(160deg, #7A0A1C, #1A0306); }
.r-serial .kj, .r-epic .kj, .r-legend .kj { color: rgba(255,255,255,.2); }
.r-secret .art { position: absolute; inset: 0; border-radius: .62em; }
.r-secret .emoji { font-size: 6em; }
.r-secret .kj { color: rgba(255,255,255,.3); font-size: 3.2em; top: 1.6em; }
.r-secret .top, .r-secret .bottom { text-shadow: 0 .08em .2em rgba(0,0,0,.8); }
.r-secret .desc { margin-top: auto; background: rgba(0,0,0,.5); padding: .35em .5em; border-radius: .4em; }
.r-secret .test { bottom: auto; top: 2.4em; }
.stamp { position: absolute; top: .45em; left: .45em; z-index: 2; font-family: 'Bangers', sans-serif; font-size: 1em; letter-spacing: .04em; color: var(--paper); background: var(--red); padding: .12em .45em; border: .1em solid var(--paper); box-shadow: 0 0 0 .1em var(--red), 0 0 1em rgba(255,46,77,.85); transform: rotate(-8deg); }
.r-serial .frame::after { content: ''; position: absolute; inset: -50%; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(255,60,80,.35) 50%, transparent 58%); animation: sheen 2.6s ease-in-out infinite; }
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.embers i { position: absolute; bottom: -.4em; width: .32em; height: .32em; background: #FF2E4D; box-shadow: 0 0 .6em #FF3000; animation: rise 3s linear infinite; }
.embers i:nth-child(3n) { background: #FF9A3C; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-34em) translateX(1.5em); opacity: 0; } }

/* ---------- Collection ---------- */
.col-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.stats li { background: var(--panel); border: 2px solid var(--ink); border-radius: 99px; padding: .15rem .75rem; font-weight: 700; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.bigbar { height: 16px; border: 2px solid var(--ink); border-radius: 99px; background: var(--panel); overflow: hidden; margin: 1rem 0; }
.bigbar i { display: block; height: 100%; width: var(--p, 0%); background: repeating-linear-gradient(45deg, #FF7A1A 0 10px, #FF9A3C 10px 20px); transition: width .6s; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.chip { --tc: var(--orange); border: 2px solid var(--ink); background: var(--panel); border-radius: 99px; padding: .3rem .85rem; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--tc); color: #fff; }
.col-ext { margin: 2.2rem 0; }
.ext-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.ext-kj { font-family: 'Yuji Syuku', serif; font-size: 1.5rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--tc); color: #fff; border: 2px solid #1E1512; border-radius: 8px; transform: rotate(-5deg); flex: none; }
.ext-head h3 { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: .03em; margin: 0; line-height: 1; }
.ext-prog { margin-left: auto; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: .6rem; }
.minibar { width: 110px; height: 10px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--panel); }
.minibar i { display: block; height: 100%; width: var(--p); background: var(--tc); }
.slots { --sw: 132px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--sw), 1fr)); gap: 1.4rem .9rem; justify-items: center; }
.slot { position: relative; width: var(--sw); aspect-ratio: 5 / 7; }
.slot .card { --cw: var(--sw); cursor: pointer; }
.slot.empty { border: 3px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; color: var(--ink-soft); }
.slot.empty b { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 1.8rem; letter-spacing: .04em; opacity: .75; }
.slot.empty span { font-size: .8rem; opacity: .75; }
.slot.mystery { border-color: #B388FF; background: repeating-linear-gradient(45deg, #1C1830 0 10px, #251E3D 10px 20px); color: #fff; }
.slot.onyx { border-color: #C8102E; background: linear-gradient(160deg, #1C0B0F, #060304); color: #FFD9DE; }
.count { position: absolute; right: -.5rem; bottom: -.55rem; z-index: 12; background: #1E1512; color: #fff; font-weight: 700; font-size: .8rem; border: 2px solid var(--paper); border-radius: 99px; padding: .05rem .5rem; }
.empty-msg { background: var(--panel); border: 3px dashed var(--line); border-radius: 16px; padding: 2rem; text-align: center; margin-top: 1rem; }

#zoom { position: fixed; inset: 0; z-index: 55; background: rgba(10,6,4,.82); display: grid; place-items: center; padding: 1rem; overflow: auto; }
.z-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }
.z-in .card { --cw: min(300px, 70vw, 56vh); animation: popin .45s cubic-bezier(.2,1.8,.4,1); }
.z-info { color: #fff; max-width: 30ch; }
.z-info h3 { font-family: 'Bangers', sans-serif; font-size: 2.5rem; font-weight: 400; margin: 0; letter-spacing: .03em; line-height: 1; }
.z-info p { margin: .4rem 0; }
.z-info .btn { margin-top: 1rem; }

/* ---------- Test des effets ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2.4rem 1.4rem; }
.g-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.g-item .card { --cw: 190px; }
.g-item h3 { font-family: 'Bangers', sans-serif; font-weight: 400; letter-spacing: .04em; font-size: 1.55rem; margin: 1rem 0 .1rem; }
.g-item p { margin: 0 0 .8rem; font-size: .92rem; color: var(--ink-soft); max-width: 26ch; }
.foot { text-align: center; color: var(--ink-soft); font-size: .85rem; padding: 0 1.25rem 2.5rem; }

/* ---------- Écran de gloire ---------- */
#glory { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; cursor: pointer; padding: env(safe-area-inset-top, 0px) 1rem env(safe-area-inset-bottom, 0px); }
#glory.gquake { animation: quake .6s; }
#glory.gbigquake { animation: quake 1s; }
.g-bg { position: absolute; inset: 0; background: var(--gbg, #000); }
#glory.blackout .g-bg { background: #000; }
.g-rays { position: absolute; left: 50%; top: 50%; width: 250vmax; height: 250vmax; translate: -50% -50%; background: repeating-conic-gradient(from var(--ang), var(--rc) 0deg 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 34%); mask: radial-gradient(circle, #000 0, transparent 34%); animation: spin 14s linear infinite; opacity: .65; }
.g-speed { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; translate: -50% -50%; background: repeating-conic-gradient(from 3deg, rgba(255,255,255,.25) 0deg .45deg, transparent .45deg 5deg); -webkit-mask: radial-gradient(circle, transparent 18%, #000 45%); mask: radial-gradient(circle, transparent 18%, #000 45%); animation: speedFlick .1s steps(2) infinite; }
@keyframes speedFlick { 50% { rotate: 2deg; } }
.g-kanji { position: absolute; font-family: 'Yuji Syuku', serif; font-size: min(38vw, 50vh); line-height: 1; color: var(--kc); opacity: .22; white-space: nowrap; animation: kanjiIn 1s cubic-bezier(.2,.9,.3,1) both; }
@keyframes kanjiIn { from { transform: scale(2.4); opacity: 0; filter: blur(14px); } }
.g-stack { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.g-slam { font-family: 'Bangers', sans-serif; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; letter-spacing: .04em; color: var(--sc); -webkit-text-stroke: .035em #120B08; text-shadow: .06em .07em 0 #120B08; transform: rotate(-4deg); animation: slam .7s cubic-bezier(.2,1.7,.4,1) .45s both; text-align: center; }
@keyframes slam { 0% { transform: scale(5) rotate(-18deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: scale(1) rotate(-4deg); } }
.g-cardwrap { position: relative; animation: gRise .85s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes gRise { from { transform: translateY(70px) scale(.3) rotate(28deg); opacity: 0; } }
.g-cardwrap .card { --cw: min(270px, 58vw, 36vh); }
.g-cardwrap.v-coin, .g-cardwrap.v-meteor { animation: none; }
.v-coin { perspective: 1400px; }
.v-coin .card { animation: coin 1.15s cubic-bezier(.2,.8,.3,1) both; }
@keyframes coin { from { transform: translateY(38vh) rotateY(0deg) scale(.25); } to { transform: translateY(0) rotateY(1080deg) scale(1); } }
.v-meteor .card { animation: meteor .45s cubic-bezier(.7,0,1,.6) both; }
@keyframes meteor { from { transform: translate(38vw, -130vh) rotate(70deg) scale(2.6); filter: blur(4px) brightness(2); } to { transform: none; filter: none; } }
.g-sub { margin: 0; font-weight: 700; color: #fff; font-size: 1.1rem; text-align: center; text-shadow: 0 2px 8px #000; min-height: 1.6em; animation: fadeUp .5s 1s both; }
.g-tap { position: absolute; z-index: 5; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); margin: 0; color: rgba(255,255,255,.8); font-size: .9rem; animation: fadeUp .5s 1.6s both, blink 1.4s 2.1s infinite; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes blink { 50% { opacity: .35; } }

/* Légendaire : rouleau d'invocation */
#glory.t-legend { --gbg: radial-gradient(circle, #6A4308, #1A0F02 60%, #000); --rc: rgba(255,210,74,.55); --kc: #FFD24A; --sc: #FFD24A; }
.g-scroll { position: absolute; z-index: 3; height: min(34vh, 260px); width: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(var(--paper), #EAD39E); border-top: 6px solid var(--red); border-bottom: 6px solid var(--red); animation: unroll .6s cubic-bezier(.3,1.2,.4,1) forwards; transition: opacity .35s, transform .35s; box-shadow: 0 0 60px rgba(255,210,74,.6); }
.g-scroll::before, .g-scroll::after { content: ''; position: absolute; top: -12%; bottom: -12%; width: 22px; background: linear-gradient(90deg, #3A2112, #7A4A26, #3A2112); border-radius: 6px; }
.g-scroll::before { left: 0; } .g-scroll::after { right: 0; }
.g-scroll span { font-family: 'Yuji Syuku', serif; font-size: min(20vh, 150px); color: var(--red); white-space: nowrap; line-height: 1; }
.g-scroll.gone { opacity: 0; transform: scaleY(.05); }
@keyframes unroll { to { width: min(82vw, 760px); } }

/* Secrète : faux bug, logo DVD */
#glory.t-secret { --gbg: radial-gradient(circle, #2A1050, #000 70%); --rc: #fff; --kc: #FF4FA3; --sc: #fff; }
#glory.t-secret .g-rays { background: repeating-conic-gradient(from var(--ang), #FF4FA3 0 6deg, transparent 6deg 12deg, #3DDC97 12deg 18deg, transparent 18deg 24deg, #2F7BFF 24deg 30deg, transparent 30deg 36deg); animation: spin 9s linear infinite, hue 2s linear infinite; }
#glory.t-secret .g-kanji { animation: kanjiIn 1s cubic-bezier(.2,.9,.3,1) both, hue 3s linear infinite; }
#glory.t-secret .g-slam { animation: slam .7s cubic-bezier(.2,1.7,.4,1) .45s both, glitch 1.3s 1.3s infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes glitch { 0%, 84%, 100% { text-shadow: .06em .07em 0 #120B08; } 87% { text-shadow: -.09em 0 0 #FF4FA3, .09em 0 0 #2F7BFF; transform: rotate(-4deg) translateX(5px) skewX(8deg); } 91% { text-shadow: .09em 0 0 #3DDC97, -.09em 0 0 #FF4FA3; transform: rotate(-4deg) translateX(-6px) skewX(-6deg); } 95% { transform: rotate(-4deg) translateX(2px); } }
.g-error { position: absolute; z-index: 3; text-align: center; color: #fff; font-family: 'Rubik', sans-serif; animation: jitter .12s steps(2) infinite; }
.g-error .e1 { font-family: 'Bangers', sans-serif; font-size: clamp(3rem, 12vw, 8rem); margin: 0; line-height: 1; color: #fff; text-shadow: -.05em 0 #FF4FA3, .05em 0 #2F7BFF; }
.g-error .e2 { font-size: 1.4rem; font-weight: 700; margin: .5rem 0 .2rem; }
.g-error .e3 { color: #aaa; margin: 0; }
@keyframes jitter { 50% { transform: translate(4px, -2px) skewX(4deg); clip-path: inset(10% 0 30% 0); } }
.g-scan { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 4px); animation: scan .2s steps(3) infinite; }
@keyframes scan { 50% { transform: translateY(3px); } }
.g-dvd { position: absolute; left: 0; top: 0; z-index: 5; will-change: transform; }

/* Numérotée : lune rouge, compte à rebours, météorite */
#glory.t-serial { --gbg: radial-gradient(circle, #3A0009, #0C0003 60%, #000); --rc: rgba(200,16,46,.65); --kc: #C8102E; --sc: #FF2E4D; }
#glory.t-serial .g-bg::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 18vmax #C8102E; animation: vignette 1s ease-in-out infinite; }
@keyframes vignette { 50% { box-shadow: inset 0 0 8vmax #C8102E; } }
#glory.t-serial .g-kanji { opacity: .35; }
#glory.t-serial .g-slam { animation-delay: .9s; }
#glory.t-serial .g-sub { animation: none; }
.g-moon { position: absolute; z-index: 1; width: min(62vmin, 500px); aspect-ratio: 1; border-radius: 50%; opacity: .92; background: radial-gradient(circle at 38% 34%, #FF6A7C, #C8102E 45%, #5C0010 85%); box-shadow: 0 0 14vmin 2vmin rgba(200,16,46,.8); animation: moon 1.1s cubic-bezier(.2,.8,.3,1) both; }
@keyframes moon { from { transform: translateY(80vh) scale(.6); } }
.g-count { position: absolute; z-index: 5; font-family: 'Bangers', sans-serif; font-size: min(40vw, 46vh); line-height: 1; color: #fff; -webkit-text-stroke: .03em #000; text-shadow: 0 0 .2em #C8102E; }
.g-count.hit { animation: countHit .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes countHit { from { transform: scale(3); opacity: 0; } 60% { opacity: 1; } }
.g-wave { position: absolute; z-index: 2; left: 50%; top: 50%; width: 40vmin; aspect-ratio: 1; border: 6px solid #FF2E4D; border-radius: 50%; transform: translate(-50%, -50%) scale(.2); animation: wave .9s ease-out forwards; }
@keyframes wave { to { transform: translate(-50%, -50%) scale(4); opacity: 0; } }
.g-cracks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.g-cracks polyline { fill: none; stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px #FF2E4D); animation: crack .35s ease-out forwards; }
@keyframes crack { to { stroke-dashoffset: 0; } }
.g-stamp { position: absolute; right: -16%; bottom: 10%; z-index: 5; font-family: 'Bangers', sans-serif; font-size: clamp(1.6rem, 4.5vw, 2.4rem); letter-spacing: .04em; line-height: 1; color: var(--paper); background: var(--red); padding: .25em .5em; border: .1em solid var(--paper); box-shadow: 0 0 0 .1em var(--red), 0 0 2em rgba(255,46,77,.9); transform: rotate(-12deg); animation: stampIn .45s cubic-bezier(.2,1.8,.4,1) 1.4s both; }
@keyframes stampIn { from { transform: scale(5) rotate(-35deg); opacity: 0; } }
.splat { position: absolute; z-index: 4; border-radius: 50%; background: #C8102E; box-shadow: 0 0 0 .3em rgba(200,16,46,.35); animation: splat .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes splat { from { transform: scale(0); } }

/* Ryō */
.ryo { position: relative; display: inline-flex; align-items: center; gap: .45rem; border: 2px solid var(--ink); background: var(--panel); border-radius: 99px; padding: .2rem .85rem .2rem .25rem; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.ryo-ic { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-family: 'Yuji Syuku', serif; font-size: .95rem; color: #5A3A00; background: radial-gradient(circle at 35% 30%, #FFF1B8, #E2A92B 70%); box-shadow: inset 0 0 0 2px #B07A10; }
.ryo.bump { animation: bump .35s cubic-bezier(.2,1.8,.4,1); }
@keyframes bump { 50% { transform: scale(1.18); } }
.ryo-pop { position: absolute; right: .3rem; top: 100%; z-index: 30; font-family: 'Bangers', sans-serif; font-size: 1.4rem; letter-spacing: .03em; white-space: nowrap; pointer-events: none; color: #E2A92B; -webkit-text-stroke: .03em #1E1512; animation: ryoPop 1.2s ease-out forwards; }
.ryo-pop.minus { color: #FF2E4D; }
@keyframes ryoPop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
.pack-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin-top: 1.4rem; }
.pack-info { margin: 0; font-weight: 700; background: var(--panel); border: 2px solid var(--ink); border-radius: 99px; padding: .3rem .9rem; box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pack.locked { cursor: not-allowed; filter: grayscale(.85) brightness(.85); }
.pack.locked:hover { transform: none; }
.pack.nope { animation: nope .4s; }
@keyframes nope { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.col-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.z-info .z-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.z-info .z-actions .btn { margin-top: 0; }
.proto-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin: -.6rem 0 2rem; }

/* Fenêtre de confirmation, notifications, historique, filtres */
#modal { position: fixed; inset: 0; z-index: 65; background: rgba(10,6,4,.7); display: grid; place-items: center; padding: 1rem; }
.m-box { background: var(--panel); color: var(--ink); border: 3px solid #1E1512; border-radius: 16px; box-shadow: 8px 8px 0 #1E1512; padding: 1.4rem 1.6rem; max-width: 27rem; animation: popin .35s cubic-bezier(.2,1.8,.4,1); }
.m-box h3 { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: .03em; margin: 0 0 .4rem; line-height: 1; }
.m-box p { margin: 0 0 1.3rem; white-space: pre-line; }
.m-actions { display: flex; justify-content: flex-end; gap: .7rem; flex-wrap: wrap; }
#toasts { position: fixed; left: 50%; top: calc(1rem + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 58; display: flex; flex-direction: column; gap: .6rem; align-items: center; pointer-events: none; width: min(92vw, 27rem); }
.toast { pointer-events: auto; width: 100%; background: var(--paper); color: #1E1512; border: 3px solid #1E1512; border-radius: 14px; box-shadow: 6px 6px 0 #1E1512; padding: .75rem 1rem; display: flex; gap: .85rem; align-items: center; cursor: pointer; animation: toastIn .5s cubic-bezier(.2,1.6,.4,1) both; }
.toast.out { animation: toastOut .35s ease-in forwards; }
.toast-ic { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: var(--red); color: var(--paper); display: grid; place-items: center; font-family: 'Yuji Syuku', serif; font-size: 1.4rem; transform: rotate(-6deg); }
.toast b { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 1.35rem; letter-spacing: .03em; display: block; line-height: 1.05; }
.toast span { font-size: .9rem; }
@keyframes toastIn { from { transform: translateY(-130%) scale(.8); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-130%); opacity: 0; } }
.streak { display: inline-flex; align-items: center; gap: .5rem; }
.dots { letter-spacing: .12em; color: var(--orange); }
.toggle { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; border: 2px solid #1E1512; border-radius: 12px; padding: .45rem .85rem; background: var(--paper); color: #1E1512; box-shadow: 4px 4px 0 #1E1512; cursor: pointer; }
.toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--orange); }
.chips-label { font-weight: 700; color: var(--ink-soft); font-size: .85rem; align-self: center; margin-right: .2rem; }
.h-sum { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.h-sum li { background: var(--panel); border: 2px solid var(--ink); border-radius: 99px; padding: .15rem .75rem; font-weight: 700; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.h-list { display: flex; flex-direction: column; gap: .8rem; }
.h-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: var(--panel); border: 2px solid var(--ink); border-radius: 14px; padding: .7rem .9rem; box-shadow: 4px 4px 0 var(--ink); }
.h-row.big { border-color: #E2A92B; box-shadow: 4px 4px 0 #E2A92B; }
.h-when { min-width: 10rem; font-weight: 700; }
.h-when small { display: block; font-weight: 500; color: var(--ink-soft); }
.h-cards { display: flex; flex-wrap: wrap; gap: .4rem; }
.h-chip { --tc: #888; border: 2px solid #1E1512; border-radius: 99px; padding: .12rem .65rem; font-size: .85rem; font-weight: 700; cursor: pointer; background: #E4E7EF; color: #1E1512; }
.h-chip.r-rare { background: color-mix(in srgb, var(--tc) 40%, white); }
.h-chip.r-epic { background: #9B6BFF; color: #fff; }
.h-chip.r-legend { background: linear-gradient(90deg, #FFE27A, #E8B64C); }
.h-chip.r-secret { background: linear-gradient(90deg, #FF4FA3, #FFC371, #3DDC97, #2F7BFF); color: #fff; text-shadow: 0 1px 2px #000; }
.h-chip.r-serial { background: #120D1C; color: #FF4D63; border-color: #C8102E; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
#flash { position: fixed; inset: 0; pointer-events: none; z-index: 80; opacity: 0; background: #fff; }
#flash.rainbow { background: linear-gradient(120deg, #FF4FA3, #FFC371, #3DDC97, #2F7BFF, #B388FF); }
#flash.blood { background: #C8102E; }
#flash.go { animation: flash .75s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }

@media (max-width: 640px) {
  .site-head { padding: .9rem 1rem; }
  .logo { font-size: 1.6rem; }
  .tabs { margin-left: 0; order: 3; width: 100%; }
  .mute { margin-left: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.8rem .8rem; }
  .g-item .card { --cw: 42vw; }
  .stage { --cw: 40vw; }
  .slots { --sw: 27vw; }
  .ext-prog { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== Site réel : connexion, profil, exploits, joueurs, administration ===== */
.art .pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; user-select: none; }
.art .emoji { font-family: 'Yuji Syuku', serif; color: rgba(255,255,255,.85); }
.loading { min-height: 60vh; display: grid; place-items: center; font-family: 'Bangers', sans-serif; font-size: 2rem; letter-spacing: .04em; color: var(--ink-soft); }
.gate { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.gate .hanko { width: 5rem; height: 5rem; font-size: 3rem; border-radius: 12px; }
.gate .discord { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; background: #5865F2; }
.gate small { color: var(--ink-soft); }
a.btn { display: inline-block; text-decoration: none; }
.userchip { display: inline-flex; align-items: center; gap: .5rem; border: 2px solid var(--ink); background: var(--panel); border-radius: 99px; padding: .2rem .35rem .2rem .2rem; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; }
.userchip a { color: inherit; font-size: .8rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; text-decoration: none; }
.userchip a:hover { background: var(--bg); }
.av { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--red); color: var(--paper); font-family: 'Yuji Syuku', serif; border: 2px solid var(--ink); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.big { width: 3.2rem; height: 3.2rem; font-size: 1.4rem; }
.feed-wrap { max-width: 760px; margin: 2.5rem auto 0; text-align: left; }
.feed-wrap h2 { font-size: 1.9rem; }
.feed { display: flex; flex-direction: column; gap: .5rem; }
.feed-row { display: flex; align-items: center; gap: .7rem; background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; padding: .45rem .7rem; box-shadow: 3px 3px 0 var(--ink); }
.feed-row p { margin: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.feed-row time { color: var(--ink-soft); font-size: .8rem; white-space: nowrap; }
.feed-empty { color: var(--ink-soft); margin: .3rem 0; }
.badge-done { font-family: 'Bangers', sans-serif; letter-spacing: .04em; background: var(--tc); color: #fff; border: 2px solid #1E1512; border-radius: 8px; padding: .1rem .55rem; transform: rotate(-4deg); }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1.4rem; }
.player { background: var(--panel); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 1rem; }
.player.me { border-color: var(--orange); box-shadow: 5px 5px 0 var(--orange); }
.player header { display: flex; align-items: center; gap: .8rem; }
.player h3 { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; margin: 0; line-height: 1; }
.player header p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.badges { display: flex; gap: .4rem; margin: .7rem 0; min-height: .2rem; }
.badge { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 7px; background: var(--tc); color: #fff; font-family: 'Yuji Syuku', serif; border: 2px solid #1E1512; transform: rotate(-5deg); }
.showcase { display: flex; flex-wrap: wrap; gap: .6rem; }
.showcase .card { --cw: 88px; cursor: pointer; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.box { background: var(--panel); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 1.2rem 1.3rem; margin-bottom: 2rem; }
.box h2 { font-size: 2rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; font-weight: 700; }
.field input[type=text], .field select, .field textarea { font: inherit; font-weight: 400; color: #1E1512; background: #FFFDF6; border: 2px solid #1E1512; border-radius: 10px; padding: .5rem .65rem; }
.field textarea { min-height: 4.5rem; resize: vertical; }
.field small { font-weight: 500; color: var(--ink-soft); }
.field small.over { color: #C8102E; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .9rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--orange); }
.preview { position: sticky; top: 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.preview .card { --cw: 220px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.tbl img { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.tbl .acts { display: flex; flex-wrap: wrap; gap: .35rem; }
.tbl .acts button { font: inherit; font-size: .8rem; font-weight: 700; border: 2px solid #1E1512; border-radius: 8px; background: var(--paper); color: #1E1512; padding: .15rem .5rem; cursor: pointer; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 99px; padding: .05rem .55rem; border: 2px solid currentColor; }
.pill.draft { color: #8E6A00; } .pill.published { color: #1E8E4E; } .pill.retired { color: #9C0006; }
.progress { height: 14px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--bg); margin: .6rem 0; }
.progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--orange); transition: width .3s; }
.log-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; max-height: 320px; overflow: auto; }
.log-list li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.import-report { font-size: .9rem; max-height: 260px; overflow: auto; }
@media (max-width: 820px) { .admin-grid { grid-template-columns: 1fr; } .preview { position: static; } .row2 { grid-template-columns: 1fr; } }
a.tab { text-decoration: none; color: inherit; display: inline-block; }
.site-head { max-width: 1280px; }
