* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #081113; color: #e9f4f1; font: 15px/1.45 "Inter", "Helvetica Neue", Arial, sans-serif; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
.top { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 40px;
  border-bottom: 1px solid #13252a; }
.stats { display: flex; gap: 28px; color: #8fb3ad; font-size: 14px; flex-wrap: wrap; }
.stats b { color: #e9f4f1; font-weight: 700; }
.wallet { border: 1.5px solid #97fce4; color: #97fce4; background: none; padding: 9px 16px; border-radius: 3px; font-weight: 600;
  letter-spacing: .04em; white-space: nowrap; }
.main { display: flex; min-height: calc(100vh - 76px); }
.grid { position: relative; flex: 1; background: radial-gradient(ellipse at 50% 0%, #11262a 0%, #0b1517 60%);
  overflow: hidden; padding: 34px 30px 70px; }
.slots { position: relative; height: 700px; width: 720px; margin: 0 auto; }
.slot { position: absolute; width: 360px; height: 150px; }
.slot.c0 { left: 0; } .slot.c1 { left: 360px; }
.slot.c0.r0 { top: 0; } .slot.c0.r1 { top: 152px; } .slot.c0.r2 { top: 304px; } .slot.c0.r3 { top: 456px; }
.slot.c1.r0 { top: 76px; } .slot.c1.r1 { top: 228px; } .slot.c1.r2 { top: 380px; } .slot.c1.r3 { top: 532px; }
.bracket { position: absolute; left: 62px; top: 122px; width: 250px; height: 22px; border-left: 6px solid #e9f4f1;
  border-bottom: 6px solid #e9f4f1; opacity: .6; }
.pos { position: absolute; left: -8px; top: 88px; opacity: .95; }
.helm { position: absolute; left: 70px; top: -18px; width: 168px; height: 168px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.meta { position: absolute; left: 236px; top: 58px; width: 120px; font-size: 13px; color: #c4d8d4; display: flex; flex-direction: column; }
.meta b { color: #e9f4f1; font-size: 18px; }
.meta i { font-style: normal; color: #6f948e; font-size: 12px; }
.empty { padding: 120px 20px; text-align: center; color: #8fb3ad; font-size: 18px; }
.feed { width: 720px; margin: 8px auto 0; font-size: 13px; color: #6f948e; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.feed div { padding: 3px 0; border-bottom: 1px dashed #15282c; }
.foot { position: absolute; left: 40px; right: 40px; bottom: 20px; display: flex; justify-content: space-between; gap: 20px;
  color: #5f817b; font-size: 13px; }
.wall { width: 500px; background: #0e1c1f; border-left: 1px solid #13252a; padding: 30px 36px; display: flex; flex-direction: column; gap: 16px; }
.k { color: #8fb3ad; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.next { display: flex; align-items: center; gap: 18px; }
.next img { width: 160px; height: 160px; border-radius: 8px; }
.price { font-size: 28px; font-weight: 700; color: #97fce4; }
.small { color: #8fb3ad; font-size: 13px; }
.split { border-top: 1px solid #1c3237; padding-top: 10px; color: #c4d8d4; font-size: 14.5px; }
.split div { display: flex; justify-content: space-between; padding: 4px 0; gap: 12px; }
.split b { color: #e9f4f1; }
.gantry { background: #050909; border: 1px solid #1d3439; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; color: inherit; }
.gantry:not(:disabled):hover { border-color: #ff5a5a; }
.lights { display: flex; gap: 10px; }
.lights i { width: 26px; height: 26px; border-radius: 50%; background: #2a0d10; box-shadow: inset 0 0 0 3px #3b1418; transition: background .15s; }
.lights i.on, .gantry:not(:disabled):hover .lights i { background: #ff3b3b; box-shadow: 0 0 18px #ff3b3b88, inset 0 0 0 3px #ff8080; }
.msg { min-height: 20px; font-size: 14px; color: #c4d8d4; }
.msg.bad { color: #ff8a8a; } .msg.good { color: #97fce4; } .msg.wait { color: #f1b544; }
.rookie { display: flex; align-items: center; gap: 14px; border: 1px dashed #2b474d; border-radius: 8px; padding: 12px 14px;
  color: #c4d8d4; font-size: 14px; }
.rookie-btn, .garage button { background: #13262a; color: #e9f4f1; border: 1px solid #2b474d; border-radius: 6px; padding: 8px 12px;
  white-space: nowrap; }
.rookie-btn:not(:disabled):hover, .garage button:not(:disabled):hover { border-color: #97fce4; }
.garage { display: flex; flex-direction: column; gap: 10px; }
.car { display: flex; gap: 12px; align-items: center; background: #0b1719; border: 1px solid #16292d; border-radius: 8px; padding: 8px; }
.car img { width: 76px; height: 76px; border-radius: 6px; }
.car-t { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #c4d8d4; }
.car-t b { color: #e9f4f1; font-size: 15px; }
.row { display: flex; gap: 6px; flex-wrap: wrap; }
.row input { width: 74px; background: #071012; border: 1px solid #2b474d; color: #e9f4f1; border-radius: 6px; padding: 7px 8px; }
.garage .ghost { background: none; color: #8fb3ad; }
.hint { color: #6f948e; font-size: 14px; }
.rules { border-top: 1px solid #1c3237; padding-top: 10px; }
@media (max-width: 1180px) {
  .main { flex-direction: column; }
  .wall { width: auto; border-left: 0; border-top: 1px solid #13252a; }
  .feed { position: static; width: auto; margin-top: 12px; }
}
@media (max-width: 760px) {
  .top { padding: 10px 16px; height: auto; min-height: 64px; flex-wrap: wrap; gap: 10px 18px; }
  .stats { gap: 6px 16px; font-size: 13px; }
  .grid { padding: 16px 10px 24px; }
  .slots { width: auto; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .slot, .slot.c0, .slot.c1, .slot[class*=r] { position: relative; left: 0; top: 0; width: auto; height: 186px; }
  .helm { left: 50%; transform: translateX(-50%); top: 0; width: 138px; height: 138px; }
  .pos { left: 2px; top: 2px; transform: scale(.55); transform-origin: 0 0; }
  .bracket { left: 8%; width: 84%; top: 124px; height: 14px; border-width: 4px; }
  .meta { left: 0; right: 0; top: 146px; width: auto; flex-direction: row; gap: 6px; justify-content: center; font-size: 12px; }
  .meta b { font-size: 14px; }
  .meta i { display: none; }
  .feed { width: auto; grid-template-columns: 1fr; }
  .foot { position: static; flex-direction: column; margin-top: 12px; }
  .wall { padding: 20px 16px; }
  .next img { width: 118px; height: 118px; }
  .gantry svg { width: 58%; height: auto; }
  .rookie { flex-direction: column; align-items: stretch; }
}
