.skyrush-game {
  color: #f7f9ff;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 1500px;
}

.app-shell[data-active-tab="skyrush"] ~ .quick-capture-button { display: none; }

.skyrush-game button { font: inherit; cursor: pointer; }
.skyrush-game button:disabled { cursor: default; opacity: .45; }
.skyrush-game button:focus-visible { outline: 3px solid #8fbdff; outline-offset: 4px; }

.sr-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 4px 0 22px;
}
.sr-heading h2 { color: #0f2742; font-size: 30px; letter-spacing: -1px; margin: 9px 0 0; }
.sr-game-brand { align-items: center; display: flex; gap: 16px; min-width: 0; }
.sr-game-brand img { border-radius: 4px; height: 50px; object-fit: contain; width: 108px; }
.sr-eyebrow { color: #607b9d; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.sr-record { align-items: center; color: #d99a16; display: flex; gap: 12px; margin-left: auto; }
.sr-record small { color: #6f8199; display: block; font-size: 12px; margin-bottom: 4px; }
.sr-record b { color: #102844; font-size: 22px; font-variant-numeric: tabular-nums; }
.sr-tools { display: flex; gap: 8px; }
.sr-icon-button {
  background: #17233a; border: 1px solid #52647b; border-radius: 10px; color: #fff;
  display: grid; height: 43px; place-items: center; width: 43px;
}
.sr-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 290px; }
.sr-arena {
  background: #1a354f; border: 1px solid #3c536f; border-radius: 19px; height: min(58vw, 620px);
  isolation: isolate; min-height: 470px; overflow: hidden; position: relative; touch-action: none;
}
.sr-arena canvas { display: block; height: 100%; width: 100%; }
.sr-hud { display: flex; justify-content: space-between; left: 22px; pointer-events: none; position: absolute; right: 22px; top: 22px; z-index: 2; }
.sr-hud-group { display: flex; gap: 9px; }
.sr-hud-item { backdrop-filter: blur(9px); background: #08172ddd; border: 1px solid #6488a547; border-radius: 10px; min-width: 94px; padding: 11px 16px; }
.sr-hud-item small { color: #aebfd4; display: block; font-size: 11px; letter-spacing: 1px; }
.sr-hud-item b { display: block; font-size: 23px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.sr-hud-item i { font-size: 12px; font-style: normal; }
.sr-hud .sr-icon-button { pointer-events: auto; }
.sr-coins { color: #ffd16d; }
.sr-overlay { align-items: center; background: linear-gradient(90deg, #06152be8 0%, #07182b9c 47%, #08182a00 100%); display: flex; inset: 0; overflow: auto; padding: 42px; position: absolute; z-index: 3; }
.sr-overlay[hidden] { display: none; }
.sr-start-copy { max-width: 440px; padding-top: 42px; }
.sr-tag { background: #173456bd; border: 1px solid #718aaa; border-radius: 5px; color: #d1e5ff; display: inline-block; font-size: 11px; letter-spacing: 2px; padding: 8px 10px; }
.sr-start-copy h3 { color: #fff; font-size: clamp(50px, 6vw, 83px); font-style: italic; font-weight: 900; letter-spacing: -4px; line-height: .95; margin: 20px 0; }
.sr-start-copy h3 span { color: #fa4249; }
.sr-start-copy h3 em { color: #fff; font-size: .53em; font-style: normal; letter-spacing: -1px; }
.sr-start-copy h3.sr-small-title { font-size: 40px; letter-spacing: -1px; }
.sr-start-copy h3.sr-pause-title { font-size: 58px; }
.sr-start-copy h3.sr-over-title { font-size: 57px; }
.sr-start-copy p { color: #d0ddec; font-size: 16px; line-height: 1.65; max-width: 330px; }
.sr-primary { align-items: center; background: #e31e24; border: 1px solid #ff5960; border-radius: 9px; box-shadow: 0 7px 0 #850e1b; color: #fff; display: inline-flex; font-size: 17px; font-weight: 700; gap: 15px; justify-content: center; margin-top: 12px; padding: 17px 27px; }
.sr-primary:hover { background: #f4353b; transform: translateY(-1px); }
.sr-hint { color: #8fa7c3 !important; font-size: 12px !important; line-height: 1.5 !important; margin-top: 22px; }
.sr-sub-button { background: none; border: 0; color: #b8c9df; display: block; padding: 16px 0; }
.sr-help { color: #d4dff0; font-size: 15px; line-height: 1.7; }
.sr-help p { max-width: 390px; }
.sr-results { display: flex; gap: 24px; margin: 22px 0; }
.sr-results small { color: #9fb0c8; display: block; font-size: 12px; }
.sr-results b { font-size: 30px; }

.sr-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sr-panel { background: #101c31; border: 1px solid #273753; border-radius: 15px; padding: 22px; }
.sr-panel-title { align-items: center; color: #91a5c4; display: flex; font-size: 12px; font-weight: 700; justify-content: space-between; letter-spacing: 1.5px; }
.sr-panel-title span { color: #ff555c; }
.sr-boss-panel { min-height: 247px; overflow: hidden; position: relative; }
.sr-boss-head { background: #243d67; border-radius: 50%; float: left; height: 73px; margin: 18px 12px 14px 0; overflow: hidden; width: 73px; }
.sr-boss-head img { height: auto; max-width: none; transform: translate(-18px, -2px); width: 110px; }
.sr-boss-name { font-size: 16px; font-weight: 700; line-height: 1.4; padding-top: 24px; }
.sr-boss-name small { color: #8d9fbb; display: block; font-size: 12px; font-weight: 400; }
.sr-quote { clear: both; color: #fff; font-size: 22px; font-style: italic; font-weight: 800; line-height: 1.2; margin: 16px 0 18px; }
.sr-pressure { color: #9aaec8; display: flex; font-size: 12px; justify-content: space-between; margin-bottom: 8px; }
.sr-meter { background: #28364e; border-radius: 9px; height: 5px; overflow: hidden; }
.sr-meter span { background: #fa4149; display: block; height: 100%; transition: width .3s; }
.sr-route { align-items: center; display: flex; gap: 12px; margin-top: 22px; opacity: .45; }
.sr-route.active { opacity: 1; }
.sr-route-icon { background: #1f3457; border-radius: 9px; color: #7fabff; display: grid; flex: 0 0 auto; height: 36px; place-items: center; width: 36px; }
.sr-route.active .sr-route-icon { background: #26448c; color: #fff; }
.sr-route b { display: block; font-size: 14px; }
.sr-route small { color: #91a5c4; display: block; font-size: 12px; margin-top: 4px; }
.sr-tip { color: #9aacc5; font-size: 13px; line-height: 1.6; padding: 0 5px; }
.sr-tip strong { color: #243a59; }

.sr-toast { background: #091930d9; border: 1px solid #728da6; border-radius: 30px; color: #fff; font-size: 14px; left: 50%; padding: 10px 17px; position: absolute; top: 108px; transform: translateX(-50%); white-space: nowrap; z-index: 5; }
.sr-callout { background: linear-gradient(135deg, #e31e24, #ad132a); border: 3px solid #fff5ef; border-radius: 13px; box-shadow: 6px 7px 0 #071125c9, 0 0 35px #ff45565c; left: 34%; max-width: 62%; padding: 14px 25px 19px; pointer-events: none; position: absolute; text-align: center; top: 19%; transform: translateX(-50%) rotate(-3deg); transform-origin: 18% 100%; width: max-content; z-index: 6; }
.sr-callout:after { background: #c21928; border-bottom: 3px solid #fff5ef; border-right: 3px solid #fff5ef; bottom: -13px; content: ""; height: 20px; left: 8%; position: absolute; transform: skew(-15deg) rotate(45deg); width: 20px; }
.sr-callout span { color: #ffd9dc; display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 7px; text-transform: uppercase; }
.sr-callout strong { display: block; font-size: clamp(22px, 3vw, 39px); font-style: italic; font-weight: 900; letter-spacing: -.8px; line-height: 1.07; text-shadow: 2px 3px 0 #700b24; }
.sr-callout-animate { animation: sr-boss-shout 3.6s both; }
.sr-milestone-sign { animation: sr-road-sign 3.4s both; background: linear-gradient(145deg, #176b75, #0a465a); border: 4px solid #f4f0cf; border-radius: 4px; box-shadow: 0 0 0 3px #143b4b, 8px 10px 0 #0711258f; color: #fffce2; left: auto; min-width: min(310px, 42%); padding: 13px 18px 15px; right: 4%; text-align: left; top: 38%; transform: none; white-space: normal; }
.sr-milestone-sign small { color: #b7e7df; display: block; font-size: 10px; font-weight: 800; letter-spacing: 2px; margin-bottom: 4px; }
.sr-milestone-sign strong { display: block; font-size: clamp(17px, 2vw, 25px); line-height: 1.12; text-transform: uppercase; }
.sr-milestone-sign:before, .sr-milestone-sign:after { background: #d8dde0; bottom: -70px; box-shadow: inset 0 0 0 1px #73818a; content: ""; height: 70px; position: absolute; width: 6px; z-index: -1; }
.sr-milestone-sign:before { left: 24px; }
.sr-milestone-sign:after { right: 24px; }
.sr-audio-error { background: #071125ed; border-radius: 8px; bottom: 16px; color: #ffdda3; font-size: 12px; left: 16px; padding: 9px 14px; pointer-events: none; position: absolute; right: 16px; z-index: 7; }
.sr-boost { background: #254d91dc; border: 1px solid #83b9ff; border-radius: 10px; bottom: 22px; color: #fff; font-weight: 700; padding: 13px; position: absolute; right: 22px; z-index: 5; }
.sr-shade { background: #e31e2429; inset: 0; pointer-events: none; position: absolute; z-index: 4; }
.sr-controls { align-items: center; color: #60758f; display: flex; font-size: 12px; gap: 23px; padding: 21px 0; }
.sr-controls span { align-items: center; display: flex; gap: 8px; }
.sr-controls kbd { background: #17253d; border: 1px solid #3b4b65; border-bottom-width: 3px; border-radius: 5px; color: #e0e9f6; font-size: 12px; padding: 4px 8px; }

@keyframes sr-boss-shout {
  0% { opacity: 0; transform: translate(-50%, 60px) rotate(8deg) scale(.3); }
  10% { opacity: 1; transform: translate(-50%, -5px) rotate(-5deg) scale(1.12); }
  17%, 82% { opacity: 1; transform: translate(-50%, 0) rotate(-3deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -35px) rotate(2deg) scale(.9); }
}

@keyframes sr-road-sign {
  0% { opacity: 0; transform: translate(120%, -32%) scale(.62); }
  16%, 72% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-18%, 22%) scale(1.12); }
}

@media (min-width: 901px) {
  .main > .skyrush-game { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
  .sr-heading { flex: 0 0 auto; }
  .sr-layout { flex: 1 1 auto; min-height: 0; }
  .sr-arena { height: 100%; min-height: 0; }
  .sr-sidebar { height: 100%; min-height: 0; overflow: hidden; }
  .sr-boss-panel, .sr-tip { flex: 0 0 auto; }
  .sr-route-panel { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
  .sr-controls { flex: 0 0 auto; padding: 12px 0 0; }
}

@media (max-width: 1180px) {
  .sr-layout { grid-template-columns: minmax(0, 1fr) 240px; }
  .sr-panel { padding: 17px; }
  .sr-controls { gap: 12px; }
  .sr-overlay { padding: 30px; }
  .sr-start-copy h3 { font-size: 62px; }
}

@media (max-width: 900px) {
  .sr-heading { align-items: center; padding-bottom: 16px; }
  .sr-heading h2 { font-size: 21px; }
  .sr-eyebrow { font-size: 9px; }
  .sr-record { display: none; }
  .sr-layout { display: block; }
  .sr-arena { border-radius: 14px; height: 64svh; max-height: 740px; min-height: 460px; }
  .sr-sidebar { display: none; }
  .sr-overlay { background: linear-gradient(90deg, #06152bd9, #07182b40); padding: 27px; }
  .sr-start-copy { padding-top: 44px; }
  .sr-start-copy h3 { font-size: 58px; }
  .sr-start-copy p { font-size: 14px; max-width: 270px; }
  .sr-hud { left: 14px; right: 14px; top: 14px; }
  .sr-hud-item { min-width: 76px; padding: 9px 12px; }
  .sr-hud-item b { font-size: 20px; }
  .sr-hud-item small { font-size: 10px; }
  .sr-controls { display: none; }
  .sr-boost { bottom: 16px; font-size: 12px; right: 14px; }
  .sr-toast { font-size: 12px; max-width: 90%; text-align: center; white-space: normal; }
  .sr-callout { left: 46%; max-width: 88%; top: 23%; transform-origin: 20% 100%; }
  .sr-milestone-sign { border-width: 3px; box-shadow: 0 0 0 2px #143b4b, 4px 5px 0 #07112570; left: auto; min-width: 0; padding: 8px 10px 9px; right: 3%; text-align: left; top: 29%; width: min(180px, 46%); }
  .sr-milestone-sign small { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 2px; }
  .sr-milestone-sign strong { font-size: clamp(12px, 3.4vw, 16px); line-height: 1.08; }
  .sr-milestone-sign:before, .sr-milestone-sign:after { bottom: -43px; height: 43px; width: 4px; }
  .sr-milestone-sign:before { left: 15px; }
  .sr-milestone-sign:after { right: 15px; }
  .sr-primary { font-size: 16px; }
}

@media (max-width: 520px) {
  .sr-game-brand img { height: 40px; width: 82px; }
  .sr-heading h2 { display: none; }
  .sr-tools { margin-left: auto; }
  .sr-start-copy h3 { font-size: 48px; }
  .sr-arena { min-height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  .sr-callout-animate, .sr-milestone-sign { animation: none; }
}
