/* ASPHLT · Touge Run — borne d'arcade dans la DA Livrée */

.touge-page { position: relative; overflow: hidden; padding: 34px 0 90px; background: var(--asphalt); color: var(--washi); }
.touge-sun { position: absolute; width: 700px; height: 700px; left: -260px; top: -240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--aka) 0 1.8px, transparent 2.4px) 0 0 / 13px 13px; opacity: .3; }
.touge-layout { position: relative; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 44px; align-items: start; justify-content: center; }

/* Borne */
.cab { background: #222228; border: 3px solid var(--washi); box-shadow: 8px 8px 0 var(--aka); padding: 14px; }
.cab-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 2px 4px 12px; }
.cab-head .kanji { font-family: var(--f-title); font-size: 48px; line-height: 1; color: var(--aka); background: var(--washi); padding: 4px 8px; transform: rotate(-4deg); }
.cab-head h1 { font-family: var(--f-title); font-weight: 400; font-size: clamp(26px, 5vw, 36px); line-height: 1; transform: skewX(-12deg); transform-origin: left; color: var(--kiiro); }
.cab-head .sub { font-family: var(--f-label); font-weight: 700; font-size: 11px; letter-spacing: .18em; color: var(--muted-d); }
.cab-head .hi { text-align: right; font-family: var(--f-label); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.cab-head .hi b { display: block; font-family: var(--f-title); font-weight: 400; font-size: 22px; letter-spacing: 0; color: var(--washi); }
.cab-livree { display: grid; gap: 3px; margin-bottom: 12px; }
.cab-livree i { display: block; height: 5px; }
.cab-livree i:nth-child(1) { background: var(--kiiro); } .cab-livree i:nth-child(2) { background: var(--daidai); }
.cab-livree i:nth-child(3) { background: var(--aka); } .cab-livree i:nth-child(4) { background: var(--ai); }
.screen { position: relative; aspect-ratio: 10 / 16; width: min(100%, calc((100svh - 28px) * 10 / 16)); min-width: min(100%, 260px); margin: 0 auto; border: 3px solid var(--asphalt); background: #1B1B20; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cab-foot { margin-top: 10px; text-align: center; font-family: var(--f-label); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }

/* Écrans par-dessus le jeu */
.ov { position: absolute; inset: 0; display: none; place-items: center; padding: 18px; text-align: center; background: rgba(20, 20, 22, .72); }
.ov.show { display: grid; }
.ov[data-ov="count"] { background: transparent; pointer-events: none; }
.ov-in { max-width: 340px; display: grid; justify-items: center; gap: 10px; }
.ov-in p { margin: 0; font-size: 15px; color: #E9E2D3; }
.ov-jp { font-family: "Rampart One", var(--f-title); font-size: 44px; line-height: 1.05; color: var(--kiiro); text-shadow: 3px 3px 0 var(--aka); }
.ov-jp.crash { color: var(--aka); text-shadow: 3px 3px 0 var(--washi); }
.ov-t { font-family: var(--f-title); font-weight: 400; font-size: 26px; text-transform: uppercase; transform: skewX(-10deg); }
.ov .btn { margin-top: 4px; }
.ov .how b { color: var(--kiiro); }
.count { font-family: var(--f-title); font-weight: 400; font-size: 120px; line-height: 1; color: var(--kiiro); text-shadow: 6px 6px 0 var(--aka); }
.count.pop { animation: t-pop .6s ease-out; }
@keyframes t-pop { from { transform: scale(1.8); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); } }
.ov-score { font-family: var(--f-title); font-weight: 400; font-size: 64px; line-height: 1; }
.ov-score small { font-family: var(--f-label); font-size: 18px; color: var(--kiiro); margin-left: 6px; }
.ov .rec { color: var(--kiiro); font-weight: 700; }
.ov .wait { opacity: .7; }
.win { width: 100%; background: var(--washi); color: var(--asphalt); border: 3px solid var(--kiiro); padding: 10px 12px; display: grid; gap: 3px; justify-items: center; animation: t-pop .5s ease-out; }
.win .wj { font-weight: 900; color: var(--aka); letter-spacing: .15em; font-size: 13px; }
.win b { font-family: var(--f-title); font-weight: 400; font-size: 20px; color: var(--aka); }
.win small { font-size: 12px; color: var(--muted); }
.win .code { display: flex; gap: 8px; align-items: center; font-family: var(--f-label); font-weight: 700; font-size: 18px; letter-spacing: .1em; }
.win .code .btn { box-shadow: none; margin: 0; }

/* Indications selon l'appareil */
.t-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .t-touch { display: inline; } .t-keys { display: none; } }
.how .t-touch, .how .t-keys { font-weight: 700; color: var(--kiiro); }

/* Colonne de droite */
.touge-side { display: grid; gap: 20px; min-width: 0; }
.touge-box { background: #222228; border: 3px solid var(--washi); padding: 18px; }
.touge-box h2 { font-family: var(--f-title); font-weight: 400; font-size: 22px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.touge-box h2 .jp { white-space: nowrap; flex: none; font-family: var(--f-jp); font-weight: 900; font-size: 13px; background: var(--aka); color: var(--washi); padding: 3px 7px; letter-spacing: .12em; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.podium li { display: grid; justify-items: center; align-content: center; text-align: center; gap: 4px; padding: 10px 6px; align-self: end; border: 3px solid var(--asphalt); color: var(--asphalt); min-width: 0; position: relative; }
.podium .p1 { order: 2; background: var(--kiiro); min-height: 172px; box-shadow: 4px 4px 0 var(--aka); }
.podium .p2 { order: 1; background: var(--washi); min-height: 146px; }
.podium .p3 { order: 3; background: var(--daidai); min-height: 128px; }
.podium .m { font-weight: 900; font-size: 13px; border: 2px solid currentColor; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.podium .pos { font-family: var(--f-title); font-size: 34px; line-height: 1; }
.podium b { font-size: 15px; font-weight: 900; overflow-wrap: anywhere; line-height: 1.15; }
.podium b.free { opacity: .5; font-weight: 700; }
.podium .sc { font-family: var(--f-label); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.podium .me::after { content: "TOI"; position: absolute; top: -12px; right: -8px; background: var(--aka); color: var(--washi); font-family: var(--f-label); font-weight: 700; font-size: 11px; letter-spacing: .12em; padding: 2px 6px; border: 2px solid var(--asphalt); transform: rotate(8deg); }
.me-line { margin: 14px 0 0; font-size: 15px; color: #E9E2D3; }
.me-line b { color: var(--kiiro); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tiers li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px dashed #4A4A52; padding-bottom: 10px; }
.tiers li:last-child { border-bottom: 0; padding-bottom: 0; }
.tiers .need { font-family: var(--f-title); font-size: 18px; color: var(--kiiro); text-align: right; line-height: 1; }
.tiers .need small { display: block; font-family: var(--f-label); font-size: 10px; letter-spacing: .14em; color: var(--muted-d); }
.tiers .what b { display: block; }
.tiers .what small { color: var(--muted-d); font-size: 13px; }
.tiers .got .need { color: #6FCF97; }
.tiers .ok { width: 28px; height: 28px; border-radius: 50%; background: #1E7A3C; display: grid; place-items: center; font-weight: 900; }
.tiers .out { opacity: .45; }
.touge-side .muted-s { color: var(--muted-d); font-size: 13px; margin: 12px 0 0; }
.name-form .field > span:first-child { color: var(--muted-d); }
.name-form .row { display: flex; gap: 8px; }
.name-form input { flex: 1; min-width: 0; background: var(--washi); color: var(--asphalt); }

.touge-page .flashes { margin-bottom: 16px; }

@media (max-width: 900px) {
  .touge-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cab { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .touge-page { padding-top: 14px; }
  .cab { padding: 8px; box-shadow: 5px 5px 0 var(--aka); }
  .cab-head { padding-bottom: 8px; }
  .cab-head .kanji { font-size: 34px; }
  .screen { width: min(100%, calc((100svh - 16px) * 10 / 16)); }
  .cab-head .sub { display: none; }
  .cab-head .hi b { font-size: 18px; }
}
