/* Crossover — styles des pages (accueil, explore, coin, studio, how). Jetons dans site.css. */
.site-head .nav a[aria-current="page"] { color: var(--white); }
.site-head .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
main section { padding: 96px 0 0; }
h1, h2, h3 { font-family: var(--display); }
h2 { font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 12px; max-width: 20ch; }
.lede { color: var(--grey-text); max-width: 60ch; margin: 0 0 36px; }
.page-top { padding: 40px 0 0; }
.page-top h1 { font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 14px; }
.page-top p { color: var(--grey-text); font-size: 18px; max-width: 56ch; margin: 0; }
.net { font: 13px/1.5 var(--mono); color: var(--grey-text); padding: 10px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); margin: 24px 0 0; }

/* accueil : écran de match */
.match { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; min-height: calc(100svh - 76px); max-height: 980px; border-bottom: 1px solid var(--line); overflow: hidden; }
.half { position: relative; padding: 40px 32px 0; display: flex; flex-direction: column; min-width: 0; }
.half.p { background: linear-gradient(90deg, rgba(92,255,138,.07), transparent 70%); }
.half.s { background: linear-gradient(270deg, rgba(139,92,255,.10), transparent 70%); text-align: right; align-items: flex-end; }
.venue { font: 600 18px/1 var(--display); display: flex; align-items: center; gap: 10px; }
.venue b { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.big { font: 700 clamp(64px, 11vw, 168px)/0.9 var(--display); letter-spacing: -0.05em; margin: 28px 0 8px; font-variant-numeric: tabular-nums; }
.sub { color: var(--grey-text); font-size: 15px; }
.lead-tag { margin-top: 14px; font: 500 13px/1 var(--mono); color: var(--black); background: var(--pump); padding: 6px 10px; border-radius: 4px; align-self: flex-start; }
.half.s .lead-tag { background: var(--stonks-text); align-self: flex-end; }
.center { position: relative; z-index: 2; width: clamp(260px, 26vw, 340px); padding: 40px 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.coin-id { font: 600 15px/1.3 var(--display); text-decoration: none; }
.clock { position: relative; width: 220px; height: 220px; margin: 24px 0 18px; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock .t { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.clock .t strong { font: 500 34px/1 var(--mono); letter-spacing: -0.02em; }
.clock .t small { color: var(--grey-text); font-size: 13px; margin-top: 8px; }
.match h1 { font: 700 clamp(28px, 3.2vw, 40px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 12px; }
.center p { color: var(--grey-text); margin: 0 0 22px; font-size: 15px; }
.ctas { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; }
.chart { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none; }
.chart svg { width: 100%; height: 100%; }
.deadline { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--grey); }
.deadline span { position: absolute; bottom: 10px; left: 8px; font: 12px var(--mono); color: var(--grey-text); white-space: nowrap; }
@media (max-width: 899px) {
  .match { grid-template-columns: 1fr 1fr; max-height: none; min-height: 0; }
  .center { grid-column: 1 / -1; grid-row: 1; width: auto; padding: 28px 16px 8px; }
  .half { grid-row: 2; padding: 20px 16px 16px; }
  .big { font-size: clamp(40px, 13vw, 72px); margin: 14px 0 6px; }
  .clock { width: 168px; height: 168px; margin: 16px 0 12px; } .clock .t strong { font-size: 26px; }
  .chart { position: relative; grid-column: 1 / -1; grid-row: 3; height: 160px; }
  .ctas { flex-direction: row; max-width: none; justify-content: center; }
  .ctas .btn { flex: 1; max-width: 200px; padding: 0 14px; }
}
.races { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.race { background: var(--black); padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.race { transition: background-color .18s cubic-bezier(.2,.7,.2,1); } .race:hover, .race:focus-visible { background: var(--panel); }
.race .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.race .name { font: 600 20px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.race .left { font: 500 14px var(--mono); color: var(--grey-text); white-space: nowrap; }
.race svg { height: 90px; width: 100%; }
.race .score { display: flex; justify-content: space-between; font: 500 22px/1 var(--mono); }
@media (max-width: 899px) { .races { grid-template-columns: 1fr; } }
.board { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.board th { text-align: left; font: 500 13px var(--body); color: var(--grey-text); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.board td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
.board td a { text-decoration: none; } .board td a:hover { text-decoration: underline; }
.board .w { font-weight: 600; }
.board .burn { color: var(--red); font-family: var(--mono); }
@media (max-width: 719px) {
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .board, .board tbody, .board tr, .board td { display: block; }
  .board tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .board td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 16px; overflow: visible; }
  .board td:first-child { font: 600 18px/1.3 var(--display); justify-content: flex-start; align-items: center; gap: 8px; padding-bottom: 8px; white-space: normal; }
  .board td[data-l]::before { content: attr(data-l); color: var(--grey-text); font: 400 14px var(--body); margin-right: auto; }
  .board td.num { gap: 6px; }
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { border-top: 2px solid var(--line); padding-top: 18px; transition: border-color .6s; }
.steps li.in { border-color: var(--white); }
.steps .h { font: 500 14px var(--mono); color: var(--grey-text); }
.steps h3 { font-weight: 600; font-size: 20px; line-height: 1.25; margin: 8px 0; }
.steps p { color: var(--grey-text); margin: 0; font-size: 15px; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.why { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.why li { padding-left: 22px; position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--pump); }
.plan { background: var(--panel); border-radius: 14px; padding: 24px; font-size: 14px; }
.plan .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan .row:last-child { border: 0; }
.plan .row > span:first-child { color: var(--grey-text); }
@media (max-width: 899px) { .why-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button { font: 500 15px var(--body); color: var(--grey-text); background: none; border: 0; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.tabs button:hover { color: var(--white); }
.tabs button[aria-selected="true"] { color: var(--black); background: var(--white); box-shadow: none; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 18px 0; font: 600 18px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; background: linear-gradient(var(--grey-text) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--grey-text) 0 0) center / 2px 100% no-repeat; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.qa details[open] summary::after { background-size: 100% 2px, 0 0; transform: rotate(180deg); }
.qa summary:hover { color: var(--pump); }
.qa p { margin: 0 0 20px; color: var(--grey-text); max-width: 64ch; }

/* explore : tour de chronométrage */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 16px; }
.tower { background: var(--panel); border-radius: 16px; overflow: hidden; }
.tower .hd, .tower a { display: grid; grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr) 84px 84px 84px; gap: 12px; align-items: center; padding: 14px 20px; }
.tower .hd { font: 500 12px var(--body); color: var(--grey-text); border-bottom: 1px solid var(--line); }
.tower a { text-decoration: none; border-bottom: 1px solid var(--line); font: 500 15px var(--mono); }
.tower a:last-child { border: 0; } .tower a:hover { background: #1d1d27; }
.tower .pos { color: var(--grey-text); }
.tower .nm { font: 600 16px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tower .nm small { display: block; font: 400 12px var(--mono); color: var(--grey-text); margin-top: 3px; }
.tower .r { text-align: right; }
.tower .gap b { display: inline-block; padding: 3px 6px; border-radius: 4px; color: var(--black); font-weight: 700; }
.tower svg { height: 32px; width: 100%; }
.empty { padding: 32px 20px; color: var(--grey-text); }
@media (max-width: 719px) {
  .tower .hd, .tower a { grid-template-columns: minmax(0, 1fr) 56px 56px 64px; padding: 12px 14px; font-size: 13px; }
  .tower .pos, .tower .spark { display: none; }
}

/* page coin */
.coin-head { display: flex; gap: 20px; align-items: center; padding: 32px 0 0; flex-wrap: wrap; }
.coin-head img, .coin-head .noimg { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--panel); flex: none; }
.coin-head h1 { font-weight: 700; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; margin: 0; overflow-wrap: anywhere; }
.coin-head .tk { color: var(--grey-text); font: 500 16px var(--mono); margin-top: 6px; }
.coin-head .ctas { margin-left: auto; flex-direction: row; max-width: none; width: auto; }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; padding: 32px 0 20px; }
.duel .big { font-size: clamp(48px, 8vw, 112px); margin: 12px 0 6px; }
.duel .side.s { text-align: right; } .duel .side.s .venue { justify-content: flex-end; }
.duel .mid { text-align: center; padding-bottom: 12px; }
.duel .mid strong { display: block; font: 500 30px/1 var(--mono); }
.duel .mid small { display: block; color: var(--grey-text); font-size: 13px; margin: 8px auto 0; max-width: 24ch; }
.verdict { font: 600 15px var(--display); padding: 8px 12px; border-radius: 6px; display: inline-block; margin-top: 10px; color: var(--black); }
.stage { position: relative; height: 380px; border-block: 1px solid var(--line); }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .deadline span { top: 8px; bottom: auto; }
.replay { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 0 0; color: var(--grey-text); font-size: 14px; }
.replay output { font: 500 14px var(--mono); color: var(--white); }
@media (max-width: 719px) { .duel { grid-template-columns: 1fr 1fr; } .duel .mid { grid-column: 1 / -1; grid-row: 1; } .stage { height: 220px; } .coin-head .ctas { margin-left: 0; } }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ledger h3 { font-weight: 600; font-size: 18px; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 12px; }
.ledger h3 small { font: 500 13px var(--mono); color: var(--grey-text); }
.cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cells div { min-height: 84px; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; font: 500 12px/1.3 var(--mono); min-width: 0; overflow-wrap: anywhere; }
.cells .armed { box-shadow: inset 0 0 0 1px var(--line); color: var(--grey-text); }
.cells .armed b { color: var(--white); }
.cells .burned { background: var(--red); color: var(--black); } .cells .burned b { color: var(--black); }
.cells .cancelled { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); } .cells .cancelled b { text-decoration: line-through; }
.cells b { font-weight: 700; font-size: 13px; }
.cells a { color: inherit; }
@media (max-width: 899px) { .ledger { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cells div { padding: 6px; font-size: 11px; min-height: 72px; } }
.legend { margin-top: 16px; color: var(--grey-text); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.facts div { background: var(--black); padding: 18px; min-width: 0; }
.facts span { display: block; color: var(--grey-text); font-size: 13px; margin-bottom: 6px; }
.facts strong { font: 500 15px/1.4 var(--mono); overflow-wrap: anywhere; }
@media (max-width: 719px) { .facts { grid-template-columns: 1fr; } }

/* studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 32px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.form legend { font: 600 20px var(--display); margin-bottom: 14px; padding: 0; }
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { color: var(--grey-text); font-size: 13px; }
.field input[type=text], .field input[type=url], .field input[type=number], .field input[type=file], .field textarea, .field select {
  width: 100%; background: var(--panel); color: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 15px var(--body); min-width: 0; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--white); outline-offset: 0; }
.field input[type=range] { width: 100%; accent-color: var(--pump); }
.field input[type=file] { padding: 8px; color: var(--grey-text); font-size: 14px; }
.field input[type=file]::file-selector-button { font: 600 14px var(--display); color: var(--white); background: var(--black); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
.field input[type=file]::file-selector-button:hover { border-color: var(--grey); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-text); opacity: .7; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--grey); }
.field textarea { resize: vertical; min-height: 96px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.b0 { display: grid; grid-template-columns: minmax(0, 1fr) 110px 90px 90px 44px; gap: 8px; align-items: end; margin-bottom: 10px; }
.b0 .field { margin: 0; }
.b0 button { height: 46px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--grey-text); cursor: pointer; }
.preview { position: sticky; top: 16px; background: var(--panel); border-radius: 16px; padding: 24px; min-width: 0; }
.preview .who { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; min-width: 0; }
.preview .who img, .preview .who .noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--black); flex: none; }
.preview .who strong { font: 600 20px/1.2 var(--display); display: block; overflow-wrap: anywhere; }
.preview .who span { color: var(--grey-text); font: 14px var(--mono); }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.twin div { border-radius: 10px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.twin div span { display: block; font-size: 13px; color: var(--grey-text); }
.twin div strong { font: 500 18px var(--mono); }
.status { margin-top: 18px; padding: 14px; border-radius: 10px; font: 500 14px/1.5 var(--mono); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.status.ok { box-shadow: inset 0 0 0 1px var(--pump); color: var(--pump); }
.status.err { box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.steps-sign { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--grey-text); }
.steps-sign li.done { color: var(--pump); } .steps-sign li.now { color: var(--white); }
@media (max-width: 899px) { .studio-grid { grid-template-columns: 1fr; } .preview { position: static; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } .b0 { grid-template-columns: 1fr 1fr; } .b0 .field:first-child { grid-column: 1 / -1; } }

/* comment ça marche */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--white); }
.rules div { padding: 22px 20px 0 0; }
.rules strong { display: block; font: 700 clamp(36px, 5vw, 60px)/1 var(--display); letter-spacing: -0.04em; }
.rules span { display: block; color: var(--grey-text); margin-top: 10px; font-size: 15px; max-width: 26ch; }
@media (max-width: 899px) { .rules { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
.prose { max-width: 68ch; } .prose p, .prose li { color: var(--grey-text); } .prose strong { color: var(--white); }
.prose h3 { font-size: 22px; margin: 36px 0 8px; }
.proof { background: var(--panel); border-radius: 14px; padding: 24px; }
.proof select { background: var(--black); color: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 15px var(--body); max-width: 100%; }
.proof pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--mono); color: var(--grey-text); margin: 16px 0 0; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .skip:focus { width: auto; height: auto; clip-path: none; left: 16px; top: 16px; z-index: 10; background: var(--white); color: var(--black); padding: 8px 12px; border-radius: 6px; }
.site-foot .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.slices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 4px; }
.slices i { height: 28px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font: 500 11px var(--mono); font-style: normal; color: var(--grey-text); }
.coin-id #nm { color: var(--white); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center .btn-ghost { background: var(--black); }
.match .chart { height: 32%; }
@media (max-width: 899px) { .match .chart { height: 160px; } }
[hidden] { display: none !important; }
.page-top .net { font-size: 13px; max-width: none; }
.form p.hint { font-size: 14px; color: var(--grey-text); }
