/* respin.wtf — page built on the Boo kit (/boo/boo-design.css): black #090909, one action red,
   a single sliding pill per row, no permanent loop. Rules: respin/site/README in the skill. */

@font-face {
  font-family: 'Righteous';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/boo/polices/righteous-latin.woff2) format('woff2');
}
/* Headlines in Righteous (single weight 400); numbers stay in DM Sans. */
:root { --respin-script: 'Righteous', 'Bricolage Grotesque', sans-serif; --boo-display: var(--respin-script); }
.boo-btn--or { font-family: var(--boo-sans); }
.boo-display { font-family: var(--respin-script); font-weight: 400; letter-spacing: 0; line-height: 1.1; }
.hero-stats b, .countdown, .vcard .big, .engine-row b, .raffle .prize {
  font-family: var(--boo-sans) !important; font-weight: 700 !important; letter-spacing: -0.03em !important;
}

body { background: var(--boo-fond); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p a, .boo-sourdine a { color: var(--boo-bleu-clair); font-weight: 700; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.or { color: var(--boo-or); }
.mono { font-family: var(--boo-mono); }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--boo-gagne); box-shadow: 0 0 0 3px rgba(70, 220, 91, .16);
  margin-right: 7px; vertical-align: 1px;
}
.boo-mono .dot { width: 6px; height: 6px; }

/* Ticker: thin dark-glass strip, DM Mono labels, tabular numbers. */
.ticker {
  position: relative; z-index: 31;
  background: rgba(255, 255, 255, .025);
  border-bottom: 1px solid var(--boo-bord);
  font-size: 12.5px; color: var(--boo-sourd);
}
.ticker-in { display: flex; align-items: center; gap: 22px; height: 36px; overflow: hidden; white-space: nowrap; }
.ticker b { color: var(--boo-texte); font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker b.or { color: var(--boo-or); }
.tk-race { margin-left: auto; color: var(--boo-bleu-clair); font-weight: 600; }
.tk-race b { color: var(--boo-bleu-clair); }

/* Header. */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(9, 9, 9, .82);
  backdrop-filter: blur(24px) saturate(120%); -webkit-backdrop-filter: blur(24px) saturate(120%);
  border-bottom: 1px solid var(--boo-bord);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word { height: 42px; width: auto; }
.nav { display: flex; gap: 2px; padding: 3px; border-radius: 15px; }
.nav .boo-onglet { height: 40px; padding: 0 16px; border-radius: 13px; display: inline-flex; align-items: center; font-size: 14.5px; color: var(--boo-nav-mot); }
.nav .boo-onglet[aria-pressed="true"] { color: #fff; font-weight: 700; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.socials { display: inline-flex; gap: 6px; }
.soc {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--boo-nav); background: var(--boo-panneau); border: 1px solid var(--boo-bord);
}
.soc svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .soc:hover { color: #fff; } }

/* Hero. */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 56px 0 30px; min-height: min(78vh, 720px); }
.eyebrow { margin-bottom: 18px; color: var(--boo-sourd); }
.hero h1 { font-size: clamp(40px, 4.4vw, 64px); white-space: nowrap; line-height: 1.08; margin: 0 0 22px; color: #fff; }
.lead { font-size: 17px; line-height: 1.6; color: var(--boo-second); max-width: 540px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .boo-btn { padding: 0 26px; }
.cta-relief {
  height: 52px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: 14px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
}
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 34px; margin-top: 38px; }
.hero-stats b { display: block; font-size: 30px; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-family: var(--boo-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .36); }

.hero-art { position: relative; height: min(64vh, 600px); }
.hero-art .glow {
  position: absolute; inset: 8% 0 6%;
  background:
    radial-gradient(42% 46% at 50% 56%, rgba(227, 11, 44, .30) 0%, transparent 70%),
    radial-gradient(30% 34% at 22% 62%, rgba(255, 73, 73, .16) 0%, transparent 70%),
    radial-gradient(30% 34% at 82% 66%, rgba(255, 203, 71, .14) 0%, transparent 70%);
  filter: blur(8px);
}
.hero-art .floor {
  position: absolute; left: 6%; right: 6%; bottom: 0; height: 60px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .75), transparent 70%);
}
.hero-art { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; min-width: 0; }
.hero-art .m {
  position: relative; height: 66%; width: auto; max-width: none; margin: 0 -6%; will-change: transform;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
  animation: booMonte .7s cubic-bezier(.2, .8, .2, 1) both;
}
.m-dt { order: 1; z-index: 1; animation-delay: .05s !important; }
.m-ok { order: 2; z-index: 2; animation-delay: .15s !important; }
.m-op { order: 3; z-index: 3; animation-delay: .25s !important; }
.hero-art .m-ok { height: 77%; }

