* { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
  #game-wrap {
    font-family: var(--font-mono, monospace);
    background: #0a0a1a;
    border-radius: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }
  #hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: linear-gradient(180deg, #13132d 0%, #0b0b1c 100%);
    border-bottom: 2px solid #2a2a58;
    color: #00e5ff;
    font-size: 24px;
    gap: 24px;
    flex-wrap: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  #hud .title {
    font-size: 32px;
    font-weight: 700;
    color: #ff5c5c;
    letter-spacing: 4px;
    text-shadow: 0 0 14px rgba(255, 68, 68, 0.45);
  }
  #hud .stats {
    display: flex;
    gap: clamp(8px, 1.6vw, 28px);
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    flex: 1 1 auto;
  }
  #hud .stat {
    width: clamp(7.4em, 15vw, 13em);
    min-width: 0;
    max-width: 13em;
    flex: 1 1 clamp(7.4em, 15vw, 13em);
    overflow: hidden;
    padding: 14px 18px;
    border: 2px solid #2b3f6e;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 28, 58, 0.95) 0%, rgba(10, 16, 38, 0.95) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 20px rgba(0,229,255,0.08);
  }
  #hud .stat-label {
    display: block;
    margin-bottom: 6px;
    color: #8b93b8;
    font-size: 14px;
    letter-spacing: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }
  #hud .stat-value {
    color: #00f0ff;
    font-size: clamp(0.9em, 1.2vw, 1.5em);
    font-weight: 700;
    line-height: 1;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  }
  #credits-val.is-credit-pop {
    animation: credits-pop 460ms cubic-bezier(.2,.9,.2,1);
  }
  #credits-val.is-credit-drop {
    animation: credits-drop 240ms ease-out;
  }
  #game-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    touch-action: none;
  }
  canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
  #top-utility-bar {
    position: absolute;
    left: 18px;
    top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    z-index: 4;
    transition: opacity 160ms ease, visibility 160ms ease;
  }
  #top-utility-bar.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .utility-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .utility-group-left {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }
  .utility-group-right {
    justify-content: flex-end;
  }
  .utility-icon {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    border: 2px solid rgba(0, 217, 255, 0.35);
    background: linear-gradient(180deg, rgba(20, 28, 58, 0.94) 0%, rgba(8, 12, 28, 0.98) 100%);
    color: #8affff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.14), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, color 120ms ease;
  }
  .utility-icon:hover {
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.24), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .utility-icon:active {
    transform: scale(0.95);
  }
  .utility-icon.is-input-locked {
    pointer-events: none;
    opacity: 0.48;
    filter: saturate(0.7);
  }
  .utility-icon.is-empty {
    border-color: rgba(108, 122, 150, 0.25);
    color: #6f7897;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    opacity: 0.72;
  }
  .utility-icon.is-ready {
    border-color: rgba(119, 255, 210, 0.6);
    color: #d8fff5;
    box-shadow: 0 0 28px rgba(111, 255, 206, 0.22), inset 0 0 0 1px rgba(255,255,255,0.07);
  }
  .utility-icon.is-armed {
    border-color: rgba(255, 210, 100, 0.62);
    color: #fff2ca;
    box-shadow: 0 0 28px rgba(255, 191, 93, 0.22), inset 0 0 0 1px rgba(255,255,255,0.07);
  }
  .utility-icon.is-fired {
    animation: utility-fire 260ms ease-out;
  }
  .utility-icon.is-tutorial-highlight {
    animation: utility-gift-shimmer 1.45s ease-in-out infinite;
    border-color: rgba(255, 236, 140, 0.86);
    box-shadow: 0 0 34px rgba(255, 221, 102, 0.34), inset 0 0 0 1px rgba(255,255,255,0.1);
  }
  .utility-icon.is-hidden {
    display: none;
  }
  .utility-charge-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff5a7d 0%, #c72254 100%);
    color: #fff;
    border: 2px solid rgba(8, 12, 28, 0.96);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
    z-index: 2;
  }
  .utility-charge-badge.is-empty {
    background: linear-gradient(180deg, #7b8296 0%, #51586a 100%);
    color: #eef2f8;
  }
  .medkit-cross-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.98), rgba(218, 236, 255, 0.96));
    border: 2px solid rgba(143, 214, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 8px 18px rgba(0, 0, 0, 0.18);
    color: #ff4c6a;
    line-height: 1;
    font-weight: 900;
  }
  .medkit-cross-icon-plus {
    transform: translateY(-1px);
  }
  .medkit-cross-icon.is-utility {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 24px;
  }
  .medkit-cross-icon.is-extra {
    background: linear-gradient(180deg, rgba(255, 241, 255, 0.98), rgba(255, 214, 246, 0.96));
    border-color: rgba(255, 154, 221, 0.76);
    color: #ff5ad1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 8px 18px rgba(255, 90, 209, 0.18);
  }
  .medkit-cross-icon.is-pro {
    background: linear-gradient(180deg, rgba(241, 255, 232, 0.98), rgba(198, 244, 190, 0.96));
    border-color: rgba(126, 222, 126, 0.78);
    color: #31a85a;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3), 0 8px 18px rgba(49, 168, 90, 0.18);
  }
  .perk-symbol-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(24, 34, 48, 0.98), rgba(10, 16, 26, 0.98));
    border: 2px solid rgba(125, 214, 255, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 8px 18px rgba(0, 0, 0, 0.16);
    line-height: 1;
    font-weight: 900;
    font-size: 20px;
  }
  .perk-symbol-icon.is-shop {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 24px;
  }
  .perk-symbol-icon.is-freeze {
    color: #9fe8ff;
    border-color: rgba(159, 232, 255, 0.34);
  }
  .perk-symbol-icon.is-boom {
    color: #ffd88b;
    border-color: rgba(255, 216, 139, 0.34);
  }
  .perk-symbol-icon.is-timewarp {
    color: #a7f1ff;
    border-color: rgba(167, 241, 255, 0.34);
  }
  .perk-symbol-icon.is-vpn {
    color: #9effbe;
    border-color: rgba(158, 255, 190, 0.34);
  }
  .perk-icon-stack {
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
  }
  .perk-icon-stack small {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.4px;
    transform: translateY(1px);
  }
  .medkit-cross-icon.is-shop {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 28px;
  }
  #alice-guide {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: min(var(--alice-guide-max-width, 680px), calc(100vw - 36px));
    transform: translate(-140%, -120%);
    opacity: 0;
    transition: transform 420ms cubic-bezier(.2,.9,.2,1), opacity 320ms ease;
    pointer-events: none;
  }
  #alice-guide.is-anchor-top-left {
    top: 18px;
    left: 18px;
    right: auto;
    bottom: auto;
    align-items: flex-start;
    flex-direction: row;
    transform: translate(-140%, -120%);
  }
  #alice-guide.is-anchor-top-right {
    top: 18px;
    left: auto;
    right: 18px;
    bottom: auto;
    align-items: flex-start;
    flex-direction: row-reverse;
    transform: translate(140%, -120%);
  }
  #alice-guide.is-anchor-bottom-right {
    top: auto;
    left: auto;
    right: 8px;
    bottom: 8px;
    align-items: flex-end;
    flex-direction: row-reverse;
    transform: translateY(120%);
  }
  #alice-guide.is-visible {
    transform: translate(0, 0);
    opacity: 1;
    pointer-events: auto;
  }
  .alice-avatar-wrap {
    position: relative;
    width: clamp(180px, 18vw, 260px);
    flex: 0 0 clamp(180px, 18vw, 260px);
  }
  .alice-avatar {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 24px rgba(0,0,0,0.32));
    transform-origin: 50% 100%;
  }
  #alice-guide.is-visible.is-speaking .alice-avatar {
    animation: alice-float 2.7s ease-in-out infinite;
  }
  .alice-bubble {
    position: relative;
    z-index: 1;
    isolation: isolate;
    margin-top: clamp(64px, 6vh, 88px);
    min-width: 260px;
    max-width: min(var(--alice-bubble-max-width, 500px), calc(100vw - clamp(220px, 22vw, 320px)));
    padding: 18px 20px 18px 22px;
    border-radius: 28px 24px 30px 22px;
    border: 2px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(237,244,255,0.95) 100%);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    color: #16233d;
    transform: rotate(-0.8deg);
    cursor: pointer;
  }
  .alice-bubble::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -14px;
    top: 58px;
    width: 28px;
    height: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(237,244,255,0.95) 100%);
    border: 2px solid rgba(255,255,255,0.14);
    border-radius: 55% 45% 58% 42% / 60% 44% 56% 40%;
    transform: rotate(-18deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .alice-bubble::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -34px;
    top: 84px;
    width: 15px;
    height: 15px;
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(237,244,255,0.95) 100%);
    border: 2px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    transform: rotate(-12deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  }
  #alice-guide.is-anchor-top-right .alice-bubble,
  #alice-guide.is-anchor-bottom-right .alice-bubble {
    transform: rotate(0.8deg);
  }
  #alice-guide.is-anchor-top-right .alice-bubble::before,
  #alice-guide.is-anchor-top-right .alice-bubble::after,
  #alice-guide.is-anchor-bottom-right .alice-bubble::before,
  #alice-guide.is-anchor-bottom-right .alice-bubble::after {
    left: auto;
  }
  #alice-guide.is-anchor-top-right .alice-bubble::before,
  #alice-guide.is-anchor-bottom-right .alice-bubble::before {
    right: -14px;
    transform: rotate(18deg);
  }
  #alice-guide.is-anchor-top-right .alice-bubble::after,
  #alice-guide.is-anchor-bottom-right .alice-bubble::after {
    right: -34px;
    transform: rotate(12deg);
  }
  .alice-name {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff8fb3 0%, #ff668d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .alice-text {
    min-height: 92px;
    max-width: min(50vh, 50vw);
    font-size: 19px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.1px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .alice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(22, 35, 61, 0.08);
    color: #334155;
    font-size: 18px;
    cursor: pointer;
  }
  .alice-close:hover {
    background: rgba(22, 35, 61, 0.14);
  }
  @keyframes alice-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-4px) rotate(1.2deg); }
  }
  @keyframes credits-pop {
    0% {
      transform: scale(1);
      text-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
    }
    42% {
      transform: scale(1.12);
      text-shadow: 0 0 24px rgba(255, 228, 143, 0.42);
    }
    68% {
      transform: scale(0.98);
    }
    100% {
      transform: scale(1);
      text-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
    }
  }
  @keyframes utility-fire {
    0% { transform: scale(1); }
    40% { transform: scale(0.9); }
    75% { transform: scale(1.08); }
    100% { transform: scale(1); }
  }
  @keyframes utility-gift-shimmer {
    0%, 100% {
      transform: scale(1);
      filter: saturate(1);
    }
    50% {
      transform: scale(1.06);
      filter: saturate(1.2);
    }
  }
  @keyframes credits-drop {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    45% {
      transform: scale(0.94);
      opacity: 0.9;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  @media (max-width: 1120px), (max-height: 640px) {
    #top-utility-bar {
      left: 12px;
      top: 12px;
      gap: 10px;
    }
    .utility-group-left {
      gap: 8px;
    }
    .utility-icon {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      font-size: 26px;
    }
    #alice-guide {
      gap: 10px;
      max-width: min(320px, calc(100vw - 16px));
    }
    .alice-avatar-wrap {
      width: 64px;
      flex-basis: 64px;
    }
    .alice-bubble {
      margin-top: 0;
      min-width: 0;
      max-width: min(236px, calc(100vw - 92px));
      padding: 10px 12px;
      transform: none;
    }
    .alice-text {
      min-height: 34px;
      max-width: min(50vh, calc(100vw - 110px));
      font-size: 12px;
      line-height: 1.3;
    }
  }
  #controls {
    display: flex;
    justify-content: center;
    padding: 18px 24px;
    background: linear-gradient(180deg, #0b0b1c 0%, #12122a 100%);
    border-top: 2px solid #2a2a58;
    align-items: center;
    min-height: 102px;
  }
  #controls.is-hidden {
    display: none;
  }
  #controls-content {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: center;
    transition: opacity 140ms ease;
    width: 100%;
  }
  #controls-content.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #controls button {
    background: linear-gradient(180deg, #1f2452 0%, #101634 100%);
    color: #7ef9ff;
    border: 2px solid #00d9ff66;
    border-radius: 16px;
    padding: 18px 36px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-mono, monospace);
    min-width: 240px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
    letter-spacing: 1px;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  }
  #controls button:hover {
    background: linear-gradient(180deg, #253070 0%, #131d46 100%);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  #controls button:active { transform: scale(0.96); }
  .controls-hint {
    color: #9aa3cc;
    font-size: 18px;
    align-self: center;
    letter-spacing: 1px;
    margin-right: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .utility-icon-soundbar {
    margin-left: auto;
    width: 58px;
    height: 58px;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 58px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 18px;
    font-size: 24px;
    padding: 0 !important;
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  #overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
      linear-gradient(rgba(6, 10, 26, 0.76), rgba(0, 0, 0, 0.82)),
      #050814 center center / cover no-repeat;
    color: #fff;
    gap: 18px;
    padding: 32px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 420ms ease;
  }
  #overlay.is-preload-hidden {
    opacity: 0;
    pointer-events: none;
  }
  #overlay .menu-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
  }
  #overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(6, 10, 26, 0.76), rgba(0, 0, 0, 0.82));
    z-index: 1;
  }
  .overlay-panel {
    width: min(760px, calc(100vw - 48px));
    padding: 32px 36px;
    border-radius: 28px;
    border: 2px solid rgba(125, 214, 255, 0.22);
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.9) 0%, rgba(4, 8, 18, 0.92) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
    max-height: calc(100dvh - 64px);
    overflow: hidden;
  }
  #overlay.menu-screen {
    background:
      url('../assets/images/states/menu/menu.webp') center center / cover no-repeat,
      #050814;
  }
  #overlay.menu-screen .overlay-panel {
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.5) 0%, rgba(4, 8, 18, 0.5) 100%);
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) {
    padding: clamp(8px, 3dvh, 32px);
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) .overlay-panel {
    width: min(760px, 100%);
    max-height: 100%;
    padding: clamp(12px, 3.4dvh, 32px) clamp(14px, 3.8vw, 36px);
    gap: clamp(7px, 2dvh, 18px);
    justify-content: center;
    overflow: hidden;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) h2 {
    font-size: clamp(22px, 7.2dvh, 56px);
    line-height: 1.04;
    letter-spacing: clamp(1px, 0.9dvh, 6px);
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) p {
    font-size: clamp(12px, 3dvh, 24px);
    line-height: 1.34;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) .menu-control-hint {
    color: #ffb366;
    font-size: clamp(10px, 2.4dvh, 20px);
    letter-spacing: clamp(0.2px, 0.14dvh, 1px);
    line-height: 1.18;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) .big {
    font-size: clamp(15px, 4.6dvh, 34px);
    line-height: 1.14;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) button {
    width: min(420px, 100%);
    min-width: 0;
    min-height: clamp(36px, 8dvh, 58px);
    padding: clamp(8px, 2.2dvh, 18px) clamp(12px, 4vw, 40px);
    font-size: clamp(13px, 3.4dvh, 28px);
    line-height: 1;
  }
  #overlay.gameplay-intro-screen {
    background: #02040b;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }
  #overlay.gameplay-intro-screen::before {
    display: none;
  }
  .gameplay-intro-shell {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 0;
    transition: opacity 520ms ease;
  }
  .gameplay-intro-shell.is-fade-in {
    opacity: 1;
  }
  .gameplay-intro-shell.is-fade-out {
    opacity: 0;
  }
  .gameplay-intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
  }
  .gameplay-intro-fallback {
    position: absolute;
    inset: auto 0 34px;
    display: flex;
    justify-content: center;
    z-index: 2;
    pointer-events: auto;
  }
  .gameplay-intro-fallback button {
    border-color: rgba(125, 214, 255, 0.5);
    background: linear-gradient(180deg, rgba(22, 42, 72, 0.92), rgba(6, 12, 26, 0.95));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), 0 0 22px rgba(78, 205, 255, 0.22);
  }
  #overlay.menu-screen.video-failed .menu-video {
    display: none;
  }
  #overlay.defeat-screen {
    background:
      linear-gradient(rgba(20, 6, 18, 0.74), rgba(0, 0, 0, 0.84)),
      url('../assets/images/states/defeat/defeat.webp') center center / cover no-repeat;
  }
  #overlay.ending-screen {
    background:
      radial-gradient(circle at top, rgba(38, 96, 142, 0.34), transparent 42%),
      linear-gradient(180deg, rgba(4, 10, 26, 0.82), rgba(2, 5, 12, 0.94));
  }
  #overlay.ending-screen .menu-video {
    object-fit: cover;
    opacity: 0.42;
  }
  #overlay.ending-screen .ending-panel {
    border-color: rgba(125, 214, 255, 0.34);
    background: linear-gradient(180deg, rgba(10, 18, 36, 0.86) 0%, rgba(4, 8, 18, 0.9) 100%);
  }
  #overlay.defeat-screen::before {
    background: linear-gradient(rgba(20, 6, 18, 0.05), rgba(0, 0, 0, 0.05));
  }
  #overlay.defeat-screen .overlay-panel {
    border-color: rgba(255, 92, 92, 0.28);
    background: linear-gradient(180deg, rgba(30, 10, 22, 0.8) 0%, rgba(12, 4, 10, 0.8) 100%);
  }
  #overlay.advert-countdown-screen {
    background:
      radial-gradient(circle at top, rgba(0, 229, 255, 0.18), transparent 38%),
      linear-gradient(rgba(6, 12, 28, 0.82), rgba(0, 0, 0, 0.88));
  }
  #overlay.advert-countdown-screen::before {
    background:
      linear-gradient(rgba(8, 18, 38, 0.38), rgba(0, 0, 0, 0.56)),
      repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.06) 0 1px, transparent 1px 56px),
      repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.05) 0 1px, transparent 1px 42px);
  }
  #overlay.advert-countdown-screen .advert-countdown-panel {
    width: min(640px, calc(100vw - 40px));
    min-height: 360px;
    border-color: rgba(0, 229, 255, 0.3);
    background:
      radial-gradient(circle at top, rgba(42, 124, 255, 0.14), transparent 48%),
      linear-gradient(180deg, rgba(9, 18, 38, 0.94) 0%, rgba(4, 10, 24, 0.98) 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48), 0 0 42px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(255,255,255,0.05);
    justify-content: center;
  }
  .advert-countdown-kicker {
    color: #8ceeff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
  }
  #overlay.advert-countdown-screen h2 {
    color: #8ceeff;
    text-shadow: 0 0 20px rgba(140, 238, 255, 0.24);
  }
  .advert-countdown-number {
    width: min(164px, calc(100vw - 88px), calc(100dvh - 250px));
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 50%;
    border: 2px solid rgba(135, 234, 255, 0.22);
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 36%),
      radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.18), rgba(12, 18, 42, 0.96) 72%);
    color: #f8fdff;
    font-size: clamp(56px, 16vw, 108px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 28px rgba(0, 229, 255, 0.32), 0 6px 16px rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 10px 20px rgba(255,255,255,0.06), 0 18px 36px rgba(0, 0, 0, 0.32), 0 0 28px rgba(0, 229, 255, 0.1);
  }
  #campaign-map-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
  }
  #campaign-map-layer.is-hidden {
    display: none;
  }
  #campaign-map-layer.campaign-map-screen {
    display: block;
    background: #080c18;
  }
