/* ------------------------------ Responsive ------------------------------ */
@media (min-width: 900px) and (min-height: 600px) {
  .sb-n {
    font-size: 10px;
  }
  .sb-b {
    height: 20px;
  }
  .sb-b i {
    font-size: 13px;
    max-width: 22px;
  }
  .sb-s {
    font-size: 16px;
    line-height: 24px;
    height: 24px;
  }
  .sb-head {
    font-size: 13px;
  }
  .pinmap {
    width: 70px;
  }
  .pm-row i {
    width: 11px;
    height: 11px;
  }
  .hud-info {
    top: calc(var(--sat) + 110px);
  }
}
@media (min-height: 501px) and (max-height: 760px) {
  .menu-main {
    gap: 8px;
  }
  .btn-big {
    padding: 9px 16px;
  }
  .btn-big .bb-ic {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
  .btn-big b {
    font-size: 19px;
  }
  .pill {
    height: 40px;
  }
  .menu-row .pill {
    min-height: 46px;
    height: auto;
  }
  .menu-foot {
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .menu {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 10px 30px;
  }
  .menu-top {
    position: absolute;
    top: calc(10px + var(--sat));
    left: calc(16px + var(--sal));
    right: calc(16px + var(--sar));
    width: auto;
    max-width: none;
  }
  .logo {
    width: min(42vw, 360px);
    margin: 0;
  }
  .menu-main {
    width: min(44vw, 380px);
    margin: 0;
    gap: 8px;
  }
  .btn-big {
    padding: 8px 14px;
  }
  .btn-big .bb-ic {
    width: 40px;
    height: 40px;
  }
  .btn-big b {
    font-size: 18px;
  }
  .menu-row {
    width: min(100%, 560px);
  }
  .menu-row .pill {
    flex-direction: row;
    min-height: 40px;
    gap: 6px;
  }
  .loadout {
    width: min(100%, 560px);
  }
  .lo-main {
    padding: 5px 2px;
  }
  .menu-foot {
    display: none;
  }
  .banner {
    top: 24%;
  }
  .meter {
    height: 46vh;
    bottom: 18%;
  }
  .hud-info {
    top: calc(var(--sat) + 76px);
  }
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 380px) {
  .btn-big b {
    font-size: 19px;
  }
  .lo-arrow {
    width: 24px;
  }
  .lo-main {
    gap: 6px;
  }
  .lo-art-lane {
    width: 36px;
    height: 30px;
  }
  .lo-art {
    width: 32px;
    height: 32px;
  }
  .lo-txt b {
    font-size: 12.5px;
    word-break: break-word;
  }
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .sb-b i {
    font-size: 10px;
  }
  .sb-s {
    font-size: 11.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Swipe trail & score pop */
.swipe-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.score-pop {
  position: absolute;
  right: 74px;
  top: calc(var(--sat) + 30px);
  font-family: var(--f-display);
  font-size: 26px;
  color: var(--primary);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  animation: scorePop 1.3s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  pointer-events: none;
}
@keyframes scorePop {
  0% {
    transform: translateY(18px) scale(0.4);
    opacity: 0;
  }
  20% {
    transform: none;
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(-26px);
    opacity: 0;
  }
}

/* Graphics context lost overlay */
.ctx-lost {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(12, 7, 6, 0.92);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  font-size: 18px;
}
.ctx-lost b {
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
}

/* Score flying into the sheet */
.score-fly {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 25;
  font-family: var(--f-display);
  font-size: 44px;
  color: #ffe29a;
  text-shadow:
    0 4px 0 #b3261e,
    0 0 24px rgba(255, 190, 80, 0.7);
  pointer-events: none;
  will-change: transform;
}
.sb-total.bump {
  animation: bump 0.45s cubic-bezier(0.2, 1.8, 0.4, 1);
  display: inline-block;
}
/* Strike streak: glowing score sheet + flame chip */
.sb-wrap.fire1 .sb.cur {
  box-shadow:
    0 0 0 2.5px #ff8a2a,
    0 0 22px rgba(255, 120, 30, 0.6);
  animation: firePulse 1.1s ease-in-out infinite;
}
.sb-wrap.fire2 .sb.cur {
  box-shadow:
    0 0 0 3px #ffb02a,
    0 0 32px rgba(255, 140, 30, 0.85);
  animation: firePulse 0.8s ease-in-out infinite;
}
.sb-wrap.fire3 .sb.cur {
  box-shadow:
    0 0 0 3px #7fd6ff,
    0 0 36px rgba(90, 170, 255, 0.9);
  animation: firePulse 0.6s ease-in-out infinite;
}
@keyframes firePulse {
  50% {
    filter: brightness(1.12);
  }
}
.chip.fire {
  color: #ffcf7a;
  box-shadow: inset 0 0 0 1.5px rgba(255, 140, 40, 0.6);
}
.flame {
  width: 10px;
  height: 13px;
  display: inline-block;
  margin-right: 2px;
  background: radial-gradient(ellipse at 50% 75%, #fff3a0 0 20%, #ffb02a 35%, #ff5a1a 60%, transparent 70%);
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  animation: flick 0.35s ease-in-out infinite alternate;
}
@keyframes flick {
  to {
    transform: scaleY(1.15) translateY(-1px);
  }
}
/* Lane change curtain */
.lane-veil {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: veilIn 0.38s cubic-bezier(0.6, 0, 0.3, 1) both;
  overflow: hidden;
}
.lane-veil .lv-art {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.lane-veil.retro .lv-art {
  background: linear-gradient(160deg, #1f8a87 0%, #0f4f53 55%, #d8433b 56%, #efb63f 100%);
}
.lane-veil.neon .lv-art {
  background: linear-gradient(160deg, #12002b 0%, #3b0a6b 50%, #ff2bd6 51%, #20e3ff 100%);
}
.lane-veil.tropical .lv-art {
  background: linear-gradient(180deg, #ff9a4a 0%, #ff5e7e 45%, #6b3fa0 70%, #13315c 100%);
}
.lane-veil .lv-text {
  position: relative;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.lane-veil .lv-text small {
  display: block;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.lane-veil .lv-text b {
  font-family: var(--f-display);
  font-size: clamp(36px, 10vw, 72px);
  text-transform: uppercase;
}
.lane-veil .spinner {
  position: relative;
}
.lane-veil.out {
  animation: veilOut 0.5s cubic-bezier(0.6, 0, 0.3, 1) both;
}
@keyframes veilIn {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes veilOut {
  to {
    clip-path: inset(100% 0 0 0);
  }
}
/* End of css/responsive.css (complete file). */