/* Code banner (only when site.json studio.stakeCode is set). */
.code-banner { margin-top: 10px; }
.code-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.code-title { font-size: 24px; color: #fff; margin-top: 4px; }
.code-title span { color: var(--boo-bleu-clair); }

/* Sections. */
.sec { padding: 72px 0 8px; scroll-margin-top: 76px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.sec h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; margin: 6px 0 14px; color: #fff; }
.sec-head .boo-sourdine { margin: 0; max-width: 560px; font-size: 14.5px; }
.boo-segments { flex: none; }

#gameList, .board-card .board { transition: opacity .16s ease, transform .16s ease; }
#gameList.swap, .board-card.swap .board { opacity: 0; transform: translateY(6px); }

/* Game cards. */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game { position: relative; padding: 10px; display: flex; flex-direction: column; animation: booMonte .26s cubic-bezier(.22, 1, .36, 1) both; }
.game .art { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: #111; cursor: pointer; }
.game .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.game .art::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-130%) skewX(-18deg); opacity: 0; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .game:hover .art img { transform: scale(1.035); }
  .game:hover .art::after { animation: booReflet .9s ease-out 1; }
}
.status {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: -0.01em;
  background: rgba(9, 9, 9, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1); color: #fff;
}
.status.live { color: var(--boo-gagne); }
.status.review { color: var(--boo-or); }
.status.soon { color: var(--boo-bleu-clair); }
.game .meta { padding: 14px 6px 4px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { font-family: var(--boo-display); font-weight: 400; letter-spacing: 0; font-size: 20px; margin: 0; color: #fff; }
.game .tag { font-size: 13px; color: var(--boo-sourd); margin: -4px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .05); font-size: 11.5px; font-weight: 600; color: var(--boo-second);
  font-variant-numeric: tabular-nums;
}
.chip b { color: #fff; }
.game .pulse { font-size: 12.5px; color: var(--boo-sourd); min-height: 18px; }
.game .pulse b { color: var(--boo-texte); font-variant-numeric: tabular-nums; }
.game .actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.game .actions .boo-relief { height: 52px; padding: 0 18px; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.boo-relief > span { position: relative; z-index: 1; }

/* Live. */
.live-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.feed-card, .board-card, .race-side { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.feed, .board { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px;
  grid-template-columns: 40px 1fr auto auto;
}
.row + .row { border-top: 1px solid rgba(255, 255, 255, .04); }
.row.new { animation: booNeuve .26s ease; }
.row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.row .who { min-width: 0; }
.row .who b { display: block; font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who span { font-size: 12px; color: var(--boo-sourd); }
.row .ago { font-family: var(--boo-mono); font-size: 11px; color: rgba(255, 255, 255, .32); }
.empty { padding: 26px 10px; text-align: center; color: var(--boo-sourd); font-size: 13.5px; }
.vault { display: grid; gap: 12px; }
.vcard { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 10px; align-items: center; }
.vcard img { width: 92px; height: 122px; object-fit: cover; border-radius: 10px; }
.vcard .boo-mono { margin-bottom: 4px; }
.vcard .big { font-family: var(--boo-display); font-weight: 400; letter-spacing: 0; font-size: 34px; color: var(--boo-or); font-variant-numeric: tabular-nums; line-height: 1.05; }
.vcard .big.none { color: rgba(255, 255, 255, .22); }
.vcard .sub { font-size: 12.5px; color: var(--boo-sourd); margin-top: 4px; }
.vcard .sub b { color: var(--boo-texte); }

/* Race. */
.race-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.race-side { display: flex; flex-direction: column; gap: 16px; }
.countdown { font-size: 44px; color: #fff; margin-top: -6px; }
.race-meta { display: grid; gap: 10px; }
.race-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.race-meta b { font-size: 14px; color: #fff; text-align: right; }
.name-form { display: grid; gap: 8px; }
.name-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.name-row .boo-champ { height: 48px; }
.name-msg { font-size: 12.5px; min-height: 16px; color: var(--boo-sourd); }
.name-msg.bad { color: var(--boo-perdu); }
.name-msg.good { color: var(--boo-gagne); }
.board-head { display: grid; grid-template-columns: 44px 1fr 150px 110px; padding: 4px 10px 10px; gap: 12px; }
.board .row { grid-template-columns: 44px 1fr 150px 110px; }
.board-head .r, .board .r { text-align: right; justify-self: end; }
.rank {
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--boo-mono); font-size: 12px; color: var(--boo-sourd); background: rgba(255, 255, 255, .04);
}
.board .row:nth-child(1) .rank { background: var(--boo-or); color: #0A0710; font-weight: 700; }
.board .row:nth-child(2) .rank { background: #D9DEE8; color: #0A0710; font-weight: 700; }
.board .row:nth-child(3) .rank { background: #D9925B; color: #0A0710; font-weight: 700; }
.board .row.me { background: rgba(227, 11, 44, .12); box-shadow: inset 0 0 0 1px rgba(255, 92, 108, .35); }
.board .gname { font-size: 13px; color: var(--boo-second); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Raffles. */
.raffles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.raffle { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.raffle h3 { font-family: var(--boo-display); font-weight: 400; letter-spacing: 0; font-size: 18px; margin: 0; color: #fff; }
.raffle .prize { font-family: var(--boo-display); font-size: 32px; color: var(--boo-or); }
.raffle p { margin: 0; font-size: 13.5px; color: var(--boo-sourd); line-height: 1.5; }
.raffle .when { font-family: var(--boo-mono); font-size: 12px; color: var(--boo-second); }
.raffle-empty { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 24px; }
.raffle-empty .ticket { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 203, 71, .12); color: var(--boo-or); }
.raffle-empty .ticket svg { width: 30px; height: 30px; }
.raffle-empty b { display: block; font-family: var(--boo-display); font-size: 22px; font-weight: 400; letter-spacing: 0; color: #fff; margin-bottom: 4px; }
.raffle-empty span { color: var(--boo-sourd); font-size: 14px; }

/* Studio. */
.studio-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.pillars .boo-carte { padding: 14px; }
.pillars b { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.pillars span { font-size: 12.5px; color: var(--boo-sourd); line-height: 1.5; }
.intro-card { overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.intro-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.engine { margin-bottom: 20px; }
.engine-row { display: flex; gap: 34px; margin-top: 10px; }
.engine-row b { display: block; font-size: 30px; color: #fff; }
.engine-row span { font-family: var(--boo-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .36); }
.contact { display: flex; flex-wrap: wrap; gap: 8px; }
.contact a { height: 44px; padding: 0 16px; border-radius: 13px; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.contact svg { width: 18px; height: 18px; }

.foot { padding: 70px 0 120px; display: grid; gap: 14px; justify-items: start; border-top: 1px solid var(--boo-bord); margin-top: 80px; }
.foot img { height: 56px; width: auto; opacity: .9; }
.foot p { margin: 0; max-width: 640px; }
.foot-row { display: flex; align-items: center; gap: 16px; width: 100%; justify-content: space-between; }

/* Phone bar. */
.navbas { display: none; }

/* Demo modal + game sheet. */
.demo, .sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.demo-voile, .sheet-voile { position: absolute; inset: 0; animation: booFond .18s ease; }
.demo-box {
  position: relative; width: min(1500px, 94vw); height: min(900px, 90vh); display: flex; flex-direction: column; overflow: hidden;
  animation: booMonte 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-bar { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--boo-bord); }
.demo-bar img { height: 34px; width: auto; }
.demo-bar .boo-btn { height: 40px; font-size: 13.5px; }
#demoFull { margin-left: auto; }
.demo-x { width: 40px; padding: 0; font-size: 16px; }
.demo iframe { flex: 1; width: 100%; border: 0; background: #000; }
.sheet-box { position: relative; width: min(720px, 94vw); max-height: 90vh; overflow: auto; animation: booMonte 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.sheet-box .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px 18px 0 0; }
.sheet-in { padding: 20px 22px 22px; display: grid; gap: 14px; }
.sheet-in h3 { font-family: var(--boo-display); font-weight: 400; letter-spacing: 0; font-size: 26px; margin: 0; color: #fff; }
.sheet-in p { margin: 0; color: var(--boo-second); line-height: 1.6; font-size: 15px; }
.sheet-in ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sheet-in li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 14px; color: var(--boo-texte); }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(9, 9, 9, .7); color: #fff; font-size: 16px; z-index: 2; }

/* First-visit intro. */
#intro { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .5s ease; }
#intro video { width: min(100vw, max(340px, 42vw)); height: auto; }
#intro.out { opacity: 0; pointer-events: none; }
.intro-on .hero-art .m { animation-play-state: paused; }
#introSkip { position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); height: 40px; color: rgba(255, 255, 255, .6); }

@keyframes pop { 0% { transform: scale(.84); } 55% { transform: scale(1.035); } 78% { transform: scale(.99); } 100% { transform: scale(1); } }
.pop { display: inline-block; animation: pop .42s cubic-bezier(.2, .85, .3, 1); }

/* Tablet / phone. */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; min-height: 0; }
  .hero-art { order: -1; height: 360px; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .live-grid, .race-grid, .studio-grid { grid-template-columns: 1fr; }
  .raffles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .ticker-in { gap: 14px; font-size: 11.5px; }
  .tk-best { display: none; }
  .top-in { height: 60px; }
  .top-right .socials { display: none; }
  .top-right .boo-btn { height: 40px; font-size: 13.5px; padding: 0 14px; }
  .hero h1 { font-size: clamp(30px, 10vw, 42px); }
  .hero-art { height: 300px; }
  .lead { font-size: 15.5px; }
  .cta-row > * { flex: 1; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 18px 34px; }
  .games { grid-template-columns: 1fr; }
  .raffles { grid-template-columns: 1fr; }
  .raffle-empty { grid-template-columns: auto 1fr; }
  .raffle-empty .boo-btn { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; }
  .board-head, .board .row { grid-template-columns: 36px 1fr 86px; }
  .board-head > :nth-child(3), .board .gname { display: none; }
  .sec { padding-top: 56px; }
  .vcard .big { font-size: 28px; }
  .navbas {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 0 3px;
  }
  .navbas .boo-onglet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; }
  .navbas svg { width: 21px; height: 21px; }
  .navbas .boo-pilule { border-radius: 28px; }
  .demo-box { width: 100vw; height: 100dvh; border-radius: 0; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .m, .game, .row.new, .pop, .demo-box, .sheet-box { animation: none !important; }
  .hero-art .m { transition: none; }
}