#overlay.shop-screen {
  background:
      radial-gradient(circle at top, rgba(37, 110, 83, 0.22), transparent 38%),
      linear-gradient(180deg, rgba(8, 18, 20, 0.92), rgba(3, 7, 10, 0.98));
  }
  #overlay.shop-screen::before {
    background:
      linear-gradient(rgba(6, 18, 16, 0.68), rgba(0, 0, 0, 0.78)),
      repeating-linear-gradient(90deg, rgba(88, 226, 180, 0.05) 0 1px, transparent 1px 56px),
      repeating-linear-gradient(0deg, rgba(88, 226, 180, 0.05) 0 1px, transparent 1px 46px);
  }
  #overlay.shop-screen ~ #loading-screen,
  #game-stage:has(#overlay.shop-screen) #loading-screen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #overlay.shop-screen {
    overflow: auto;
    overflow-x: hidden;
    align-items: stretch;
    justify-content: flex-start;
    padding: clamp(4px, 2dvh, 24px);
  }
  #overlay.shop-screen .overlay-panel.shop-panel {
    width: min(1180px, 100%);
    max-height: 100%;
    margin: auto;
    padding: clamp(8px, 2.4dvh, 24px);
    align-items: stretch;
    gap: clamp(6px, 1.6dvh, 16px);
    border-color: rgba(90, 255, 194, 0.32);
    background:
      linear-gradient(180deg, rgba(10, 18, 22, 0.98) 0%, rgba(5, 10, 14, 0.98) 100%),
      radial-gradient(circle at top left, rgba(84, 255, 182, 0.06), transparent 36%);
    overflow: hidden;
    min-width: 0;
  }
  .shop-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scroll-behavior: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.55) rgba(0, 229, 255, 0.06);
  }
  .shop-main::-webkit-scrollbar {
    width: 6px;
  }
  .shop-main::-webkit-scrollbar-track {
    background: rgba(0, 229, 255, 0.06);
    border-radius: 0;
    border-left: 1px solid rgba(0, 229, 255, 0.08);
  }
  .shop-main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.72), rgba(0, 180, 220, 0.58));
    border-radius: 0;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.18);
  }
  .shop-main::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.92), rgba(0, 200, 240, 0.78));
  }
  #overlay.shop-screen h2,
  #overlay.shop-screen p,
  .shop-topline,
  .shop-tabs,
  .shop-section-stage,
  .shop-feature-card,
  .shop-feature-shell,
  .shop-feature-content,
  .shop-perk-grid,
  .shop-perk-card,
  .shop-footer-actions {
    min-width: 0;
    max-width: 100%;
  }
  #overlay.shop-screen .campaign-map-copy {
    display: none;
  }
  .shop-topline {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .shop-credit-chip {
    border-radius: 999px;
    border: 1px solid rgba(110, 255, 210, 0.3);
    background: rgba(9, 21, 20, 0.84);
    color: #a3fff1;
    padding: 10px 16px;
    font-size: 14px;
    letter-spacing: 1px;
  }
  .shop-credit-chip b {
    color: #fff5cf;
  }
  .shop-credit-chip.is-warm {
    border-color: rgba(255, 210, 106, 0.32);
    color: #ffe6a6;
  }
  .shop-credit-chip.is-cool {
    border-color: rgba(104, 198, 255, 0.32);
    color: #cfefff;
  }
  .shop-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
  .shop-tab {
    min-height: 58px;
    border-radius: 18px;
    border: 2px solid rgba(113, 177, 190, 0.2);
    background: linear-gradient(180deg, rgba(12, 22, 30, 0.98) 0%, rgba(8, 14, 20, 0.98) 100%);
    color: #a7cfda;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
  }
  .shop-tab:hover {
    transform: translateY(-2px);
  }
  .shop-tab.is-active {
    color: #fff9dd;
    border-color: rgba(111, 255, 206, 0.68);
    box-shadow: 0 0 24px rgba(89, 255, 206, 0.16);
  }
  .shop-tab span:first-child {
    font-size: 18px;
  }
  .shop-upgrade-focus {
    border-radius: 20px;
    border: 1px solid rgba(130, 255, 214, 0.2);
    background: linear-gradient(180deg, rgba(10, 24, 26, 0.92) 0%, rgba(7, 14, 18, 0.96) 100%);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .shop-upgrade-focus-label {
    color: #8fffe0;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .shop-upgrade-focus-copy {
    color: #e5f6ef;
    font-size: 15px;
    line-height: 1.5;
  }
  .shop-section-title {
    color: #8fffe0;
    font-size: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: left;
    margin-top: 2px;
  }
  .shop-section-stage {
    min-height: 0;
    overflow-x: clip;
  }
  .shop-feature-card {
    position: relative;
    border-radius: 32px;
    border: 1px solid rgba(110, 255, 212, 0.22);
    background:
      radial-gradient(circle at top left, rgba(112, 255, 205, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(12, 22, 28, 0.98) 0%, rgba(6, 10, 16, 0.98) 100%);
    padding: 20px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.03);
    overflow: hidden;
  }
  .shop-feature-card.is-slide-next {
    animation: shopSlideInNext 360ms cubic-bezier(.16,1,.3,1);
  }
  .shop-feature-card.is-slide-prev {
    animation: shopSlideInPrev 360ms cubic-bezier(.16,1,.3,1);
  }
  .shop-feature-card.is-purchased {
    animation: shopPurchasePulse 520ms ease;
  }
  .shop-feature-card.is-current-card {
    border-color: rgba(255, 211, 118, 0.5);
    box-shadow: 0 20px 48px rgba(0,0,0,0.3), 0 0 24px rgba(255, 211, 118, 0.12);
  }
  .shop-feature-card.is-locked-card {
    border-color: rgba(118, 150, 159, 0.22);
  }
  .shop-feature-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 22px;
    align-items: center;
  }
  .shop-feature-media {
    position: relative;
    min-height: 340px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(12, 24, 34, 0.98), rgba(7, 12, 18, 0.98));
    isolation: isolate;
  }
  .shop-feature-media-device {
    background:
      radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 34%),
      linear-gradient(180deg, rgba(87, 153, 255, 0.95) 0%, rgba(35, 76, 160, 0.98) 46%, rgba(9, 15, 26, 0.98) 100%);
  }
  .shop-feature-media-vpn {
    background:
      radial-gradient(circle at top, rgba(93, 255, 198, 0.14), transparent 36%),
      linear-gradient(180deg, rgba(12, 35, 33, 0.98) 0%, rgba(8, 16, 20, 0.98) 100%);
  }
  .shop-device-flight-lanes,
  .shop-device-flight-lanes::before,
  .shop-device-flight-lanes::after {
    position: absolute;
    inset: 0;
    content: '';
    background:
      linear-gradient(110deg, transparent 0 16%, rgba(255,255,255,0.18) 18%, transparent 22%),
      linear-gradient(125deg, transparent 0 58%, rgba(255,255,255,0.12) 60%, transparent 64%);
    animation: shopFlightLines 5.8s linear infinite;
    opacity: 0.7;
  }
  .shop-device-flight-lanes::before {
    animation-duration: 6.6s;
    opacity: 0.36;
  }
  .shop-device-flight-lanes::after {
    animation-duration: 4.4s;
    opacity: 0.22;
  }
  .shop-device-glow {
    position: absolute;
    width: 58%;
    height: 46%;
    right: 12%;
    top: 20%;
    background: radial-gradient(circle, rgba(255, 237, 153, 0.42), transparent 68%);
    filter: blur(12px);
    z-index: 0;
  }
  .shop-device-image-float {
    position: absolute;
    right: 9%;
    top: 15%;
    width: min(72%, 420px);
    max-height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.38));
    z-index: 1;
    animation: shopDeviceFloat 4.2s ease-in-out infinite;
  }
  .shop-vpn-image-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 10px 10px;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.38));
    z-index: 0;
  }
  .shop-vpn-overlay-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    padding: 22px;
    gap: 8px;
  }
  .shop-vpn-caption {
    color: #edfef8;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    max-width: 78%;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.34);
  }
  .shop-stage-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
  }
  .shop-stage-badge.is-current {
    background: rgba(255, 207, 107, 0.18);
    color: #fff3c0;
    border-color: rgba(255, 207, 107, 0.36);
  }
  .shop-stage-badge.is-owned {
    background: rgba(126, 255, 202, 0.14);
    color: #d7fff0;
    border-color: rgba(126, 255, 202, 0.3);
  }
  .shop-stage-badge.is-buyable {
    background: rgba(94, 183, 255, 0.14);
    color: #ddf3ff;
    border-color: rgba(94, 183, 255, 0.3);
  }
  .shop-stage-badge.is-locked {
    background: rgba(15, 26, 34, 0.72);
    color: #c9d2da;
    border-color: rgba(149, 165, 173, 0.22);
  }
  .shop-media-dim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(3, 7, 11, 0.34);
    backdrop-filter: blur(4px) saturate(0.7);
  }
  .shop-feature-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
  }
  .shop-hero-kicker {
    color: #8fffe0;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
  }
  .shop-hero-title {
    color: #fffdf6;
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.02;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  .shop-hero-copy {
    color: #d0e2e6;
    font-size: 16px;
    line-height: 1.55;
  }
  .shop-hero-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .shop-price-chip,
  .shop-max-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 106, 0.24);
    background: rgba(18, 16, 12, 0.58);
    color: #ffe8a6;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .shop-price-value {
    font-size: 18px;
  }
  .shop-price-icon {
    font-size: 18px;
  }
  .shop-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shop-stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    border-radius: 20px;
    border: 1px solid rgba(123, 233, 212, 0.14);
    background: rgba(7, 16, 22, 0.88);
    padding: 12px 14px;
  }
  .shop-stat-emoji {
    font-size: 28px;
    line-height: 1;
    flex: 0 0 auto;
  }
  .shop-stat-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .shop-stat-label {
    color: #92bfca;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }
  .shop-stat-value {
    color: #f1fffb;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    word-break: break-word;
  }
  .shop-stat-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .shop-stat-current {
    color: #f1fffb;
  }
  .shop-stat-arrow {
    color: #83b7c4;
    font-size: 16px;
  }
  .shop-stat-next {
    color: #8fffe0;
    text-shadow: 0 0 16px rgba(94, 255, 203, 0.16);
  }
  .shop-note-panel {
    border-radius: 18px;
    border: 1px solid rgba(130, 255, 214, 0.14);
    background: rgba(7, 14, 18, 0.72);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .shop-note-title {
    color: #89ffe4;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .shop-note-copy {
    color: #dcebee;
    font-size: 14px;
    line-height: 1.5;
  }
  .shop-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
  }
  .shop-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: nowrap;
  }
  .shop-arrow-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 999px !important;
    padding: 0 !important;
    background: rgba(14, 24, 30, 0.92) !important;
    border: 1px solid rgba(130, 255, 214, 0.18) !important;
    color: #defff6 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }
  .shop-arrow-btn:hover {
    background: rgba(22, 38, 46, 0.96) !important;
  }
  .shop-carousel-page {
    min-width: 76px;
    text-align: center;
    color: #d8fff6;
    font-size: 14px;
    letter-spacing: 2px;
  }
  .shop-carousel-peek {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    pointer-events: none;
    overflow: clip;
  }
  .shop-peek-card {
    pointer-events: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: clamp(88px, 10vw, 132px);
    aspect-ratio: 0.88;
    border-radius: 22px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06) !important;
    background: rgba(12, 22, 28, 0.86) !important;
    box-shadow: none !important;
    padding: 10px !important;
    opacity: 0.68;
    transform: scale(0.96);
  }
  .shop-peek-card.is-left {
    transform-origin: left center;
  }
  .shop-peek-card.is-right {
    transform-origin: right center;
  }
  .shop-peek-card.is-locked {
    opacity: 0.5;
    filter: saturate(0.45) blur(0.3px);
  }
  .shop-peek-frame {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    pointer-events: none;
  }
  .shop-peek-card.is-locked .shop-peek-frame {
    background: linear-gradient(180deg, rgba(6, 10, 14, 0.16), rgba(6, 10, 14, 0.52));
  }
  .shop-peek-image {
    position: absolute;
    inset: 10px 10px 34px;
    width: calc(100% - 20px);
    height: calc(100% - 44px);
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.24));
    z-index: 1;
  }
  .shop-peek-label {
    position: relative;
    z-index: 2;
    color: #ecfff8;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.15;
  }
  @media (max-width: 540px) {
    .shop-carousel-controls {
      gap: 8px;
      margin-top: 12px;
      flex-wrap: nowrap;
    }
    .shop-arrow-btn {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      font-size: 24px !important;
    }
    .shop-carousel-page {
      min-width: 56px;
      font-size: 12px;
      letter-spacing: 1.2px;
      flex: 0 0 auto;
    }
    .shop-carousel-peek {
      display: none;
    }
  }
  .shop-vpn-level-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .shop-vpn-level-node,
  .shop-inline-badge {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(7, 16, 22, 0.88);
    border: 1px solid rgba(123, 233, 212, 0.12);
    color: #cfe3e7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
  }
  .shop-vpn-level-node.is-open,
  .shop-inline-badge.is-owned {
    color: #d9fff1;
    border-color: rgba(126, 255, 202, 0.26);
  }
  .shop-vpn-level-node.is-current,
  .shop-inline-badge.is-level {
    color: #fff1c0;
    border-color: rgba(255, 207, 107, 0.26);
    background: rgba(56, 35, 8, 0.62);
    box-shadow: 0 0 18px rgba(255, 207, 107, 0.14);
  }
  .shop-inline-badge.is-locked {
    color: #d5dce1;
    border-color: rgba(150, 164, 172, 0.16);
  }
  .shop-feature-actions button[disabled],
  .shop-perk-actions button[disabled],
  .shop-action-chip.is-muted {
    opacity: 0.42;
    cursor: not-allowed;
  }
  .shop-feature-actions,
  .shop-perk-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
  }
  .shop-feature-actions > button,
  .shop-feature-actions > .shop-action-chip,
  .shop-perk-actions > button {
    min-height: 56px;
  }
  .shop-feature-actions > button,
  .shop-feature-actions > .shop-action-chip {
    flex: 1 1 188px;
  }
  .shop-action-chip.is-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
    color: #b2bdc6;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
  }
  .shop-video-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 12px 18px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(110, 255, 212, 0.18) !important;
    background: linear-gradient(180deg, rgba(31, 57, 63, 0.96) 0%, rgba(12, 24, 30, 0.98) 100%) !important;
    color: #d7fff2 !important;
    box-shadow: none !important;
    font-size: 18px !important;
  }
  .shop-video-button.is-inline {
    width: 68px;
    min-width: 68px;
    max-width: 68px;
    justify-content: center;
    padding: 0 !important;
    flex: 0 0 68px;
  }
  .shop-video-button:disabled {
    opacity: 0.48;
    filter: grayscale(0.2);
  }
  .shop-video-button.is-inline .reward-video-icon {
    width: 32px;
    height: 32px;
  }
  .shop-video-button .reward-video-icon {
    width: 24px;
    height: 24px;
  }
  .shop-perk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 4px;
  }
  .shop-perk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(112, 177, 190, 0.16);
    background: linear-gradient(180deg, rgba(9, 18, 24, 0.98) 0%, rgba(7, 12, 18, 0.98) 100%);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    min-width: 0;
  }
  .shop-perk-card:hover {
    transform: translateY(-2px);
  }
  .shop-perk-card.is-dimmed::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(5, 10, 14, 0.18);
    backdrop-filter: blur(3px);
    pointer-events: none;
  }
  .shop-perk-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
  }
  .shop-perk-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, rgba(255, 170, 219, 0.18), transparent 34%), linear-gradient(180deg, rgba(29, 14, 32, 0.98), rgba(11, 8, 18, 0.98));
    font-size: 26px;
    line-height: 1;
    position: relative;
  }
  .shop-perk-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6dffbf 0%, #24b36d 100%);
    color: #04120b;
    font-size: 13px;
    font-weight: 900;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(36, 179, 109, 0.28);
  }
  .shop-perk-count-badge.is-bumping {
    animation: shopCountBump 420ms ease;
  }
  .shop-perk-icon .medkit-cross-icon.is-shop {
    width: 40px;
    height: 40px;
  }
  .shop-perk-meta {
    min-width: 0;
  }
  .shop-perk-title {
    color: #fffaf0;
    font-size: 21px;
    line-height: 1.08;
    font-weight: 800;
  }
  .shop-perk-subtitle {
    margin-top: 6px;
    color: #cfe0e6;
    font-size: 13px;
    line-height: 1.42;
  }
  .shop-perk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .shop-perk-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    align-items: stretch;
    gap: 10px;
    margin-left: auto;
    min-width: min(100%, 240px);
    max-width: 240px;
    width: min(100%, 240px);
  }
  .shop-price-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 56px;
    padding: 12px 18px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ff5a5a 0%, #c72c4b 100%) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2) !important;
    width: 100%;
    flex: 1 1 auto;
  }
  .shop-price-action-value {
    font-size: 18px;
    line-height: 1;
  }
  .shop-price-action-icon {
    font-size: 20px;
    line-height: 1;
  }
  .shop-owned-perks-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(105, 203, 255, 0.34);
    background:
      radial-gradient(circle at top left, rgba(107, 195, 255, 0.18), transparent 38%),
      linear-gradient(180deg, rgba(9, 28, 42, 0.98) 0%, rgba(6, 14, 24, 0.98) 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255,255,255,0.04);
    position: sticky;
    top: 0;
    z-index: 6;
  }
  .shop-owned-perks-label {
    color: #c4ebff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3.2px;
    text-transform: uppercase;
  }
  .shop-owned-perks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .shop-owned-perk-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(132, 205, 255, 0.32);
    background: rgba(13, 28, 42, 0.94);
    color: #f4fbff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  .shop-owned-perk-chip.is-pulsing {
    animation: shopPurchasePulse 420ms ease;
  }
  .shop-owned-perk-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(115, 238, 173, 0.2);
    color: #c8ffe3;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }
  .shop-owned-perk-count.is-bumping {
    animation: shopCountBump 420ms ease;
  }
  .perk-symbol-icon.is-owned-strip,
  .medkit-cross-icon.is-owned-strip {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 18px;
    flex: 0 0 auto;
  }
  .shop-footer-actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: clamp(6px, 1.3dvh, 12px);
    flex-wrap: wrap;
    flex: 0 0 auto;
    padding-top: clamp(6px, 1.6dvh, 14px);
    margin-top: auto;
    background: linear-gradient(180deg, rgba(7, 12, 16, 0), rgba(7, 12, 16, 0.7) 28%, rgba(7, 12, 16, 0.96) 100%);
    min-width: 0;
    max-width: 100%;
  }
  .shop-footer-actions > button {
    min-width: 0;
    max-width: 100%;
  }
  .shop-bottom-ad-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.4dvh, 14px);
    min-width: min(318px, 100%);
    max-width: 100%;
    min-height: clamp(40px, 9dvh, 74px);
    padding: clamp(6px, 1.4dvh, 10px) clamp(10px, 2.4vw, 24px) clamp(6px, 1.4dvh, 10px) clamp(8px, 1.6vw, 14px) !important;
    border-radius: 18px !important;
    border: 2px solid rgba(255, 95, 95, 0.54) !important;
    background:
      radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
      linear-gradient(180deg, #ff5a5a 0%, #ef4259 48%, #c72c4b 100%) !important;
    color: #fff !important;
    text-align: center;
    text-shadow: 0 2px 0 rgba(96, 0, 18, 0.28);
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.12) inset,
      0 0 28px rgba(255, 68, 68, 0.24),
      0 12px 28px rgba(0, 0, 0, 0.2) !important;
  }
  .shop-bottom-ad-button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 38%) top left / 100% 1px no-repeat,
      linear-gradient(90deg, rgba(83, 255, 222, 0.18), transparent 42%, rgba(255,255,255,0.08)) bottom left / 100% 1px no-repeat;
    opacity: 0.86;
    pointer-events: none;
  }
  .shop-bottom-ad-button::after {
    content: '';
    position: absolute;
    inset: -35% auto -35% -62%;
    z-index: 0;
    width: 30%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(126,249,255,0.15), rgba(255,255,255,0.68), rgba(255,92,92,0.16), transparent);
    opacity: 0;
    animation: shopBottomAdShine 6s ease-in-out infinite;
  }
  .shop-bottom-ad-button > .shop-bottom-ad-video-wrap,
  .shop-bottom-ad-button > .shop-bottom-ad-label,
  .shop-bottom-ad-button > .reward-video-icon {
    position: relative;
    z-index: 1;
  }
  .shop-bottom-ad-video-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 6.6dvh, 54px);
    height: clamp(28px, 6.6dvh, 54px);
    border-radius: 16px;
    border: 1px solid rgba(126, 249, 255, 0.28);
    background: rgba(5, 15, 24, 0.72);
    box-shadow: inset 0 0 16px rgba(126, 249, 255, 0.09), 0 0 18px rgba(0, 0, 0, 0.18);
  }
  .shop-bottom-ad-label,
  .shop-bottom-ad-reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .shop-bottom-ad-label {
    gap: 9px;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .shop-bottom-ad-reward {
    gap: 3px;
    color: #fff3c2;
    font-size: clamp(13px, 3.4dvh, 27px);
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 240, 190, 0.18), 0 2px 0 rgba(96, 0, 18, 0.25);
    min-width: 0;
    max-width: 100%;
  }
  .shop-bottom-ad-text {
    color: #ffffff;
    font-size: clamp(12px, 3dvh, 24px);
    font-weight: 900;
    letter-spacing: 0.9px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .shop-bottom-ad-gem {
    margin-left: 0;
    font-size: 0.84em;
    line-height: 1;
  }
  .shop-bottom-ad-video-wrap .reward-video-icon {
    width: clamp(18px, 5dvh, 42px);
    height: clamp(18px, 5dvh, 42px);
    filter: drop-shadow(0 0 10px rgba(126, 249, 255, 0.2));
  }
  .shop-bottom-ad-button:hover:not(:disabled) {
    background:
      radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.22), transparent 36%),
      linear-gradient(180deg, #ff7474 0%, #f34c62 48%, #d33453 100%) !important;
    border-color: rgba(255, 115, 115, 0.72) !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.16) inset,
      0 0 34px rgba(255, 68, 68, 0.34),
      0 14px 30px rgba(0, 0, 0, 0.22) !important;
  }
  .shop-bottom-ad-button.is-loading,
  .shop-bottom-ad-button.is-used,
  .shop-bottom-ad-button.is-claimed,
  .shop-bottom-ad-button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    filter: saturate(0.7);
  }
  .shop-bottom-ad-button.is-loading::after,
  .shop-bottom-ad-button.is-used::after,
  .shop-bottom-ad-button.is-claimed::after,
  .shop-bottom-ad-button:disabled::after {
    animation: none;
  }
  .shop-bottom-ad-button.is-claimed {
    border-color: rgba(126, 255, 202, 0.36) !important;
    background: linear-gradient(180deg, rgba(42, 116, 91, 0.92) 0%, rgba(20, 74, 61, 0.96) 100%) !important;
    color: #effff8 !important;
    box-shadow: 0 0 20px rgba(126, 255, 202, 0.14), inset 0 0 0 1px rgba(255,255,255,0.08) !important;
  }
  .shop-bottom-ad-button.is-claimed .shop-bottom-ad-video-wrap {
    border-color: rgba(126, 255, 202, 0.32);
    background: rgba(4, 21, 18, 0.72);
    box-shadow: inset 0 0 12px rgba(126, 255, 202, 0.08), 0 0 14px rgba(126, 255, 202, 0.1);
  }
  .shop-ad-reward-flyout-layer {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
  }
  .shop-ad-reward-shard {
    position: fixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    color: #fff4c8;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 232, 142, 0.5), 0 2px 0 rgba(40, 10, 0, 0.28);
    filter: drop-shadow(0 0 8px rgba(126, 249, 255, 0.22));
    animation: shopAdRewardFly 1120ms cubic-bezier(.15, .88, .18, 1) forwards;
  }
  .shop-ad-reward-shard.is-amount {
    min-width: 72px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 21, 24, 0.84);
    border: 1px solid rgba(255, 232, 142, 0.34);
    color: #ffe89a;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(255, 210, 106, 0.18), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .map-wrap {
    background: #080c18;
    border: 1px solid #00e5ff22;
    border-radius: 12px;
    padding: 0;
    position: absolute;
    inset: 16px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
  }
  .scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(transparent, #00e5ff18, transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 1;
  }
  .top-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px 6px;
    border-bottom: 1px solid #00e5ff18;
  }
  .hud-title {
    color: #00e5ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .campaign-map-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hud-box {
    border: 1px solid #00e5ff44;
    border-radius: 6px;
    padding: 4px 12px;
    text-align: center;
    background: #0d1425;
  }
  .hud-label {
    font-size: 9px;
    color: #00e5ff88;
    letter-spacing: 2px;
    display: block;
  }
  .hud-val {
    font-size: 14px;
    font-weight: 700;
    color: #00e5ff;
  }
  .prog-wrap {
    padding: 6px 18px 0;
  }
  .prog-label {
    font-size: 9px;
    color: #00e5ff;
    letter-spacing: 2px;
    margin-bottom: 4px;
  }
  .prog-track {
    height: 3px;
    background: #0d1425;
    border-radius: 2px;
    border: 0.5px solid #00e5ff22;
  }
  .prog-fill {
    height: 100%;
    border-radius: 2px;
    background: #00ff88;
    transition: width .6s;
  }
  .campaign-map-viewport {
    position: relative;
    height: calc(100% - 134px);
    overflow: hidden;
    touch-action: none;
    cursor: grab;
  }
  .campaign-map-viewport.is-dragging {
    cursor: grabbing;
  }
  .campaign-map-surface {
    position: absolute;
    left: calc(50% - 940px);
    top: calc(50% - 590px);
    width: 1880px;
    height: 1180px;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
  }
  .campaign-map-surface text,
  .campaign-map-surface button {
    user-select: none;
    -webkit-user-select: none;
  }
  .campaign-map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .campaign-map-link {
    fill: none;
    stroke-width: 1.2;
    stroke-dasharray: 4 6;
    opacity: 0.34;
    stroke: rgba(0, 229, 255, 0.34);
  }
  .campaign-map-link-base {
    opacity: 0.56;
    stroke: rgba(86, 215, 255, 0.68);
    stroke-width: 1.28;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.18));
  }
  .campaign-map-link-base.is-boss-path {
    stroke: rgba(255, 96, 142, 0.64);
    opacity: 0.56;
    filter: drop-shadow(0 0 4px rgba(255, 96, 142, 0.16));
  }
  .campaign-map-link.is-next-outline {
    opacity: 0.38;
    stroke: rgba(22, 118, 255, 0.95);
    stroke-width: 3.2;
    stroke-dasharray: none;
  }
  .campaign-map-link.is-next {
    opacity: 0.95;
    stroke: #00e5ff;
    stroke-width: 1.55;
    stroke-dasharray: 4 6;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.52));
    animation: flow-cyan 1s linear infinite;
  }
  .campaign-map-link.is-completed {
    animation: flow-done 1s linear infinite;
    opacity: 0.96;
    stroke-dasharray: 5 5;
    stroke: #00ff88;
    stroke-width: 1.45;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.34));
  }
  .campaign-map-link.is-boss-path {
    stroke: #ff3366;
    stroke-width: 1.2;
    stroke-dasharray: 5 3;
    opacity: 0.45;
  }
  .campaign-map-link.is-boss-path.is-completed {
    stroke: #00ff88;
  }
  .campaign-map-link.is-boss-path.is-next-outline {
    stroke: rgba(22, 118, 255, 0.95);
  }
  .campaign-map-link.is-boss-path.is-next {
    stroke: #00e5ff;
  }
  .campaign-spin-ring {
    animation: spin-ring 4s linear infinite;
  }
  .campaign-node-ring {
    animation: spin-ring 6.2s linear infinite;
  }
  .campaign-node-ring.delayed {
    animation-delay: .8s;
  }
  .campaign-node-next {
    transform-box: fill-box;
    transform-origin: center;
    animation: next-node-jitter 2.1s ease-in-out infinite;
  }
  .campaign-boss-pulse {
    animation: boss-pulse 2s ease-in-out infinite;
  }
  .campaign-boss-pulse.delayed {
    animation-delay: .5s;
  }
  .node-btn {
    cursor: pointer;
  }
  .node-btn:hover circle,
  .node-btn:hover polygon,
  .node-btn:hover rect,
  .node-btn.is-focused circle,
  .node-btn.is-focused polygon,
  .node-btn.is-focused rect {
    filter: brightness(1.25);
  }
  #info-panel {
    margin: 0;
    padding: 18px 24px 22px;
    border-top: 1px solid #00e5ff18;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #080c18;
    min-height: 92px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
  }
  .campaign-map-service-logo {
    width: 62px;
    min-height: 45px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.2));
  }
  .campaign-map-service-logo.is-hidden,
  .campaign-map-stage-popup-logo.is-hidden,
  .victory-reward-logo.is-hidden,
  .victory-reward-actions .is-hidden {
    display: none;
  }
  #info-text {
    flex: 1;
    min-width: 0;
  }
  #info-text p {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
  #info-name {
    font-size: 22px;
    font-weight: 700;
    color: #00e5ff;
    margin: 0 0 6px;
    letter-spacing: 1.4px;
    font-family: 'Courier New', monospace;
    text-align: left;
    line-height: 1.25;
  }
  #info-desc {
    font-size: 17px;
    color: #7ba3c8;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-align: left;
    max-width: none;
    line-height: 1.45;
  }
  .campaign-map-inline-status {
    margin: 8px 0 0;
    font-size: 13px;
    color: #00e5ff99;
    letter-spacing: 1.3px;
    font-family: 'Courier New', monospace;
    text-align: left;
  }
  .campaign-map-inline-status.is-boss {
    color: #ff6b90;
  }
  .campaign-map-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  #info-btn {
    font-size: 16px;
    padding: 12px 22px;
    letter-spacing: 1.3px;
    border: 1px solid #00e5ff;
    border-radius: 8px;
    background: transparent;
    color: #00e5ff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .15s;
    box-shadow: none;
    min-height: 50px;
  }
  #info-btn:hover {
    background: #00e5ff22;
  }
  #info-btn.is-boss {
    border-color: #ff3366;
    color: #ff6b90;
  }
  #info-btn.is-boss:hover {
    background: rgba(255, 51, 102, 0.14);
  }
  #info-btn[disabled] {
    opacity: 0.42;
    cursor: not-allowed;
  }
  .campaign-map-zoom-btn {
    min-width: 60px;
    min-height: 50px;
    padding: 12px 16px !important;
    border: 1px solid #00e5ff44 !important;
    border-radius: 8px !important;
    background: #0d1425 !important;
    color: #00e5ff !important;
    font-size: 16px !important;
    font-family: 'Courier New', monospace !important;
    box-shadow: none !important;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .campaign-map-nav-btn {
    min-width: 104px;
    padding-inline: 14px !important;
    letter-spacing: 0.4px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.1;
    text-align: center;
  }
  .campaign-map-zoom-btn:hover {
    background: #00e5ff22 !important;
    border-color: #00e5ff !important;
  }
  .campaign-map-stage-popup {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(4, 8, 18, 0.4);
    backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .campaign-map-stage-popup.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .campaign-map-stage-popup-card {
    position: relative;
    width: min(760px, calc(100vw - 56px));
    padding: 28px 28px 26px;
    border-radius: 24px;
    border: 2px solid rgba(0, 229, 255, 0.22);
    background: linear-gradient(180deg, rgba(12, 20, 44, 0.97) 0%, rgba(6, 10, 24, 0.98) 100%);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .campaign-map-stage-popup-logo {
    width: 92px;
    min-height: 100px;
    height: 100px;
    object-fit: contain;
    align-self: center;
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.22));
  }
  .campaign-map-stage-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(10, 18, 36, 0.86);
    color: #86efff;
    font-size: 28px;
    line-height: 1;
    padding: 0;
  }
  .campaign-map-stage-popup-kicker {
    color: #8fdfff;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .campaign-map-stage-popup-title {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 1px;
  }
  .campaign-map-stage-popup-copy {
    margin: 0;
    color: #c8daef;
    font-size: 22px;
    line-height: 1.55;
  }
  .campaign-map-stage-popup-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 6px;
  }
  .campaign-map-stage-popup-actions button {
    min-width: 220px;
    min-height: 58px;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-mono, monospace);
    border: 2px solid rgba(255, 95, 95, 0.46);
    background: linear-gradient(180deg, #ff5a5a 0%, #c72c4b 100%);
    color: #fff;
    box-shadow: 0 0 24px rgba(255, 68, 68, 0.22);
    cursor: pointer;
  }
  .campaign-map-stage-popup-actions button:hover {
    background: linear-gradient(180deg, #ff7676 0%, #d83859 100%);
  }
  .campaign-map-stage-popup-actions button.is-boss {
    border-color: rgba(255, 51, 102, 0.56);
    background: linear-gradient(180deg, #ff6684 0%, #ba244f 100%);
    box-shadow: 0 0 28px rgba(255, 51, 102, 0.22);
  }
  .campaign-map-stage-popup-actions button[disabled] {
    border-color: rgba(133, 149, 168, 0.26);
    background: linear-gradient(180deg, rgba(18, 24, 34, 0.94), rgba(10, 14, 20, 0.98));
    color: #aeb9c7;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.92;
  }
  .campaign-map-stage-popup-lock-note {
    margin: 2px 0 0;
    color: #ffc98f;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
  }
  .campaign-map-stage-popup-lock-note.is-hidden {
    display: none;
  }
  .campaign-map-stage-popup-actions .secondary {
    border: 2px solid rgba(0, 217, 255, 0.4);
    background: linear-gradient(180deg, #1f2452 0%, #101634 100%);
    color: #7ef9ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  .campaign-map-stage-popup-actions .secondary:hover {
    background: linear-gradient(180deg, #253070 0%, #131d46 100%);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  #overlay.victory-reward-screen {
    background:
      radial-gradient(circle at top, rgba(34, 102, 82, 0.26), transparent 40%),
      linear-gradient(180deg, rgba(4, 16, 22, 0.88), rgba(2, 8, 12, 0.96));
  }
  #overlay.victory-reward-screen,
  #overlay.defeat-screen {
    padding: clamp(6px, 2dvh, 24px);
  }
  #overlay.victory-reward-screen .overlay-panel,
  #overlay.defeat-screen .overlay-panel {
    max-height: 100%;
    padding: clamp(8px, 2.6dvh, 32px) clamp(10px, 3vw, 36px);
    gap: clamp(6px, 1.8dvh, 16px);
    justify-content: center;
    overflow: hidden;
  }
  #overlay.victory-reward-screen h2,
  #overlay.defeat-screen h2 {
    font-size: clamp(18px, 6.2dvh, 56px);
    line-height: 1.05;
    letter-spacing: clamp(0.8px, 0.7dvh, 6px);
  }
  #overlay.victory-reward-screen p,
  #overlay.defeat-screen p {
    font-size: clamp(11px, 2.6dvh, 24px);
    line-height: 1.32;
  }
  #overlay.victory-reward-screen .big,
  #overlay.defeat-screen .big {
    font-size: clamp(14px, 4dvh, 34px);
    line-height: 1.12;
  }
  #overlay.victory-reward-screen button,
  #overlay.defeat-screen button {
    width: min(320px, 100%);
    min-width: 0;
    min-height: clamp(34px, 7.4dvh, 56px);
    padding: clamp(7px, 1.8dvh, 14px) clamp(10px, 2.4vw, 22px);
    font-size: clamp(11px, 3dvh, 19px);
    line-height: 1;
  }
  #overlay.victory-reward-screen .reward-claim-btn,
  #overlay.victory-reward-screen .victory-reward-actions .ghost,
  #overlay.defeat-screen .reward-claim-btn,
  #overlay.defeat-screen button[data-action="start-game"],
  #overlay.defeat-screen button[data-action="open-shop"] {
    width: min(320px, 100%);
    min-width: 0;
    max-width: 100%;
  }
  .victory-reward-panel {
    border-color: rgba(112, 255, 208, 0.34);
    gap: 16px;
  }
  .victory-reward-close-copy {
    align-self: flex-end;
    color: #8fcfda;
    font-size: clamp(9px, 1.8dvh, 12px);
    letter-spacing: clamp(0.5px, 0.16dvh, 1px);
    text-transform: uppercase;
    margin-bottom: clamp(-6px, -0.8dvh, 0px);
  }
  .victory-reward-kicker {
    color: #8fffe0;
    font-size: clamp(9px, 2dvh, 14px);
    letter-spacing: clamp(0.6px, 0.5dvh, 3px);
    text-transform: uppercase;
  }
  .victory-reward-logo {
    width: auto;
    height: auto;
    min-height: 0;
    max-height: clamp(34px, 15dvh, 132px);
    max-width: 100%;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(98, 255, 205, 0.22));
  }
  .victory-reward-copy {
    color: #d4e6eb;
    font-size: clamp(11px, 2.4dvh, 18px);
    line-height: 1.32;
    text-align: center;
  }
  .victory-reward-bar {
    position: relative;
    width: min(560px, 100%);
    height: clamp(26px, 7dvh, 46px);
    min-height: 0;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(131, 241, 255, 0.18);
    background:
      linear-gradient(90deg, rgba(255, 184, 92, 0.24) 0 50%, rgba(111, 255, 206, 0.26) 50% 80%, rgba(255, 107, 194, 0.3) 80% 100%),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 34px),
      linear-gradient(180deg, rgba(8, 18, 28, 0.92), rgba(6, 12, 22, 0.96));
    box-shadow: inset 0 0 22px rgba(0,0,0,0.22), 0 0 26px rgba(73, 232, 255, 0.1);
  }
  .victory-reward-band {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fffdf6;
    font-size: clamp(10px, 2.4dvh, 18px);
    font-weight: 700;
    letter-spacing: 1px;
  }
  .victory-reward-band.band-low { left: 0; width: 50%; }
  .victory-reward-band.band-mid { left: 50%; width: 30%; }
  .victory-reward-band.band-high { left: 80%; width: 20%; }
  .victory-reward-runner {
    position: absolute;
    top: 50%;
    left: 0;
    width: clamp(10px, 2.6dvh, 22px);
    height: calc(100% + clamp(8px, 2.6dvh, 18px));
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #aef8ff 45%, #fff1a8 100%);
    box-shadow: 0 0 22px rgba(255,255,255,0.44), 0 0 36px rgba(120, 244, 255, 0.24);
  }
  .reward-claim-btn {
    min-width: 270px;
    width: min(320px, 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    line-height: 1;
  }
  .reward-claim-btn > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1em;
  }
  @media (max-width: 1180px) {
    #overlay.victory-reward-screen .reward-claim-btn > span[data-victory-reward-amount],
    #overlay.defeat-screen .reward-claim-btn > span[data-defeat-reward-amount] {
      font-size: 1.7em;
    }
  }
  #overlay.victory-reward-screen .victory-reward-actions .ghost {
    width: min(320px, 100%);
    min-width: 270px;
    min-height: clamp(34px, 7.4dvh, 56px);
    padding: clamp(7px, 1.8dvh, 14px) clamp(10px, 2.4vw, 22px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #7f8da3;
    font-size: clamp(11px, 3dvh, 19px);
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: none;
  }
  #overlay.victory-reward-screen .victory-reward-actions .ghost:hover {
    background: rgba(255,255,255,0.06);
  }
  #overlay.victory-reward-screen .victory-reward-actions .ghost.next-step {
    width: min(320px, 100%);
    min-width: 270px;
    min-height: clamp(34px, 7.4dvh, 56px);
    padding: clamp(7px, 1.8dvh, 14px) clamp(10px, 2.4vw, 22px);
    font-size: clamp(11px, 3dvh, 19px);
  }
  #overlay.victory-reward-screen .victory-reward-actions .ghost.shop-entry {
    width: min(320px, 100%);
    min-width: 270px;
    min-height: clamp(34px, 7.4dvh, 56px);
    padding: clamp(7px, 1.8dvh, 14px) clamp(10px, 2.4vw, 22px);
    border: none;
    background: linear-gradient(180deg, #ff5a5a 0%, #c72c4b 100%);
    color: #fff;
    box-shadow: 0 0 24px rgba(255, 68, 68, 0.22);
  }
  #overlay.victory-reward-screen .victory-reward-actions .ghost.shop-entry:hover {
    background: linear-gradient(180deg, #ff7676 0%, #d83859 100%);
  }
  .victory-reward-actions {
    display: flex;
    gap: clamp(5px, 1.2dvh, 10px);
    flex-direction: column;
    align-items: center;
  }
  #overlay.victory-reward-screen .victory-reward-actions,
  #overlay.defeat-screen .defeat-reward-actions {
    width: 100%;
  }
  #overlay.victory-reward-screen .victory-reward-actions .reward-claim-btn {
    background: linear-gradient(180deg, #ff5a5a 0%, #c72c4b 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    min-height: clamp(34px, 8dvh, 58px);
    padding: clamp(7px, 2.2dvh, 18px) clamp(10px, 3vw, 40px);
    font-size: clamp(12px, 4dvh, 28px);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-mono, monospace);
    letter-spacing: 2px;
    box-shadow: 0 0 24px rgba(255, 68, 68, 0.28);
  }
  #overlay.defeat-screen .reward-claim-btn {
    background: linear-gradient(180deg, #ff5a5a 0%, #c72c4b 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    min-height: clamp(34px, 8dvh, 58px);
    padding: clamp(7px, 2.2dvh, 18px) clamp(10px, 3vw, 40px);
    font-size: clamp(12px, 4dvh, 28px);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-mono, monospace);
    letter-spacing: 2px;
    box-shadow: 0 0 24px rgba(255, 68, 68, 0.28);
  }
  #overlay.defeat-screen .reward-claim-btn:hover {
    background: linear-gradient(180deg, #ff7676 0%, #d83859 100%);
  }
  #overlay.victory-reward-screen .victory-reward-actions .reward-claim-btn:hover {
    background: linear-gradient(180deg, #ff7676 0%, #d83859 100%);
  }
  #overlay.victory-reward-screen .victory-reward-actions .reward-claim-btn.is-claimed,
  #overlay.defeat-screen .reward-claim-btn.is-claimed {
    background: linear-gradient(180deg, #4be08f 0%, #1d9b57 100%);
    color: #f4fff8;
    box-shadow: 0 0 22px rgba(74, 224, 143, 0.24);
    cursor: default;
  }
  #overlay.victory-reward-screen .victory-reward-actions .ghost.is-claimed {
    background: linear-gradient(180deg, #4be08f 0%, #1d9b57 100%);
    color: #f4fff8;
    box-shadow: 0 0 18px rgba(74, 224, 143, 0.2);
    border: none;
  }
  .reward-video-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
    align-self: center;
  }
  .reward-popup-burst {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
  }
  .reward-popup-confetti {
    position: absolute;
    width: 12px;
    height: 18px;
    border-radius: 4px;
    opacity: 0;
    animation: reward-confetti-fall 950ms ease-out forwards;
    transform-origin: center;
  }
  @keyframes reward-confetti-fall {
    0% {
      opacity: 0;
      transform: translate(var(--burst-x), var(--burst-y)) rotate(0deg) scale(0.72);
    }
    12% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translate(calc(var(--burst-x) + var(--travel-x)), calc(var(--burst-y) + var(--travel-y))) rotate(var(--spin)) scale(1);
    }
  }
  @keyframes shopFadeIn {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes shopPurchasePulse {
    0% {
      transform: translateY(0) scale(1);
      box-shadow: 0 0 0 rgba(98, 255, 205, 0);
    }
    35% {
      transform: translateY(-4px) scale(1.015);
      box-shadow: 0 0 28px rgba(98, 255, 205, 0.22);
    }
    100% {
      transform: translateY(0) scale(1);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    }
  }
  @keyframes shopCountBump {
    0% {
      transform: scale(1);
    }
    35% {
      transform: scale(1.28);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes shopSlideInNext {
    from {
      opacity: 0;
      transform: translate3d(56px, 0, 0) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
  @keyframes shopSlideInPrev {
    from {
      opacity: 0;
      transform: translate3d(-56px, 0, 0) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
  @keyframes shopDeviceFloat {
    0%, 100% {
      transform: translate3d(0, 0, 0) rotate(-7deg);
    }
    25% {
      transform: translate3d(10px, -10px, 0) rotate(-4deg);
    }
    60% {
      transform: translate3d(-8px, 12px, 0) rotate(-9deg);
    }
  }
  @keyframes shopFlightLines {
    0% {
      transform: translateX(-12%);
    }
    100% {
      transform: translateX(12%);
    }
  }
  @keyframes shopBottomAdShine {
    0%, 69% {
      left: -62%;
      opacity: 0;
    }
    73% {
      opacity: 0.72;
    }
    83%, 100% {
      left: 128%;
      opacity: 0;
    }
  }
  @keyframes shopAdRewardFly {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) translate(0, 0) scale(0.58) rotate(0deg);
    }
    13% {
      opacity: 1;
      transform: translate(-50%, -50%) translate(var(--scatter-x), var(--scatter-y)) scale(1.16) rotate(var(--spin));
    }
    42% {
      opacity: 1;
      transform: translate(-50%, -50%) translate(calc(var(--scatter-x) * 0.62), calc(var(--scatter-y) * 1.05 - 18px)) scale(1) rotate(var(--spin));
    }
    82% {
      opacity: 0.96;
      transform: translate(-50%, -50%) translate(var(--travel-x), var(--travel-y)) scale(0.72) rotate(0deg);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -50%) translate(var(--travel-x), var(--travel-y)) scale(0.32) rotate(0deg);
    }
  }
  @keyframes shopCreditRewardArrived {
    0% {
      transform: scale(1);
      box-shadow: none;
    }
    34% {
      transform: scale(1.14);
      border-color: rgba(255, 232, 142, 0.58);
      box-shadow: 0 0 28px rgba(255, 210, 106, 0.34), 0 0 18px rgba(126, 249, 255, 0.14);
    }
    68% {
      transform: scale(0.98);
    }
    100% {
      transform: scale(1);
      box-shadow: none;
    }
  }
  @keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400px); }
  }
  @keyframes flow-done {
    to { stroke-dashoffset: -20; }
  }
  @keyframes flow-cyan {
    to { stroke-dashoffset: -20; }
  }
  @keyframes spin-ring {
    to { stroke-dashoffset: -60; }
  }
  @keyframes boss-pulse {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
  }
  @keyframes glitch {
    0%, 100% {
      opacity: 1;
      filter: brightness(1) saturate(1);
    }
    47% {
      opacity: .3;
      filter: brightness(1.12) saturate(0.95);
    }
    51% {
      opacity: 1;
      filter: brightness(1.24) saturate(0.92);
    }
    83% {
      opacity: .5;
      filter: brightness(1.08) saturate(0.96);
    }
  }
  @keyframes next-node-jitter {
    0%, 100% { transform: scale(1); }
    28% { transform: scale(1.02); }
    54% { transform: scale(1.032); }
    78% { transform: scale(1.014); }
  }
  @media (max-width: 980px) {
    #overlay.shop-screen .overlay-panel.shop-panel {
      width: min(100vw - 18px, 1120px);
      max-height: calc(100dvh - 18px);
      padding: 20px;
    }
    .shop-main {
      min-height: 60%;
    }
    .shop-feature-shell {
      grid-template-columns: minmax(0, 1fr);
    }
    .shop-feature-media {
      min-height: 290px;
    }
    .shop-device-image-float {
      width: min(62%, 380px);
      top: 16%;
    }
    .shop-vpn-image-full {
      padding: 10px;
    }
    .shop-perk-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .map-wrap {
      inset: 10px;
    }
    .campaign-map-viewport {
      height: calc(100% - 146px);
    }
  }
  @media (max-width: 640px) {
    #top-utility-bar {
      left: 12px;
      top: 132px;
      gap: 8px;
    }
    .utility-group-left {
      gap: 8px;
    }
    .utility-icon {
      width: 52px;
      height: 52px;
      border-radius: 16px;
      font-size: 24px;
    }
    .controls-hint {
      width: 100%;
      order: 3;
      margin-right: 0;
      text-align: center;
      font-size: 16px;
      white-space: normal;
    }
    .utility-icon-soundbar {
      margin-left: 0;
      width: 52px;
      height: 52px;
      min-width: 52px;
      min-height: 52px;
      border-radius: 16px;
      font-size: 22px;
    }
    #overlay {
      padding: 10px;
    }
    #overlay.shop-screen .overlay-panel.shop-panel {
      width: calc(100vw - 12px);
      max-height: calc(100dvh - 12px);
      padding: 14px;
      border-radius: 22px;
      gap: 12px;
    }
    .shop-main {
      gap: 10px;
      min-height: 60%;
    }
    .campaign-map-kicker {
      font-size: 11px;
      letter-spacing: 2px;
    }
    #overlay.shop-screen h2 {
      font-size: 34px;
      letter-spacing: 3px;
    }
    #overlay.shop-screen .campaign-map-copy {
      font-size: 15px;
      line-height: 1.45;
    }
    .shop-topline {
      gap: 8px;
    }
    .shop-credit-chip {
      padding: 8px 12px;
      font-size: 12px;
    }
    .shop-upgrade-focus {
      padding: 12px 14px;
    }
    .shop-upgrade-focus-copy {
      font-size: 13px;
      line-height: 1.4;
    }
    .shop-tabs {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .shop-tab {
      min-height: 52px;
      font-size: 13px;
      letter-spacing: 1px;
      gap: 6px;
      padding: 8px 10px;
    }
    .shop-tab span:first-child {
      font-size: 16px;
    }
    .shop-perk-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .shop-feature-card {
      padding: 12px;
    }
    .shop-feature-media {
      min-height: 172px;
      border-radius: 18px;
    }
    .shop-device-image-float {
      width: min(62%, 230px);
      right: 6%;
      top: 18%;
    }
    .shop-vpn-image-full {
      padding: 14px 14px 58px;
    }
    .shop-vpn-overlay-copy {
      padding: 14px;
    }
    .shop-vpn-caption {
      font-size: 11px;
      max-width: 78%;
    }
    .shop-stage-badge {
      top: 10px;
      left: 10px;
      min-height: 30px;
      padding: 5px 10px;
      font-size: 9px;
      letter-spacing: 1px;
    }
    .shop-hero-title {
      font-size: 24px;
      letter-spacing: 1px;
    }
    .shop-hero-copy {
      font-size: 14px;
      line-height: 1.42;
    }
    .shop-hero-title-row {
      flex-direction: column;
      align-items: flex-start;
    }
    .shop-price-chip,
    .shop-max-chip {
      padding: 8px 12px;
      font-size: 14px;
    }
    .shop-price-value,
    .shop-price-icon {
      font-size: 15px;
    }
    .shop-stat-grid {
      grid-template-columns: minmax(0, 1fr);
      gap: 8px;
    }
    .shop-stat-grid.is-device-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shop-stat-pill {
      min-height: 56px;
      padding: 8px 10px;
      border-radius: 16px;
    }
    .shop-stat-emoji {
      font-size: 20px;
    }
    .shop-stat-value {
      font-size: 16px;
    }
    .shop-note-panel {
      padding: 12px;
      gap: 4px;
    }
    .shop-note-copy {
      font-size: 13px;
      line-height: 1.38;
    }
    .shop-carousel-peek {
      gap: 8px;
      margin-top: 8px;
    }
    .shop-peek-card {
      width: 62px;
      border-radius: 14px !important;
      padding: 8px !important;
    }
    .shop-peek-image {
      inset: 8px 8px 26px;
      width: calc(100% - 16px);
      height: calc(100% - 34px);
    }
    .shop-peek-label {
      font-size: 9px;
    }
    .shop-perk-head {
      grid-template-columns: auto minmax(0, 1fr);
      gap: 10px;
    }
    .shop-perk-card {
      padding: 14px;
      border-radius: 20px;
      gap: 10px;
    }
    .shop-perk-icon {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      font-size: 22px;
    }
    .shop-perk-title {
      font-size: 18px;
    }
    .shop-perk-subtitle {
      font-size: 12px;
      line-height: 1.35;
    }
    .shop-perk-footer {
      align-items: stretch;
    }
    .shop-perk-actions {
      width: 100%;
      margin-left: 0;
      justify-content: space-between;
    }
    .shop-price-action,
    .shop-video-button.is-inline {
      flex: 1 1 0;
      width: auto;
    }
    .shop-video-button.is-inline {
      min-width: 56px;
    }
    .shop-footer-actions {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      padding-top: 10px;
    }
    .shop-footer-actions button,
    .shop-feature-actions button,
    .shop-feature-actions .shop-action-chip,
    .shop-feature-actions .shop-video-button,
    .shop-perk-actions button {
      width: 100%;
    }
    .shop-owned-perks-strip {
      top: -4px;
    }
    .shop-bottom-ad-button {
      min-width: 0;
      min-height: 58px;
      padding: 8px 14px 8px 10px !important;
      gap: 10px;
      border-radius: 14px !important;
    }
    .shop-bottom-ad-video-wrap {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      flex: 0 0 38px;
    }
    .shop-bottom-ad-video-wrap .reward-video-icon {
      width: 28px;
      height: 28px;
    }
    .shop-bottom-ad-label {
      gap: 6px;
      flex-wrap: wrap;
    }
    .shop-bottom-ad-text {
      font-size: 16px;
      letter-spacing: 0.3px;
    }
    .shop-bottom-ad-reward {
      font-size: 19px;
      flex-wrap: wrap;
    }
    .shop-feature-actions,
    .shop-perk-actions {
      gap: 8px;
    }
    .shop-feature-actions > button,
    .shop-feature-actions > .shop-action-chip,
    .shop-price-action {
      min-height: 48px;
      font-size: 14px !important;
      padding: 10px 12px !important;
      letter-spacing: 0.4px !important;
      white-space: normal;
      line-height: 1.18;
      text-align: center;
    }
    .shop-action-chip.is-muted {
      font-size: 13px;
      padding: 10px 12px;
      line-height: 1.2;
      text-align: center;
    }
    .shop-video-button {
      min-height: 48px;
      font-size: 14px !important;
      padding: 10px 12px !important;
    }
    .shop-video-button .reward-video-icon {
      width: 20px;
      height: 20px;
    }
    .shop-price-action-value,
    .shop-price-action-icon {
      font-size: 15px;
    }
    #top-utility-bar {
      top: 94px;
    }
    .map-wrap {
      inset: 0;
      border-radius: 0;
      border-left: none;
      border-right: none;
    }
    .top-hud {
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
    }
    #info-panel {
      flex-direction: column;
      align-items: stretch;
    }
    .campaign-map-inline-actions {
      justify-content: flex-start;
    }
  }
  #overlay h2 {
    color: #ff5c5c;
    font-size: 56px;
    letter-spacing: 6px;
    text-shadow: 0 0 24px rgba(255, 68, 68, 0.35);
    width: 100%;
    text-align: center;
  }
  #overlay p {
    color: #c3c9e6;
    font-size: 24px;
    text-align: center;
    max-width: 760px;
    line-height: 1.7;
  }
  #overlay .big {
    font-size: 34px;
    color: #00e5ff;
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
  }
  #overlay button {
    background: linear-gradient(180deg, #ff5a5a 0%, #c72c4b 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px 40px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-mono, monospace);
    letter-spacing: 2px;
    box-shadow: 0 0 24px rgba(255, 68, 68, 0.28);
  }
  #overlay button:hover { background: linear-gradient(180deg, #ff7676 0%, #d83859 100%); }
  #confirm-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(4, 8, 18, 0.46);
    backdrop-filter: blur(10px);
    z-index: 6;
    opacity: 1;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  #orientation-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 8, 18, 0.7);
    backdrop-filter: blur(12px);
    z-index: 7;
    opacity: 1;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  #orientation-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #orientation-overlay .orientation-panel {
    width: min(560px, calc(100vw - 32px));
    border-color: rgba(0, 229, 255, 0.26);
    background: linear-gradient(180deg, rgba(10, 18, 40, 0.95) 0%, rgba(4, 8, 20, 0.98) 100%);
    gap: 16px;
  }
  .orientation-kicker {
    color: #8ceeff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .orientation-title {
    color: #8ceeff;
    text-shadow: 0 0 18px rgba(140, 238, 255, 0.2);
    margin: 0;
  }
  .orientation-copy {
    margin: 0;
    color: #cfe6f2;
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
    max-width: 30ch;
  }
  .orientation-visual {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    border: 1px solid rgba(140, 238, 255, 0.14);
    background: radial-gradient(circle at top, rgba(140, 238, 255, 0.16), rgba(10, 16, 34, 0.92) 72%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 14px 28px rgba(0, 0, 0, 0.3);
  }
  .orientation-phone {
    width: 92px;
    height: auto;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.34));
    animation: orientation-phone-rotate 1.8s ease-in-out infinite;
    transform-origin: 50% 50%;
  }
  #orientation-overlay.is-ready .orientation-phone {
    animation: none;
    transform: rotate(90deg);
  }
  .orientation-ready-copy {
    color: #aef8da;
    font-size: 16px;
    text-align: center;
  }
  .orientation-ready-copy.is-hidden {
    display: none;
  }
  #orientation-overlay [data-orientation-continue] {
    min-width: 220px;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: 16px;
    border: 2px solid rgba(0, 217, 255, 0.42);
    background: linear-gradient(180deg, #1f2452 0%, #101634 100%);
    color: #7ef9ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  #orientation-overlay [data-orientation-continue]:hover {
    background: linear-gradient(180deg, #253070 0%, #131d46 100%);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  #orientation-overlay.is-locked [data-orientation-continue],
  #orientation-overlay.is-locked .orientation-ready-copy {
    display: none !important;
  }
  #orientation-overlay.is-ready [data-orientation-continue] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    animation: orientation-continue-appear 220ms ease-out;
  }
  @keyframes orientation-phone-rotate {
    0% { transform: rotate(0deg) scale(0.96); }
    20% { transform: rotate(0deg) scale(1); }
    55% { transform: rotate(90deg) scale(1); }
    100% { transform: rotate(90deg) scale(0.98); }
  }
  @keyframes orientation-continue-appear {
    0% {
      opacity: 0;
      transform: translateY(6px) scale(0.98);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  #confirm-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #confirm-overlay .overlay-panel {
    width: min(560px, calc(100vw - 48px));
    gap: 0;
    padding: 0;
    border-radius: 24px;
    border: 2px solid #2a2a58;
    background: linear-gradient(180deg, rgba(18, 24, 52, 0.96) 0%, rgba(8, 12, 28, 0.98) 100%);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    overflow: hidden;
  }
  .confirm-body {
    padding: 30px 30px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .confirm-kicker {
    color: #8b93b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .confirm-title {
    width: 100%;
    color: #ff5c5c;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 0 18px rgba(255, 68, 68, 0.22);
    margin: 0;
  }
  .confirm-copy {
    color: #c3c9e6;
    font-size: 21px;
    line-height: 1.6;
    text-align: center;
    max-width: 30ch;
    margin: 0;
  }
  .confirm-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 24px 26px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(0,0,0,0.05) 100%);
  }
  .confirm-actions button {
    min-width: 220px;
    padding: 18px 30px;
    border-radius: 16px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-mono, monospace);
  }
  .confirm-actions .secondary,
  .confirm-actions .danger {
    border: 2px solid #00d9ff66;
  }
  .confirm-actions .secondary {
    background: linear-gradient(180deg, #1f2452 0%, #101634 100%);
    color: #7ef9ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  .confirm-actions .secondary:hover {
    background: linear-gradient(180deg, #253070 0%, #131d46 100%);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .confirm-actions .danger {
    background: linear-gradient(180deg, #1f2452 0%, #101634 100%);
    color: #7ef9ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  .confirm-actions .danger:hover {
    background: linear-gradient(180deg, #253070 0%, #131d46 100%);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  #loading-screen {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
      radial-gradient(circle at top, rgba(18, 34, 72, 0.52), transparent 48%),
      linear-gradient(180deg, #050814 0%, #080b1d 48%, #03050d 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 420ms ease, visibility 420ms ease;
  }
  #loading-screen::before,
  #loading-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  #loading-screen::before {
    background:
      linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.08) 30%, transparent 52%),
      repeating-linear-gradient(0deg, rgba(120, 170, 255, 0.06) 0 1px, transparent 1px 42px),
      repeating-linear-gradient(90deg, rgba(120, 170, 255, 0.06) 0 1px, transparent 1px 58px);
    opacity: 0.42;
    animation: loading-grid-drift 9s linear infinite;
  }
  #loading-screen::after {
    background:
      radial-gradient(circle at 20% 30%, rgba(0,229,255,0.22) 0 2px, transparent 3px),
      radial-gradient(circle at 68% 42%, rgba(255,92,92,0.2) 0 2px, transparent 3px),
      radial-gradient(circle at 82% 68%, rgba(138,255,255,0.18) 0 2px, transparent 3px),
      radial-gradient(circle at 36% 78%, rgba(0,229,255,0.22) 0 2px, transparent 3px);
    background-size: 100% 100%;
    opacity: 0.9;
    animation: loading-pulse-network 3.4s ease-in-out infinite;
  }
  #loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  @media (max-width: 1180px) {
    #hud {
      padding: 14px 18px;
      gap: 14px;
    }
    #hud .title {
      font-size: 28px;
      letter-spacing: 3px;
    }
    #hud .stats {
      width: 100%;
      gap: 12px;
    }
    #hud .stat {
      flex: 1 1 180px;
      min-width: 0;
      padding: 12px 14px;
    }
    #controls {
      padding: 14px 18px;
      min-height: 92px;
    }
    #controls-content {
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
    }
    #controls button {
      min-width: 180px;
      font-size: 20px;
      padding: 14px 22px;
    }
    .controls-hint {
      order: 3;
      width: 100%;
      margin-right: 0;
      text-align: center;
      white-space: normal;
    }
  }
  @media (max-width: 900px) {
    #hud {
      align-items: stretch;
      justify-content: flex-start;
    }
    #hud .title {
      width: 100%;
      text-align: center;
      font-size: 24px;
    }
    #hud .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      width: 100%;
    }
    #hud .stat {
      padding: 10px 12px;
      border-radius: 14px;
    }
    #hud .stat-label {
      font-size: 11px;
      letter-spacing: 1.4px;
    }
    #hud .stat-value {
      font-size: 19px;
    }
    #top-utility-bar {
      right: auto;
      left: 12px;
      top: 12px;
      bottom: auto;
      left: 12px;
      justify-content: flex-start;
      gap: 10px;
    }
    .utility-group {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    .utility-group-left {
      gap: 8px;
    }
    .utility-icon {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      font-size: 26px;
    }
    #alice-guide {
      gap: 10px;
      max-width: calc(100vw - 20px);
      top: auto;
      left: auto;
      right: 10px;
      bottom: 10px;
      align-items: flex-end;
      transform: translateY(120%);
    }
    #alice-guide.is-visible {
      transform: translateY(0);
    }
    .alice-avatar-wrap {
      width: 64px;
      flex-basis: 64px;
    }
    .alice-bubble {
      margin-top: 0;
      min-width: 0;
      max-width: min(236px, calc(100vw - 92px));
      padding: 10px 12px;
      transform: none;
    }
    .alice-text {
      min-height: 34px;
      font-size: 12px;
      line-height: 1.3;
    }
    .overlay-panel {
      width: min(760px, calc(100vw - 24px));
      padding: 18px 16px;
      border-radius: 20px;
      gap: 12px;
      max-height: calc(100dvh - 24px);
    }
    #overlay h2 {
      font-size: 28px;
      letter-spacing: 2px;
    }
    #overlay p {
      font-size: 15px;
      line-height: 1.4;
    }
    #overlay button {
      width: min(100%, 420px);
      min-height: 46px;
      padding: 10px 12px;
      font-size: 15px;
      letter-spacing: 0.8px;
    }
    .campaign-map-stage-popup-card {
      width: min(760px, calc(100vw - 28px));
      padding: 24px 20px 20px;
    }
    .campaign-map-stage-popup-title {
      font-size: 28px;
    }
    .campaign-map-stage-popup-copy {
      font-size: 18px;
      line-height: 1.45;
    }
    .campaign-map-stage-popup-actions {
      justify-content: stretch;
    }
    .campaign-map-stage-popup-actions button {
      flex: 1 1 240px;
      min-width: 0;
    }
    .victory-reward-copy {
      font-size: 14px;
      line-height: 1.4;
    }
    .victory-reward-bar {
      height: 34px;
    }
    .victory-reward-band {
      font-size: 12px;
      letter-spacing: 0.5px;
    }
    .victory-reward-runner {
      width: 14px;
      height: 44px;
    }
    .victory-reward-panel {
      gap: 12px;
    }
    .victory-reward-close-copy,
    .victory-reward-kicker {
      font-size: 11px;
    }
    .reward-claim-btn,
    #overlay.victory-reward-screen .victory-reward-actions .ghost,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.next-step,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.shop-entry {
      width: 100%;
      min-width: 0;
      min-height: 52px;
      font-size: 17px;
      padding: 12px 16px;
    }
    #overlay.victory-reward-screen .victory-reward-actions .reward-claim-btn,
    #overlay.defeat-screen .reward-claim-btn {
      width: 100%;
      min-width: 0;
      font-size: 20px;
      padding: 14px 18px;
      border-radius: 14px;
      letter-spacing: 1px;
    }
    #overlay.defeat-screen {
      align-items: flex-start;
      justify-content: flex-start;
      overflow: hidden;
    }
    #overlay.defeat-screen .overlay-panel {
      width: min(100%, calc(100vw - 16px));
      margin: auto;
      padding: 12px 12px;
      gap: 8px;
      max-height: calc(100dvh - 16px);
      overflow: hidden;
    }
    #overlay.defeat-screen h2 {
      font-size: 20px;
      letter-spacing: 1px;
    }
    #overlay.defeat-screen .big {
      font-size: 16px;
    }
    #overlay.defeat-screen p {
      font-size: 12px;
      line-height: 1.28;
    }
    #confirm-overlay {
      padding: 18px;
    }
    #confirm-overlay .overlay-panel {
      width: min(560px, calc(100vw - 24px));
    }
    .confirm-title {
      font-size: 30px;
    }
    .confirm-copy {
      font-size: 17px;
      max-width: none;
    }
    .confirm-actions button {
      min-width: 180px;
      font-size: 20px;
      padding: 16px 20px;
    }
    .loading-panel {
      width: min(720px, calc(100vw - 24px));
      padding: 26px 22px;
      border-radius: 24px;
    }
    .loading-title {
      font-size: 36px;
      letter-spacing: 4px;
    }
    .loading-subtitle {
      font-size: 16px;
      line-height: 1.5;
    }
    .loading-meta {
      align-items: flex-end;
      flex-wrap: wrap;
    }
    .loading-percent {
      font-size: 24px;
    }
  }
  @media (max-width: 760px) {
    #hud {
      padding: 10px 10px 12px;
      gap: 10px;
    }
    #hud .title {
      font-size: 20px;
      letter-spacing: 2px;
    }
    #hud .stats {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    #hud .stat {
      padding: 8px 10px;
    }
    #hud .stat-value {
      font-size: 18px;
    }
    #controls {
      padding: 10px 12px;
      min-height: 86px;
    }
    #controls-content {
      gap: 10px;
    }
    #controls button {
      flex: 1 1 calc(50% - 10px);
      min-width: 0;
      font-size: 18px;
      padding: 14px 16px;
      border-radius: 14px;
    }
    .controls-hint {
      font-size: 14px;
      line-height: 1.35;
    }
    .utility-icon-soundbar {
      margin-left: 0;
      width: 54px;
      height: 54px;
      min-width: 54px !important;
      max-width: 54px !important;
      min-height: 54px;
      border-radius: 16px;
      font-size: 22px;
    }
    #alice-guide {
      top: auto;
      bottom: 10px;
      left: auto;
      right: 10px;
      max-width: min(420px, calc(100vw - 20px));
      transform: translateY(120%);
      gap: 8px;
      align-items: flex-end;
    }
    #alice-guide.is-visible {
      transform: translateY(0);
    }
    .alice-avatar-wrap {
      width: clamp(92px, 18vw, 130px);
      flex-basis: clamp(92px, 18vw, 130px);
    }
    .alice-bubble {
      margin-top: 0;
      min-width: 0;
      width: min(100%, 520px);
      max-width: none;
      padding: 14px 16px 14px 16px;
      border-radius: 22px 20px 24px 18px;
      transform: none;
    }
    .alice-bubble::before,
    .alice-bubble::after {
      display: none;
    }
    .alice-name {
      margin-bottom: 6px;
      font-size: 12px;
    }
    .alice-text {
      min-height: 52px;
      font-size: 14px;
      line-height: 1.4;
    }
    .alice-close {
      width: 30px;
      height: 30px;
      font-size: 16px;
    }
    .overlay-panel {
      width: min(100%, calc(100vw - 18px));
      padding: 18px 16px;
      border-radius: 20px;
      gap: 14px;
    }
    #overlay {
      padding: 9px;
    }
    #overlay h2 {
      font-size: 30px;
      letter-spacing: 2px;
    }
    #overlay p {
      font-size: 16px;
      line-height: 1.45;
    }
    #overlay .big {
      font-size: 24px;
    }
    #overlay button {
      width: 100%;
      min-width: 0;
      font-size: 18px;
      padding: 14px 16px;
      border-radius: 14px;
    }
    .campaign-map-viewport {
      height: calc(100% - 196px);
    }
    #info-panel {
      padding: 14px 14px 16px;
      gap: 12px;
      min-height: 132px;
      flex-direction: column;
      align-items: stretch;
    }
    .campaign-map-service-logo {
      width: 44px;
      height: 44px;
      min-height: 44px;
      align-self: center;
    }
    #info-name {
      font-size: 18px;
      text-align: center;
    }
    #info-desc,
    .campaign-map-inline-status {
      font-size: 14px;
      text-align: center;
    }
    .campaign-map-inline-actions {
      justify-content: center;
    }
    #info-btn,
    .campaign-map-zoom-btn {
      min-width: 0;
      min-height: 46px;
      font-size: 14px !important;
      padding: 10px 14px !important;
      flex: 1 1 140px;
    }
    .campaign-map-nav-btn {
      min-width: 112px;
      padding-inline: 12px !important;
      letter-spacing: 0.25px;
    }
    .campaign-map-stage-popup {
      padding: 12px;
    }
    .campaign-map-stage-popup-card {
      width: min(100%, calc(100vw - 24px));
      padding: 18px 16px 16px;
      border-radius: 20px;
      gap: 12px;
    }
    .campaign-map-stage-popup-close {
      width: 40px;
      height: 40px;
      font-size: 24px;
    }
    .campaign-map-stage-popup-logo {
      width: 72px;
      height: 72px;
      min-height: 72px;
    }
    .campaign-map-stage-popup-kicker {
      font-size: 11px;
      letter-spacing: 2px;
    }
    .campaign-map-stage-popup-title {
      font-size: 24px;
    }
    .campaign-map-stage-popup-copy {
      font-size: 16px;
      line-height: 1.4;
    }
    .campaign-map-stage-popup-actions {
      gap: 10px;
      margin-top: 2px;
    }
    .campaign-map-stage-popup-actions button {
      flex: 1 1 100%;
      width: 100%;
      min-height: 52px;
      font-size: 17px;
      padding: 12px 16px;
    }
    .victory-reward-panel {
      gap: 12px;
    }
    .victory-reward-close-copy,
    .victory-reward-kicker {
      font-size: 11px;
    }
    .victory-reward-copy {
      font-size: 14px;
      line-height: 1.4;
    }
    .victory-reward-bar {
      height: 34px;
    }
    .victory-reward-band {
      font-size: 12px;
      letter-spacing: 0.4px;
    }
    .victory-reward-runner {
      width: 14px;
      height: 44px;
    }
    .victory-reward-actions,
    .shop-footer-actions,
    .confirm-actions {
      width: 100%;
    }
    .reward-claim-btn,
    #overlay.victory-reward-screen .victory-reward-actions .ghost,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.next-step,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.shop-entry {
      width: 100%;
      min-width: 0;
      min-height: 52px;
      font-size: 17px;
      padding: 12px 16px;
    }
    #overlay.victory-reward-screen .victory-reward-actions .reward-claim-btn,
    #overlay.defeat-screen .reward-claim-btn {
      width: 100%;
      min-width: 0;
      font-size: 20px;
      padding: 14px 18px;
      border-radius: 14px;
      letter-spacing: 1px;
    }
    #confirm-overlay {
      padding: 12px;
    }
    #confirm-overlay .overlay-panel {
      width: min(100%, calc(100vw - 24px));
      border-radius: 20px;
    }
    .confirm-body {
      padding: 20px 16px 16px;
      gap: 10px;
    }
    .confirm-kicker {
      font-size: 10px;
      letter-spacing: 1.6px;
    }
    .confirm-title {
      font-size: 24px;
      letter-spacing: 1.5px;
    }
    .confirm-copy {
      font-size: 15px;
      line-height: 1.45;
    }
    .confirm-actions {
      gap: 10px;
      padding: 16px;
    }
    .confirm-actions button {
      width: 100%;
      min-width: 0;
      font-size: 17px;
      padding: 14px 16px;
    }
    #orientation-overlay {
      padding: 12px;
    }
    #orientation-overlay .orientation-panel {
      width: min(100%, calc(100vw - 24px));
      gap: 12px;
      padding: 18px 16px;
      border-radius: 20px;
    }
    .orientation-copy {
      font-size: 14px;
      line-height: 1.35;
      max-width: 28ch;
    }
    .orientation-visual {
      width: 132px;
      height: 132px;
      border-radius: 22px;
    }
    .orientation-phone {
      width: 72px;
    }
    #orientation-overlay [data-orientation-continue] {
      min-width: 0;
      width: 100%;
      min-height: 46px;
      padding: 10px 14px;
      font-size: 16px;
      border-radius: 14px;
    }
    #overlay.advert-countdown-screen .advert-countdown-panel {
      min-height: 0;
      padding: 26px 22px;
      gap: 14px;
    }
    .advert-countdown-kicker {
      font-size: 12px;
      letter-spacing: 3px;
    }
    .advert-countdown-number {
      width: min(128px, calc(100vw - 76px), calc(100dvh - 220px));
      font-size: clamp(52px, 18vw, 82px);
    }
    #loading-screen {
      padding: 12px;
    }
    .loading-panel {
      width: min(100%, calc(100vw - 24px));
      padding: 20px 16px;
      border-radius: 20px;
    }
    .loading-title {
      font-size: 28px;
      letter-spacing: 2px;
      margin-bottom: 10px;
    }
    .loading-subtitle {
      font-size: 14px;
      margin-bottom: 18px;
    }
    .loading-bar-shell {
      height: 22px;
      padding: 3px;
    }
    .loading-meta {
      margin-top: 10px;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      font-size: 13px;
    }
    .loading-percent {
      font-size: 20px;
      align-self: flex-end;
    }
    .loading-start {
      margin-top: 18px;
    }
    .loading-start button {
      width: 100%;
      min-width: 0;
      font-size: 18px;
      padding: 14px 18px;
      border-radius: 14px;
    }
  }
  @media (max-height: 500px) and (orientation: landscape) {
    #loading-screen {
      align-items: flex-start;
      overflow: auto;
      padding: 8px;
    }
    .loading-panel {
      width: min(100%, 760px);
      max-height: calc(100dvh - 16px);
      margin: 0 auto;
      padding: 12px 14px;
      border-radius: 18px;
      overflow: auto;
    }
    .loading-language-row {
      margin-bottom: 6px;
      gap: 8px;
    }
    .loading-language-label {
      font-size: 10px;
      letter-spacing: 1.2px;
    }
    .loading-language-select {
      min-width: 116px;
      padding: 8px 10px;
      font-size: 12px;
    }
    .loading-title {
      font-size: 22px;
      letter-spacing: 2px;
      margin-bottom: 6px;
    }
    .loading-subtitle {
      font-size: 12px;
      line-height: 1.32;
      margin-bottom: 12px;
    }
    .loading-bar-shell {
      height: 18px;
      padding: 2px;
    }
    .loading-meta {
      margin-top: 8px;
      gap: 4px;
      font-size: 11px;
    }
    .loading-percent {
      font-size: 16px;
    }
    .loading-disclaimer {
      margin-top: 10px;
      padding: 4px 0 0;
      border-radius: 14px;
      max-height: min(18dvh, 120px);
    }
    .loading-disclaimer-kicker {
      font-size: 10px;
      letter-spacing: 1.1px;
      margin: 0 8px 6px;
    }
    .loading-disclaimer-copy,
    .loading-disclaimer-agree {
      font-size: 11px;
      line-height: 1.35;
      margin-left: 8px;
      margin-right: 8px;
    }
    .loading-disclaimer-copy + .loading-disclaimer-copy,
    .loading-disclaimer-copy + .loading-disclaimer-agree {
      margin-top: 6px;
    }
    .loading-start {
      margin-top: 10px;
    }
    .loading-start button {
      min-width: 0;
      min-height: 40px;
      width: 100%;
      font-size: 14px;
      padding: 10px 12px;
      border-radius: 12px;
    }
    #hud {
      padding: 6px 10px;
      gap: 8px;
      flex-wrap: nowrap;
      align-items: center;
      min-height: 52px;
    }
    #hud .title {
      width: auto;
      flex: 0 0 auto;
      text-align: left;
      font-size: 16px;
      letter-spacing: 1.4px;
    }
    #hud .stats {
      flex: 1 1 auto;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      width: auto;
    }
    #hud .stat {
      min-width: 0;
      padding: 6px 8px;
      border-radius: 10px;
    }
    #hud .stat-label {
      margin-bottom: 2px;
      font-size: 9px;
      letter-spacing: 1px;
    }
    #hud .stat-value {
      font-size: 14px;
    }
    #top-utility-bar {
      right: auto;
      top: 8px;
      bottom: auto;
      left: 8px;
      max-width: calc(100vw - 16px);
      gap: 6px;
    }
    .utility-group {
      width: auto;
      justify-content: flex-start;
      gap: 6px;
    }
    .utility-group-left {
      gap: 6px;
    }
    .utility-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      font-size: 20px;
    }
    .utility-charge-badge {
      min-width: 18px;
      height: 18px;
      font-size: 10px;
      padding: 0 4px;
    }
    .medkit-cross-icon.is-utility,
    .perk-symbol-icon.is-utility {
      width: 22px;
      height: 22px;
      font-size: 16px;
      border-radius: 8px;
    }
    #alice-guide {
      right: 8px;
      left: auto;
      bottom: 8px;
      max-width: min(360px, calc(100vw - 16px));
      gap: 6px;
    }
    .alice-avatar-wrap {
      width: 72px;
      flex-basis: 72px;
    }
    .alice-bubble {
      padding: 10px 12px;
    }
    .alice-name {
      font-size: 10px;
      margin-bottom: 4px;
      padding: 4px 8px;
    }
    .alice-text {
      min-height: 34px;
      font-size: 12px;
      line-height: 1.3;
    }
    .alice-close {
      top: 6px;
      right: 6px;
      width: 24px;
      height: 24px;
      font-size: 14px;
    }
    #controls {
      padding: 4px 8px;
      min-height: 48px;
    }
    #controls-content {
      gap: 8px;
      flex-wrap: nowrap;
      align-items: center;
    }
    #controls button {
      flex: 0 1 150px;
      min-width: 0;
      min-height: 40px;
      padding: 8px 10px;
      font-size: 13px;
      border-radius: 10px;
    }
    .controls-hint {
      display: none;
    }
    .utility-icon-soundbar {
      width: 44px;
      height: 44px;
      min-width: 44px !important;
      max-width: 44px !important;
      min-height: 44px;
      border-radius: 14px;
      font-size: 18px;
      margin-left: auto;
    }
    #overlay {
      padding: 8px;
      overflow: hidden;
    }
    .overlay-panel {
      padding: 14px 14px;
      border-radius: 16px;
      gap: 10px;
      max-height: calc(100dvh - 16px);
      overflow: hidden;
    }
    #overlay h2 {
      font-size: 22px;
      letter-spacing: 1.2px;
    }
    #overlay p {
      font-size: 13px;
      line-height: 1.32;
    }
    #overlay .big {
      font-size: 18px;
    }
    #overlay button {
      min-height: 42px;
      padding: 10px 12px;
      font-size: 14px;
      border-radius: 12px;
    }
    #overlay.advert-countdown-screen {
      align-items: flex-start;
      justify-content: flex-start;
      overflow: auto;
    }
    #overlay.advert-countdown-screen .advert-countdown-panel {
      width: min(100%, calc(100vw - 16px));
      min-height: 0;
      max-height: calc(100dvh - 16px);
      margin: auto;
      padding: 12px 12px;
      gap: 8px;
      overflow: auto;
    }
    .advert-countdown-kicker {
      font-size: 10px;
      letter-spacing: 1.6px;
      text-align: center;
    }
    #overlay.advert-countdown-screen h2 {
      font-size: 20px;
      letter-spacing: 1px;
      text-align: center;
    }
    .advert-countdown-number {
      width: min(92px, calc(100vw - 110px), calc(100dvh - 170px));
      margin-top: 2px;
      font-size: clamp(34px, 9vw, 54px);
      border-width: 2px;
      box-shadow: inset 0 6px 14px rgba(255,255,255,0.05), 0 12px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(0, 229, 255, 0.08);
    }
    #overlay.defeat-screen {
      align-items: flex-start;
      justify-content: flex-start;
      overflow: hidden;
    }
    #overlay.defeat-screen .overlay-panel {
      width: min(100%, calc(100vw - 16px));
      margin: auto;
      padding: 12px 12px;
      gap: 8px;
      max-height: calc(100dvh - 16px);
      overflow: hidden;
    }
    #overlay.defeat-screen h2 {
      font-size: 20px;
      letter-spacing: 1px;
    }
    #overlay.defeat-screen .big {
      font-size: 16px;
    }
    #overlay.defeat-screen p {
      font-size: 12px;
      line-height: 1.28;
    }
    .victory-reward-close-copy {
      font-size: 11px;
      letter-spacing: 1.1px;
      text-align: center;
    }
    .victory-reward-bar {
      height: 44px;
      min-height: 44px;
      border-radius: 14px;
    }
    .victory-reward-band {
      font-size: 12px;
      letter-spacing: 0.8px;
    }
    .victory-reward-runner {
      width: 14px;
      height: calc(100% + 10px);
      top: -5px;
    }
    .victory-reward-actions,
    .defeat-reward-actions {
      gap: 8px;
      width: 100%;
      align-items: stretch;
    }
    #overlay.defeat-screen .reward-claim-btn,
    #overlay.victory-reward-screen .victory-reward-actions .reward-claim-btn {
      width: 100%;
      min-width: 0;
      min-height: 42px;
      padding: 10px 12px;
      font-size: 13px;
      border-radius: 12px;
    }
    #overlay.victory-reward-screen .victory-reward-actions .ghost,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.next-step,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.shop-entry {
      width: 100%;
      min-width: 0;
    }
    #orientation-overlay {
      padding: 8px;
    }
    #orientation-overlay .orientation-panel {
      width: min(100%, calc(100vw - 16px));
      padding: 12px 12px;
      gap: 8px;
      border-radius: 16px;
    }
    .orientation-kicker {
      font-size: 10px;
      letter-spacing: 1.6px;
    }
    .orientation-title {
      font-size: 20px !important;
      letter-spacing: 1px !important;
    }
    .orientation-copy {
      font-size: 12px;
      line-height: 1.28;
      max-width: 30ch;
    }
    .orientation-visual {
      width: 96px;
      height: 96px;
      border-radius: 18px;
    }
    .orientation-phone {
      width: 54px;
    }
    .orientation-ready-copy {
      font-size: 12px;
    }
    #orientation-overlay [data-orientation-continue] {
      min-width: 0;
      width: 100%;
      min-height: 40px;
      padding: 8px 10px;
      font-size: 13px;
      border-radius: 12px;
    }
    #overlay.shop-screen .overlay-panel.shop-panel {
      max-height: calc(100dvh - 8px);
      padding: 12px;
      gap: 10px;
    }
    .campaign-map-viewport {
      height: calc(100% - 116px);
    }
    #info-panel {
      min-height: 90px;
      padding: 8px 10px 10px;
      gap: 8px;
      flex-direction: row;
      align-items: center;
    }
    .campaign-map-service-logo {
      width: 34px;
      height: 34px;
      min-height: 34px;
    }
    #info-name {
      font-size: 14px;
      text-align: left;
      margin-bottom: 2px;
    }
    #info-desc,
    .campaign-map-inline-status {
      font-size: 11px;
      text-align: left;
      line-height: 1.3;
    }
    .campaign-map-inline-actions {
      gap: 6px;
      justify-content: flex-end;
      flex: 0 0 auto;
    }
    #info-btn,
    .campaign-map-zoom-btn {
      min-height: 36px;
      padding: 8px 10px !important;
      font-size: 11px !important;
      min-width: 0;
      flex: 0 1 auto;
    }
    .campaign-map-stage-popup {
      padding: 8px;
    }
    .campaign-map-stage-popup-card {
      padding: 14px 14px 12px;
      gap: 8px;
    }
    .campaign-map-stage-popup-title {
      font-size: 18px;
    }
    .campaign-map-stage-popup-copy {
      font-size: 13px;
      line-height: 1.32;
    }
    .campaign-map-stage-popup-actions button {
      min-height: 42px;
      font-size: 14px;
      padding: 10px 12px;
    }
    .loading-panel {
      padding: 14px;
    }
    .loading-title {
      font-size: 22px;
      letter-spacing: 2px;
      margin-bottom: 8px;
    }
    .loading-subtitle {
      font-size: 12px;
      line-height: 1.35;
      margin-bottom: 12px;
    }
    .loading-meta {
      font-size: 11px;
    }
    .loading-percent {
      font-size: 16px;
    }
    .loading-start {
      margin-top: 12px;
    }
    .loading-start button {
      min-height: 42px;
      font-size: 14px;
      padding: 10px 12px;
    }
  }
  @media (max-width: 900px) and (max-height: 500px) {
    #hud {
      padding: 6px 10px;
      gap: 8px;
      flex-wrap: nowrap;
      align-items: center;
      min-height: 52px;
    }
    #hud .title {
      width: auto;
      flex: 0 0 auto;
      text-align: left;
      font-size: 16px;
      letter-spacing: 1.4px;
    }
    #hud .stats {
      flex: 1 1 auto;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      width: auto;
    }
    #hud .stat {
      min-width: 0;
      padding: 6px 8px;
      border-radius: 10px;
    }
    #hud .stat-label {
      margin-bottom: 2px;
      font-size: 9px;
      letter-spacing: 1px;
    }
    #hud .stat-value {
      font-size: 14px;
    }
    #top-utility-bar {
      right: auto;
      top: 8px;
      bottom: auto;
      left: 8px;
      max-width: calc(100vw - 16px);
      gap: 6px;
    }
    .utility-group {
      width: auto;
      justify-content: flex-start;
      gap: 6px;
    }
    .utility-group-left {
      gap: 6px;
    }
    .utility-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      font-size: 20px;
    }
    .utility-charge-badge {
      min-width: 18px;
      height: 18px;
      font-size: 10px;
      padding: 0 4px;
    }
    #alice-guide {
      right: 8px;
      left: auto;
      bottom: 8px;
      max-width: min(360px, calc(100vw - 16px));
      gap: 6px;
    }
    .alice-avatar-wrap {
      width: 72px;
      flex-basis: 72px;
    }
    .alice-bubble {
      padding: 10px 12px;
    }
    .alice-name {
      font-size: 10px;
      margin-bottom: 4px;
      padding: 4px 8px;
    }
    .alice-text {
      min-height: 34px;
      font-size: 12px;
      line-height: 1.3;
    }
    .alice-close {
      top: 6px;
      right: 6px;
      width: 24px;
      height: 24px;
      font-size: 14px;
    }
    #controls {
      padding: 4px 8px;
      min-height: 48px;
    }
    #controls-content {
      gap: 8px;
      flex-wrap: nowrap;
      align-items: center;
    }
    #controls button {
      flex: 0 1 150px;
      min-width: 0;
      min-height: 40px;
      padding: 8px 10px;
      font-size: 13px;
      border-radius: 10px;
    }
    .controls-hint {
      display: none;
    }
    .utility-icon-soundbar {
      width: 44px;
      height: 44px;
      min-width: 44px !important;
      max-width: 44px !important;
      min-height: 44px;
      border-radius: 14px;
      font-size: 18px;
      margin-left: auto;
    }
  }

  body.is-compact-height #hud {
    padding: 4px 8px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  body.is-compact-height #hud .title {
    width: auto !important;
    flex: 0 0 auto !important;
    text-align: left !important;
    font-size: 16px !important;
    letter-spacing: 1.2px !important;
  }
  body.is-compact-height #hud .stats {
    width: auto !important;
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  body.is-compact-height #hud .stat {
    min-width: 0 !important;
    padding: 5px 7px !important;
    border-radius: 10px !important;
  }
  body.is-compact-height #hud .stat-label {
    margin-bottom: 2px !important;
    font-size: 9px !important;
    letter-spacing: 0.9px !important;
  }
  body.is-compact-height #hud .stat-value {
    font-size: 14px !important;
  }
  body.is-compact-height #game-stage {
    min-height: 160px !important;
  }
  body.is-compact-height #top-utility-bar {
    left: 8px !important;
    right: auto !important;
    top: 8px !important;
    bottom: auto !important;
    max-width: calc(100vw - 16px) !important;
    gap: 6px !important;
    justify-content: flex-start !important;
  }
  body.is-compact-height .utility-group,
  body.is-compact-height .utility-group-left {
    width: auto !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  body.is-compact-height .utility-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    font-size: 18px !important;
  }
  body.is-compact-height .utility-charge-badge {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    padding: 0 4px !important;
  }
  body.is-compact-height #alice-guide {
    top: auto !important;
    left: auto !important;
    right: 8px !important;
    bottom: 8px !important;
    max-width: min(340px, calc(100vw - 16px)) !important;
    gap: 6px !important;
    align-items: flex-end !important;
  }
  body.is-compact-height .alice-avatar-wrap {
    width: 68px !important;
    flex-basis: 68px !important;
  }
  body.is-compact-height .alice-bubble {
    padding: 10px 12px !important;
  }
  body.is-compact-height .alice-name {
    font-size: 10px !important;
    margin-bottom: 4px !important;
    padding: 4px 8px !important;
  }
  body.is-compact-height .alice-text {
    min-height: 32px !important;
    font-size: 12px !important;
    line-height: 1.28 !important;
  }
  body.is-compact-height .alice-close {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    top: 6px !important;
    right: 6px !important;
  }
  body.is-compact-height #controls {
    padding: 4px 8px !important;
    min-height: 46px !important;
  }
  body.is-compact-height #controls-content {
    gap: 8px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  body.is-compact-height #controls button {
    flex: 0 1 146px !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  body.is-compact-height .controls-hint {
    display: none !important;
  }
  body.is-compact-height .utility-icon-soundbar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
    font-size: 18px !important;
    margin-left: auto !important;
  }

  @media (max-width: 380px) {
    #hud {
      padding: 8px 8px 10px;
      gap: 8px;
    }
    #hud .title {
      font-size: 18px;
      letter-spacing: 1.6px;
    }
    #hud .stats {
      gap: 6px;
    }
    #hud .stat {
      padding: 7px 8px;
    }
    #hud .stat-label {
      font-size: 10px;
      letter-spacing: 1px;
    }
    #hud .stat-value {
      font-size: 16px;
    }
    .overlay-panel {
      padding: 16px 14px;
      gap: 12px;
    }
    #overlay h2 {
      font-size: 26px;
    }
    #overlay p {
      font-size: 14px;
    }
    .shop-hero-title {
      font-size: 22px;
      line-height: 1.04;
    }
    .shop-hero-copy,
    .shop-note-copy {
      font-size: 12px;
      line-height: 1.34;
    }
    .shop-stat-pill {
      min-height: 52px;
      padding: 8px 9px;
    }
    .shop-stat-emoji {
      font-size: 18px;
    }
    .shop-stat-label {
      font-size: 10px;
    }
    .shop-stat-value {
      font-size: 14px;
    }
    .shop-price-chip,
    .shop-max-chip,
    .shop-price-action {
      font-size: 13px !important;
    }
    .shop-price-value,
    .shop-price-icon,
    .shop-price-action-value,
    .shop-price-action-icon {
      font-size: 14px !important;
    }
    .shop-owned-perks-strip {
      padding: 12px 12px;
    }
    .shop-owned-perks-label {
      font-size: 11px;
      letter-spacing: 2px;
    }
    .shop-owned-perk-chip {
      min-height: 40px;
      padding: 7px 10px;
      font-size: 11px;
      gap: 8px;
    }
    #info-panel {
      padding: 12px 10px 14px;
      min-height: 124px;
    }
    #info-name {
      font-size: 16px;
    }
    #info-desc,
    .campaign-map-inline-status {
      font-size: 12px;
      line-height: 1.32;
    }
    #info-btn,
    .campaign-map-zoom-btn {
      min-height: 42px;
      font-size: 13px !important;
      padding: 9px 10px !important;
    }
    .campaign-map-stage-popup-card {
      padding: 16px 14px 14px;
      gap: 10px;
    }
    .campaign-map-stage-popup-title {
      font-size: 20px;
    }
    .campaign-map-stage-popup-copy {
      font-size: 14px;
      line-height: 1.34;
    }
  }
  .loading-panel {
    width: min(720px, calc(100vw - 48px));
    padding: 34px 38px;
    border-radius: 28px;
    border: 2px solid rgba(96, 198, 255, 0.2);
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.92) 0%, rgba(4, 8, 18, 0.95) 100%);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
  }
  .loading-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(120deg, transparent 0%, rgba(0,229,255,0.08) 36%, transparent 56%),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 24px);
    opacity: 0.8;
    pointer-events: none;
  }
  .loading-language-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .loading-language-label {
    color: #8ceeff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
  }
  .loading-language-select {
    min-width: 148px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(96, 198, 255, 0.28);
    background: linear-gradient(180deg, rgba(16, 28, 58, 0.98) 0%, rgba(8, 14, 32, 0.98) 100%);
    color: #d9f8ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 18px rgba(0, 229, 255, 0.08);
  }
  .loading-language-select:focus {
    border-color: rgba(138, 255, 255, 0.54);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 24px rgba(0, 229, 255, 0.18);
  }
  .loading-title {
    position: relative;
    z-index: 1;
    color: #ff5c5c;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 5px;
    text-align: center;
    text-shadow: 0 0 24px rgba(255, 68, 68, 0.32);
    margin-bottom: 12px;
  }
  .loading-subtitle {
    position: relative;
    z-index: 1;
    color: #9db0d8;
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 24px;
  }
  .loading-bar-shell {
    position: relative;
    z-index: 1;
    height: 28px;
    border-radius: 999px;
    padding: 4px;
    background: linear-gradient(180deg, rgba(18, 26, 54, 0.95) 0%, rgba(8, 12, 28, 0.98) 100%);
    border: 2px solid rgba(91, 113, 170, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  }
  .loading-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00c8ff 0%, #00f0ff 52%, #8affff 100%);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.26);
    transition: width 180ms ease;
    position: relative;
    overflow: hidden;
  }
  .loading-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: loading-shine 1.3s linear infinite;
  }
  .loading-meta {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #9aa3cc;
    font-size: 15px;
    letter-spacing: 1px;
  }
  .loading-percent {
    color: #8affff;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.28);
  }
  .loading-build-version {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    text-align: right;
    color: rgba(140, 190, 226, 0.86);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
  }
  .loading-disclaimer {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 6px 2px 2px;
    border-radius: 18px;
    border: 1px solid rgba(255, 196, 120, 0.22);
    max-height: min(24vh, 196px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 209, 143, 0.7) rgba(255, 255, 255, 0.06);
  }
  .loading-disclaimer::-webkit-scrollbar {
    width: 8px;
  }
  .loading-disclaimer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }
  .loading-disclaimer::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 214, 153, 0.92), rgba(255, 168, 92, 0.88));
    border-radius: 999px;
  }
  .loading-disclaimer-kicker {
    color: #ffd18f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin: 0 12px 8px;
  }
  .loading-disclaimer-copy,
  .loading-disclaimer-agree {
    color: #d5dcef;
    font-size: 13px;
    line-height: 1.55;
    margin-left: 12px;
    margin-right: 12px;
  }
  .loading-disclaimer-copy + .loading-disclaimer-copy,
  .loading-disclaimer-copy + .loading-disclaimer-agree {
    margin-top: 10px;
  }
  .loading-disclaimer-agree {
    color: #fff2cc;
  }
  .loading-disclaimer-agree b {
    color: #fff7de;
  }
  .loading-start {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 26px;
    opacity: 1;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .loading-start.is-hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
  }
  .loading-start button {
    min-width: 220px;
    padding: 16px 30px;
    border-radius: 18px;
    border: 2px solid rgba(120, 231, 255, 0.4);
    background: linear-gradient(180deg, rgba(21, 55, 90, 0.95) 0%, rgba(8, 24, 44, 0.98) 100%);
    color: #c9fbff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.18), inset 0 0 0 1px rgba(255,255,255,0.04);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  }
  .loading-start button:hover {
    transform: translateY(-1px);
    border-color: rgba(138, 255, 255, 0.72);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.28), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .loading-start button:active {
    transform: scale(0.98);
  }
  @keyframes loading-shine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
  }
  @keyframes loading-grid-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-42px, -28px, 0); }
  }
  @keyframes loading-pulse-network {
    0%, 100% { opacity: 0.55; filter: brightness(0.9); }
    50% { opacity: 1; filter: brightness(1.22); }
  }

  @media (max-width: 900px) and (max-height: 500px) {
    #hud {
      padding: 4px 8px !important;
      gap: 6px !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
    }
    #hud .title {
      width: auto !important;
      flex: 0 0 auto !important;
      text-align: left !important;
      font-size: 16px !important;
      letter-spacing: 1.2px !important;
    }
    #hud .stats {
      width: auto !important;
      flex: 1 1 auto !important;
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 6px !important;
    }
    #hud .stat {
      min-width: 0 !important;
      padding: 5px 7px !important;
      border-radius: 10px !important;
    }
    #hud .stat-label {
      margin-bottom: 2px !important;
      font-size: 9px !important;
      letter-spacing: 0.9px !important;
    }
    #hud .stat-value {
      font-size: 14px !important;
    }
    #game-stage {
      min-height: 160px !important;
    }
    #top-utility-bar {
      left: 8px !important;
      right: auto !important;
      top: 8px !important;
      bottom: auto !important;
      max-width: calc(100vw - 16px) !important;
      gap: 6px !important;
      justify-content: flex-start !important;
    }
    .utility-group,
    .utility-group-left {
      width: auto !important;
      justify-content: flex-start !important;
      gap: 6px !important;
      flex-wrap: nowrap !important;
    }
    .utility-icon {
      width: 42px !important;
      height: 42px !important;
      border-radius: 14px !important;
      font-size: 18px !important;
    }
    .utility-charge-badge {
      min-width: 18px !important;
      height: 18px !important;
      font-size: 10px !important;
      padding: 0 4px !important;
    }
    #alice-guide {
      top: auto !important;
      left: auto !important;
      right: 8px !important;
      bottom: 8px !important;
      max-width: min(340px, calc(100vw - 16px)) !important;
      gap: 6px !important;
      align-items: flex-end !important;
    }
    .alice-avatar-wrap {
      width: 68px !important;
      flex-basis: 68px !important;
    }
    .alice-bubble {
      padding: 10px 12px !important;
    }
    .alice-name {
      font-size: 10px !important;
      margin-bottom: 4px !important;
      padding: 4px 8px !important;
    }
    .alice-text {
      min-height: 32px !important;
      font-size: 12px !important;
      line-height: 1.28 !important;
    }
    .alice-close {
      width: 24px !important;
      height: 24px !important;
      font-size: 14px !important;
      top: 6px !important;
      right: 6px !important;
    }
    #controls {
      padding: 4px 8px !important;
      min-height: 46px !important;
    }
    #controls-content {
      gap: 8px !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
    }
    #controls button {
      flex: 0 1 146px !important;
      min-width: 0 !important;
      min-height: 38px !important;
      padding: 8px 10px !important;
      font-size: 13px !important;
      border-radius: 10px !important;
    }
    .controls-hint {
      display: none !important;
    }
    .utility-icon-soundbar {
      width: 42px !important;
      height: 42px !important;
      min-width: 42px !important;
      max-width: 42px !important;
      min-height: 42px !important;
      border-radius: 14px !important;
      font-size: 18px !important;
      margin-left: auto !important;
    }
  }

  /* Final responsive overrides: kept at EOF to win over earlier breakpoint collisions. */
  @media (max-width: 1180px) {
    #hud {
      padding: 14px 18px;
      gap: 14px;
    }
    #hud .title {
      font-size: 28px;
      letter-spacing: 3px;
    }
    #hud .stats {
      width: 100%;
      gap: 12px;
    }
    #hud .stat {
      flex: 1 1 180px;
      min-width: 0;
      padding: 12px 14px;
    }
    #controls {
      padding: 14px 18px;
      min-height: 92px;
    }
    #controls-content {
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
    }
    #controls button {
      min-width: 180px;
      font-size: 20px;
      padding: 14px 22px;
    }
    .controls-hint {
      order: 3;
      width: 100%;
      margin-right: 0;
      text-align: center;
      white-space: normal;
    }
  }

  @media (max-width: 900px) {
    #hud {
      align-items: stretch;
      justify-content: flex-start;
    }
    #hud .title {
      width: 100%;
      text-align: center;
      font-size: 24px;
      letter-spacing: 2px;
    }
    #hud .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      width: 100%;
      gap: 8px;
    }
    #hud .stat {
      padding: 10px 12px;
      border-radius: 14px;
    }
    #hud .stat-label {
      font-size: 11px;
      letter-spacing: 1.3px;
    }
    #hud .stat-value {
      font-size: 22px;
    }
    #top-utility-bar {
      right: auto;
      left: 12px;
      top: 12px;
      bottom: auto;
      justify-content: flex-start;
      gap: 10px;
    }
    .utility-group {
      width: 100%;
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 8px;
    }
    .utility-group-left {
      gap: 8px;
    }
    .utility-icon {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      font-size: 26px;
    }
    .utility-charge-badge {
      min-width: 20px;
      height: 20px;
      font-size: 11px;
    }
    #alice-guide {
      gap: 10px;
      max-width: calc(100vw - 20px);
      top: auto;
      bottom: 10px;
      left: auto;
      right: 10px;
      transform: translateY(120%);
      align-items: flex-end;
    }
    #alice-guide.is-visible {
      transform: translateY(0);
    }
    .alice-avatar-wrap {
      width: clamp(108px, 22vw, 168px);
      flex-basis: clamp(108px, 22vw, 168px);
    }
    .alice-bubble {
      margin-top: 0;
      min-width: 0;
      max-width: none;
      width: min(100%, 520px);
      padding: 16px 18px;
      transform: none;
      border-radius: 22px 20px 24px 18px;
    }
    .alice-bubble::before,
    .alice-bubble::after {
      display: none;
    }
    .alice-text {
      min-height: 60px;
      font-size: 15px;
      line-height: 1.4;
    }
    .overlay-panel {
      width: min(100%, calc(100vw - 18px));
      padding: 20px 18px;
      border-radius: 22px;
      gap: 14px;
    }
    #overlay {
      padding: 9px;
    }
    #overlay h2 {
      font-size: 34px;
      letter-spacing: 2px;
    }
    #overlay p {
      font-size: 17px;
      line-height: 1.45;
    }
    #overlay .big {
      font-size: 24px;
    }
    #overlay button {
      width: 100%;
      min-width: 0;
      min-height: 54px;
      padding: 14px 16px;
      font-size: 18px;
      border-radius: 14px;
      letter-spacing: 1px;
    }
    #overlay.shop-screen .overlay-panel.shop-panel {
      width: calc(100vw - 12px);
      max-height: calc(100dvh - 12px);
      padding: 14px;
      border-radius: 22px;
      gap: 12px;
    }
    .shop-main {
      gap: 12px;
    }
    .campaign-map-viewport {
      height: calc(100% - 184px);
    }
    #info-panel {
      flex-direction: column;
      align-items: stretch;
      padding: 14px 14px 16px;
      gap: 10px;
      min-height: 128px;
    }
    .campaign-map-service-logo {
      width: 42px;
      height: 42px;
      min-height: 42px;
      align-self: center;
      display: none;
    }
    #info-name,
    #info-desc,
    .campaign-map-inline-status {
      text-align: center;
    }
    #info-name {
      font-size: 18px;
    }
    #info-desc,
    .campaign-map-inline-status {
      font-size: 14px;
      line-height: 1.35;
    }
    .campaign-map-inline-actions {
      justify-content: center;
    }
    #info-btn,
    .campaign-map-zoom-btn {
      min-width: 0;
      min-height: 46px;
      padding: 10px 14px !important;
      font-size: 14px !important;
      flex: 1 1 140px;
    }
    .campaign-map-stage-popup {
      padding: 12px;
    }
    .campaign-map-stage-popup-card {
      width: min(100%, calc(100vw - 24px));
      padding: 18px 16px 16px;
      border-radius: 20px;
      gap: 12px;
    }
    .campaign-map-stage-popup-title {
      font-size: 24px;
    }
    .campaign-map-stage-popup-copy {
      font-size: 16px;
      line-height: 1.4;
    }
    .campaign-map-stage-popup-actions {
      gap: 10px;
    }
    .campaign-map-stage-popup-actions button {
      flex: 1 1 100%;
      width: 100%;
      min-height: 52px;
      font-size: 17px;
      padding: 12px 16px;
    }
    #confirm-overlay {
      padding: 12px;
    }
    #confirm-overlay .overlay-panel {
      width: min(100%, calc(100vw - 24px));
      border-radius: 20px;
    }
    .confirm-body {
      padding: 20px 16px 16px;
      gap: 10px;
    }
    .confirm-title {
      font-size: 24px;
      letter-spacing: 1.5px;
    }
    .confirm-copy {
      font-size: 15px;
      line-height: 1.45;
      max-width: none;
    }
    .confirm-actions {
      gap: 10px;
      padding: 16px;
    }
    .confirm-actions button {
      width: 100%;
      min-width: 0;
      font-size: 17px;
      padding: 14px 16px;
    }
    #loading-screen {
      padding: 12px;
    }
    .loading-panel {
      width: min(100%, calc(100vw - 24px));
      padding: 20px 16px;
      border-radius: 20px;
    }
    .loading-title {
      font-size: 28px;
      letter-spacing: 2px;
      margin-bottom: 10px;
    }
    .loading-subtitle {
      font-size: 14px;
      line-height: 1.42;
      margin-bottom: 18px;
    }
    .loading-bar-shell {
      height: 22px;
      padding: 3px;
    }
    .loading-meta {
      margin-top: 10px;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      font-size: 13px;
    }
    .loading-percent {
      font-size: 20px;
      align-self: flex-end;
    }
    .loading-disclaimer {
      margin-top: 16px;
      padding: 6px 0 2px;
      border-radius: 16px;
      max-height: min(26vh, 180px);
    }
    .loading-disclaimer-kicker {
      font-size: 11px;
      letter-spacing: 1.3px;
      margin: 0 10px 8px;
    }
    .loading-disclaimer-copy,
    .loading-disclaimer-agree {
      font-size: 12px;
      line-height: 1.45;
      margin-left: 10px;
      margin-right: 10px;
    }
    .loading-start {
      margin-top: 18px;
    }
    .loading-start button {
      width: 100%;
      min-width: 0;
      font-size: 18px;
      padding: 14px 18px;
      border-radius: 14px;
    }
  }

  @media (max-width: 900px) and (max-height: 500px) {
    #hud {
      padding: 4px 8px !important;
      gap: 6px !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
    }
    #hud .title {
      width: auto !important;
      flex: 0 0 auto !important;
      text-align: left !important;
      font-size: 16px !important;
      letter-spacing: 1.2px !important;
    }
    #hud .stats {
      width: auto !important;
      flex: 1 1 auto !important;
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 6px !important;
    }
    #hud .stat {
      padding: 5px 7px !important;
      border-radius: 10px !important;
    }
    #hud .stat-label {
      margin-bottom: 2px !important;
      font-size: 9px !important;
      letter-spacing: 0.9px !important;
    }
    #hud .stat-value {
      font-size: 14px !important;
    }
    #game-stage {
      min-height: 160px !important;
    }
    #top-utility-bar {
      left: 8px !important;
      right: auto !important;
      top: 8px !important;
      bottom: auto !important;
      max-width: calc(100vw - 16px) !important;
      gap: 6px !important;
      justify-content: flex-start !important;
    }
    .utility-group,
    .utility-group-left {
      width: auto !important;
      justify-content: flex-start !important;
      gap: 6px !important;
      flex-wrap: nowrap !important;
    }
    .utility-icon {
      width: 42px !important;
      height: 42px !important;
      border-radius: 14px !important;
      font-size: 18px !important;
    }
    .utility-charge-badge {
      min-width: 18px !important;
      height: 18px !important;
      font-size: 10px !important;
      padding: 0 4px !important;
    }
    #alice-guide {
      top: auto !important;
      left: auto !important;
      right: 8px !important;
      bottom: 8px !important;
      max-width: min(340px, calc(100vw - 16px)) !important;
      gap: 6px !important;
      align-items: flex-end !important;
    }
    .alice-avatar-wrap {
      width: 68px !important;
      flex-basis: 68px !important;
    }
    .alice-bubble {
      padding: 10px 12px !important;
    }
    .alice-name {
      font-size: 10px !important;
      margin-bottom: 4px !important;
      padding: 4px 8px !important;
    }
    .alice-text {
      min-height: 32px !important;
      font-size: 12px !important;
      line-height: 1.28 !important;
    }
    .alice-close {
      width: 24px !important;
      height: 24px !important;
      font-size: 14px !important;
      top: 6px !important;
      right: 6px !important;
    }
    #controls {
      padding: 4px 8px !important;
      min-height: 46px !important;
    }
    #controls-content {
      gap: 8px !important;
      flex-wrap: nowrap !important;
      align-items: center !important;
    }
    #controls button {
      flex: 0 1 146px !important;
      min-width: 0 !important;
      min-height: 38px !important;
      padding: 8px 10px !important;
      font-size: 13px !important;
      border-radius: 10px !important;
    }
    .controls-hint {
      display: none !important;
    }
    .utility-icon-soundbar {
      width: 42px !important;
      height: 42px !important;
      min-width: 42px !important;
      max-width: 42px !important;
      min-height: 42px !important;
      border-radius: 14px !important;
      font-size: 18px !important;
      margin-left: auto !important;
    }
    #overlay {
      padding: 6px !important;
      overflow: hidden !important;
    }
    .overlay-panel {
      width: min(100%, calc(100vw - 12px)) !important;
      max-height: calc(100dvh - 12px) !important;
      padding: 10px !important;
      border-radius: 14px !important;
      gap: 7px !important;
      overflow: hidden !important;
    }
    #overlay h2 {
      font-size: 18px !important;
      letter-spacing: 0.8px !important;
      line-height: 1.05 !important;
    }
    #overlay p {
      font-size: 11px !important;
      line-height: 1.22 !important;
    }
    #overlay .big {
      font-size: 14px !important;
      line-height: 1.2 !important;
    }
    #overlay button {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 36px !important;
      padding: 8px 10px !important;
      font-size: 12px !important;
      letter-spacing: 0.5px !important;
      border-radius: 10px !important;
    }
    #overlay.menu-screen {
      overflow: hidden !important;
    }
    #overlay.menu-screen .overlay-panel {
      gap: 8px !important;
    }
    #overlay.victory-reward-screen,
    #overlay.defeat-screen {
      align-items: center !important;
      justify-content: center !important;
      overflow: hidden !important;
    }
    #overlay.victory-reward-screen .overlay-panel,
    #overlay.defeat-screen .overlay-panel {
      margin: 0 auto !important;
      overflow: hidden !important;
    }
    .victory-reward-panel {
      gap: 8px !important;
    }
    .victory-reward-close-copy,
    .victory-reward-kicker {
      font-size: 9px !important;
      letter-spacing: 0.8px !important;
      margin-bottom: 0 !important;
    }
    .victory-reward-copy {
      font-size: 11px !important;
      line-height: 1.2 !important;
    }
    .victory-reward-bar {
      height: 32px !important;
      min-height: 32px !important;
    }
    .victory-reward-band {
      font-size: 10px !important;
      letter-spacing: 0.3px !important;
    }
    .victory-reward-runner {
      width: 12px !important;
      height: calc(100% + 8px) !important;
      top: -4px !important;
    }
    .victory-reward-actions,
    .defeat-reward-actions {
      width: 100% !important;
      gap: 6px !important;
      align-items: stretch !important;
    }
    .reward-claim-btn,
    #overlay.victory-reward-screen .victory-reward-actions .ghost,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.next-step,
    #overlay.victory-reward-screen .victory-reward-actions .ghost.shop-entry,
    #overlay.defeat-screen .reward-claim-btn {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 34px !important;
      padding: 7px 10px !important;
      font-size: 11px !important;
      line-height: 1 !important;
      border-radius: 10px !important;
      letter-spacing: 0.4px !important;
      gap: 8px !important;
    }
    #overlay.shop-screen .overlay-panel.shop-panel {
      max-height: calc(100dvh - 8px) !important;
      padding: 12px !important;
      gap: 10px !important;
    }
    .campaign-map-viewport {
      height: calc(100% - 108px) !important;
    }
    #info-panel {
      min-height: 84px !important;
      padding: 8px 10px !important;
      gap: 8px !important;
      flex-direction: row !important;
      align-items: center !important;
    }
    .campaign-map-service-logo {
      width: 32px !important;
      height: 32px !important;
      min-height: 32px !important;
      align-self: auto !important;
    }
    #info-name {
      font-size: 14px !important;
      text-align: left !important;
      margin-bottom: 2px !important;
    }
    #info-desc,
    .campaign-map-inline-status {
      font-size: 11px !important;
      text-align: left !important;
      line-height: 1.28 !important;
    }
    .campaign-map-inline-actions {
      justify-content: flex-end !important;
      gap: 6px !important;
      flex: 0 0 auto !important;
    }
    #info-btn,
    .campaign-map-zoom-btn {
      min-height: 34px !important;
      min-width: 0 !important;
      padding: 8px 10px !important;
      font-size: 11px !important;
      flex: 0 1 auto !important;
    }
    .campaign-map-stage-popup {
      padding: 8px !important;
    }
    .campaign-map-stage-popup-card {
      padding: 14px 14px 12px !important;
      gap: 8px !important;
    }
    .campaign-map-stage-popup-title {
      font-size: 18px !important;
    }
    .campaign-map-stage-popup-copy {
      font-size: 13px !important;
      line-height: 1.32 !important;
    }
    .campaign-map-stage-popup-actions button {
      min-height: 42px !important;
      font-size: 14px !important;
      padding: 10px 12px !important;
    }
    .loading-panel {
      padding: 14px !important;
    }
    .loading-title {
      font-size: 22px !important;
      letter-spacing: 2px !important;
      margin-bottom: 8px !important;
    }
    .loading-subtitle {
      font-size: 12px !important;
      line-height: 1.35 !important;
      margin-bottom: 12px !important;
    }
    .loading-meta {
      font-size: 11px !important;
    }
    .loading-percent {
      font-size: 16px !important;
    }
    .loading-start {
      margin-top: 12px !important;
    }
    .loading-start button {
      min-height: 42px !important;
      font-size: 14px !important;
      padding: 10px 12px !important;
    }
  }

  @media (max-width: 760px) and (orientation: landscape) {
    #overlay.shop-screen .overlay-panel.shop-panel {
      width: calc(100vw - 8px) !important;
      max-height: calc(100dvh - 8px) !important;
      padding: 10px !important;
      border-radius: 16px !important;
      gap: 8px !important;
    }
    .shop-main {
      gap: 8px !important;
    }
    .shop-feature-shell {
      grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr) !important;
      gap: 12px !important;
      align-items: start !important;
    }
    .shop-feature-media {
      min-height: 138px !important;
      border-radius: 16px !important;
    }
    .shop-carousel-peek {
      display: none !important;
    }
    .shop-footer-actions {
      display: grid !important;
      grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.82fr) !important;
      gap: 8px !important;
      align-items: stretch !important;
      padding-top: 8px !important;
      margin-top: 0 !important;
    }
    .shop-footer-actions > button {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 40px !important;
      padding: 8px 10px !important;
      font-size: 11px !important;
      line-height: 1.1 !important;
      white-space: normal !important;
      text-align: center !important;
    }
    .shop-bottom-ad-button {
      min-width: 0 !important;
      min-height: 40px !important;
      padding: 6px 10px 6px 8px !important;
      gap: 8px !important;
      border-radius: 12px !important;
    }
    .shop-bottom-ad-video-wrap {
      width: 28px !important;
      height: 28px !important;
      flex: 0 0 28px !important;
    }
    .shop-bottom-ad-text {
      font-size: 11px !important;
    }
    .shop-bottom-ad-reward {
      font-size: 13px !important;
    }
    .shop-feature-actions > button,
    .shop-feature-actions > .shop-action-chip,
    .shop-video-button,
    .shop-price-action {
      min-height: 36px !important;
      font-size: 11px !important;
      padding: 8px 10px !important;
      line-height: 1.1 !important;
      white-space: normal !important;
      text-align: center !important;
    }
  }

  @media (max-width: 540px) {
    .map-wrap {
      inset: 8px !important;
      border-radius: 10px !important;
    }
    .top-hud {
      padding: 8px 10px 6px !important;
      gap: 8px !important;
      align-items: flex-start !important;
      flex-direction: column !important;
    }
    .hud-title {
      font-size: 11px !important;
      letter-spacing: 1.8px !important;
    }
    .campaign-map-stats {
      width: 100% !important;
      gap: 6px !important;
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .hud-box {
      min-width: 0 !important;
      padding: 6px 8px !important;
      border-radius: 10px !important;
    }
    .hud-label {
      font-size: 8px !important;
      letter-spacing: 1px !important;
    }
    .hud-val {
      font-size: 12px !important;
    }
    .prog-wrap {
      padding: 4px 10px 0 !important;
    }
    .prog-label {
      color: #00e5ff !important;
      font-size: 8px !important;
      letter-spacing: 1.4px !important;
      margin-bottom: 3px !important;
    }
    .campaign-map-viewport {
      height: calc(100% - 156px) !important;
    }
    #info-panel {
      min-height: 96px !important;
      padding: 8px 10px 10px !important;
      gap: 6px !important;
    }
    .campaign-map-service-logo {
      width: 30px !important;
      height: 30px !important;
      min-height: 30px !important;
      display: none !important;
    }
    #info-name {
      font-size: 13px !important;
      line-height: 1.12 !important;
      margin-bottom: 2px !important;
    }
    #info-desc {
      font-size: 11px !important;
      line-height: 1.22 !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
    }
    .campaign-map-inline-status {
      display: none !important;
    }
    .campaign-map-inline-actions {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 6px !important;
      width: 100% !important;
      justify-content: stretch !important;
    }
    #info-btn,
    .campaign-map-zoom-btn {
      min-height: 36px !important;
      padding: 6px 8px !important;
      font-size: 13px !important;
      letter-spacing: 0.5px !important;
      width: 100% !important;
      justify-self: stretch !important;
      flex: 1 1 auto !important;
    }
    #info-btn.is-service-launch,
    .campaign-map-zoom-btn {
      font-weight: 800 !important;
      text-align: center !important;
      justify-content: center !important;
    }
    .campaign-map-nav-btn {
      min-width: 0 !important;
      padding-inline: 8px !important;
      font-size: 12px !important;
      letter-spacing: 0.2px !important;
      line-height: 1.05 !important;
    }
    #overlay.shop-screen .overlay-panel.shop-panel {
      width: calc(100vw - 8px) !important;
      max-height: calc(100dvh - 8px) !important;
      padding: 10px !important;
      gap: 8px !important;
      border-radius: 16px !important;
    }
    .shop-main {
      gap: 8px !important;
    }
    .campaign-map-kicker {
      font-size: 9px !important;
      letter-spacing: 1.3px !important;
    }
    #overlay.shop-screen h2 {
      font-size: 24px !important;
      letter-spacing: 1.2px !important;
    }
    #overlay.shop-screen .campaign-map-copy {
      font-size: 12px !important;
      line-height: 1.26 !important;
    }
    .shop-topline {
      gap: 6px !important;
    }
    .shop-credit-chip {
      padding: 6px 9px !important;
      font-size: 10px !important;
      letter-spacing: 0.5px !important;
    }
    .shop-tabs {
      gap: 6px !important;
    }
    .shop-tab {
      min-height: 40px !important;
      font-size: 10px !important;
      letter-spacing: 0.4px !important;
      gap: 4px !important;
      padding: 6px 8px !important;
    }
    .shop-upgrade-focus {
      padding: 8px 10px !important;
    }
    .shop-upgrade-focus-copy {
      font-size: 11px !important;
      line-height: 1.22 !important;
    }
    .shop-section-title {
      font-size: 10px !important;
      letter-spacing: 1.6px !important;
    }
    .shop-feature-shell {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 10px !important;
    }
    .shop-feature-media {
      min-height: 152px !important;
    }
    .shop-feature-media-vpn {
      min-height: 168px !important;
    }
    .shop-vpn-image-full {
      padding: 8px !important;
      object-position: center 42% !important;
    }
    .shop-vpn-overlay-copy {
      padding: 10px !important;
    }
    .shop-vpn-caption {
      max-width: 88% !important;
      font-size: 10px !important;
      letter-spacing: 1.2px !important;
    }
    .shop-feature-content {
      gap: 8px !important;
    }
    .shop-hero-kicker {
      font-size: 9px !important;
      letter-spacing: 1.6px !important;
    }
    .shop-hero-title {
      font-size: 18px !important;
    }
    .shop-hero-copy {
      font-size: 11px !important;
      line-height: 1.24 !important;
    }
    .shop-stat-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 6px !important;
    }
    .shop-stat-grid.is-device-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .shop-stat-pill {
      min-height: 42px !important;
      padding: 6px 8px !important;
    }
    .shop-stat-value {
      font-size: 12px !important;
    }
    .shop-note-panel {
      padding: 8px 10px !important;
    }
    .shop-note-copy {
      font-size: 10px !important;
      line-height: 1.22 !important;
    }
    .shop-owned-perks-strip {
      padding: 10px 12px !important;
      gap: 8px !important;
    }
    .shop-owned-perks-label {
      font-size: 10px !important;
      letter-spacing: 1.8px !important;
    }
    .shop-owned-perks-list {
      gap: 8px !important;
    }
    .shop-owned-perk-chip {
      min-height: 38px !important;
      padding: 7px 10px !important;
      font-size: 11px !important;
      gap: 8px !important;
    }
    .shop-perk-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 10px !important;
    }
    .shop-perk-card {
      padding: 12px !important;
      gap: 8px !important;
      border-radius: 16px !important;
    }
    .shop-perk-title {
      font-size: 16px !important;
    }
    .shop-perk-subtitle {
      font-size: 11px !important;
      line-height: 1.24 !important;
    }
    .shop-perk-actions {
      gap: 6px !important;
    }
    .shop-perk-actions > button {
      min-height: 42px !important;
      padding: 8px 10px !important;
      border-radius: 12px !important;
    }
    .shop-price-action {
      min-width: 118px !important;
      gap: 6px !important;
    }
    .shop-price-action-value,
    .shop-price-action-icon {
      font-size: 13px !important;
    }
    .shop-video-button.is-inline {
      min-width: 42px !important;
      width: 42px !important;
      min-height: 42px !important;
      height: 42px !important;
      padding: 0 !important;
      border-radius: 12px !important;
    }
    .shop-footer-actions {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      gap: 6px !important;
      align-items: stretch !important;
      padding-top: 8px !important;
      margin-top: 0 !important;
      width: 100% !important;
      flex: 0 0 auto !important;
    }
    .shop-footer-actions > button,
    .shop-bottom-ad-button {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 42px !important;
      font-size: 12px !important;
      line-height: 1.14 !important;
      white-space: normal !important;
      text-align: center !important;
    }
    .shop-bottom-ad-text {
      font-size: 12px !important;
    }
    .shop-bottom-ad-reward {
      font-size: 14px !important;
    }
  }

  @media (max-width: 980px) and (max-height: 640px) and (orientation: landscape) {
    #overlay.shop-screen .overlay-panel.shop-panel {
      width: calc(100vw - 12px) !important;
      max-height: calc(100dvh - 12px) !important;
      padding: 12px !important;
      gap: 10px !important;
      border-radius: 18px !important;
    }
    .shop-main {
      gap: 8px !important;
      min-height: 0 !important;
    }
    .campaign-map-kicker {
      font-size: 10px !important;
      letter-spacing: 1.6px !important;
    }
    #overlay.shop-screen h2 {
      font-size: 26px !important;
      letter-spacing: 1.8px !important;
      line-height: 1.04 !important;
    }
    #overlay.shop-screen .campaign-map-copy {
      font-size: 12px !important;
      line-height: 1.25 !important;
    }
    .shop-topline {
      gap: 8px !important;
    }
    .shop-credit-chip {
      padding: 7px 11px !important;
      font-size: 11px !important;
      letter-spacing: 0.5px !important;
    }
    .shop-tabs {
      gap: 8px !important;
    }
    .shop-tab {
      min-height: 44px !important;
      padding: 8px 10px !important;
      font-size: 11px !important;
      letter-spacing: 0.6px !important;
      gap: 6px !important;
    }
    .shop-tab span:first-child {
      font-size: 15px !important;
    }
    .shop-upgrade-focus {
      padding: 10px 12px !important;
      gap: 4px !important;
    }
    .shop-upgrade-focus-label,
    .shop-section-title {
      font-size: 10px !important;
      letter-spacing: 1.8px !important;
    }
    .shop-upgrade-focus-copy {
      font-size: 11px !important;
      line-height: 1.24 !important;
    }
    .shop-feature-card {
      padding: 12px !important;
      border-radius: 22px !important;
    }
    .shop-feature-shell {
      grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr) !important;
      gap: 12px !important;
      align-items: start !important;
    }
    .shop-feature-media {
      min-height: 152px !important;
      border-radius: 18px !important;
      clip-path: inset(0 round 18px) !important;
    }
    .shop-feature-media-vpn {
      min-height: 164px !important;
    }
    .shop-device-image-float {
      width: min(64%, 260px) !important;
      right: 8% !important;
      top: 17% !important;
    }
    .shop-vpn-image-full {
      padding: 10px 10px 42px !important;
      object-position: center 42% !important;
    }
    .shop-vpn-overlay-copy {
      padding: 12px !important;
    }
    .shop-vpn-caption {
      max-width: 82% !important;
      font-size: 10px !important;
      letter-spacing: 1px !important;
    }
    .shop-stage-badge {
      top: 10px !important;
      left: 10px !important;
      min-height: 28px !important;
      padding: 5px 9px !important;
      font-size: 9px !important;
      letter-spacing: 0.9px !important;
    }
    .shop-feature-content {
      gap: 8px !important;
    }
    .shop-hero-kicker {
      font-size: 9px !important;
      letter-spacing: 1.8px !important;
    }
    .shop-hero-title {
      font-size: 21px !important;
      letter-spacing: 0.8px !important;
    }
    .shop-hero-copy {
      font-size: 12px !important;
      line-height: 1.28 !important;
    }
    .shop-hero-title-row {
      gap: 8px !important;
    }
    .shop-price-chip,
    .shop-max-chip {
      padding: 7px 10px !important;
      font-size: 12px !important;
    }
    .shop-price-value,
    .shop-price-icon {
      font-size: 13px !important;
    }
    .shop-vpn-level-strip {
      gap: 6px !important;
    }
    .shop-vpn-level-node,
    .shop-inline-badge {
      padding: 6px 9px !important;
      font-size: 9px !important;
      letter-spacing: 1px !important;
    }
    .shop-stat-grid {
      gap: 6px !important;
    }
    .shop-stat-pill {
      min-height: 48px !important;
      padding: 7px 9px !important;
      border-radius: 14px !important;
      gap: 8px !important;
    }
    .shop-stat-emoji {
      font-size: 18px !important;
    }
    .shop-stat-label {
      font-size: 9px !important;
      letter-spacing: 0.8px !important;
    }
    .shop-stat-value {
      font-size: 13px !important;
    }
    .shop-note-panel {
      padding: 10px 12px !important;
      gap: 4px !important;
    }
    .shop-note-title {
      font-size: 9px !important;
      letter-spacing: 1.4px !important;
    }
    .shop-note-copy {
      font-size: 11px !important;
      line-height: 1.24 !important;
    }
    .shop-carousel-controls {
      margin-top: 10px !important;
      gap: 8px !important;
    }
    .shop-arrow-btn {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
      min-height: 40px !important;
      font-size: 22px !important;
    }
    .shop-carousel-page {
      min-width: 56px !important;
      font-size: 11px !important;
      letter-spacing: 1px !important;
    }
    .shop-carousel-peek {
      display: none !important;
    }
    .shop-feature-actions,
    .shop-perk-actions {
      gap: 8px !important;
    }
    .shop-feature-actions > button,
    .shop-feature-actions > .shop-action-chip,
    .shop-video-button,
    .shop-price-action {
      min-height: 40px !important;
      padding: 8px 10px !important;
      font-size: 11px !important;
      line-height: 1.12 !important;
      white-space: normal !important;
      text-align: center !important;
    }
    .shop-action-chip.is-muted {
      font-size: 11px !important;
      padding: 8px 10px !important;
      line-height: 1.12 !important;
    }
    .shop-video-button .reward-video-icon {
      width: 18px !important;
      height: 18px !important;
    }
    .shop-owned-perks-strip {
      margin-bottom: 6px !important;
      padding: 10px 12px !important;
      gap: 8px !important;
    }
    .shop-owned-perks-label {
      font-size: 10px !important;
      letter-spacing: 1.6px !important;
    }
    .shop-owned-perks-list {
      gap: 8px !important;
    }
    .shop-owned-perk-chip {
      min-height: 36px !important;
      padding: 7px 10px !important;
      font-size: 11px !important;
      gap: 8px !important;
    }
    .shop-perk-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 10px !important;
    }
    .shop-perk-card {
      padding: 12px !important;
      gap: 8px !important;
      border-radius: 18px !important;
    }
    .shop-perk-head {
      gap: 8px !important;
    }
    .shop-perk-icon {
      width: 42px !important;
      height: 42px !important;
      border-radius: 13px !important;
      font-size: 20px !important;
    }
    .shop-perk-title {
      font-size: 16px !important;
    }
    .shop-perk-subtitle {
      margin-top: 4px !important;
      font-size: 11px !important;
      line-height: 1.24 !important;
    }
    .shop-perk-footer {
      gap: 8px !important;
    }
    .shop-perk-actions {
      min-width: 0 !important;
    }
    .shop-price-action {
      min-width: 110px !important;
      gap: 6px !important;
    }
    .shop-price-action-value,
    .shop-price-action-icon {
      font-size: 12px !important;
    }
    .shop-video-button.is-inline {
      width: 40px !important;
      min-width: 40px !important;
      height: 40px !important;
      min-height: 40px !important;
      padding: 0 !important;
      flex: 0 0 40px !important;
    }
    .shop-footer-actions {
      display: grid !important;
      grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 0.9fr) !important;
      gap: 8px !important;
      align-items: stretch !important;
      padding-top: 8px !important;
      margin-top: 0 !important;
      width: 100% !important;
      flex: 0 0 auto !important;
    }
    .shop-footer-actions > button,
    .shop-bottom-ad-button {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 42px !important;
      padding: 8px 10px !important;
      font-size: 12px !important;
      line-height: 1.12 !important;
      white-space: normal !important;
      text-align: center !important;
    }
    .shop-bottom-ad-button {
      gap: 8px !important;
      border-radius: 12px !important;
    }
    .shop-bottom-ad-video-wrap {
      width: 30px !important;
      height: 30px !important;
      flex: 0 0 30px !important;
      border-radius: 10px !important;
    }
    .shop-bottom-ad-video-wrap .reward-video-icon {
      width: 22px !important;
      height: 22px !important;
    }
    .shop-bottom-ad-label {
      gap: 4px !important;
      flex-wrap: wrap !important;
    }
    .shop-bottom-ad-text {
      font-size: 11px !important;
      letter-spacing: 0.2px !important;
    }
    .shop-bottom-ad-reward {
      font-size: 13px !important;
    }
  }

  @media (max-width: 980px) and (max-height: 430px) and (orientation: landscape) {
    #overlay.shop-screen .overlay-panel.shop-panel {
      width: calc(100vw - 8px) !important;
      max-height: calc(100dvh - 8px) !important;
      padding: 8px !important;
      gap: 6px !important;
      border-radius: 14px !important;
    }
    .shop-main {
      gap: 6px !important;
      padding-right: 0 !important;
    }
    .campaign-map-kicker {
      font-size: 8px !important;
      letter-spacing: 1.1px !important;
    }
    #overlay.shop-screen h2 {
      font-size: 20px !important;
      letter-spacing: 1px !important;
      line-height: 1 !important;
    }
    #overlay.shop-screen .campaign-map-copy {
      font-size: 10px !important;
      line-height: 1.18 !important;
    }
    .shop-topline {
      gap: 6px !important;
    }
    .shop-credit-chip {
      padding: 5px 8px !important;
      font-size: 9px !important;
      letter-spacing: 0.35px !important;
    }
    .shop-tabs {
      gap: 6px !important;
    }
    .shop-tab {
      min-height: 36px !important;
      padding: 6px 8px !important;
      font-size: 9px !important;
      letter-spacing: 0.3px !important;
      gap: 4px !important;
      border-radius: 12px !important;
    }
    .shop-tab span:first-child {
      font-size: 13px !important;
    }
    .shop-upgrade-focus {
      padding: 8px 10px !important;
      gap: 3px !important;
      border-radius: 14px !important;
    }
    .shop-upgrade-focus-label,
    .shop-section-title {
      font-size: 8px !important;
      letter-spacing: 1.2px !important;
    }
    .shop-upgrade-focus-copy {
      font-size: 9px !important;
      line-height: 1.14 !important;
    }
    .shop-feature-card {
      padding: 8px !important;
      border-radius: 16px !important;
    }
    .shop-feature-shell {
      grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) !important;
      gap: 8px !important;
    }
    .shop-feature-media {
      min-height: 112px !important;
      border-radius: 14px !important;
      clip-path: inset(0 round 14px) !important;
    }
    .shop-feature-media-vpn {
      min-height: 122px !important;
    }
    .shop-device-image-float {
      width: min(64%, 190px) !important;
      right: 6% !important;
      top: 16% !important;
    }
    .shop-vpn-image-full {
      padding: 8px 8px 30px !important;
      object-position: center 40% !important;
    }
    .shop-vpn-overlay-copy {
      padding: 9px !important;
    }
    .shop-vpn-caption {
      max-width: 84% !important;
      font-size: 8px !important;
      letter-spacing: 0.7px !important;
    }
    .shop-stage-badge {
      top: 8px !important;
      left: 8px !important;
      min-height: 22px !important;
      padding: 4px 7px !important;
      font-size: 7px !important;
      letter-spacing: 0.55px !important;
    }
    .shop-feature-content {
      gap: 6px !important;
    }
    .shop-hero-kicker {
      font-size: 8px !important;
      letter-spacing: 1.1px !important;
    }
    .shop-hero-title {
      font-size: 16px !important;
      letter-spacing: 0.3px !important;
    }
    .shop-hero-title-row {
      gap: 6px !important;
      flex-direction: row !important;
      align-items: center !important;
    }
    .shop-hero-copy {
      font-size: 10px !important;
      line-height: 1.16 !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 3 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
    }
    .shop-price-chip,
    .shop-max-chip {
      padding: 5px 8px !important;
      font-size: 10px !important;
      gap: 5px !important;
    }
    .shop-price-value,
    .shop-price-icon {
      font-size: 11px !important;
    }
    .shop-vpn-level-strip {
      gap: 4px !important;
    }
    .shop-vpn-level-node,
    .shop-inline-badge {
      padding: 4px 7px !important;
      font-size: 7px !important;
      letter-spacing: 0.65px !important;
    }
    .shop-stat-grid {
      gap: 4px !important;
    }
    .shop-stat-grid.is-device-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .shop-stat-pill {
      min-height: 34px !important;
      padding: 5px 7px !important;
      border-radius: 10px !important;
      gap: 6px !important;
    }
    .shop-stat-emoji {
      font-size: 14px !important;
    }
    .shop-stat-label {
      font-size: 7px !important;
      letter-spacing: 0.5px !important;
    }
    .shop-stat-value {
      font-size: 10px !important;
      line-height: 1.05 !important;
    }
    .shop-note-panel {
      padding: 7px 9px !important;
      gap: 3px !important;
      border-radius: 12px !important;
    }
    .shop-note-title {
      font-size: 7px !important;
      letter-spacing: 0.9px !important;
    }
    .shop-note-copy {
      font-size: 9px !important;
      line-height: 1.14 !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 3 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
    }
    .shop-carousel-controls {
      margin-top: 6px !important;
      gap: 6px !important;
    }
    .shop-arrow-btn {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
      min-height: 32px !important;
      font-size: 18px !important;
    }
    .shop-carousel-page {
      min-width: 44px !important;
      font-size: 9px !important;
      letter-spacing: 0.7px !important;
    }
    .shop-feature-actions,
    .shop-perk-actions {
      gap: 6px !important;
    }
    .shop-feature-actions > button,
    .shop-feature-actions > .shop-action-chip,
    .shop-video-button,
    .shop-price-action {
      min-height: 34px !important;
      padding: 6px 8px !important;
      font-size: 9px !important;
      line-height: 1.06 !important;
      border-radius: 10px !important;
    }
    .shop-action-chip.is-muted {
      font-size: 9px !important;
      padding: 6px 8px !important;
      line-height: 1.08 !important;
      border-radius: 10px !important;
    }
    .shop-video-button .reward-video-icon {
      width: 16px !important;
      height: 16px !important;
    }
    .shop-owned-perks-strip {
      margin-bottom: 4px !important;
      padding: 8px 10px !important;
      gap: 6px !important;
      border-radius: 14px !important;
    }
    .shop-owned-perks-label {
      font-size: 8px !important;
      letter-spacing: 1px !important;
    }
    .shop-owned-perks-list {
      gap: 6px !important;
    }
    .shop-owned-perk-chip {
      min-height: 30px !important;
      padding: 5px 8px !important;
      font-size: 9px !important;
      gap: 6px !important;
    }
    .perk-symbol-icon.is-owned-strip,
    .medkit-cross-icon.is-owned-strip {
      width: 22px !important;
      height: 22px !important;
      font-size: 14px !important;
      border-radius: 8px !important;
    }
    .shop-perk-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
    }
    .shop-perk-card {
      padding: 9px !important;
      gap: 6px !important;
      border-radius: 14px !important;
    }
    .shop-perk-head {
      gap: 6px !important;
      grid-template-columns: auto minmax(0, 1fr) !important;
    }
    .shop-perk-icon {
      width: 34px !important;
      height: 34px !important;
      border-radius: 10px !important;
      font-size: 16px !important;
    }
    .shop-perk-count-badge {
      min-width: 18px !important;
      height: 18px !important;
      line-height: 18px !important;
      font-size: 10px !important;
      top: -4px !important;
      right: -4px !important;
    }
    .shop-perk-icon .medkit-cross-icon.is-shop {
      width: 28px !important;
      height: 28px !important;
      font-size: 20px !important;
    }
    .shop-perk-title {
      font-size: 12px !important;
      line-height: 1.05 !important;
    }
    .shop-perk-subtitle {
      margin-top: 3px !important;
      font-size: 9px !important;
      line-height: 1.14 !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 3 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
    }
    .shop-perk-footer {
      gap: 6px !important;
      align-items: center !important;
    }
    .shop-perk-actions {
      grid-template-columns: minmax(0, 1fr) 34px !important;
      min-width: 0 !important;
      max-width: 170px !important;
      width: 100% !important;
      gap: 4px !important;
    }
    .shop-perk-actions > button {
      min-height: 34px !important;
    }
    .shop-price-action {
      min-width: 0 !important;
      gap: 4px !important;
    }
    .shop-price-action-value,
    .shop-price-action-icon {
      font-size: 10px !important;
    }
    .shop-video-button.is-inline {
      width: 34px !important;
      min-width: 34px !important;
      max-width: 34px !important;
      height: 34px !important;
      min-height: 34px !important;
      flex: 0 0 34px !important;
      padding: 0 !important;
      border-radius: 10px !important;
    }
    .shop-video-button.is-inline .reward-video-icon {
      width: 14px !important;
      height: 14px !important;
    }
    .shop-footer-actions {
      grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.96fr) minmax(0, 0.88fr) !important;
      gap: 6px !important;
      padding-top: 6px !important;
    }
    .shop-footer-actions > button,
    .shop-bottom-ad-button {
      min-height: 34px !important;
      padding: 6px 8px !important;
      font-size: 9px !important;
      line-height: 1.06 !important;
      border-radius: 10px !important;
    }
    .shop-bottom-ad-button {
      gap: 6px !important;
    }
    .shop-bottom-ad-video-wrap {
      width: 24px !important;
      height: 24px !important;
      flex: 0 0 24px !important;
      border-radius: 8px !important;
    }
    .shop-bottom-ad-video-wrap .reward-video-icon {
      width: 16px !important;
      height: 16px !important;
    }
    .shop-bottom-ad-label {
      gap: 3px !important;
    }
    .shop-bottom-ad-text {
      font-size: 9px !important;
      letter-spacing: 0.1px !important;
    }
    .shop-bottom-ad-reward {
      font-size: 10px !important;
      gap: 2px !important;
    }
  }

  #overlay.shop-screen .overlay-panel.shop-panel {
    width: min(1180px, 100%) !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #overlay.shop-screen button,
  #overlay.shop-screen .shop-action-chip.is-muted {
    min-height: clamp(34px, 7.2dvh, 58px) !important;
    padding-block: clamp(6px, 1.6dvh, 14px) !important;
    font-size: clamp(10px, 2.2dvh, 18px) !important;
    line-height: 1.06 !important;
  }
  .shop-footer-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.88fr) !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
  }
  .shop-footer-actions > button,
  .shop-footer-actions .shop-bottom-ad-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: clamp(32px, 7dvh, 58px) !important;
    padding: clamp(5px, 1.35dvh, 10px) clamp(6px, 1.4vw, 14px) !important;
    font-size: clamp(8px, 1.8dvh, 16px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .shop-bottom-ad-button {
    flex-wrap: nowrap !important;
  }
  .shop-bottom-ad-label,
  .shop-bottom-ad-reward,
  .shop-bottom-ad-text {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .shop-bottom-ad-label {
    flex: 1 1 auto !important;
  }
  .shop-bottom-ad-reward {
    flex: 0 0 auto !important;
  }

  @media (max-height: 640px), (max-width: 540px) {
    #overlay.shop-screen .shop-carousel-peek {
      display: none !important;
    }
  }

  @media (max-height: 430px) {
    #overlay.shop-screen button,
    #overlay.shop-screen .shop-action-chip.is-muted {
      min-height: 32px !important;
      padding-block: 5px !important;
      font-size: 9px !important;
    }
  }

  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) {
    overflow: hidden !important;
    padding: clamp(6px, 2.2dvh, 24px) !important;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) .overlay-panel {
    width: min(760px, 100%) !important;
    max-height: 100% !important;
    padding: clamp(10px, 2.8dvh, 28px) clamp(12px, 3vw, 32px) !important;
    gap: clamp(5px, 1.45dvh, 14px) !important;
    overflow: hidden !important;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) h2 {
    font-size: clamp(20px, 6dvh, 50px) !important;
    line-height: 1 !important;
    letter-spacing: clamp(0.8px, 0.7dvh, 5px) !important;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) p {
    font-size: clamp(10px, 2.35dvh, 20px) !important;
    line-height: 1.22 !important;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) .big {
    font-size: clamp(13px, 3.45dvh, 28px) !important;
    line-height: 1.08 !important;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) .menu-control-hint {
    font-size: clamp(9px, 1.95dvh, 16px) !important;
    line-height: 1.08 !important;
  }
  #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) button {
    min-height: clamp(34px, 6.8dvh, 54px) !important;
    padding: clamp(7px, 1.6dvh, 14px) clamp(10px, 3vw, 34px) !important;
    font-size: clamp(12px, 2.8dvh, 24px) !important;
    line-height: 1 !important;
  }

  #overlay.victory-reward-screen .reward-claim-btn,
  #overlay.victory-reward-screen .victory-reward-actions .ghost,
  #overlay.defeat-screen .reward-claim-btn,
  #overlay.defeat-screen button[data-action="start-game"],
  #overlay.defeat-screen button[data-action="open-shop"] {
    width: min(320px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  @media (max-height: 430px) {
    #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) .overlay-panel {
      gap: 4px !important;
      padding: 8px 10px !important;
    }
    #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) h2 {
      font-size: clamp(18px, 5.2dvh, 28px) !important;
    }
    #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) p {
      font-size: clamp(9px, 2dvh, 12px) !important;
      line-height: 1.12 !important;
    }
    #overlay.menu-screen:not(.victory-reward-screen):not(.gameplay-intro-screen):not(.ending-screen) button {
      min-height: 32px !important;
      padding: 6px 10px !important;
      font-size: 11px !important;
    }
  }
