/* Asphalt Fury — top-down asphalt road theme: dark tarmac,
   dashed lane markings, grass edges, traffic-light accents.
   Own CSS; no provider assets. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #14171a; color: #f2f4f6; }
#app { max-width: 860px; margin: 0 auto; padding: 12px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 44px; height: 44px; }
h1 { font-size: 20px; margin: 0; color: #f7c948; }
.sub { font-size: 12px; opacity: .8; }
.head-right { display: flex; align-items: center; gap: 8px; }
.balance-box { background: #20242a; border: 1px solid #3a4048; border-radius: 10px; padding: 6px 10px; }
.badge { background: #e5484d; color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 11px; margin-left: 6px; }
.ghost { background: #20242a; color: #f2f4f6; border: 1px solid #3a4048; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.ghost.on { background: #f7c948; color: #14171a; }
.card, .stage-card { background: #1b1f24; border: 1px solid #2c3138; border-radius: 14px; padding: 14px; margin-top: 12px; position: relative; }
.road-decor { text-align: center; color: #f7c948; letter-spacing: 2px; font-weight: 700; margin-bottom: 8px; }
.road-top, .road-bottom { height: 10px; background: #2e4a2a; border-radius: 4px; margin: 4px 0; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: #33383f; border: 2px solid #454b53; border-radius: 10px; padding: 8px; background-image: repeating-linear-gradient(to right, transparent 0 18%, #f7c948 18% 19%, transparent 19% 20%); }
.cell { background: #22262c; border-radius: 8px; min-height: 62px; display: flex; align-items: center; justify-content: center; font-size: 30px; position: relative; border: 1px solid #343a41; }
.cell .badge { position: absolute; font-size: 10px; padding: 0 4px; margin: 0; }
.cell .badge.size { top: 3px; left: 3px; background: #e5a13d; color: #14171a; }
.cell .badge.mult { bottom: 3px; right: 3px; background: #46a758; color: #fff; }
.cell .wildtag { position: absolute; bottom: 3px; left: 3px; font-size: 9px; color: #f7c948; font-weight: 700; }
.cell.car { background: #2c2620; border-color: #e5a13d; }
.cell.collide { background: #3a2020; border-color: #e5484d; }
.cell.scatter { background: #202c22; border-color: #46a758; }
.cell.mystery { background: #262038; border-color: #8e6fd8; }
.fs-banner { display: flex; justify-content: space-between; gap: 8px; background: #243018; border: 1px solid #46a758; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; flex-wrap: wrap; }
.hidden { display: none !important; }
.win-panel { margin-top: 8px; background: #20242a; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.win-banner { position: absolute; inset: 30% 10% auto; text-align: center; font-size: 34px; font-weight: 900; color: #f7c948; text-shadow: 0 2px 12px #000; pointer-events: none; }
.win-banner.mega { color: #ff9d5c; font-size: 40px; }
.win-banner.super { color: #e5484d; font-size: 46px; }
.overlay { position: absolute; inset: 0; background: rgba(10,12,14,.88); display: grid; place-items: center; text-align: center; border-radius: 14px; z-index: 5; padding: 20px; }
.controls .bet-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: #2c3138; color: #f7c948; border: 1px solid #f7c948; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.bet-input { display: flex; align-items: center; gap: 4px; }
.bet-input input { width: 70px; padding: 7px; border-radius: 8px; border: 1px solid #3a4048; background: #14171a; color: #fff; }
.bet-input button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: #2c3138; color: #fff; cursor: pointer; }
.spin-btn { display: block; width: 100%; margin-top: 12px; padding: 14px; font-size: 18px; font-weight: 900; background: #f7c948; color: #14171a; border: 0; border-radius: 12px; cursor: pointer; }
.spin-btn:disabled { opacity: .5; }
.quick-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.msg { margin-top: 8px; min-height: 20px; color: #f7c948; }
.paytable .pt-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #2c3138; font-size: 14px; }
.pt-glyph { font-size: 20px; }
.note { font-size: 12.5px; line-height: 1.55; opacity: .88; }
.history { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.history li { padding: 3px 0; border-bottom: 1px dashed #2c3138; }
.fair-grid { display: grid; gap: 8px; font-size: 13px; }
.fair-grid code { word-break: break-all; background: #14171a; padding: 2px 6px; border-radius: 6px; }
.fair-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fair-actions input { padding: 7px; border-radius: 8px; border: 1px solid #3a4048; background: #14171a; color: #fff; }
.verify-out { white-space: pre-wrap; font-size: 11.5px; background: #14171a; border-radius: 8px; padding: 8px; max-height: 220px; overflow: auto; }
footer { text-align: center; opacity: .7; font-size: 12px; padding: 14px 0; }
@media (max-width: 480px) { .cell { min-height: 52px; font-size: 24px; } h1 { font-size: 17px; } }
