/* Mobile layer for the Fisio Game template. Desktop selectors stay untouched. */
#GHB .ghb-orientation-gate,
#GHB .ghb-touch-controls,
#GHB .ghb-mobile-hud-toggle,
#GHB .ghb-mobile-pause,
#GHB .ghb-mobile-continue,
#GHB .ghb-mobile-modal,
#GHB .ghb-touch-feedback,
#GHB .ghb-control-mode-toggle,
#GHB .ghb-gesture-tutorial {
  display: none;
}

html.ghb-is-touch,
html.ghb-is-touch body.ghb-fisio-game-template {
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

html.ghb-mobile-game-active,
html.ghb-mobile-game-active body.ghb-fisio-game-template {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html.ghb-mobile-game-active.ghb-mobile-landscape,
html.ghb-mobile-game-active.ghb-mobile-landscape body.ghb-fisio-game-template {
  touch-action: none;
}

html.ghb-mobile-game-active body.ghb-fisio-game-template {
  position: fixed;
  inset: 0;
}

html.ghb-is-touch #GHB,
html.ghb-is-touch #GHB * {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none), (pointer: coarse), (max-width: 1180px) {
  html.ghb-is-touch body.ghb-fisio-game-template {
    background: #030408;
  }

  html.ghb-is-touch #GHB .overlay.on {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    background: #030408;
    backdrop-filter: none;
  }

  html.ghb-is-touch #GHB .screen {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
  }

  html.ghb-is-touch #GHB #ghPlatform.screen.on {
    display: block;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: #020204;
    touch-action: auto;
  }

  html.ghb-is-touch #GHB #ghPlatform .arena {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    place-items: stretch;
    background: #020204;
    touch-action: none;
  }

  html.ghb-is-touch #GHB #ghPlatform .game-frame {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    background: #020204;
  }

  html.ghb-is-touch #GHB #ghPlatform .game-frame canvas {
    width: 100%;
    height: 100%;
    image-rendering: auto;
    touch-action: none;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud,
  html.ghb-is-touch #GHB #ghPlatform .info,
  html.ghb-is-touch #GHB #ghPlatform .special-hud,
  html.ghb-is-touch #GHB #ghPlatform .stages {
    backdrop-filter: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-main {
    top: max(8px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 8px));
    left: max(8px, env(safe-area-inset-left));
    right: max(58px, calc(env(safe-area-inset-right) + 50px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: auto;
    max-width: calc(100vw - 74px - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding: 7px;
    border-radius: 14px;
    background: rgba(6, 7, 12, .72);
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-side {
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-primary {
    display: flex;
    grid-column: 1;
    overflow: hidden;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-rail {
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    width: max-content;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(8, 8, 14, .36), rgba(6, 7, 12, .18));
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    backdrop-filter: blur(4px);
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-actions {
    display: flex;
    grid-column: 1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: max-height .22s ease, opacity .18s ease, transform .18s ease;
  }

  html.ghb-is-touch #GHB #ghPlatform.ghb-mobile-hud-expanded .hud-main {
    background: rgba(6, 7, 12, .82);
  }

  html.ghb-is-touch #GHB #ghPlatform.ghb-mobile-hud-expanded .hud-actions {
    max-height: 58px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-btn[data-back] {
    display: none;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-stat {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 9px;
    gap: 5px;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-icon {
    width: 17px;
    height: 17px;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-label {
    display: none;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-stat b {
    font-size: 11px;
  }

  html.ghb-is-touch #GHB #ghPlatform .cardio-hud {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 32px;
    padding: 6px 8px;
    gap: 5px;
    background: linear-gradient(180deg, rgba(var(--cardio-rgb), .18), rgba(8, 8, 14, .1));
    border-color: rgba(var(--cardio-rgb), .26);
  }

  html.ghb-is-touch #GHB #ghPlatform .cardio-hud img {
    width: clamp(58px, 14vw, 76px);
    max-height: 30px;
  }

  html.ghb-is-touch #GHB #ghPlatform .cardio-hud b {
    min-width: 22px;
    font-size: 9px;
  }

  html.ghb-is-touch #GHB .toast {
    top: max(58px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 58px));
    max-width: min(76vw, 420px);
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 10px;
    line-height: 1.2;
  }

  html.ghb-is-touch #GHB .toast b {
    margin-bottom: 2px;
    font-size: 10px;
  }

  html.ghb-is-touch #GHB .toast span {
    font-size: 9.5px;
    line-height: 1.2;
  }

  html.ghb-is-touch #GHB .toast-cardio {
    top: max(64px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 64px));
  }

  html.ghb-is-touch #GHB .enemy-dialog-bubble {
    max-width: min(46vw, 260px);
    padding: 7px 9px 8px;
    border-radius: 8px;
  }

  html.ghb-is-touch #GHB .enemy-dialog-bubble b {
    margin-bottom: 2px;
    font-size: 8.5px;
  }

  html.ghb-is-touch #GHB .enemy-dialog-bubble span {
    font-size: 9px;
    line-height: 1.18;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-toggle,
  html.ghb-is-touch #GHB #ghPlatform .hud-btn {
    height: 38px;
    min-width: 66px;
    border-radius: 11px;
    font-size: 9px;
  }

  @media (min-width: 768px) {
    html.ghb-is-touch #GHB #ghPlatform .hud-main {
      top: max(12px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 12px));
      left: max(12px, env(safe-area-inset-left));
      right: max(66px, calc(env(safe-area-inset-right) + 58px));
      max-width: calc(100vw - 90px - env(safe-area-inset-left) - env(safe-area-inset-right));
      padding: 9px;
      border-radius: 16px;
    }

    html.ghb-is-touch #GHB #ghPlatform .hud-side {
      gap: 8px;
    }

    html.ghb-is-touch #GHB #ghPlatform .hud-rail {
      gap: 6px;
      padding: 5px;
    }

    html.ghb-is-touch #GHB #ghPlatform .hud-stat {
      min-height: 38px;
      padding: 8px 11px;
      border-radius: 999px;
      font-size: 11px;
    }

    html.ghb-is-touch #GHB #ghPlatform .hud-stat b {
      font-size: 13px;
    }

    html.ghb-is-touch #GHB #ghPlatform .cardio-hud {
      min-height: 38px;
      padding: 8px 11px;
      gap: 7px;
    }

    html.ghb-is-touch #GHB #ghPlatform .cardio-hud img {
      width: clamp(68px, 7vw, 84px);
      max-height: 32px;
    }

    html.ghb-is-touch #GHB #ghPlatform .cardio-hud b {
      min-width: 28px;
      font-size: 13px;
    }
  }

  @media (max-width: 900px) {
    html.ghb-is-touch #GHB #ghPlatform .cardio-hud-title {
      display: none;
    }
  }

  html.ghb-is-touch #GHB .ghb-mobile-hud-toggle {
    position: fixed;
    top: max(8px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 8px));
    right: max(8px, env(safe-area-inset-right));
    z-index: 45;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: rgba(7, 8, 13, .78);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
    touch-action: none;
  }

  html.ghb-is-touch #GHB .ghb-mobile-hud-toggle span,
  html.ghb-is-touch #GHB .ghb-mobile-hud-toggle span::before,
  html.ghb-is-touch #GHB .ghb-mobile-hud-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  html.ghb-is-touch #GHB .ghb-mobile-hud-toggle span::before {
    transform: translateY(-6px);
  }

  html.ghb-is-touch #GHB .ghb-mobile-hud-toggle span::after {
    transform: translateY(4px);
  }

  html.ghb-is-touch #GHB #ghPlatform .info {
    top: max(62px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 54px));
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: 28dvh;
    overflow: auto;
    padding: 10px 12px;
    background: rgba(10, 12, 18, .76);
  }

  html.ghb-is-touch #GHB #ghPlatform .special-hud {
    left: max(8px, env(safe-area-inset-left));
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: min(330px, calc(52vw - env(safe-area-inset-left)));
    padding: 8px;
    background: rgba(10, 12, 18, .78);
  }

  html.ghb-is-touch #GHB #ghPlatform .special-hud .special-chip {
    min-height: 50px;
    border-radius: 13px;
  }

  html.ghb-is-touch #GHB #ghPlatform .stages {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: auto;
    transform: translateY(10px) scale(.98);
    background: rgba(10, 12, 18, .78);
  }

  html.ghb-is-touch #GHB #ghPlatform .stages.is-open {
    transform: translateY(0) scale(1);
  }

  html.ghb-is-touch #GHB .ghb-touch-controls {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: none;
    pointer-events: none;
    touch-action: none;
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .ghb-touch-controls {
    display: block;
  }

  html.ghb-is-touch #GHB .ghb-move-zone {
    position: absolute;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(35vw, 190px);
    height: min(42vh, 190px);
    pointer-events: auto;
    touch-action: none;
  }

  html.ghb-is-touch #GHB .ghb-stick-base {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: clamp(104px, 18vw, 132px);
    height: clamp(104px, 18vw, 132px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(8, 10, 16, .34);
  }

  html.ghb-is-touch #GHB .ghb-stick-knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48%;
    height: 48%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .24);
    border: 1px solid rgba(255, 255, 255, .22);
    transform: translate(-50%, -50%);
    transition: transform .08s linear;
  }

  html.ghb-is-touch #GHB .ghb-action-cluster {
    position: absolute;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 58px 76px;
    grid-template-rows: 52px 76px;
    gap: 12px;
    align-items: end;
    pointer-events: auto;
    touch-action: none;
  }

  html.ghb-is-touch #GHB .ghb-touch-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 10, 16, .42);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    font: 900 22px/1 Montserrat, sans-serif;
    display: grid;
    place-items: center;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
  }

  html.ghb-is-touch #GHB .ghb-touch-btn.is-down {
    transform: scale(.95);
    background: rgba(112, 247, 176, .24);
    border-color: rgba(112, 247, 176, .42);
  }

  html.ghb-is-touch #GHB .ghb-touch-jump {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 76px;
    height: 76px;
    align-self: end;
    font-size: 30px;
  }

  html.ghb-is-touch #GHB .ghb-touch-action {
    grid-column: 1;
    grid-row: 2;
    width: 58px;
    height: 58px;
    align-self: center;
    color: #d7ffe9;
  }

  html.ghb-is-touch #GHB .ghb-touch-pause {
    position: fixed;
    top: max(58px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 52px));
    right: max(8px, env(safe-area-inset-right));
    z-index: 45;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 18px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-pause.on {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(1, 2, 6, .66);
  }

  html.ghb-is-touch #GHB .ghb-mobile-pause-card {
    width: min(360px, 92vw);
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(8, 10, 16, .92);
    color: #fff;
    text-align: center;
    box-shadow: 0 24px 46px rgba(0, 0, 0, .34);
  }

  html.ghb-is-touch #GHB .ghb-mobile-pause-card b {
    font: 900 22px/1.1 Montserrat, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  html.ghb-is-touch #GHB .ghb-mobile-pause-card button,
  html.ghb-is-touch #GHB .ghb-orientation-card button {
    min-height: 44px;
    border: 1px solid rgba(112, 247, 176, .36);
    border-radius: 14px;
    color: #07120e;
    background: #8ff0d6;
    font-weight: 900;
  }

  html.ghb-is-touch #GHB .ghb-mobile-continue.on {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 2147483200;
    display: block;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(112, 247, 176, .46);
    border-radius: 16px;
    background: linear-gradient(135deg, #8ff0d6, #c8ffe9);
    color: #07120e;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .34);
    font: 900 13px/1 Montserrat, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    touch-action: manipulation;
    pointer-events: auto;
  }

  html.ghb-is-touch #GHB .ghb-mobile-continue.on:active {
    transform: scale(.98);
  }

  html.ghb-is-touch #GHB.ghb-mobile-modal-active #ghPopBg.on,
  html.ghb-is-touch #GHB.ghb-mobile-modal-active #ghTutorialBg.on,
  html.ghb-is-touch #GHB.ghb-mobile-modal-active #ghOrganBg.on {
    opacity: 0;
    pointer-events: none;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal.on {
    position: fixed;
    inset: 0;
    z-index: 2147483150;
    display: grid;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: radial-gradient(circle at top, rgba(159, 82, 253, .22), transparent 34%), rgba(2, 3, 8, .92);
    color: #fff;
    touch-action: pan-y;
    overflow: hidden;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-panel {
    width: min(100%, 620px);
    height: 100%;
    min-height: 0;
    justify-self: center;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 15, 24, .98), rgba(6, 8, 14, .98));
    box-shadow: 0 22px 42px rgba(0, 0, 0, .34);
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-head {
    display: grid;
    gap: 7px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-head h3 {
    margin: 0;
    color: #fff;
    font: 900 clamp(18px, 5.4vw, 24px)/1.12 Montserrat, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-stars {
    min-height: 17px;
    color: rgba(255, 255, 255, .7);
    font: 800 11px/1.35 Montserrat, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-stars.is-empty {
    display: none;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 14px 16px 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.5;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body p,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body span {
    max-width: 100%;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body img {
    max-width: 100%;
    height: auto;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-shell,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-grid,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-brief-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-card,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-brief-card {
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-card b,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-brief-card b,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body h4 {
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-avatar {
    min-height: 160px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .tutorial-section {
    display: block;
    margin-bottom: 14px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .tutorial-section.on {
    display: block;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .tut-icon {
    align-items: center;
    gap: 8px;
    min-height: 42px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-organ-img {
    display: block;
    width: min(96px, 30vw);
    margin: 0 auto 12px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-lead {
    color: #d7ffe9;
    font-weight: 800;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(6, 8, 14, .98);
    touch-action: manipulation;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-actions button {
    width: 100%;
    min-height: 52px;
    border-radius: 15px;
    font: 900 13px/1 Montserrat, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    touch-action: manipulation;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-actions .pri {
    border: 1px solid rgba(112, 247, 176, .46);
    background: linear-gradient(135deg, #8ff0d6, #c8ffe9);
    color: #07120e;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-actions .ghost {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
  }

  html.ghb-is-touch #GHB .pop-bg.on,
  html.ghb-is-touch #GHB .organ-popup-bg.on,
  html.ghb-is-touch #GHB .auth-bg.on {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  html.ghb-is-touch #GHB .pop-bg.on::before,
  html.ghb-is-touch #GHB .organ-popup-bg.on::before,
  html.ghb-is-touch #GHB .auth-bg.on::before {
    content: "";
    flex: 0 0 1px;
  }

  html.ghb-is-touch #GHB .pop,
  html.ghb-is-touch #GHB .pop.phase-story-pop,
  html.ghb-is-touch #GHB .organ-popup,
  html.ghb-is-touch #GHB .auth-card {
    flex: 0 0 auto;
    width: min(100%, 680px);
    max-height: none;
    margin: auto 0;
    overflow: visible;
    touch-action: pan-y;
  }

  html.ghb-is-touch #GHB .pop.phase-story-pop {
    padding: 14px;
    border-radius: 18px;
  }

  html.ghb-is-touch #GHB .pop.phase-story-pop .phase-story-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  html.ghb-is-touch #GHB .pop.phase-story-pop .phase-story-avatar {
    min-height: 210px;
  }

  html.ghb-is-touch #GHB .pop.phase-story-pop .phase-story-grid,
  html.ghb-is-touch #GHB .pop.phase-story-pop .phase-brief-list {
    grid-template-columns: 1fr;
  }

  html.ghb-is-touch #GHB .pop.phase-story-pop .pop-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 10px -6px -6px;
    padding: 10px 6px 6px;
    background: linear-gradient(180deg, rgba(8, 8, 14, 0), rgba(8, 8, 14, .96) 28%);
  }

  html.ghb-is-touch #GHB .tutorial-modal-bg.on {
    position: fixed;
    inset: 0;
    z-index: 135;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    align-items: stretch;
    overflow: hidden;
    touch-action: pan-y;
  }

  html.ghb-is-touch #GHB .tutorial-modal {
    width: 100%;
    max-height: none;
    height: 100%;
    min-height: 0;
    border-radius: 18px;
    touch-action: pan-y;
  }

  html.ghb-is-touch #GHB .tutorial-header {
    padding: 14px 16px 12px;
  }

  html.ghb-is-touch #GHB .tutorial-header h3 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.12;
  }

  html.ghb-is-touch #GHB .tutorial-tabs {
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  html.ghb-is-touch #GHB .tutorial-tab {
    flex: 0 0 auto;
  }

  html.ghb-is-touch #GHB .tutorial-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 14px 16px 18px;
  }

  html.ghb-is-touch #GHB .tutorial-footer {
    flex: 0 0 auto;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    touch-action: manipulation;
  }

  html.ghb-is-touch #GHB .ghb-orientation-gate.on {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(3, 4, 8, .98), rgba(8, 10, 16, .96));
    color: #fff;
    touch-action: none;
  }

  html.ghb-is-touch #GHB .ghb-orientation-card {
    width: min(420px, 92vw);
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 24px 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(14, 16, 24, .96), rgba(7, 8, 14, .96));
    text-align: center;
    box-shadow: 0 28px 58px rgba(0, 0, 0, .42);
  }

  html.ghb-is-touch #GHB .ghb-rotate-icon {
    position: relative;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
  }

  html.ghb-is-touch #GHB .ghb-rotate-phone {
    width: 38px;
    height: 60px;
    border: 3px solid #8ff0d6;
    border-radius: 11px;
    transform-origin: center;
    animation: ghbRotatePhone 1.8s ease-in-out infinite;
  }

  html.ghb-is-touch #GHB .ghb-rotate-arc {
    position: absolute;
    inset: 3px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-right-color: #c79aff;
    border-radius: 50%;
  }

  html.ghb-is-touch #GHB .ghb-orientation-card h2 {
    margin: 0;
    font: 900 28px/1.05 Montserrat, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  html.ghb-is-touch #GHB .ghb-orientation-card p {
    max-width: 30em;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.55;
  }

  html.ghb-is-touch.ghb-mobile-portrait #GHB #ghOverlay.on {
    pointer-events: none;
  }

  html.ghb-is-touch.ghb-mobile-portrait #GHB .ghb-orientation-gate.on {
    pointer-events: auto;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  html.ghb-is-touch #GHB .ghb-touch-controls {
    display: none !important;
  }
}

