/* Page $DOGINU (/token) : hero et stats, leaderboard en direct, claim, supply et projection. */
.token-page { --bear: var(--sage-400); --base: var(--gold); --bull: var(--orange); --custom: var(--cream); }
.nav__links a[aria-current="page"] { color: var(--gold); }

/* PHASE : body[data-phase] = genesis (avant le lancement) ou live (js/token.js) */
[data-phase="genesis"] [data-only="live"], [data-phase="live"] [data-only="genesis"] { display: none !important; }

/* HERO */
.tk-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(255,201,74,.16), transparent 70%), radial-gradient(ellipse 50% 60% at 10% 100%, rgba(255,139,61,.10), transparent 70%), var(--ink-900); border-bottom: 1px solid var(--ink-700); }
.tk-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.tk-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 800 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.tk-kicker::before { content: ""; width: 12px; height: 14px; background: url(../assets/shop/flame.svg) center / contain no-repeat; }
.tk-hero__title { font-size: clamp(64px, 10vw, 128px); color: var(--gold); text-shadow: 0 6px 0 var(--ink-950); margin-bottom: 18px; }
.tk-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.tk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.tk-stat { container-type: inline-size; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); min-width: 0; }
.tk-stat dt { font: 800 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-400); margin-bottom: 12px; }
.tk-stat dd { margin: 0 0 6px; font: 400 clamp(22px, 2.6vw, 32px)/1.1 var(--display); color: var(--cream); overflow-wrap: anywhere; }
.tk-stat p { margin: 0; color: var(--sage-400); font-size: 15px; line-height: 1.35; }
.tk-stat dd.is-pending { font: 700 19px/1.25 var(--body); color: var(--sage-300); padding-top: 4px; }
.tk-stat--burn { background: linear-gradient(160deg, rgba(255,139,61,.14), var(--ink-800) 65%); border-color: #6B3A1E; }
.tk-stat--burn dd { color: var(--orange); }
.tk-stat--live { background: linear-gradient(160deg, rgba(255,201,74,.12), var(--ink-800) 65%); border-color: #6B5420; }
/* Le compte à rebours suit la largeur de sa carte (Bungee est large : « 3D 11H 41M 49S » doit tenir sur une ligne). */
.tk-stat--live dd { color: var(--gold); font-variant-numeric: tabular-nums; font-size: clamp(15px, 8.4cqi, 28px); white-space: nowrap; }

/* Genesis : badge de phase et étapes jusqu'au lancement */
.tk-phase { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(102,255,166,.08); border: 1px solid #1F6B45; font: 800 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.tk-phase__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: tk-pulse 1.8s ease-out infinite; }
.tk-genesis { grid-column: 1 / -1; background: linear-gradient(160deg, rgba(102,255,166,.08), var(--ink-800) 60%); border-color: #1F6B45; }
.tk-genesis dd { margin: 0; font: 400 15px/1.35 var(--body); color: var(--sage-400); overflow-wrap: normal; }
.tk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tk-steps li { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink-600); }
.tk-steps li::before { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-800); border: 3px solid var(--ink-600); }
.tk-steps b { font: 400 18px/1.1 var(--display); color: var(--cream); }
.tk-steps span { font-size: 14px; line-height: 1.35; color: var(--sage-400); }
.tk-steps .is-now { border-top-color: var(--mint); }
.tk-steps .is-now::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 4px rgba(102,255,166,.18); }
.tk-steps .is-now b { color: var(--mint); }

/* EN-TÊTES DE SECTION */
.tk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.tk-head > div { max-width: 760px; }
.tk-head .lead { margin: 0; }
.tk-note { margin: 22px 0 0; max-width: 880px; }

/* LEADERBOARD */
.tk-live { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; margin: 0; padding: 9px 14px; border-radius: 999px; background: var(--ink-800); border: 1px solid var(--ink-600); font: 700 15px/1 var(--body); color: var(--sage-300); white-space: nowrap; }
.tk-live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage-400); }
.tk-live[data-state="live"] { color: var(--mint); border-color: #1F6B45; }
.tk-live[data-state="live"] .tk-live__dot { background: var(--mint); animation: tk-pulse 1.8s ease-out infinite; }
.tk-live[data-state="error"] { color: var(--red); border-color: #6B2926; }
.tk-live[data-state="error"] .tk-live__dot { background: var(--red); }
@keyframes tk-pulse { 0% { box-shadow: 0 0 0 0 rgba(102,255,166,.55); } 100% { box-shadow: 0 0 0 10px rgba(102,255,166,0); } }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.board { background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--radius); padding: 22px 22px 14px; min-width: 0; }
.board__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.board__head h3 { font-size: 24px; margin-bottom: 4px; }
.board__head p { margin: 0; color: var(--sage-400); font-size: 15px; }
.board__share { flex-shrink: 0; padding: 7px 11px; border-radius: 10px; font-size: 14px; color: var(--sage-300); white-space: nowrap; }
.board__share b { font-family: var(--display); font-weight: 400; font-size: 18px; margin-right: 4px; }
.board--glint .board__share { background: rgba(102,255,166,.10); } .board--glint .board__share b { color: var(--mint); }
.board--pvp .board__share { background: rgba(255,95,87,.12); } .board--pvp .board__share b { color: var(--red); }
.board__cols, .row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.board__cols { padding: 0 10px 8px; border-bottom: 1px solid var(--ink-700); font: 800 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-400); }
.board__cols span:last-child { text-align: right; }
.board__list { list-style: none; margin: 0; padding: 0; }
.row { padding: 8px 10px; border-bottom: 1px solid rgba(26,49,41,.7); }
.row:last-child { border-bottom: 0; }
.row__rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font: 400 15px/1 var(--display); color: var(--sage-300); background: var(--ink-700); }
.row--1 .row__rank { background: var(--gold); color: var(--ink-950); }
.row--2 .row__rank { background: #D6DCD8; color: var(--ink-950); }
.row--3 .row__rank { background: #D08A4E; color: var(--ink-950); }
.row--1 { background: linear-gradient(90deg, rgba(255,201,74,.10), transparent 70%); border-radius: 10px; }
.row__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row__who img { width: 36px; height: 40px; object-fit: contain; flex-shrink: 0; }
.row__who > span { display: grid; min-width: 0; }
.row__who b { font-weight: 700; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__who small { color: var(--sage-400); font-size: 13px; }
.row__value { font: 400 17px/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; text-align: right; }
.board__empty { margin: 0; padding: 34px 10px; text-align: center; color: var(--sage-400); }

/* CLAIM */
.claim { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.claim__steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.claim__steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--sage-300); }
.claim__steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font: 400 16px/1 var(--display); }
.claim__steps b { color: var(--cream); }
.claim__card { padding: 30px; border-radius: 20px; background: linear-gradient(160deg, rgba(255,201,74,.16), var(--ink-800) 60%); border: 1px solid #8A6A1E; box-shadow: 0 24px 60px -30px rgba(255,201,74,.45); }
.claim__label { margin: 0 0 8px; font: 800 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-400); }
.claim__amount { margin: 0 0 14px; font: 400 clamp(40px, 5vw, 56px)/1 var(--display); color: var(--gold); }
.claim__amount small { font-size: .4em; color: var(--sage-300); }
.claim__status { color: var(--sage-300); }
.claim__card .btn { width: 100%; margin-top: 6px; }
.claim__card .btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.claim__fine { margin: 14px 0 0; font-size: 13px; color: var(--sage-400); }

/* SUPPLY */
.supply { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.supply__controls { display: grid; gap: 18px; }
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--ink-800); border: 1px solid var(--ink-700); }
.scenarios button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 0; border-radius: 9px; background: none; color: var(--sage-300); font: 800 15px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.scenarios button:hover { color: var(--cream); }
.scenarios button[aria-pressed="true"] { background: var(--ink-600); color: var(--cream); }
.scenarios__sw { width: 10px; height: 10px; border-radius: 3px; }
[data-scenario="bear"] .scenarios__sw { background: var(--bear); } [data-scenario="base"] .scenarios__sw { background: var(--base); } [data-scenario="bull"] .scenarios__sw { background: var(--bull); }
.supply__field { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-weight: 700; color: var(--sage-300); font-size: 15px; }
.supply__unit { color: var(--sage-400); font-size: 13px; letter-spacing: .1em; }
.supply__field input { grid-column: 1 / -1; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--ink-600); background: var(--ink-900); color: var(--cream); font: 700 18px var(--body); font-variant-numeric: tabular-nums; }
.supply__field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.supply__results { margin: 0; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: var(--ink-700); border: 1px solid var(--ink-700); }
.supply__results div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; background: var(--ink-800); }
.supply__results dt { color: var(--sage-400); font-size: 15px; }
.supply__results dd { margin: 0; font: 400 18px/1 var(--display); color: var(--orange); font-variant-numeric: tabular-nums; }
.supply__chart { margin: 0; padding: 18px 18px 14px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--ink-700); min-width: 0; }
.supply__plot { position: relative; touch-action: pan-y; }
.supply__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: var(--ink-700); stroke-width: 1; }
.ch-y, .ch-x { fill: var(--sage-400); font: 600 12px var(--body); }
.ch-y { text-anchor: end; } .ch-x { text-anchor: middle; }
.ch-line { fill: none; stroke-width: 2; opacity: .45; stroke-linejoin: round; stroke-linecap: round; }
.ch-line.is-focus { stroke-width: 3.5; opacity: 1; }
.ch-line--bear { stroke: var(--bear); } .ch-line--base { stroke: var(--base); } .ch-line--bull { stroke: var(--bull); } .ch-line--custom { stroke: var(--custom); stroke-dasharray: 6 5; }
.ch-area { fill: url(#ch-fill); }
.ch-fill-top { stop-color: var(--gold); stop-opacity: .22; } .ch-fill-bottom { stop-color: var(--gold); stop-opacity: 0; }
[data-focus="bear"] .ch-fill-top, [data-focus="bear"] .ch-fill-bottom { stop-color: var(--bear); }
[data-focus="bull"] .ch-fill-top, [data-focus="bull"] .ch-fill-bottom { stop-color: var(--bull); }
[data-focus="custom"] .ch-fill-top, [data-focus="custom"] .ch-fill-bottom { stop-color: var(--custom); }
.ch-live circle { fill: var(--mint); stroke: var(--ink-950); stroke-width: 3; }
.ch-live text { fill: var(--mint); font: 800 12px var(--body); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.ch-cursor line { stroke: var(--sage-400); stroke-dasharray: 3 4; }
.ch-cursor circle { fill: var(--ink-950); stroke: var(--cream); stroke-width: 2.5; }
.ch-tip { position: absolute; top: 8px; display: grid; gap: 4px; padding: 10px 12px; min-width: 150px; border-radius: 10px; background: var(--ink-950); border: 1px solid var(--ink-600); box-shadow: 0 12px 30px -12px rgba(0,0,0,.7); pointer-events: none; font-size: 14px; color: var(--sage-300); }
.ch-tip b { color: var(--cream); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ch-tip span { display: flex; justify-content: space-between; gap: 14px; }
.ch-tip span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; align-self: center; margin-right: -6px; }
.ch-tip .tip--bear::before { background: var(--bear); } .ch-tip .tip--base::before { background: var(--base); } .ch-tip .tip--bull::before { background: var(--bull); } .ch-tip .tip--custom::before { background: var(--custom); }
.ch-tip span:not(.is-focus) { opacity: .7; }
.ch-tip em { font-style: normal; color: var(--cream); font-variant-numeric: tabular-nums; margin-left: auto; }
.supply__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 14px; color: var(--sage-300); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg::before { content: ""; width: 18px; height: 3px; border-radius: 2px; }
.lg--bear::before { background: var(--bear); } .lg--base::before { background: var(--base); } .lg--bull::before { background: var(--bull); }
.lg--custom::before { background: repeating-linear-gradient(90deg, var(--custom) 0 6px, transparent 6px 10px); }
.lg--live::before { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }

@media (prefers-reduced-motion: reduce) { .tk-live[data-state="live"] .tk-live__dot, .tk-phase__dot { animation: none; } }
@media (max-width: 980px) {
  .tk-hero__inner, .claim { grid-template-columns: 1fr; gap: 36px; }
  .boards { grid-template-columns: 1fr; }
  .supply { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tk-head { flex-direction: column; align-items: flex-start; }
  .tk-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tk-stat { padding: 16px; }
  .tk-stat p { font-size: 13px; }
  .tk-steps { grid-template-columns: 1fr; gap: 0; }
  .tk-steps li { padding: 0 0 16px 24px; border-top: 0; border-left: 3px solid var(--ink-600); }
  .tk-steps li:last-child { padding-bottom: 0; }
  .tk-steps li::before { top: 0; left: -8px; }
  .tk-steps .is-now { border-left-color: var(--mint); }
  .board { padding: 16px 12px 10px; }
  .board__head { flex-direction: column; gap: 10px; }
  .row, .board__cols { grid-template-columns: 34px 1fr auto; gap: 10px; padding-inline: 6px; }
  .claim__card { padding: 22px; }
  .ch-y, .ch-x { font-size: 24px; }
}

/* Fonds de section (grain et crénelage : css/style.css .section) */
#leaderboard::before { background: radial-gradient(ellipse 40% 50% at 0% 0%, rgba(102,255,166,.12), transparent 70%), radial-gradient(ellipse 40% 50% at 100% 100%, rgba(255,95,87,.12), transparent 70%); }
#claim::before { background: radial-gradient(ellipse 45% 60% at 85% 50%, rgba(255,201,74,.14), transparent 70%), radial-gradient(circle, rgba(246,239,218,.06) 1.2px, transparent 1.6px) 0 0 / 28px 28px; }
#supply::before { background: radial-gradient(ellipse 55% 50% at 70% 100%, rgba(255,139,61,.14), transparent 70%), linear-gradient(rgba(246,239,218,.03) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(246,239,218,.03) 1px, transparent 1px) 0 0 / 48px 48px; }