@keyframes ghbRotatePhone {
  0%, 18% { transform: rotate(0deg); }
  58%, 78% { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}

/* AAA mobile polish: invisible gesture controls, purple actions, safer modals. */
@media (hover: none), (pointer: coarse), (max-width: 1180px) {
  html.ghb-is-touch #GHB #ghPlatform .hud,
  html.ghb-is-touch #GHB #ghPlatform .info,
  html.ghb-is-touch #GHB #ghPlatform .special-hud,
  html.ghb-is-touch #GHB #ghPlatform .stages {
    z-index: 62;
    box-shadow: none;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-main,
  html.ghb-is-touch #GHB #ghPlatform.ghb-mobile-hud-expanded .hud-main {
    top: max(8px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 8px));
    right: max(8px, env(safe-area-inset-right));
    max-width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-stat {
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(159, 82, 253, .12);
    border-color: rgba(199, 154, 255, .16);
    box-shadow: none;
  }

  html.ghb-is-touch #GHB #ghPlatform .cardio-hud {
    background: linear-gradient(180deg, rgba(var(--cardio-rgb), .18), rgba(8, 8, 14, .1));
    border-color: rgba(var(--cardio-rgb), .26);
  }

  html.ghb-is-touch #GHB #ghPlatform .hud-toggle,
  html.ghb-is-touch #GHB #ghPlatform .hud-btn {
    background: rgba(8, 8, 14, .18);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: none;
  }

  html.ghb-is-touch #GHB .ghb-mobile-hud-toggle,
  html.ghb-is-touch #GHB .ghb-action-cluster,
  html.ghb-is-touch #GHB .ghb-move-zone,
  html.ghb-is-touch #GHB .ghb-touch-pause {
    opacity: 0;
    pointer-events: none;
    transform: scale(.92);
  }

  html.ghb-is-touch #GHB .ghb-touch-controls {
    z-index: 34;
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .ghb-touch-controls {
    display: block;
    pointer-events: none;
  }

  html.ghb-is-touch #GHB .ghb-gesture-zone {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    pointer-events: auto;
    touch-action: none;
    background: transparent;
  }

  html.ghb-is-touch #GHB .ghb-control-mode-toggle {
    position: fixed;
    top: max(58px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 52px));
    right: max(10px, env(safe-area-inset-right));
    z-index: 46;
    display: none;
    min-width: 78px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(7, 8, 13, .42);
    color: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    font: 900 10px/1 Montserrat, sans-serif;
    letter-spacing: .05em;
    text-transform: uppercase;
    pointer-events: auto;
    touch-action: none;
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .ghb-control-mode-toggle {
    display: none !important;
  }

  html.ghb-is-touch #GHB .ghb-control-mode-toggle[data-mode="smooth"] {
    border-color: rgba(143, 240, 214, .22);
    color: #ddfff4;
  }

  html.ghb-is-touch #GHB .ghb-control-mode-toggle[data-mode="precision"] {
    border-color: rgba(199, 154, 255, .3);
    color: #f0e3ff;
  }

  html.ghb-is-touch #GHB .ghb-touch-feedback {
    position: fixed;
    z-index: 36;
    display: block;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(199, 154, 255, .18);
    box-shadow: 0 0 22px rgba(159, 82, 253, .22);
    animation: ghbTouchFeedback .28s ease-out forwards;
  }

  html.ghb-is-touch #GHB .ghb-touch-feedback.is-move {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-color: rgba(143, 240, 214, .28);
    background: rgba(143, 240, 214, .12);
    animation-duration: .36s;
  }

  html.ghb-is-touch #GHB .ghb-mobile-pause-card button,
  html.ghb-is-touch #GHB .ghb-orientation-card button,
  html.ghb-is-touch #GHB .ghb-mobile-continue.on,
  html.ghb-is-touch #GHB .ghb-mobile-modal-actions .pri {
    border-color: rgba(199, 154, 255, .48);
    background: linear-gradient(135deg, #9f52fd, #c18aff);
    color: #fff;
    box-shadow: 0 16px 34px rgba(159, 82, 253, .28);
  }

  html.ghb-is-touch #GHB .ghb-rotate-phone {
    border-color: #c79aff;
  }

  html.ghb-is-touch #GHB .menu-tools.on {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  html.ghb-is-touch #GHB .menu-tools-toggle,
  html.ghb-is-touch #GHB .menu-tools .btn.ghost,
  html.ghb-is-touch #GHB .menu-close {
    background: rgba(159, 82, 253, .12);
    border-color: rgba(199, 154, 255, .22);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  }

  html.ghb-is-touch #GHB #ghPlatform .info {
    top: max(56px, calc(env(safe-area-inset-top) + var(--ghb-mobile-browser-top, 0px) + 46px));
    max-height: min(34dvh, 190px);
    padding: 9px 11px;
    border-color: rgba(199, 154, 255, .16);
    background: rgba(10, 8, 18, .72);
  }

  html.ghb-is-touch #GHB #ghPlatform .info .info-copy {
    gap: 2px;
  }

  html.ghb-is-touch #GHB #ghPlatform .info .info-copy b {
    font-size: 9px;
    color: #eadcff;
  }

  html.ghb-is-touch #GHB #ghPlatform .info .info-copy em {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .78);
  }

  html.ghb-is-touch #GHB #ghPlatform .info .phase-chip-list {
    gap: 5px;
  }

  html.ghb-is-touch #GHB #ghPlatform .info .phase-chip {
    padding: 4px 7px;
    font-size: 8px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal.on {
    background:
      radial-gradient(circle at 22% 0, rgba(159, 82, 253, .26), transparent 32%),
      linear-gradient(180deg, rgba(3, 3, 8, .95), rgba(7, 5, 13, .96));
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-panel {
    width: min(100%, 760px);
    border-color: rgba(199, 154, 255, .22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 12, 24, .985), rgba(6, 7, 12, .985));
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body {
    padding: 10px 12px 12px;
    font-size: 12.5px;
    line-height: 1.48;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-hero {
    grid-template-columns: minmax(156px, .42fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-avatar {
    min-height: 206px;
    border-radius: 15px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-avatar img {
    left: 25%;
    width: min(104px, 38%);
    bottom: 8px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought.is-long,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought.is-xl {
    top: 12px;
    right: 10px;
    left: auto;
    width: min(58%, 230px);
    max-width: none;
    max-height: calc(100% - 24px);
    padding: 11px 12px 10px;
    border-radius: 18px;
    font-size: 10.2px;
    line-height: 1.45;
    overflow: hidden;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought::before {
    left: auto;
    right: calc(100% - 9px);
    bottom: 42px;
    width: 18px;
    height: 18px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought::after {
    display: none;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought-text,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought.is-long .phase-thought-text,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-thought.is-xl .phase-thought-text {
    max-height: 136px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-copy {
    gap: 8px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-copy small {
    padding: 5px 8px;
    font-size: 8px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-copy h4 {
    font-size: clamp(15px, 3.8vw, 19px);
    line-height: 1.12;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-copy p {
    font-size: 11.5px;
    line-height: 1.55;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-grid,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-brief-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-card,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-brief-card {
    padding: 9px 10px;
    border-radius: 12px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-phase-lite .ghb-mobile-modal-head {
    padding: 10px 12px 8px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-phase-lite .ghb-mobile-modal-head h3 {
    font-size: clamp(15px, 4.4vw, 20px);
  }

  html.ghb-is-touch #GHB .ghb-mobile-phase-lite .ghb-mobile-modal-stars {
    min-height: 0;
    font-size: 9px;
  }

  html.ghb-is-touch #GHB .ghb-mobile-phase-lite .phase-brief,
  html.ghb-is-touch #GHB .ghb-mobile-phase-lite .phase-story-grid .phase-story-card:nth-child(n+3) {
    display: none;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-actions {
    padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-actions button {
    min-height: 46px;
    border-radius: 13px;
  }

  html.ghb-is-touch #GHB .organ-popup,
  html.ghb-is-touch #GHB .pop {
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  html.ghb-is-touch #GHB .organ-popup {
    border-color: rgba(199, 154, 255, .28);
    box-shadow: 0 0 0 1px rgba(159, 82, 253, .12), 0 22px 44px rgba(0, 0, 0, .4);
  }

  html.ghb-is-touch #GHB .organ-popup-top {
    padding: 20px 22px 12px;
    background: linear-gradient(180deg, rgba(159, 82, 253, .1), transparent);
  }

  html.ghb-is-touch #GHB .organ-popup-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(159, 82, 253, .2), rgba(199, 154, 255, .1));
    border-color: rgba(199, 154, 255, .32);
    box-shadow: 0 8px 24px rgba(159, 82, 253, .16);
  }

  html.ghb-is-touch #GHB .organ-popup-icon img {
    width: 46px;
    height: 46px;
  }

  html.ghb-is-touch #GHB .organ-popup .organ-badge,
  html.ghb-is-touch #GHB .organ-popup .organ-fn,
  html.ghb-is-touch #GHB .ghb-mobile-modal-lead {
    color: #dfc4ff;
  }

  html.ghb-is-touch #GHB .organ-popup .organ-badge {
    background: rgba(159, 82, 253, .13);
    border-color: rgba(199, 154, 255, .26);
  }

  html.ghb-is-touch #GHB .organ-popup-body {
    padding: 0 22px 12px;
  }

  html.ghb-is-touch #GHB .organ-popup-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 22px max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(8, 8, 14, 0), rgba(8, 8, 14, .98) 24%);
  }

  html.ghb-is-touch #GHB .tutorial-modal,
  html.ghb-is-touch #GHB .tutorial-tab.on {
    border-color: rgba(199, 154, 255, .32);
  }

  html.ghb-is-touch #GHB .tutorial-section:not(.on) {
    display: none;
  }

  html.ghb-is-touch #GHB .tutorial-footer .btn.pri {
    background: linear-gradient(135deg, #9f52fd, #c18aff);
    border-color: rgba(199, 154, 255, .4);
  }

  html.ghb-is-touch #GHB .ghb-gesture-tutorial {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 96;
    display: none;
    width: min(420px, calc(100vw - 28px));
    transform: translateX(-50%);
    pointer-events: none;
  }

  html.ghb-is-touch #GHB .ghb-gesture-tutorial.on {
    display: block;
    animation: ghbGestureIn .24s ease both;
  }

  html.ghb-is-touch #GHB .ghb-gesture-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(8, 7, 14, .72);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .26);
    backdrop-filter: blur(8px);
    pointer-events: none;
  }

  html.ghb-is-touch #GHB .ghb-gesture-card b {
    display: block;
    margin-bottom: 2px;
    font: 900 11px/1 Montserrat, sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  html.ghb-is-touch #GHB .ghb-gesture-card span {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: 10.5px;
    line-height: 1.35;
  }

  html.ghb-is-touch #GHB .ghb-gesture-demo {
    position: relative;
    width: 88px;
    height: 46px;
  }

  html.ghb-is-touch #GHB .ghb-gesture-icon {
    position: absolute;
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28));
  }

  html.ghb-is-touch #GHB .ghb-gesture-icon.drag {
    left: 0;
    top: 4px;
    animation: ghbGestureDrag 1.45s ease-in-out infinite;
  }

  html.ghb-is-touch #GHB .ghb-gesture-icon.tap {
    right: 2px;
    top: 4px;
    animation: ghbGestureTap 1.1s ease-in-out infinite;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 680px) {
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-hero,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-grid,
  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-brief-list {
    grid-template-columns: 1fr;
  }

  html.ghb-is-touch #GHB .ghb-mobile-modal-body .phase-story-avatar {
    min-height: 190px;
  }

  html.ghb-is-touch #GHB .ghb-gesture-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* Safari/iOS landscape failsafe: keep the gameplay HUD inside the visible viewport. */
@media (hover: none), (pointer: coarse), (max-width: 1180px) {
  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .hud-main,
  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on.ghb-mobile-hud-expanded .hud-main {
    position: fixed;
    top: var(--ghb-mobile-hud-top, 12px);
    left: max(8px, env(safe-area-inset-left));
    right: auto;
    z-index: 2147482504;
    display: grid !important;
    grid-template-columns: 1fr;
    width: max-content;
    max-width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: none;
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .hud-primary {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .hud-stat,
  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .cardio-hud {
    min-height: 32px;
    padding: 6px 8px;
    pointer-events: none;
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB .ghb-mobile-hud-toggle {
    top: var(--ghb-mobile-hud-top, 12px);
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB .toast {
    top: calc(var(--ghb-mobile-hud-top, 12px) + 46px);
    max-width: min(58vw, 380px);
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB .toast-cardio {
    top: calc(var(--ghb-mobile-hud-top, 12px) + 52px);
  }

  html.ghb-is-touch.ghb-mobile-landscape #GHB .enemy-dialog-bubble {
    max-width: min(34vw, 260px);
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 430px) {
  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on .hud-main,
  html.ghb-is-touch.ghb-mobile-landscape #GHB #ghPlatform.screen.on.ghb-mobile-hud-expanded .hud-main,
  html.ghb-is-touch.ghb-mobile-landscape #GHB .ghb-mobile-hud-toggle {
    top: var(--ghb-mobile-hud-top, 8px);
  }
}

@keyframes ghbGestureIn {
  from { opacity: 0; transform: translate(-50%, 10px) scale(.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes ghbGestureDrag {
  0%, 100% { transform: translateX(0) rotate(-4deg); opacity: .92; }
  45% { transform: translateX(20px) rotate(4deg); opacity: 1; }
  70% { transform: translateX(10px) rotate(0deg); opacity: .96; }
}

@keyframes ghbGestureTap {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  36% { transform: translateY(6px) scale(.86); opacity: .9; }
  52% { transform: translateY(0) scale(1.04); opacity: 1; }
}

@keyframes ghbTouchFeedback {
  from { opacity: .74; transform: scale(.55); }
  to { opacity: 0; transform: scale(1.85); }
}
